Repository navigation
ci_digest: test PARTS patterns still match the workflow jobs (Part of #5276) - #5522
Merged
Merged
Conversation
…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]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 18, 2026 19:33
Owner
Author
|
No description provided. |
squid-protocol
enabled auto-merge (squash)
October 18, 2026 19:40
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #5276 (first unchecked item: a test that reads the workflows and checks every
PARTSpattern still matches a job).What
tests/tools/test_ci_digest.pygains two tests. They readsmoke-test.yml,mainframe-ground-truth.ymlanddet-sweep.yml, render each job's check-run name (name:or the job id, matrix expressions filled in) and assert:PARTSkey is covered by the test's table, and is a job in its workflow;needsits part jobs;PARTSpattern matches exactly the expected part jobs (a rename, or a pattern that is too loose, fails);detpattern (shard,db2,plan) matches a job, so one renamed job can't hide behind the others.Mutation check: renaming
shardtoshardsindet-sweep.ymlfailed both tests; reverted.Class table
PARTS["full-suite"]vs smoke-test.ymlPARTS["ground-truth"]vs mainframe-ground-truth.ymlPARTS["det"]vs det-sweep.ymlThis 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 --fast6/6;audit_check.pyclear; tree-wide guards +test_ci_digest.py203 passed; time ratchet 0 over limit. No golden or ratchet impact (test only).Cross-repo
None.
🤖 Generated with Claude Code