Skip to content

fix(ci): run the Euclid smoke list as one ordered shard - #312

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/euclid-smoke-ordered-shard
Oct 21, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/euclid-smoke-ordered-shard

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Summary

script_matrix.py sharded every project per scripts/<subdir>/. The Euclid pipeline (added to workspace-validation smoke by PyAutoHeart#309) keeps its scripts at scripts/*.py + root start_here.py with one subdir, so its only job was scripts/tools: diagnose_latent.py ran without the fits it replays and failed (cloud#39224774724 — the release-readiness YELLOW reason), and the rest of the pipeline was never smoked.

Hands#318 adds an explicit, caller-owned opt-in --ordered PROJECT (repeatable): that project becomes ONE matrix entry carrying its ordered smoke_tests.txt, run via run_python.py --list. Presence of smoke_tests.txt does not opt in (every workspace has one); an unknown --ordered name errors. Output without the flag is unchanged.

Part of PyAutoLabs/PyAutoHands#317 (companion: PyAutoLabs/PyAutoHands#318)

Merge order: PyAutoLabs/PyAutoHands#318 FIRST, then this PR — the Heart workflow clones Hands main, and old script_matrix.py would read --ordered as a project name.

This PR wires it: workspace-validation.yml passes --ordered euclid in smoke mode only; both run_scripts steps take SHARD_* env from the matrix entry and call run_python.py <name> . --list smoke_tests.txt for an ordered entry (else scripts/<dir> as before); script-leg artifact names use ordered as the suffix for such an entry. tests/test_workflow_wiring.py extended (4 new tests).

Validation

  • PyAutoHands full suite: 534 passed; new tests/test_script_matrix.py (8) + test_script_list.py: 17 passed (re-run in-session).
  • PyAutoHeart full suite: 1277 passed; tests/test_workflow_wiring.py: 25 passed (re-run in-session).
  • Matrix simulation over the 10 smoke projects: without --ordered byte-identical to main; with --ordered euclid euclid is one entry {name: euclid, directory: ".", script_list: smoke_tests.txt}, every other entry unchanged.
  • End-to-end smoke of the new path on euclid main (run_python.py euclid . --list smoke_tests.txt): all 9 entries PASS in list order, incl. scripts/tools/diagnose_latent.py (5.8s) — the script that failed in cloud#39224774724; 80s total.
  • In-session review of both diffs.
  • Not verified: a real Workspace Smoke dispatch (the workflow always clones PyAutoHands main, so it is only meaningful after the Hands PR merges).

Heart

Heart RED override (development only), authorized live by the human 2026-10-21 ("Override and proceed"); exact RED reasons verbatim on PyAutoHands#317. Merge needs a separate /prm with all checks green; no release.

🤖 Generated with Claude Code

Workspace smoke now builds the matrix with --ordered euclid, so the
pipeline's smoke_tests.txt runs in order in one job from the workspace
root (start_here.py and top-level scripts/*.py included) instead of a
lone scripts/tools shard. Both run_scripts steps pass --list when the
entry carries a script_list and keep scripts/<dir> otherwise; the
scripts-leg artifact names use an `ordered` suffix for such entries.
Wiring tests execute both run steps against a stub runner for each shape.

Refs PyAutoLabs/PyAutoHands#317

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit c34b23c into main Oct 21, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the feature/euclid-smoke-ordered-shard branch October 21, 2026 09:59
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