Repository navigation
Description
Overview
Python Version Matrix runs scripts directly, bypassing smoke profiles, ENV declarations and timeouts. Use the established workspace runner and installer.
Plan
- Check out Hands alongside the workspace and use its existing smoke installer.
- Invoke run_smoke.py with a per-leg report directory and upload reports even on failure.
- Remove hard-coded smoke mode overrides; let profile_smoke.yaml govern behavior.
- Gate optional library extras to Python 3.12 in the unit-test leg.
- Exercise workflow shell steps with lightweight fixture executables, run Hands tests, and obtain independent review.
Tier: glance — merge mode: auto-merge on green only after the declared dispatched matrix witness passes; otherwise draft for human review.
Detailed implementation plan
Primary repository: PyAutoHands; main clean, no active claim or open PR found. Branch: feature/python-matrix-harness. Edit .github/workflows/python_matrix.yml. Preserve all 3×3 smoke legs and existing unit matrix. Use PYTHON_VERSION for installer policy, WORKSPACE_PATH from env rather than interpolating into shell, PYTHONPATH pointing to checked-out Hands. Upload per-workspace/per-version reports. Add behavioral workflow tests exercising the actual run blocks, including nonzero harness exits and optional extras for 3.12 versus 3.13/3.14. Human authorized the fixed four-task batch with “Go” on 2026-10-16. Task two waits behind Heart #298; this independent Hands task proceeds under checkpoint-and-continue. No release authorization.Original Prompt
Starting prompt
Python Version Matrix smoke legs bypass run_smoke.py — no ENV declarations, no profile env, no per-script cap (6h XLA vmap hangs + witt_wynne failure)
Type: bug
Target: pyautohands
Repos:
- PyAutoHands
Difficulty: medium
Autonomy: supervised
Priority: high
Status: formalised
Consequence: glance
Witness: A dispatchedPython Version Matrixrun on main completes all legs (3.12/3.13/3.14 × autofit/autogalaxy/autolens) in under 60 min withguides/misc/witt_wynne.pypassing, and the smoke step invokes<ws>/.github/scripts/run_smoke.py(visible in the job log), not a bashpython scripts/$scriptloop.
Filed: 2026-10-16
Finding (health session 2026-10-16, read-only diagnosis)
organs/PyAutoHands/.github/workflows/python_matrix.yml:117-140 runs smoke scripts with its own bash loop over smoke_tests.txt and a hard env block (:83-89: PYAUTO_TEST_MODE=1, SMALL_DATASETS=1, FAST_PLOTS=1). It never goes through run_smoke.py → autohands/run_python.py, so it loses profile_smoke.yaml (TEST_MODE=2, DISABLE_JAX=1), per-script ENV: declarations, the per-script timeout + process-group kill and the report.
- 6h cancellations (09-21, 09-28, 10-05, 10-12) — only autolens_workspace legs; each wedged
350 min in a Nautilus+JAX vmap fit (700. This is the known XLA CPU Eigen thread-pool wedge (complete/2026/08/jax-vmap-materialisation-hang.md; workaroundshapelets/modeling.py,extra_galaxies/modeling.py,scaling_relation/modeling.py; varies by leg) atautofit/non_linear/jax_compile.py:249 _block_until_ready, "still waiting for the result to materialize" ×XLA_FLAGS=--xla_cpu_multi_thread_eigen=false). The matrix runs it because TEST_MODE=1 + JAX on, with no cap. - witt_wynne.py fails only here (run 38235988094, jobs 114766665351/114766665487): it declares
ENV: full_datasets(autohands/env_config.py:94 unsets SMALL_DATASETS); the loop ignores it. - 3.13 install failure (job 108867068107):
[optional]extras → tfp-nightly → dm-tree has no 3.13 wheel; smoke_install.sh already gates[optional]to 3.12. unit_tests leg installs[optional]on 3.13/3.14 too.
Proposed fix (Hands only)
Replace the bash loop + env block with the workspace harness: check out PyAutoHands beside the workspace, PYTHON_VERSION=… bash <ws>/.github/scripts/smoke_install.sh, then PYTHONPATH=PyAutoHands/autohands python <ws>/.github/scripts/run_smoke.py --report-dir …. If the matrix intends real JAX fits, add XLA_FLAGS=--xla_cpu_multi_thread_eigen=false as the *_workspace_test profiles do. Do not raise timeouts or skip scripts. Gate the unit_tests [optional] install by version the same way.
Evidence logs: health-session scratch (not retained); job IDs above.
Activity
Jammy2211 commentedon Oct 16, 2026
Implementation checkpoint: draft PR #314, latest commit 148afbd. Independent code review CLEAN; targeted 10 passed. Remote pytest steps passed Python 3.12/3.13/3.14; original tenant firewall failure corrected with instance-free assertions, local firewall OK. Current CI run 38961303466. Local process-group test failure also reproduced on untouched main f27613f; remote suite passed. Live Python Version Matrix witness (<60 minutes, all 9 smoke legs, witt_wynne passing) still missing. No merge/completion claim. Mind retains Hands claim; approved sampler-import task #313 waits behind this and Heart #298.
Jammy2211 commentedon Oct 16, 2026
Final CI check: Hands Tests run 38961303466 is SUCCESS at 148afbd, including the tenant firewall. Remaining gate is the live Python Version Matrix witness, not the PR unit-test suite.
Jammy2211 commentedon Oct 16, 2026
Validation capability check (2026-10-16): the connected GitHub surface exposes workflow reads and reruns, but no workflow_dispatch operation. Re-running an old matrix run would use its old ref and cannot validate this patch. Required bounded handoff on an authenticated GitHub CLI:
gh workflow run python_matrix.yml --repo PyAutoLabs/PyAutoHands --ref feature/python-matrix-harness. Equivalent UI: Actions → Python Version Matrix → Run workflow → branch feature/python-matrix-harness. Record the returned run URL; verify head 148afbd, all 9 smoke legs under 60 minutes and witt_wynne passing. This launches validation only, not a release. No new workflow or credential workaround was added.Jammy2211 commentedon Oct 16, 2026
Human launched the live matrix. Candidate run: https://github.com/PyAutoLabs/PyAutoHands/actions/runs/38963008276 — branch feature/python-matrix-harness, exact head 148afbd, currently queued. A separate main-branch run 38962981773 uses f27613f and is not validation of this patch. Next: inspect candidate run's nine smoke legs, elapsed duration and witt_wynne result. Do not substitute the main run.
Jammy2211 commentedon Oct 16, 2026
Shipped in #314, merged 0939b50. Exact-head checks and live witness passed: 38964701537; live matrix 38965105020. Independent code review CLEAN. Mind lifecycle close-out follows. No release performed or claimed.