Skip to content

ci_digest: a roll-up over cancelled parts is a rerun, not a real failure - #7432

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
fix/ci-digest-cancelled-rollups
Nov 1, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
fix/ci-digest-cancelled-rollups

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

What was broken

Fix runs labelled env rose 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_kind should take the verdict of the parts, but it found none:

  • a part cancelled before its matrix expanded keeps a literal name such as db2 ${{ matrix.shard }}, which no PARTS pattern matches;
  • or the parts left no failed check at all.

With no parts found the roll-up stayed real, so the shepherd set needs-fix and a paid worker launched. As infra it gets a free rerun.

Fix

  • is_part reads an unexpanded ${{ ... }} as a matrix value when matching PARTS.
  • A roll-up with no failed part takes infra when its own result line says its parts were cancelled.

It stays real when a part really failed, when a test or case is named, or when the result line also says failure. 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 (the crucible and det lines 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.py and test_ci_shepherd.py: 84 passed, 16 of them new cases. pr_gates --fast: 9/9. #7428's det, a failure with no cancellation, still triages real.

🤖 Generated with Claude Code

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]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 1, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

No description provided.

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