Repository navigation
ci_digest: a roll-up over cancelled parts is a rerun, not a real failure - #7432
Merged
Merged
Conversation
A push or label flip cancels a run's parts, and the roll-up then fails
with no test to name. PARTS never matched a part cancelled before its
matrix expanded, because its check name is still the `${{ ... }}`
template, and with no parts found the roll-up stayed `real`. The shepherd
set needs-fix and a worker went out to find nothing.
Part matching now reads an unexpanded template as a matrix value, and a
roll-up with no failed part takes `infra` when its own result line says
cancelled. A failed part, a named test or case, or a line that also says
failure keeps it `real`.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
No description provided. |
This was referenced Nov 1, 2026
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.
What was broken
Fix runs labelled
envrose to 21, 14 and 20 a day. From 10-29 to 10-31, 29 of those reports said the red checks were cancellations. The worker found nothing, merged main and pushed, which restarted CI.When a push or label flip cancels a run, its roll-up (
crucible,det,equivalence-e2e,full-suite,ground-truth) fails with no test to name.rollup_kindshould take the verdict of the parts, but it found none:db2 ${{ matrix.shard }}, which noPARTSpattern matches;With no parts found the roll-up stayed
real, so the shepherd setneeds-fixand a paid worker launched. Asinfrait gets a free rerun.Fix
is_partreads an unexpanded${{ ... }}as a matrix value when matchingPARTS.infrawhen its own result line says its parts were cancelled.It stays
realwhen a part really failed, when a test or case is named, or when the result line also saysfailure. The gates themselves do not change.Class / Sibling gaps
Class: every roll-up in
PARTS; all five are tested with the result lines from #7241's cancelled run (thecrucibleanddetlines come from the workflow text and worker reports).Sibling gaps: none in this tool. Not addressed: how often the shepherd's draft and label flips cancel runs at all.
Tests
test_ci_digest.pyandtest_ci_shepherd.py: 84 passed, 16 of them new cases.pr_gates --fast: 9/9. #7428'sdet, a failure with no cancellation, still triagesreal.🤖 Generated with Claude Code