Repository navigation
Add cancel-superseded caller - #203
d-morrison wants to merge 1 commit into
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019xfc9ojH5gMAJaAFRMPitW
|
Claude finished review — View run Review: Add cancel-superseded caller (#203)Summary. Single-file, 13-line addition: Verification performed:
Finding (non-blocking style nit):
No bugs, no CLAUDE.md violations that are blocking, no hallucinated APIs/refs, no scope creep (single focused file, matches PR description), and no build-hygiene issues ( VerdictReady for merge Structured Review Data (JSON){
"schema_version": "1.1",
"reviewer": "claude",
"commit_sha": "966499812ed26561cf1d1be17a5c4da10c012d79",
"verdict": "CLEAN",
"findings": [],
"detailed_assessment": "Checked .github/workflows/cancel-superseded.yml for YAML validity, correct permissions matching the Morrison-Lab/gha v3 reusable workflow, and found no failure mode in the trigger or uses clause.",
"holistic_assessment": "Scope is a single focused caller file matching the PR description, no regression risk to publish or preview pipelines, and no validation gaps since the reusable workflow and tag were fetched and confirmed real."
}Reviewed commit: 9664998 |
There was a problem hiding this comment.
🔵 Needs a closer look
Repository-wide workflow cancellation has not been exercised on a live PR, leaving synchronize/closed behavior and preservation of close-time cleanup unverified.
No open issues 🎉
What changed in this PR
Adds a caller to the shared cancellation workflow so PR CI can cancel stale runs after updates or closure.
Changes:
- Triggers on pull request
synchronizeandclosedevents. - Grants Actions write and pull request read permissions.
- Delegates cancellation to
Morrison-Lab/gha’s reusable workflow atv3.
| File | Description |
|---|---|
.github/workflows/cancel-superseded.yml |
Adds the event triggers, permissions, and shared workflow call for cancelling superseded PR runs. |
Review effort: Balanced
|
Claude finished review — View run YAML parses cleanly (the Review: Add cancel-superseded caller (#203)What changed since the last round. Nothing in content. The only new commit, The prior review (comment linked below) is still accurate:
That nit is still present and still non-blocking — nothing changed on that line. No new bugs, no new CLAUDE.md violations, no hallucinated references (the VerdictReady for merge Structured Review Data (JSON){
"schema_version": "1.1",
"reviewer": "claude",
"commit_sha": "09732f947cf3ffa221b66a6a6c39f7c3d3609358",
"verdict": "CLEAN",
"findings": [],
"detailed_assessment": "Re-checked .github/workflows/cancel-superseded.yml content via the saved diff; the merge commit introduces no file changes, only a merge from main into the PR branch.",
"holistic_assessment": "Scope remains a single focused caller file matching the PR description; no new integration, regression, or validation concerns since the prior clean verdict."
}Reviewed commit: 9664998 |
Ezra's standing rule (2026-11-02): "always cancel stale runs". On Ezra's decision (2026-11-03) to roll this out to every Morrison-Lab repo with PR CI, this adds a 17-line caller for
Morrison-Lab/gha'scancel-superseded.yml(gha#1400, gha#1401, onv3). On everysynchronizeandclosedof a pull request it cancels that PR's queued and running runs for any head other than the current one, and every earlier run of a closed PR. Runs not tied to a PR (push tomain) are not covered. Not exercised before merge: the first live run is this PR's own next push or close.Generated by Claude Code