Repository navigation
refactor(pr-pipeline): name the rate-limit wait budgets once in rate-guard.mjs - #17320
Conversation
…guard.mjs WAIT_BUDGET_SECONDS holds the three per-step waits the pipeline already uses: the latch's 60 s, ci-status's 825 s read deadline and rerun-ci-status's 600 s poll limit. The latch's budget derives from it, and rate-guard.test.mjs pins each workflow literal to it. ci-status now passes rate-limit-wait-seconds '60' to the two pinned ci-workflows composites, the value they defaulted to, so a default changed upstream cannot move the wait. ci-gh-read.test.sh holds their sum to the 120 s the job's timeout budgets, where it refused the input before. No wait changes length. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis 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 the whole diff for all 4 changed files:
What changed:
Trust controls checked:
No changed file is an instruction surface or plugin manifest, so there is no manifest block. The prior-findings file shows no earlier review of this pull request ( Spend: none. No wait gets longer, so there are no extra runner minutes, lane runs or API calls. critical-findings: 0 |
|
claude-review reviewed Code review: no findingsThis PR gives the rate-limit wait budgets one source,
I did not run either test suite. The pass counts in the PR body (162 pass; PASS=66) are the author's claim and unverified. As the PR says, the composites' handling of the new input is first exercised on GitHub. I couldn't confirm from this repository that the pinned Loosened checks. Loosened-check verdict: fail (lane default; the prompt sent no Other criteria:
Verifier dropped 0 of 0 candidates. |
Takes #17320's WAIT_BUDGET_SECONDS and reads the lane's 1200 s from it: WAIT_BUDGET_SECONDS.workResolveIssue is waitBudgetMs's cap, and rate-guard.test.mjs pins every rate-limit-wait-seconds and API_BUDGET_WAIT_SECONDS literal in work-resolve-issue.yml, and the leak scan's cap in pr-run-activity-read.yml, to it. The tests' 1200s read the constant, and the leak-scan timeout assertion accepts the input's expression. Co-Authored-By: Claude Opus 5.5 <[email protected]>
No related issue: second slice of the rate-guard recovery design the hub ordered after the 2026-11-18 stop-floor failures.
Summary
The pipeline waits out a rate limit in four places, each with its own number.
rate-guard.mjsnow names them once, inWAIT_BUDGET_SECONDS, and tests pin every workflow literal to it. No wait changes length.stepci-workflowscomposites in ci-statusciStatusReadsgh_read(GH_READ_JOB_SECONDSlessGH_READ_MARGIN_SECONDS)rerunCiStatuspr-dispatch-feedback.ymlrerun-ci-status (POLL_LIMIT_SECONDS)Fix
rate-guard.mjs:WAIT_BUDGET_SECONDS, withSERVER_RETRY_BUDGET_MSderived from itsstep.pr-require-checks.yml: ci-status passesrate-limit-wait-seconds: '60'tocheck-contractandaggregate-results. That is their default at the pinned v0.75.0, so the wait is the same; a default changed upstream can no longer move it unseen.rate-guard.test.mjs: ci-status's read deadline, both composite inputs, and rerun-ci-status's poll limit each equal their entry.scripts/ci-gh-read.test.sh: it refused anyrate-limit-wait-secondson ci-status, because a raised wait does not fit the job's timeout. It now requires exactly two quoted numbers summing to at most 120 s, the "two 60 s rate-limit waits" the job's timeout comment budgets.Owner decision Q677 stands: a wait past a small per-step budget is not a sleep, and the lost-run reconciler recovers the run after the reset.
Verification
node --test .github/actions/log-api-budget/rate-guard.test.mjs: 162 pass, 0 fail.bash scripts/ci-gh-read.test.sh: PASS=66 FAIL=0.scripts/check-affected.sh: 14 passed, 5 skipped.Related
api-stopnotice, the first slice.scripts/check-affected.shasked for none.🤖 Generated with Claude Code