Repository navigation
Canary results: sweep orphan canary/ branches, close marker-less canary PRs (Part of #7155) - #9010
Merged
Merged
Conversation
…ry PRs (Part of #7155) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
This was referenced Nov 22, 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.
Checklist: done [c:5e57a64e]
What
#9006 added the results job (matrix comment, miss / false-alarm issues,
gh pr close --delete-branch). Two holes were left in "closes the PR and deletes the branch":resultslisted open PRs only, so acanary/branch pushed byopenwhosegh pr createfailed (or whose PR a person closed by hand) was never deleted.settle()skipped acanary/PR whosecanary-expectmarker was lost, leaving it open for ever, silently.Now
resultssweepscanary/branches with no open PR (sweep_orphans; a failed delete opens apriority: highissue and exits 1), and a marker-lesscanary/PR is closed with a comment naming why. A non-canary/branch is still never touched. No workflow change; nothing merges or labels.Class / Sibling gaps
Class: canary control PRs or branches left behind after the results job (open PR, orphan branch, marker-less PR). Members handled here: the open marked PR (#9006), the orphan
canary/branch, the marker-lesscanary/PR, each with a test. Sibling gaps: theci-gatehold and the merge-label refusal (the shepherd'sshepherd-*.yml, owner-only, no burned program involved); a re-check for a PR still pending at 12 h (needs a workflow cron edit, a different mechanism). The clean control PR and the miss issue are done in #9006 and have their own boxes.Tests
tests/tools/test_canary_control.py(22 pass): orphan deleted / open PR's branch kept / dry run deletes nothing / failed delete raises issue /resultsexits 1 / marker-less PR closed with a comment.Cross-repo: none.
Co-Authored-By: Claude Sonnet 5.5 [email protected]
🤖 Generated with Claude Code