Repository navigation
CI shepherd: permanent auto-merge refusal -> shepherd:needs-owner, no retry storm (#6061) - #6290
Merged
Merged
Conversation
…er once and stops retrying (#6061) apply() recognises the workflow-scope / token-permission refusal, labels the PR and comments once, and does not report FAILED (exit 0). decide() skips auto-merge while the label is set and keeps it sticky, so needs-fix no longer flaps against the shepherd's own red run. Regression test replays the #5950 sequence. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 23, 2026 20:13
Owner
Author
|
No description provided. |
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.
Fixes the CI-shepherd storm in #6061 (a permanent auto-merge refusal failed every pass and flapped
needs-fix).apply(): a permission refusal (without workflow scope, "refusing to allow a Personal Access Token", 403-style) ongh pr merge --autoaddsshepherd:needs-ownerand posts one comment saying why; noFAILEDline, so the run exits 0.decide(): no auto-merge attempt whileshepherd:needs-owneris set withshepherd:merge; the label is sticky and suppressesneeds-fix, so a pass never removes a status the next pass re-adds. It clears whenshepherd:mergegoes.docs/ci.md: label row. Optional pre-check of.github/workflows/paths not done.Owner decisions
Owner OK (2026-10-23): edit the shepherd script (shepherd_gh.py); add the regression test in tests/tools/test_shepherd_gh.py replaying the #5950 sequence. Do not edit .github/workflows.
Class / Sibling gaps
Class: a permanent (non-transient) gh refusal in
apply()retried every pass and counted as failure. Handled: auto-merge on, the only call that hit it. Sibling gaps: otherapply()ops (ready, rerun, dispatch, update_main, labels) that could hit the same 403 still report FAILED (rarer, no loop observed); the label is created on first use by the API (default colour) untilensure-labelsnext runs. Not done: pre-checking workflow-file paths.Gates:
pr_gates --fast7/7; tests/tools/test_shepherd_gh.py 104 passed.ensure-labelsruns in the workflow, which I did not edit.🤖 Generated with Claude Code