ci: add timeout-minutes to the release and pages jobs#20
Conversation
3f41551 introduced a 15-minute timeout on the CI test job. This extends that same policy to the five jobs that still lack one, so the convention is applied uniformly across all four workflows. Values are set from measured durations over three runs each, not guessed: release build 33-38s -> 15, release 7m03-7m05 -> 20, npm-publish 3m15-3m17 -> 15, pages build 57-58s -> 10, pages deploy 11s -> 15. pages deploy is 15 rather than 10 deliberately: actions/deploy-pages@v4 declares its own internal polling timeout of 600000ms (10 minutes), so a 10-minute job timeout would fire simultaneously and replace the action's diagnostic error with an ambiguous job cancellation. Matters more than usual here because the runners are self-hosted: a hung job squats a real machine for the ~6h default.
|
Warning Review limit reached
Next review available in: 6 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Note Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported. |
|
@coderabbitai review |
✅ Action performedReview finished.
|
Description
3f41551("ci: add govulncheck, job timeout, dependabot and preserve debug symbols in devbuilds") introduced
timeout-minutes: 15on the CItestjob. This extends that same policy tothe five jobs that still don't have one, so the convention is applied uniformly.
ci.ymltestocr-review.ymlreviewrelease.ymlbuildrelease.ymlreleaserelease.ymlnpm-publishdeploy-pages.ymlbuilddeploy-pages.ymldeployThis matters more than the usual hygiene finding because the runners are self-hosted: a hung
job squats a real machine for GitHub's ~6 hour default rather than a hosted VM you don't own.
npm-publishis the worst case — it can hang mid-publish.The values are measured, not guessed
Pulled with
gh run view <id> --repo alibaba/open-code-review --json jobs, three runs each:releasebuild(per matrix leg)releasereleasereleasenpm-publishdeploy-pagesbuilddeploy-pagesdeployreleaseis deliberately the loosest at 20: it installs git, does afetch-depth: 0clone,downloads artifacts, computes checksums, uploads 6 files and runs attestation. 2.8× headroom on
a 7-minute job felt right; anything tighter risks a false positive on a slow artifact upload.
deployis 15, not 10, on purposeactions/deploy-pages@v4's ownaction.ymldeclares its internal Pages-polling timeout:600000 ms is exactly 10 minutes. A job
timeout-minutes: 10would fire at the same instant, so agenuinely slow Pages deployment would surface an ambiguous "job cancelled" instead of the
action's own diagnostic error. The job timeout has to exceed the action's internal one, so
deploygets 15 even though it currently runs in 11 seconds — the one value here not derivedfrom its own runtime.
Peer evidence
metabaserelease.yml:34(per-jobtimeout-minutes: 10),zedrelease.yml:50(60),signalapp/Signal-Desktopci.yml:19(30). Universal in the sample — I didn't find acomparable release workflow without them.
Verification
Every job in the repo now declares a timeout — asserted rather than eyeballed:
actionlintv1.7.12 — exit 0 on all four workflowsrelease{'build': 15, 'release': 20, 'npm-publish': 15},deploy-pages{'build': 10, 'deploy': 15}actions/deploy-pages@v4'saction.ymlto confirm the 600000 ms claim first-handLimitations
which also means this PR's correctness cannot be positively demonstrated by a CI run. The
evidence is the measurements above.
If the release job grows substantially,
releaseat 20 is the first one that would needrevisiting — it has the least headroom by design.
Type of Change
How Has This Been Tested?
timeout-minutesactionlintv1.7.12 — exit 0actions/deploy-pages@v4's 600000 ms internal timeout, which iswhy
deployis 15 rather than 10Checklist
AI assistance: Claude Code helped research and verify this change. I reviewed the full diff
and take responsibility for it.