Repository navigation
fix(pr-pipeline): leave post-merge-dispatch slack and resend only unsent dispatches - #9354
Conversation
…ent dispatches post-merge-dispatch caps its dispatch waits at 180 s instead of 300 s. The job measured 97-127 s on recent scheduled runs, and the re-run step's read-back sleeps up to 170 s, so the lower cap keeps a timeout from landing after the re-run POST. Both dispatch steps resend after no response only when gh's error shows the connection failed before the request was sent (dial tcp or a TLS handshake); otherwise they warn and stop, since the run may exist. Refs: #9297 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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-review reviewed No findings. I read all three changed files in full ( What I checked:
Residual risk, not a defect: the resend check depends on Go's Manifest items: none in this diff. Paved-path and closing-issue checks: there are no closing issues, only |
|
claude-security-review reviewed No security issues found in this pull request. I read the full diff (
critical-findings: 0 |
Refs: #9297
Summary
A follow-up to #9346, which added a rate-limit retry to pr-merge's full-run dispatch after the
GITHUB_TOKENexhaustion at 05:26Z on 2026-10-23. That exhaustion failed the dispatch on runs 39905758340, 39905868587 and 39906176584. Review of #9346 found two gaps:post-merge-dispatch(timeout-minutes: 15) allowed up to 300 s of dispatch waits ahead of the re-run step, which sleeps up to 170 s reading back attempt 2. That left little slack. A timeout after the re-run POST leaves attempt 2 without itspr-merge-rerun-<id>-attempt-2record.pr-merge-dispatched-<id>record and trips the post-merge check's unlisted-record hold.Fix
post-merge-dispatchcaps its dispatch waits at 180 s (was 300 s), and its timeout stays at 15 minutes. Measured on the last ten scheduled pr-merge runs: the whole job took 97-127 s, of which the post-merge check took 81-111 s, and the dispatch and re-run steps did not run. Adding 180 s of waits, the re-run step's 170 s of read-back sleeps and about 20 s of reads and uploads gives about 8.5 minutes, which leaves about 6.5 for slow reads. A longer timeout would hold the job longer and protect against nothing the lower cap leaves open. With 180 s, a secondary limit's 60 s wait still fits twice. The arithmetic is in the yaml comment.dial tcperror (DNS lookup, refused or unreachable connection, connect timeout) or a failed TLS handshake. A reset or timeout on an open connection, or no error text at all, warns and stops as on exhaustion: no run id, no record, and the next push or scheduled run starts the run. This applies to both jobs, whose dispatch bodies stay identical (a test checks this).Verification
node --testin.github/scripts/pr-merge: exit 0, 182 tests. Expected values come from the rules above:read: connection reset by peer,Client.Timeout exceeded while awaiting headersand an empty error each make exactly one POST, no sleep, and a warning;post-merge-dispatch, aRetry-After: 181is not taken, while two 60 s waits are.actionlint .github/workflows/pr-merge.yml: exit 0.bash scripts/check-affected.sh --tests: exit 0 (10 passed, 4 skipped). babysit-prspython3 -m unittest discover -s tests -t .: exit 0, 2,537 tests.bash scripts/run-ruff.sh check plugins/source-control/skills/babysit-prs: exit 0.Related
🤖 Generated with Claude Code