Skip to content

fix: emit one ordered shard for order-dependent smoke lists - #318

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
Collaborator

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.

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.

Closes #317

Merge order: this PR first, then PyAutoLabs/PyAutoHeart (companion, branch feature/euclid-smoke-ordered-shard) — the Heart workflow clones Hands main, and old script_matrix.py would read --ordered as a project name.

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

script_matrix.py shards a project per scripts/<subdir>, so the Euclid
pipeline's only job was scripts/tools, running diagnose_latent.py without
the fits it replays (cloud#39224774724). Add an explicit, caller-owned
--ordered PROJECT flag: such a project becomes a single entry
{name, directory: ".", script_list: "smoke_tests.txt"} for
run_python.py --list. Other projects' entries are unchanged, and an
--ordered name outside the project list is an error.

Refs #317

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit eb467b8 into main Oct 21, 2026
3 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.

fix: run order-dependent smoke lists (euclid) as one ordered shard

1 participant