Skip to content

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

Closed

Description

@Jammy2211

Overview

Heart#309 put the Euclid pipeline into workspace-validation smoke, but autohands/script_matrix.py shards a project by scripts/<subdir>, so the only euclid job was scripts/tools. It ran diagnose_latent.py alone, with none of the fits it replays, and failed (cloud#39224774724). That's the release-readiness YELLOW reason. The pipeline's top-level scripts and start_here.py were never smoked at all.

Plan

  • Let a project declare that its smoke contract is an ordered script list (smoke_tests.txt) and not per-directory shards.
  • For such a project, script_matrix.py emits ONE matrix entry that carries the list.
  • Workspace validation runs that entry as one job, passing the list to run_python.py (which already supports a script list), so producers run before diagnose_latent.py in one output dir.
  • Existing workspaces keep their per-directory shards unchanged.
  • No edits to the pipeline's scripts; verify with a Workspace Smoke dispatch from the branch.

Tier: judge (undeclared Consequence) — merge mode: human /prm

Detailed implementation plan

Affected Repositories

  • PyAutoHands (primary) — autohands/script_matrix.py + tests
  • PyAutoHeart — .github/workflows/workspace-validation.yml (run_scripts step passes the list)

Branch Survey

Repository Current Branch Dirty?
organs/PyAutoHands main clean
organs/PyAutoHeart main clean

Suggested branch: feature/euclid-smoke-ordered-shard

Implementation Steps

  1. script_matrix.py: decide the declaration (preferred: an explicit opt-in key the project owns, e.g. in its config/build/ profile, or an explicit ordered-projects marker, rather than guessing from smoke_tests.txt presence, since every workspace has one). Emit {name, directory: ".", script_list: "smoke_tests.txt"} for it.
  2. Unit tests for both shapes (per-dir unchanged; ordered → single entry).
  3. workspace-validation.yml run_scripts: when matrix.project.script_list is set, call run_python.py <project> <dir> --<script-list-flag> <list>. Artifact names must stay unique.
  4. Confirm the euclid profile overrides (PYAUTO_OUTPUT_DIR=output/test_mode for diagnose_latent) still apply under the list runner.
  5. Dispatch Workspace Smoke on the branch refs; all euclid entries PASS, other projects unchanged.

Heart RED override (development only) — authorized by the human 2026-10-21 in the health session. Verbatim door reading: Heart: RED — Release RED; monitoring RED · 14/100 · 464 unresolved (updated 23h ago); red reasons: PyAutoFit CI failure (run 39111874604, since green on d3a7721); PyAutoHands Python Version Matrix failure; PyAutoHeart Workspace Smoke failure; PyAutoMind Spawn Drift failure (fixed in Mind e18c2021); 8 ci_timing suspect_cancelled rows (PyAutoArray×2, PyAutoFit×4, *_workspace_test Smoke×3); CI wall-clock 27 gates/9 hang events; Workspace validation NOT ready 1414p/1f/133s @ cloud#39224774724; euclid/test_run red; PyAutoArray, autolens_inference, autolens_profiling, euclid pipeline repo state red; Worktree drift 5 orphan/4 dirty. Covers commit/push/PR only; merge needs a separate /prm with all checks green; no release.

Original Prompt

Click to expand starting prompt

Euclid smoke: scripts/tools shard runs without the fits it replays

Type: bug
Target: health_fixes
Themes:

  • ci
  • smoke
    Difficulty: small
    Autonomy: supervised
    Priority: high
    Status: formalised
    Filed: 2026-10-21

Context

Heart board finding test_run:euclid / ci_status:PyAutoHeart/workflows/Workspace Smoke
(red; release-readiness YELLOW reason "workspace validation not passing (1 failed,
cloud#39224774724: euclid scripts/tools/diagnose_latent.py)").

PyAutoHeart#309 (merged 2026-10-17, commit 4891a53) added the Euclid pipeline to
workspace-validation.yml smoke mode. The matrix is built by
PyAutoHands/autohands/script_matrix.py, which shards a project by directory, so
job run_scripts (3.12, euclid, tools) runs scripts/tools/diagnose_latent.py
alone in a fresh runner. It fails in 4.9s:

ERROR: no such search directory: .../workspace/output/test_mode/q1_walsmley/
102018665_NEG570040238507752998/initial_lens_model/vis_lp

euclid_strong_lens_modeling_pipeline/smoke_tests.txt documents that the order is
load-bearing (one output dir; diagnose_latent replays fits run above it), and
config/build/profile_smoke.yaml assumes start_here.py already ran. Workspace
Smoke passed on 10-16, before euclid was added.

Primary repository: @PyAutoHands (script_matrix sharding) or @PyAutoHeart
(workspace-validation wiring). Do not edit the pipeline script to mask it.

Ask

Make order-dependent projects (an ordered smoke_tests.txt) run as one shard, or
otherwise guarantee the producer scripts run in the same job. Verify with a
Workspace Smoke dispatch that the euclid legs pass.

Activity

  1. Jammy2211 commented on Oct 21, 2026

    @Jammy2211
    CollaboratorAuthor

    PRs opened: #318 (merge FIRST) and PyAutoLabs/PyAutoHeart#312. Validation: Hands 534 passed, Heart 1277 passed; euclid ordered smoke list 9/9 PASS locally through the new run_python.py euclid . --list smoke_tests.txt path (diagnose_latent 5.8s). Heart RED override (development only) authorized live by the human 2026-10-21 ("Override and proceed"); reasons verbatim in the issue body. Merge needs a separate /prm with green checks; after both merge, dispatch Workspace Smoke to confirm on GitHub.

  2. Jammy2211 commented on Oct 21, 2026

    @Jammy2211
    CollaboratorAuthor

    Shipped: #318 and PyAutoLabs/PyAutoHeart#312 merged (in that order) on 2026-10-21. script_matrix.py --ordered euclid now emits one ordered shard; workspace-validation runs it via run_python.py euclid . --list smoke_tests.txt. Next: a Workspace Smoke dispatch to confirm the euclid legs on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions