Skip to content

ci_digest: test PARTS patterns still match the workflow jobs (Part of #5276) - #5522

Merged
squid-protocol merged 1 commit into
mainfrom
churn/5276-20261018T1927Z
Oct 18, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/5276-20261018T1927Z

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Oct 18, 2026 •

Copy link
Copy Markdown
Owner

Part of #5276 (first unchecked item: a test that reads the workflows and checks every PARTS pattern still matches a job).

What

tests/tools/test_ci_digest.py gains two tests. They read smoke-test.yml, mainframe-ground-truth.yml and det-sweep.yml, render each job's check-run name (name: or the job id, matrix expressions filled in) and assert:

  • every PARTS key is covered by the test's table, and is a job in its workflow;
  • the roll-up still needs its part jobs;
  • the PARTS pattern matches exactly the expected part jobs (a rename, or a pattern that is too loose, fails);
  • each alternative of the det pattern (shard, db2, plan) matches a job, so one renamed job can't hide behind the others.

Mutation check: renaming shard to shards in det-sweep.yml failed both tests; reverted.

Class table

Member Status
PARTS["full-suite"] vs smoke-test.yml covered
PARTS["ground-truth"] vs mainframe-ground-truth.yml covered
PARTS["det"] vs det-sweep.yml covered

This is the first item of #5276; the other three (db2 knock-on to plan/compile, source-only stale base, cancelled parent) remain. No checklist key was given in the brief.

Gates

pr_gates --fast 6/6; audit_check.py clear; tree-wide guards + test_ci_digest.py 203 passed; time ratchet 0 over limit. No golden or ratchet impact (test only).

Cross-repo

None.

🤖 Generated with Claude Code

…obs it mirrors (Part of #5276)

PARTS hand-mirrors part-job names in smoke-test.yml, mainframe-ground-truth.yml and
det-sweep.yml; a renamed job silently fell back to the old triage. The new tests read the
workflows, render matrix names and assert each pattern matches exactly the expected parts.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 18, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 18, 2026 19:33
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 18, 2026 19:40
@squid-protocol
squid-protocol merged commit eff957a into main Oct 18, 2026
42 checks passed
@squid-protocol
squid-protocol deleted the churn/5276-20261018T1927Z branch October 18, 2026 19:52
squid-protocol added a commit that referenced this pull request Oct 24, 2026
…art of #5276) (#6408)

The exact-match test from #5522 already covers every PARTS pattern; the
at-least-one-match copy added by #6346 redefined WORKFLOWS and added a second job-name renderer.

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant