Repository navigation
fix(pr-pipeline): give a ci-fix-escalated stop a next actor - #11175
Conversation
A ci-fix-escalated stop left the pull request with a failing pr-unblock/fix-ci status, no label and no next actor once its same-head retry was spent. Route it fail with "label": "needs-session", and teach report-escalation.sh to apply a fail route's label (well-formed names only) before the lane-stopped comment, and again when a session removed it and the lane stops on the same head. Carved from #10954 per its pr-verify note. Closes #10971 Co-Authored-By: Claude Opus 5.5 <[email protected]>
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 No security findings in the incremental change since 8247c54. The change touches two prose files:
Both rewrite the description of when The script that applies the label ( I read the diff and did not compare the new prose against that code. If the prose and the code disagree, that is a documentation accuracy issue, not a security one. Skip gate 2 applies: the change has no security-relevant surface. critical-findings: 0 |
|
claude-review reviewed Incremental review of the two files changed since 8247c54: the The change is wording only. It now says three things:
I checked those claims against the PR description. I also searched I did not run the tests or the shell script. The test results in the PR description are author-claimed and I did not verify them. The README paragraph has a line break after "A cancelled run applies no label: the write". It is cosmetic and I did not flag it. Spend: this change adds no paid-plan, billing or other cost change. |
… stop The label is applied at every ci-fix-escalated stop while the dispatcher's same-head retry still runs, so a skipped retry still leaves a next actor; the session that finds the head green or lands the fix removes it, and no lane does. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…-reason-holds Compose both sides in the eight conflicted files: - escalation-routes.json: keep the branch's ci-fix-escalated why; both sides add the needs-session label (#11175). - escalation-routes.mjs, report-escalation.sh header: main's wording plus the branch's three-reason hold and fail-safe for an unlisted reason. - report-escalation.test.sh: the branch's HOLD/SESSION reason sets with main's stricter no-other-label check. - pr-pipeline.yaml: review-dependency and apply-dependency-patch wait on needs-session and "security: outside-actor". - live-config.test.mjs: keep both new tests. - pr-require-checks.yml: the branch's floored paths with main's path-holds guard (sync-hold-floor.py --check clean). - pr-pipeline README: the branch's routing text plus main's note that a session, not a lane, removes needs-session. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Closes #10971
Summary
Before this change, a
ci-fix-escalatedstop left the pull request with a failingpr-unblock/fix-cistatus, no label and no next actor once its same-head retry was spent. #10974 already restored that retry, so the only part of #10971 left was the route. A check that the rung-up retry could not fix is not one of the owner's three reasons, so it now goes to an agent session (needs-session) and not to a person. The label goes on at eachci-fix-escalatedstop, while the dispatcher's same-head retry still runs, so the PR has a next actor even when that retry is skipped (the per-head cap). The session that finds the head green or lands the fix removes the label; no lane removes it.Fix
.github/scripts/pr-unblock/escalation-routes.json:ci-fix-escalatedstaysroute: failand gains"label": "needs-session"..github/scripts/pr-unblock/report-escalation.shreads an entry'slabelonly on afailroute and only as a well-formed label name (^[a-z]+(-[a-z]+)*$); anything else fails the run. It writes the label before the lane-stopped comment that explains it. If a session removed the label and the lane stops again on the same head with an unchanged comment, it puts the label back and leaves the comment alone. The comment names the queue. A fail route with nolabelbehaves as before: no label, and no issue read.escalation-routes.mjs(comment) anddocs/conventions/pr-pipeline/README.mddescribe the label.pr-pipeline.Verification
report-escalation.test.shgetsSESSION_REASONS=(ci-fix-escalated)and these new checks:needs-human;The existing fail-comment edit-in-place cases now use
ci-fix-round-cap, which is still unlabeled.40df610c55): 5not ok(route missing, label not written, queue not named, label not put back). Green after the fix: 817ok, 0not ok.node --testfrom inside.github/scripts/pr-unblock/: 1033 of 1033 pass..github/actions/resolve-config/callers.test.mjs: 202 of 202.pr-mergeclear-escalationsandmerge-holds: 171 of 171.shellcheck report-escalation.shis clean.scripts/check-changelog-fragments.sh --checkand--check-required origin/mainboth pass.Metrics
A
ci-fix-escalatedstop is now countable as an openneeds-sessionPR (the label is the queue), where before it showed only as a red status no queue held. Until a session clears it, that count also includes a PR whose same-head retry mended the stop. The stalled-lane-stop signal (#10718) can drop these once a session picks them up.Related
needs-sessionlabel is declared in github-iac (#799).🤖 Generated with Claude Code