Repository navigation
ci: checkout steps in ci.yml get their own time bound - #11442
Conversation
Three jobs today used their whole 15-minute time inside actions/checkout, before any code ran (#9810 typecheck, #8690 test-node 2/5, #10424 test-build). Each checkout step now has its own 5-minute bound, so a hung checkout fails by name in minutes. The bound is for the tool alone and lowers no test budget. A workflow test keeps every checkout step bounded.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report🔎 Preview ·
|
| Before | After | Change | |
|---|---|---|---|
| Job-minutes per PR update | 118.6 | 171.3 | +52.7 |
| Runner pool, runner-minutes a day | 52,955 | 76,481 | +23,526 (+44%) |
| Average concurrent jobs | 36.8 | 53.1 | +16.3 |
| Time to green (median → this run) | 22.4 min | 23.1 min | +0.7 min |
| Runs a day | 446 | 446 | 0 |
Changed jobs: Accessibility spec-test contracts changed: standard or non-standard by event (4-core-ubuntu) · a11y-dependent-audits-plan changed: standard · admission changed: standard · build-storybook changed: standard or non-standard by event (4-core-ubuntu) · docsite-browser changed: standard · docsite-build changed: standard · heavy-ci changed: standard · interaction-legs changed: standard · native-swift-runner changed: standard · pr-a11y changed: standard or non-standard by event (2-core-ubuntu-arm, 4-core-ubuntu) · Dependent audits changed: standard · Component accessibility contracts changed: standard · pr-interaction changed: standard · pr-interaction-webkit changed: standard · pr-rtl changed: standard or non-standard by event (2-core-ubuntu-arm, 4-core-ubuntu) · Touched components changed: standard · Stable visual regression changed: standard or non-standard by event (2-core-ubuntu-arm) · release-bump changed: non-standard (2-core-ubuntu-arm) · release-merge-back changed: standard or non-standard by event (4-core-ubuntu) · release-specs changed: non-standard (4-core-ubuntu) · release-specs-plan changed: standard · room changed: standard · run-labels changed: standard · test changed: standard · test-build changed: standard · test-native-swift changed: standard · test-node changed: standard · test-registry-e2e changed: standard · test-ui changed: standard · typecheck changed: standard or non-standard by event (2-core-ubuntu-arm) · Stable visual scout changed: standard or non-standard by event (4-core-ubuntu)
Not measured (the jobs that use these keep their recent minutes above): .github/scripts/ci-checkout-timeout.test.mjs, .github/scripts/ci-docsite-browser.test.mjs, .github/scripts/playwright-legs.test.mjs.
Flags: runner-pool usage +44%.
Assumptions: before is each job's average over the last 20 pull-request runs; after keeps that for unchanged jobs and uses this run's minutes for added or changed ones, weighted by how often each changed job ran in those runs; runs a day averages the seven whole days before today; time to green compares this run with the median of those runs that ran the same jobs.
Generated by PR Enrichment workflow | View full report
There was a problem hiding this comment.
Changes requested: the 5-minute checkout bound looks right, but this head breaks one existing workflow test and the description misstates one fact.
.github/scripts/ci-docsite-browser.test.mjs:233still expects thedocsite-browserjob's first step to equal{uses: 'actions/checkout@v7'}, so it fails now that the step hastimeout-minutes: 5(CI'stest-node (3/5)fails on it); change it to{uses: 'actions/checkout@v7', 'timeout-minutes': 5}.- The description says the three hung jobs all fetch one commit (depth 1), but
test-node (2/5)hung in itsfetch-depth: 2checkout (ci.yml:1174-1178, as the description's own table shows); please say thattypecheckandtest-buildfetch one commit andtest-nodefetches two.
Worth a look, not blocking: a stalled release-authority checkout now ends as a failure, which main-heavy-lanes.yml reads as a refused authority, so that release-check holds the 175-minute window and counts as the pre-cut start instead of being sent again. The CI impact section could also name the runner class, which is unchanged.
Claims and files checked
- Three jobs spent their whole 15 minutes inside checkout before any code ran: verified (896 s, 895 s and 891 s in checkout).
- Those jobs ran on arm and x64 standard runners within about an hour: verified (two arm, one x64, within 45 minutes).
- Each cost a full job and a re-run: the full job is verified; the re-run is not visible in the runs.
- Every one of the 67 checkout steps in
ci.ymlgetstimeout-minutes: 5: verified (67 of 67; none had one before). - The bound covers only the checkout, with no job time, test budget or retry setting changed: verified for job limits and test budgets; see the note on the release scheduler.
- A checkout normally takes seconds: verified (median 2 s, slowest 45 s across 347 recent checkouts).
- The new test fails when a checkout step lacks the bound, failing on
mainand passing here: verified (onmainit lists all 67 steps). - The checkout-options table, and no step uses
lfsor a partial-clonefilter: verified againstci.yml. - The three hung jobs all fetch one commit (depth 1): false for
test-node, which fetches two. - No jobs or steps are added, and a hung job ends about 10 minutes sooner: verified for the 15-minute jobs.
- actionlint reports nothing new: verified (Lint's actionlint step passes on this head).
.github/workflows/ci.yml: breaksci-docsite-browser.test.mjs:233(above); otherwise clear..github/scripts/ci-checkout-timeout.test.mjs: clear.
…thority keeps none release-bump and release-merge-back fetch the whole history (release-bump took up to 143 s), so their checkouts stop after 10 minutes. The release lanes read a failed release-authority as a refused authority, so its checkout keeps only its job's time. The docsite-browser test reads the bounded checkout step.
There was a problem hiding this comment.
Changes requested: both earlier fixes landed (the docsite-browser test now expects the bounded step, and the fetch depths are right), but the title and the description's evidence no longer match this head.
- The title "every checkout step in ci.yml stops after 5 minutes" and the guard's header comment (
ci-checkout-timeout.test.mjs:4) are broader than the change, sincerelease-bumpandrelease-merge-backstop after 10 minutes andrelease-authorityhas no step bound; please retitle (for example "ci: checkout steps in ci.yml get their own time bound"), update the header, and change "67 existing steps" to 66. - The timing table leaves out all 14 steps named
Checkout(five of them took 28–42 s in recent green runs, against "every other shape's maximum is under 14 s"), andrelease-merge-backdid run recently: its checkout took 45 s in run 43291111597 on 12 November. - "No cost unless a checkout hangs" does not hold for a slow fetch that recovers: in green run 43332441339,
docsite-browser's checkout took 445 s and the job still passed, while at this head that step fails at 5 minutes and takes the requireddocsite-testwith it, so please state that trade-off or set a bound above the slowest checkout that still succeeded.
Worth a look, not blocking: the CI impact section could name the runner classes (unchanged) and the job-minute and pool figures, as the CI spec asks.
Claims and files checked
- Three jobs spent their whole 15 minutes in checkout before any code ran: verified (896 s, 895 s and 891 s).
- Those ran on arm and x64 standard runners within about an hour: verified (two arm, one x64, within 30 minutes).
- Each cost a full job and a re-run: the full job is verified; a re-run is visible for the typecheck run only.
- 64 checkout steps get a 5-minute bound and the two full-history checkouts get 10 minutes: verified.
- No job time, test budget, retry or runner class changes: verified (job limits and runners are identical).
- release-bump's checkout took up to 143 s: verified.
- release-merge-back has no recent run to measure: false (45 s on 12 November).
- release-authority keeps no step bound because the release lanes read its failure as a refused authority, and its runner still stops a stalled checkout: verified.
- The new test fails on main and passes here: verified (66 steps listed on main; both tests pass here).
- The docsite-browser test reads the bounded checkout step: verified (14 of 14 pass).
- typecheck and test-build fetch one commit and test-node fetches two: verified.
- The checkout options table, with no lfs or partial-clone filter: verified.
- The 12 slowest shapes are listed and every other shape stays under 14 s: false (steps named Checkout are missing; five took 28–42 s).
- build-storybook's checkout timing is to be added: not yet in the description (p95 15 s, slowest 41 s over 43 recent runs).
- No jobs or steps added: verified; one key on 67 steps: false (66).
- No cost unless a checkout hangs: false for a 445 s fetch that recovered.
- actionlint reports nothing new: verified (the actionlint step passes on this head).
.github/workflows/ci.yml: bound values and exceptions match the description; see the cost finding above..github/scripts/ci-checkout-timeout.test.mjs: its header overstates the rule (above); otherwise clear..github/scripts/ci-docsite-browser.test.mjs: clear.
…hat still succeeded A green run tonight had a checkout take 445 s and still pass, so 5 minutes would have failed it. Hangs still fail by name, about 7 minutes before the job's cap.
There was a problem hiding this comment.
Changes requested: the earlier fixes landed (the retitle, the guard's header, the 45 s merge-back figure, and an 8-minute bound above the 445 s checkout that still passed), but two points remain.
- Miss: the seven jobs capped at 5 minutes (
heavy-ci,native-swift-runner,run-labels,interaction-legs,pr-rtl,release-specs-plan,a11y-dependent-audits-plan) stop their 10 checkout steps before the 8-minute bound can fire, so a hang there still ends as an unnamed 5-minute job timeout, against the description's "fails by name about 7 minutes before the job's cap", and the guard (ci-checkout-timeout.test.mjs:51) locks in that unreachable value; a bound under the job limit for those jobs in the guard'sBOUNDtable (their checkouts took 33 s at most, so 3 minutes fits) would fix it. - The timing figures do not hold for the 60 newest green CI runs before this head: there the
testcheckout took 42 s (run 43329954756) and atest-uicheckout 30 s (run 43328307776), not 28 s and 25 s, andpr-interaction-webkit'sCheckouttook 42 s (run 43288665510), against "Every other step shape took 24 s or less", so please correct them or say when the sample was taken.
Worth a look, not blocking: the CI impact section could add the job-minute, runner-pool and time-to-green figures the CI spec lists, all unchanged until a bound fires.
Claims and files checked
- Three jobs spent their whole 15 minutes in checkout before any code ran: verified (896 s, 895 s and 891 s).
- They ran on arm and x64 standard runners within about an hour: verified (two arm, one x64, within 30 minutes).
- Each cost a full job and a re-run: the full job is verified; a re-run is visible for the typecheck run only.
- 64 checkout steps get an 8-minute bound, above the slowest checkout that still succeeded (445 s): verified.
- No green run would have failed: verified over 75 recent green runs.
- A hang still fails by name about 7 minutes before the job's cap: false for the seven jobs capped at 5 minutes.
- The two full-history release checkouts get 10 minutes and took up to 143 s and 45 s: verified.
- release-authority keeps no step bound because the release lanes read its failure as a refused authority, and its job time still bounds a stalled checkout: verified.
- No job time, test budget, retry or runner class changes: verified (the workflow is otherwise identical).
- The new test fails on main and passes here: verified (66 steps listed on main).
- The docsite-browser test reads the bounded checkout step: verified (14 of 14 pass).
- Timing rows for release-bump, release-authority, release-merge-back, build-storybook, docsite-build, test-node, touched components, native-swift-runner, a11y-dependent-audits-plan and typecheck: verified maxima.
- Timing rows for test (28 s) and test-ui (25 s): false for the 60 newest green runs (42 s and 30 s).
- Every other step shape took 24 s or less: false for the 60 newest green runs (42 s and 27 s).
- Outside the degradation no checkout took over 143 s and every bounded step took 45 s or less: verified.
- typecheck and test-build fetch one commit and test-node two; the checkout options table; no lfs or partial-clone filter: verified.
- No jobs or steps added, one key on 66 steps, runner classes unchanged: verified.
- No cost unless a checkout passes its bound: verified.
- actionlint reports nothing new: verified (the actionlint step passes on this head).
.github/workflows/ci.yml: bounds and exceptions match the description, except the seven 5-minute jobs (above)..github/scripts/ci-checkout-timeout.test.mjs: compares step values only, so it accepts the unreachable bounds (above); otherwise clear..github/scripts/ci-docsite-browser.test.mjs: clear.
Seven jobs have their own 5-minute time, so an 8-minute checkout bound there never fired: a hang still ended as an unnamed job timeout. Their 10 checkout steps stop after 3 minutes, about five times their slowest normal checkout (33 s). The guard checks every checkout bound is below its job's time.
There was a problem hiding this comment.
Changes requested: the seven 5-minute jobs now get a 3-minute checkout bound and the guard checks every bound against its job's limit, which fixes the last review's code blocker, but two points remain.
.github/scripts/playwright-legs.test.mjs:654now fails in CI'stest-node (1/5), so the requiredtestcheck fails, because it expects the first step ofinteraction-legsto equal the first step ofpr-interactionandpr-interaction-webkit, and this head gives that checkout 3 minutes (ci.yml:2687) while those lanes keep 8; comparing the two steps withouttimeout-minutesthere would fix it, since the new guard already owns each bound.- The timing section dates its sample to "about 00:00Z" but calls runs 43329954756, 43328307776 and 43288665510 later, though they went green at 23:48, 23:45 and 19:56 UTC on 12 November, inside that sample, where the
test28 s,test-ui25 s and "24 s or less" figures do not hold (the planner checkout took 27 s in run 43327694170); please give the real sample time and describe 43288665510 as outside the 20-runCheckoutsample instead of as a later run.
Claims and files checked
- Three jobs spent their whole 15 minutes in checkout before any code ran: verified (896 s, 895 s and 891 s).
- They ran on arm and x64 standard runners within about an hour: verified (two arm, one x64, within 45 minutes).
- Each cost a full job and a re-run: the full job is verified; a re-run is visible for the typecheck run only.
- 54 checkout steps get an 8-minute bound, above the slowest checkout that still succeeded (445 s), so no green run would have failed: verified.
- A hang fails by name about 7 minutes before the job's limit: verified for the 15-minute jobs.
- The 10 checkout steps in the seven 5-minute jobs get 3 minutes, which fires before the job's limit, and their slowest normal checkout took 33 s: verified.
- The two full-history release checkouts get 10 minutes, took up to 143 s and 45 s, and run only on release work: verified.
- release-authority keeps no step bound because the release lanes read its failure as a refused authority, and its job time still bounds a stall: verified.
- No job time, test budget, retry or runner class changes: verified (the workflow is otherwise identical).
- The guard enforces each bound and that it fires before its job's limit, fails on main and passes here: verified.
- The docsite-browser test reads the bounded checkout step: verified.
- The sample was taken at about midnight UTC and the 42 s and 30 s runs came later: false (they went green before then, inside the sample).
- The pr-interaction-webkit 42 s checkout came from a later run: false (that run went green about four hours earlier).
- Table maxima for release-bump, release-authority, release-merge-back, build-storybook, docsite-build, test-node, touched components, native-swift-runner, the a11y plan's scope action and typecheck: verified.
- Table maxima for test (28 s) and test-ui (25 s), and every other step shape at 24 s or less: false for a sample at midnight UTC (42 s, 30 s and 27 s).
- Outside the degradation no checkout took over 143 s; every 8-minute step took 45 s or less and every 3-minute step 33 s or less: verified.
- typecheck and test-build fetch one commit and test-node two; the checkout options table; no lfs or partial-clone filter: verified.
- No jobs or steps added, one key on 66 steps; runner classes, job minutes, runner pools and time to green unchanged until a bound fires: verified.
- actionlint reports nothing new: verified (the actionlint step passes on this head).
.github/workflows/ci.yml: bounds and exceptions match the description; the 3-minuteinteraction-legsbound breaks an existing test (above)..github/scripts/ci-checkout-timeout.test.mjs: clear..github/scripts/ci-docsite-browser.test.mjs: clear.
…rom its own bound
There was a problem hiding this comment.
Approved: CI's full run passed on this head.
Each ci.yml checkout step except release-authority's now stops on its own bound (8 minutes, 3 in the seven 5-minute jobs, 10 for the two full-history release fetches), and the new guard fails on main and passes here. Both earlier issues are fixed: playwright-legs.test.mjs compares the interaction counter's checkout without the bound, and the description's sample time now matches the runs it calls later.
Claims and files checked
- Claim: three jobs used their whole 15 minutes in checkout (typecheck, test-node 2/5, test-build) on arm and x64 runners within about an hour: verified against the run records (896 s, 895 s, 891 s).
- Claim: 54 steps get 8 minutes, above the slowest checkout that still succeeded (docsite-browser, 445 s): verified in the parsed
ci.ymland that run's record. - Claim: the 10 checkout steps in the seven 5-minute jobs get 3 minutes, and their slowest normal checkout took 33 s: verified in the parsed
ci.ymland the sampled runs. - Claim:
release-bumpandrelease-merge-backget 10 minutes, after full-history checkouts of up to 143 s and 45 s: verified in the parsedci.ymland their run records. - Claim:
release-authoritykeeps no step bound because the release scheduler reads its failure as a refused authority: verified (main-heavy-lanes.yml:110-114). - Claim: the new guard fails on
mainand passes here: verified (66 steps listed on the base; green on this head). - Claim:
ci-docsite-browser.test.mjsreads the bounded step andplaywright-legs.test.mjscompares the checkouts apart from the bound: verified (:233,:654-659; both pass). - Claim: the timing table, every bounded step's maximum (45 s or less, 33 s or less), the later 42 s and 30 s runs and the older 42 s run: verified against the 60 newest green CI runs at the sample time (each row's p95 and maximum match) and the runs' completion times.
- Claim: the checkout options table, and no step uses
lfsor afilter: verified row for row against the parsedci.yml. - Claim: no job or step is added, one key on 66 steps, runner classes and job minutes unchanged until a bound fires, and actionlint reports nothing new: verified (the
ci.ymldiff is 66 added lines; the Lint workflow's actionlint step passed on this head). .github/workflows/ci.yml: clear..github/scripts/ci-checkout-timeout.test.mjs: clear..github/scripts/ci-docsite-browser.test.mjs: clear..github/scripts/playwright-legs.test.mjs: clear.
Who this helps
Every pull request when GitHub's git service is slow. Three jobs today used their whole 15-minute time inside
actions/checkout, before any code ran:typecheck(run 43313907294);test-node (2/5)(run 43317552296);test-build(run 43318590411; 891 s in checkout).These were on both arm and x64 standard runners within about an hour. Each one cost a full job and a re-run on a fresh grant.
What changes
.github/workflows/ci.yml: each checkout step gets its own bound, so a hung checkout fails by name instead of using up the job's time. The bound is for the checkout alone: no job's time, test budget, retry or runner class changes.timeout-minutes: 8. That is above the slowest checkout that still succeeded tonight:docsite-browsertook 445 s in green run 43332441339. So no green run would have failed, and a hang still fails by name about 7 minutes before the job's cap.heavy-ci,native-swift-runner,run-labels,interaction-legs,pr-rtl,release-specs-plan,a11y-dependent-audits-plan):timeout-minutes: 3, so the step fails by name before the job's time runs out. Their slowest normal checkout took 33 s.release-bumpandrelease-merge-back:timeout-minutes: 10. They fetch the whole history (fetch-depth: 0), which takes longest: release-bump took up to 143 s, release-merge-back 45 s (run 43291111597). They run only on release work, where a few more minutes cost little.release-authority: no step bound. The release lanes read a failed release-authority as a refused authority, so a checkout failure there would hold the release window instead of sending the check again. Its job time still bounds a stalled checkout, as today..github/scripts/ci-checkout-timeout.test.mjs(new): fails if any checkout step inci.ymllacks its bound (8 minutes, 3 in a job capped at 8 or less, or the named 10-minute and unbounded exceptions), or has a bound that does not fire before its job's own time. Red-first: it fails onmainand passes here..github/scripts/ci-docsite-browser.test.mjs: reads the docsite-browser job's checkout step with its bound..github/scripts/playwright-legs.test.mjs: compares the interaction counter's checkout with each lane's apart fromtimeout-minutes, since each takes the bound its own job's time allows.How long checkouts take today
Sampled at about 23:24Z on 12 November: the 60 newest green CI runs then (2,809 checkout steps), the steps named
Checkoutin the newest 20 of them, and 52 dispatched release runs for release-authority. Outside tonight's degradation, no checkout took more than 143 s. Green runs after the sample reached 42 s (test, run 43329954756 at 23:48Z) and 30 s (test-ui, run 43328307776 at 23:45Z). An older run outside the 20-runCheckoutsample hadpr-interaction-webkit'sCheckoutat 42 s (run 43288665510, 19:56Z). Every step with the 8-minute bound took 45 s or less, and every step with the 3-minute bound 33 s or less.CheckoutCheckoutCheckoutEvery other step shape took 30 s or less (a planner checkout took 27 s in run 43327694170).
The trade-off
A slow fetch that would have recovered after more than 8 minutes now fails, and the job runs again on a fresh grant. Tonight's slowest such fetch took 445 s, under the bound. A fetch that hangs fails at 8 minutes by name, instead of at the 15-minute cap with no reason.
Checkout options today
Asked for to see whether a slow full fetch is the cause. It isn't:
typecheckandtest-buildfetch one commit andtest-nodefetches two, so the hangs point at the git service, not at what the jobs fetch.room,admission,heavy-ci,docsite-build,test-ui,test-node,native-swift-runner,test,run-labels,build-storybook,typecheck,pr-a11y-guards,pr-a11y-specs,interaction-legs,pr-interaction,pr-interaction-webkit,test-build,visual-scout,pr-visual,pr-rtl-shard,pr-rtl-merge,pr-rtl,pr-touched-components,pr-component-a11y-contracts,release-specs-plan,release-specs,a11y-dependent-audits-plan,pr-a11y-dependent-auditsdocsite-build,docsite-browser,test-native-swift,test-registry-e2e,test,typecheck,pr-a11y-shard,pr-a11y-audit,pr-a11y-guards,pr-a11y-specs,a11y-contracts-shard,pr-interaction,pr-interaction-webkit,test-build,visual-scout,pr-visual,pr-rtl-shard,pr-rtl-merge,pr-rtl,pr-touched-components,pr-component-a11y-contracts,release-specs,a11y-dependent-audits-plan,pr-a11y-dependent-auditsrelease-bump,release-merge-backtest-ui,test-nodebuild-storybookNo step uses
lfsor a partial-clonefilter.CI impact
+0 jobs or steps; one key on 66 existing checkout steps. Runner classes, job minutes, runner pools and time to green are unchanged until a bound fires, which happens only when a checkout takes more than 8 minutes (3 in the 5-minute jobs, 10 in the two release jobs). actionlint reports nothing new.