Repository navigation
fix(ci_timing): treat concurrency-superseded cancels on main as benign - #313
Merged
Merged
Conversation
classify_cancelled flagged every cancelled main run as a kill-timer suspect, so main pushes cancelled by the workflow's concurrency group (e.g. PyAutoFit Tests 2026-10-17 20:01) held the board red. A cancelled run of any event is now superseded when a newer run of the same workflow on the same head_branch was created no later than its end (updated_at + SUPERSEDE_SLACK_S = 60 s). PR runs keep the original "any newer run on the PR branch" rule. Supersession is judged against all runs of the workflow, including an in-flight successor. Refs #311 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 21, 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.
Summary
heart/checks/ci_timing.py::classify_cancelledtreated every cancelledmainrun as a kill-timer/hang suspect, so ordinary concurrency-group cancellations during a merge burst became redsuspect_cancelledevents (e.g. PyAutoFit Tests 39064925733 / 39064933625, cancelled when the next push's run 39064940041 arrived seconds later). Eight such rows held the monitoring inventory red for weeks.A cancelled run of any event is now superseded when a newer run of the same workflow on the same branch was created no later than the cancelled run's end (
updated_at+SUPERSEDE_SLACK_S= 60 s) — the arrival that caused the cancel. No successor, or one created long after the run ended, stays a suspect. PR runs keep their original "any newer run on the PR branch" rule. Supersession is judged against every run of the workflow (the cancelling run is often still in flight). No threshold, factor or weight changes.Closes #311
Validation
tests/test_ci_timing.py: 43 passed (4 new: real 10-17 main-push burst → 0 events; in-flight successor; slack edge vs 4-min-later successor; lone main cancel → suspect; renamed long-after-end case still suspect). Full suite: 1281 passed.Heart
Heart RED override (development only), authorized live by the human 2026-10-21 ("Override and proceed"); exact RED reasons verbatim on #311. Merge needs a separate /prm with all checks green; no release.
🤖 Generated with Claude Code