Repository navigation
fix(ci): cap each Refine fix-docs leg at 15 minutes - #16889
Conversation
Claim commit for #14292; the change follows. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Each fix-docs call in pr-refine.yml (first, subscription, fallback) sets its read runner's run-job timeout to 30 minutes, down from 60. The runner gives the model leg that timeout less 15 minutes, so each leg now stops at 15 minutes instead of 45. The runner refuses 15 or less as a run-job timeout. wait-refine.mjs's default cap drops from 2400 s to 1800 s, one fix-docs run job at its timeout. The pr-pipeline README states the new cap; the hosted review callers' comments that restated the old one are removed, since their 45-minute wait step still bounds 1800 s plus two 60 s confirming sleeps. Refs: #14292 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-review reviewed Code review: no findingsThe PR makes two changes:
The tests, the README signal row and a What I checked
Closing issue. None: the PR uses Verification. The test pass counts, the Loosened check. The wrapper wrote no Spend. This draws on prepaid or subscription usage only, and it lowers it: each fix-docs model leg drops from 45 to 15 minutes and the review wait drops from 40 to 30 minutes. It is not a hold. Verifier dropped 0 of 0 candidates. |
|
claude-security-review reviewed Security review: no security issues foundThis PR lowers two timeouts:
The rest of the diff updates tests, removes two comments, and updates the docs and the changelog fragment to match. I read every hunk of all 8 changed files. Several are on trusted paths:
Spend (not a hold): the shorter run-job timeouts lower the worst-case Claude API and subscription usage per Refine run. Nothing new is billed. critical-findings: 0 |
Refs: #14292
Summary
Review lanes wait behind a Refine fix-docs run that changes nothing, for 20 to 37 minutes (#14292). The owner chose option A (decision): cap each fix-docs leg at 15 minutes and lower the wait cap to match. This PR does that. It adds no pre-check job, and the review lanes still wait for Refine (options B and C were not chosen).
Fix
.github/workflows/pr-refine.ymlsetstimeout-minutes: 30(down from 60) on all three fix-docs calls:fix-docs(the first run),fix-docs-subscriptionandfix-docs-fallback.pr-run-activity-read.yml:1135-1140("Check the launcher's inputs") gives the launcher stepTIMEOUT - 10and the model legTIMEOUT - 15(echo "leg-minutes=$((TIMEOUT - 15))");docs/conventions/pr-pipeline/README.md:3687states the same rule ("The launcher's leg gets the timeout less 15 minutes")..github/scripts/pr-review/wait-refine.mjsis now 1800 s, down from 2400 s. Basis: judgment, from this arithmetic:refine-timeout).docs/conventions/pr-pipeline/README.mdnow says "waits up to 30 minutes", and apr-pipelinechangelog fragment records the change.pr-review-hosted.ymlandpr-review-security-hosted.ymlrestated the cap. They are removed, not rewritten: this repository's comment lint fails a changed comment that cites no outside source.callers.test.mjspins 45 and 50.Verification
callers.test.mjs, "pr-refine.yml: fix-docs-subscription runs only after fix-docs handed off":60 !== 30. It now checks all three fix-docs legs, where it used to check only the first. fix-ci inpr-unblock.ymlstays at 60.wait-refine.test.mjs, "readEnv takes PR_BASE_REF and PR_HEAD_REPO":capMs: 2400000vs1800000. This test pins the default cap.wait-refine.test.mjs+pr-refine/gate-jobs.test.mjs+resolve-config/callers.test.mjs,node --test --test-concurrency=4:pass 341,fail 0.actionlintis clean on the three changed workflows.zizmor --offlineonpr-refine.ymlreports no findings..githubsuite (CI runs it) and a live Refine run. Nothing here measures how long a fix-docs run that does push a commit takes, so whether 15 minutes ever cuts off a real fix is unverified. The issue's triage asked the owner to confirm this against those runs.Remaining
timeout-minutes: 15on each fix-docs leg. The read runner refuses that value:pr-run-activity-read.yml"Check the launcher's inputs" fails the run job when[ "$TIMEOUT" -le 15 ]("a skill's run job needs a timeout-minutes over 15, to hold the launcher step"). Every fix-docs run would go red before any model turn.timeout-minutes: 30.Refs:, notCloses.Other findings
run-claude-cli(action.ymlat the pinned24067add, inputleg-timeout-minutes): "a leg that reaches it ends with classtimeout", and "The step fails ... whenever lane-class is not empty".pr-run-activity-read.yml:2548-2559("Fail without a result") then fails the run job.fix-docs-dispatch.mjs:33-38dispatches a red run's PR again, up tomaxRunsPerHead: 3(:84), unless the run posted its check;pr-refine.yml'srecord-passescomment says a failed pass logsrefine-failed, which monitoring signal 13 counts as a pr-refine hold.wait-refine.mjsreviews on a failed Refine (refine-failure). The owner may want to weigh the red runs and re-dispatches before merge. This PR does not change that behaviour.wait-for-refine's step timeout (45 min) and job timeout (50 min) in both hosted review callers are left as they are. They still bound the 1920 s worst case, andcallers.test.mjspins them. They could come down to about 35 and 40 minutes in a separate change.Related
🤖 Generated with Claude Code