Skip to content

fix(review): distinguish cancelled checks from failures in CI monitoring - #153

Merged
max-sixty merged 2 commits into
mainfrom
hourly/review-24043865933
Apr 7, 2026
Merged

max-sixty merged 2 commits into
mainfrom
hourly/review-24043865933

Conversation

@tend-agent

Copy link
Copy Markdown
Collaborator

Summary

  • Distinguish cancelled checks from failure checks in the review skill's CI monitoring step
  • Add explicit "do not re-run cancelled jobs" guidance — concurrency-group cancellations are expected, not flakes
  • Reinforce the single-loop constraint to prevent follow-up polling loops after re-runs

Evidence

Two PRQL/prql review sessions showed the same structural pattern: the bot's approval event triggers a pull_request_review workflow run, which cancels the in-progress CI via concurrency groups. The bot misclassifies the cancellation as a transient flake, re-runs the cancelled jobs (which get cancelled again), and launches additional polling loops — consuming 20-30 minutes per session after the review was already complete.

Run PR Behavior
24042125963 PRQL/prql#5775 (tokio bump) Approved correctly, then spent ~30 min in 4 polling loops + 1 re-run chasing concurrency cancellations
24042097277 PRQL/prql#5774 (patch deps) Approved correctly (with good MSRV check), then spent ~30 min in 3 polling loops + 2 re-runs chasing concurrency cancellations

Failure type: Structural — the mechanism is deterministic: approval → pull_request_review event → new workflow run → concurrency group cancels in-progress run → bot sees cancellation → re-runs → repeat.

Gate assessment: High confidence (2 occurrences, structural failure). Targeted fix (3 new bullet points, no structural change). Passes both gates.

Cancelled jobs (from concurrency groups) are not flakes — re-running them
creates a loop where each re-run gets cancelled by the next. Add explicit
guidance to skip cancelled checks and reinforce the single-loop constraint.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@tend-agent tend-agent added the claude-behavior Behavioral issues found by review-reviewers label Apr 6, 2026
Remove the "do not start another loop" paragraph — it addresses a
stochastic behavioral problem that needs more evidence before adding
guidance. Keep the structural cancelled-vs-failed distinction.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@max-sixty
max-sixty merged commit b3310a2 into main Apr 7, 2026
7 checks passed
@max-sixty
max-sixty deleted the hourly/review-24043865933 branch April 7, 2026 03:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

claude-behavior Behavioral issues found by review-reviewers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants