Skip to content

fix: use workspace harness in Python version matrix - #314

Merged
Jammy2211 merged 3 commits into
mainfrom
feature/python-matrix-harness
Oct 16, 2026
Merged

Jammy2211 merged 3 commits into
mainfrom
feature/python-matrix-harness

Conversation

@Jammy2211

@Jammy2211 Jammy2211 commented Oct 16, 2026 •

Copy link
Copy Markdown
Collaborator

Why

The Python matrix's direct script loop ignores workspace profiles, ENV declarations and per-script timeouts. It can hang for hours and mishandle full-dataset scripts.

Scripts Changed

  • .github/workflows/python_matrix.yml: check out the current Hands ref, use workspace smoke_install.sh with PYTHON_VERSION, invoke run_smoke.py with reporting, upload each leg's report, remove hard-coded smoke flags, limit unit optional extras to Python 3.12.
  • tests/test_python_matrix_workflow.py: execute the workflow runner shell and verify failure propagation, paths with spaces and per-version pip arguments.

Validation

  • Targeted workflow tests: 10 passed (also independently reproduced).
  • Independent Sol code review: CLEAN. Current main installers and runners for all three workspaces audited.
  • Full suite: 490 passed, 9 skipped, 1 failed before -x stopped it. Failure: tests/test_script_timeout.py::TestTimeoutKillsProcessGroup::test_grandchild_is_reaped_at_the_cap, pgrep found one descendant after timeout.
  • The SAME isolated test fails on untouched origin/main f27613f in a separate baseline worktree. The changed branch does not modify that test or build_util.py. This establishes a baseline failure in this environment, not a green suite.
  • Heart STALE from published Health run 38880730943; development only.

Live validation passed

Candidate a016d49: Hands Tests 38964701537 passed every Python leg. Python Version Matrix 38965105020 passed all 15 unit jobs and all nine smoke jobs, finishing within 60 minutes. AutoLens logs on all three Python versions show run_smoke.py --report-dir test-results and witt_wynne.py PASS (17.9s/17.9s/20.0s).

The first matrix exposed missing numba/Zeus on Python 3.13/3.14; a016d49 installs both explicitly in the combined library install. Targeted 10 tests and independent review CLEAN; the new matrix verifies all four prior failures now pass. Historical validation notes below are superseded by this exact-head result.

Task #312. Approved four-task batch 2026-10-16; no release authorization.

Validation update

Remote Hands Tests run 38961099629 passed its pytest step on Python 3.12, 3.13 and 3.14 (3.12: 491 passed / 9 skipped). Its tenant-firewall step rejected two newly hard-coded repo names in the test fixture. Commit 148afbd removes those instance names without changing the workflow. Targeted 10 tests and tenant firewall pass locally; independent review of the adjustment is CLEAN. Updated CI run 38961303466 is the current gate. The full live Python Version Matrix witness remains missing.

Final CI: run 38961303466 succeeded on exact head 148afbd, including all Python test legs and the tenant firewall. Live matrix acceptance is still pending.

Copy link
Copy Markdown
Collaborator Author

Follow-up fix pushed at a016d49 for #312. Live matrix 38963008276 exposed missing unit-test dependencies on Python 3.13/3.14: Array had 10 missing-numba failures per leg; Fit had 9 missing-Zeus failures per leg. The combined editable install now explicitly includes numba and zeus-mcmc==2.5.4 on every supported version, retaining broad optional extras only on 3.12. No tests skipped or gates weakened.

Validation: 10 targeted workflow tests passed; diff check clean; independent review CLEAN. Python 3.14 wheel-only dependency download succeeded (availability check, not full suite/runtime validation).

Required next witness: dispatch Python Version Matrix on feature/python-matrix-harness at this new head. Re-running the old run uses the old commit and will not validate this fix. Connector has no workflow_dispatch operation, so dispatch needs the GitHub Actions UI. Keep draft/unmerged pending new-head CI and matrix evidence.

@Jammy2211
Jammy2211 marked this pull request as ready for review October 16, 2026 21:09
@Jammy2211
Jammy2211 merged commit 0939b50 into main Oct 16, 2026
28 checks passed
@Jammy2211
Jammy2211 deleted the feature/python-matrix-harness branch October 16, 2026 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant