Skip to content

Tests.yml: trivially-pass non-canonical check-compat-bounds cells#68

Closed
mtfishman wants to merge 1 commit intomainfrom
mf/compat-check-no-skipped
Closed

Tests.yml: trivially-pass non-canonical check-compat-bounds cells#68
mtfishman wants to merge 1 commit intomainfrom
mf/compat-check-no-skipped

Conversation

@mtfishman
Copy link
Copy Markdown
Member

Summary

Follow-up to #67. Avoid gray "skipped" Check compat bounds status checks on non-canonical matrix cells (observed on ITensor/DataGraphs.jl#94).

Before:

  • Job-level if: gated the entire check-compat-bounds job on (ubuntu-latest, julia=1).
  • For a 6-cell caller matrix, 1 job ran the check, 5 jobs showed up as skipped (gray).

After:

  • Job-level if: only gates on the global check-compat-bounds input + draft status — the job always materializes.
  • Each step inside is gated on the canonical-cell condition.
  • Non-canonical cells run one echo step and exit success → all 6 check-compat statuses are green, only one does real work.

Trade-off

Each non-canonical invocation still provisions a runner (~15-30s) just to echo a line. That's a little wasteful vs. truly skipping the job, but I think it's worth it for the cleaner status view. If the runner overhead becomes a concern later, we can go back to job-level gating.

Test plan

  • pre-commit run --all-files passes.
  • After merge, retrigger a fresh run on a multi-cell caller (e.g. DataGraphs.jl#94) and confirm all 6 Check compat bounds checks are green rather than 1 green + 5 gray.

🤖 Generated with Claude Code

Non-canonical reusable-workflow invocations (not ubuntu-latest + julia=1)
previously produced gray "skipped" `Check compat bounds` checks because
the gate was at the job level. Move the gate to every step inside the
job so non-canonical invocations run a single echo and exit green.

Adds ~15-30s of runner provisioning per non-canonical cell, but keeps
the check UI clean and the real work running exactly once.
@mtfishman
Copy link
Copy Markdown
Member Author

Superseded by a new approach: extracting the compat-bounds check into its own reusable workflow (CheckCompatBounds.yml), with a per-repo caller workflow to be rolled out via ITensorOrgPatches. Keeps a single clean status without matrix multiplication.

@mtfishman mtfishman closed this Apr 22, 2026
@mtfishman mtfishman deleted the mf/compat-check-no-skipped branch April 22, 2026 16:53
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