Skip to content

Canary results: sweep orphan canary/ branches, close marker-less canary PRs (Part of #7155) - #9010

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/7155-20261122T0844Z
Nov 22, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/7155-20261122T0844Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

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":

  1. results listed open PRs only, so a canary/ branch pushed by open whose gh pr create failed (or whose PR a person closed by hand) was never deleted.
  2. settle() skipped a canary/ PR whose canary-expect marker was lost, leaving it open for ever, silently.

Now results sweeps canary/ branches with no open PR (sweep_orphans; a failed delete opens a priority: high issue and exits 1), and a marker-less canary/ 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-less canary/ PR, each with a test. Sibling gaps: the ci-gate hold and the merge-label refusal (the shepherd's shepherd-*.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 / results exits 1 / marker-less PR closed with a comment.

Cross-repo: none.

Co-Authored-By: Claude Sonnet 5.5 [email protected]

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 22, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 22, 2026 08:52
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 22, 2026 08:56
@squid-shepherd
squid-shepherd Bot merged commit 536c946 into main Nov 22, 2026
57 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/7155-20261122T0844Z branch November 22, 2026 09:08
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