Repository navigation
fix(pr-pipeline): retry a failed intake hand-off in the demotion alert - #13120
Conversation
A fix or quarantine issue the post-merge demotion alert could not hand to intake triage took needs-human, and nothing retried it. It now gets a hidden marker comment, on the issue and on its record, and a new step before filing re-sends what a marker names on every alert run, keeping lock before dispatch, then deletes the marker. A check whose fix issue could not be filed or reopened gets the marker on its record; the retry files or reopens it unless a fix issue for that check is already open. Only github-actions[bot]'s own comments on its own open issues count. The job still exits 1 on a failed hand-off. Canary, revert and fix_over labels stay, as a reviewed exception stated in the workflow. Refs: #13022 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ert-retry-handoff
Refs: #13022 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Refs: #13022 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ert-retry-handoff
A retry that filed a fix issue it could not send or mark deleted the check marker anyway, so the issue was never sent. mark_undelivered now returns 1 on a failed write, and the check marker clears only once the issue is delivered or a replacement marker exists. A check marker that finds its fix issue open now sends it, unless this run already did. The docs say where each marker goes: a fix issue's on it and its record, a quarantine issue's on the issue. Refs: #13022 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ert-retry-handoff
The retry deleted a marker naming an issue its listing did not show as an open fix or quarantine issue, which could lose a hand-off: the issue's first line may have been edited, it may reopen, or the listing may be older than the marker. The marker now stays and a later run delivers the issue. The record's note also says when no marker could be written for an item, since no run retries that one. Refs: #13022 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ert-retry-handoff
…ert-retry-handoff
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed Security review: no security issues foundI read every hunk of all 7 changed files. The only one under a trusted path is What I checked:
Spend: every alert run, canary runs included, now makes a few extra GitHub API calls (one issue listing, plus comment reads on alert issues that have comments). This uses rate-limit quota only and bills nothing. No embedded instructions were found in the pull request context. critical-findings: 0 |
|
claude-review reviewed Code review: PR #13120, retry a failed intake hand-off in the demotion alertResult: no blocking or advisory findings. I read every hunk of all 7 changed files. I also read the parts of Checked against closing issue #13022 and its decision comment
Wiring checked
Not verified by meThe test count (319 passed), actionlint and shellcheck results, and the 204 response on re-locking an issue all come from the author. I could not run them: this lane has no shell. The PR also says no test runs the retry and filing steps together in one job, and that the real GitHub API path is untested. Known limitsThe PR body lists these and I accept them as stated: races between overlapping runs at different SHAs, a second dispatch of an issue already delivered, a fix issue stranded when only its record carried the marker and that record closed, and a failed read that warns but stays green. Spend (not a finding, not a charge)Every alert run, including each canary push run, now makes one paginated listing of open Other checks
|
Closes #13022
Summary
When the post-merge demotion alert could not hand a fix or quarantine issue to intake triage, it labeled that issue
needs-human, and nothing retried the hand-off. A failed hand-off is none of the owner's stop reasons. Now the run records it in a hidden marker comment, stays red, and each later alert run retries it.Fix
.github/scripts/post-merge-demotion-alert/handoff.bash(new): the lock-then-dispatch hand-off, fix-issue filing, marker writes, andretry_undelivered. The retry reads onlygithub-actions[bot]'s open issues and that identity's comments, and validates each value it reads before using it..github/workflows/post-merge-demotion-alert.yml: a retry step before filing, withcontinue-on-error; a failure in it fails the job at the end of the filing step. A failed hand-off adds noneeds-human. A fix issue's marker goes on it and on its record, a quarantine issue's on the issue. The record's note says the hand-off failed and will be retried, or that no marker could be written when every write for that item failed.fix_overrecords keep their label, as a reviewed exception stated at the label site. Their relabel moves with fix(pr-pipeline): align every needs-human path with the owner stop rule #10517, per the decision on fix(pr-pipeline): retry a failed intake hand-off in the demotion alert instead of labeling needs-human #13022.docs/contracts/loop-lane/(18.0.0, major: §2 escalation contract),docs/conventions/pr-pipeline/README.md, apatchfragment.Choices beyond the issue's text:
label-unblocked.test.mjspins the fix marker and recurrence note to the workflow text, so both strings also sit inhandoff.bash. That test is unchanged.Verification
scripts/post-merge-demotion-alert.test.sh: 319 passed, 0 failed, on the worker's merged tree, by the verifier at1aaa645564, and at3e4f2eb89cafter a merge of main that touched none of these files. It runs the real helper and the workflow's extracted step bodies. It adds atest-scope:path for the helper.actionlinton the workflow andshellcheckon the helper and the test are clean.workflow.test.mjspassed 14 of 14 at1c86a7ff3c. The other node suites and pytest (81 quarantine, 900 postmerge and merge policy) passed on the first commit and were not re-run after the later rounds.PUT /issues/12341/lockon an already locked issue returned 204, so re-locking on a retry is safe.ghstub. No test runs the retry and filing steps together in one job.Known limits, left as they are:
Related
fix_overholds offneeds-human.🤖 Generated with Claude Code