Repository navigation
test(cli): theme-real-bases renders in the pinned Playwright Chromium, launched once, failing by name; the theme-family contract runs inside the job's limit - #11592
Conversation
…, launched once, failing by name; the theme-family contract runs inside the job's limit
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR Analysis Report🔎 Preview ·
|
| Before | After | Change | |
|---|---|---|---|
| Job-minutes per PR update | 117.3 | 128 | +10.7 |
| Runner pool, runner-minutes a day | 49,549 | 54,084 | +4,536 (+9.2%) |
| Average concurrent jobs | 34.4 | 37.6 | +3.1 |
| Time to green (median → this run) | 29.1 min | 9.6 min | −19.5 min |
| Runs a day | 423 | 423 | 0 |
Changed jobs: test-node changed: standard
Not measured (the jobs that use these keep their recent minutes above): .github/scripts/ci-browser-gated-tests.test.mjs, .github/scripts/ci-node-leg-bounds.test.mjs, .github/scripts/ci-tooling-routing.test.mjs.
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
…es leg 1 its own steps' measured time
|
AI review status for this pull request.
|
There was a problem hiding this comment.
Changes requested. Moving the render to Playwright's Chromium in its own leg-1 step, and giving leg 1 its steps' time in the split, fit the CI record; three small fixes remain.
- The render bound does not hold as described:
page.setContentintheme-real-bases.test.mjsgets notimeout, so Playwright's 30 s default fails a hung render with its own message before the 60 s named bound; pass{timeout: BROWSER_WAIT_MS + 5000}as the launch already does. - Two description claims are out of date: it says giving leg 1 its steps' time in the balancing is a separate proposal (this pull request does it), and its red-first list promises results "below" that are not there.
- The CI impact section needs each changed job's runner class, job-minutes per update before and after, the runner-pool change and time to green.
Smaller suggestions: keep the case's browser-free CSS-rule checks outside the browser gate, so main's full unit run still runs them; apply the leg-1 reserve only when the leg-1 steps run (they skip on tooling-only runs); and let the leg-bounds test match matrix.shard == 1 anywhere in a step's condition.
Claims and files checked
- Verified: the old case spawned the runner's system Chromium once per page with a 60 s limit.
- Verified: the case now renders in Playwright's Chromium, launched once, with the same two assertions (it passes in step mode).
- Verified: it is the only case in the file that needs a browser.
- Verified: a hung launch fails after 60 s with a named message (the new case shows it at 1 s).
- False: a hung render fails after 60 s with "rendering the … page did not finish"; it fails after 30 s with Playwright's own message.
- Verified: the case is gated on the browser switch, is listed as skipped in Node shards, and fails in its step when Chromium is missing.
- Verified: the new step runs on leg 1 after the Chromium install, under the same condition, and runs only the two cases.
- Verified: the theme-family contract is bounded by the time left before the 14-minute mark and names itself, with its last lines, when it overruns.
- Verified: the recorded leg-1 step times (9, 17 and 42 s) match the cited passing leg-1 job; the new step's 30 s is a local measurement (about 25 s here).
- Verified: with the switch set, the sequencer seeds leg 1 with 98 s × 2.3 of file time, and
recordrefreshes those seconds. - Partly: the leg-bounds test requires a recorded time for every step whose condition starts with
matrix.shard == 1, not for every leg-1 step. - Verified: the workflow tests pin the new step, the gate and the bounded command.
- Not verifiable: the leg-time projection table, an estimate.
- False: "giving leg 1 that time in the balancing is a separate proposal".
- False: red-first results promised "below" are absent.
- Verified: this pull request's CI is full reach on every Node leg.
- Incomplete: the CI impact section, against the CI record's required items.
.github/scripts/ci-browser-gated-tests.test.mjs: clear..github/scripts/ci-node-leg-bounds.test.mjs: non-blocking note (condition prefix)..github/scripts/ci-tooling-routing.test.mjs: clear (the rest is a formatter reflow)..github/workflows/ci.yml: non-blocking notes (reserve on tooling-only runs; fallback for the job's age).packages/cli/api/theme-edit/theme-real-bases.test.mjs: render timeout finding; non-blocking notes (coverage onmain; a skip when themes cannot be built).scripts/lib/duration-split.mjs: clear.scripts/vitest-node-durations.json: clear.scripts/vitest-shard-sequencer.mjs: clear.scripts/vitest-shard-sequencer.test.mjs: clear.
…ay in the shard; the leg-1 reserve follows its steps' scope
There was a problem hiding this comment.
Changes requested. The render timeout, the CI impact section and the leg-1 reserve's scope are fixed since the last review; two small fixes remain.
- The "Theme editor browser case" step's filter
-t 'in each text direction|names what it waited on'also matches the browser-free case "keeps physical sides physical next to own sides, in each text direction (butter)", so the step runs three cases instead of the two the description names; filtering onrenders own and editor sides|names what it waited on(and updating the pinned string inci-browser-gated-tests.test.mjs) fixes both. - Two red-first rows in the description no longer match the head: without the switch 12 cases pass, not 11, and the row for the step with Chromium installed promises a result below that is not there.
Smaller suggestions: under the browser switch, fail rather than skip when the base themes cannot be built; warn when the theme-family bound cannot read the job's age; and add the new option to partitionByDuration in vitest-shard-sequencer.d.mts.
Claims and files checked
- Verified: the old case spawned the runner's system Chromium once per page with a 60 s limit.
- Not re-read: the cited failing runs; they are context only.
- Verified: the render runs in Playwright's Chromium, launched once, with the same two assertions, in its own case with its own theme (it passes in the step's command).
- Verified: the browser-free CSS-rule checks stay in their own case, which runs in every Node shard and in main's full unit run.
- Verified: a hung launch or render fails at 60 s with a named message, with Playwright's own timeouts 5 s later (the new case, and a probe of the render bound).
- Verified: the render case is gated on the switch, listed as skipped in the shard, and fails by name in its step when Chromium is missing.
- Partly: "never skips silently": an unbuilt base theme still skips the render case with no reason given.
- Verified: the new step runs on leg 1 after the Chromium install, under the same condition, with the switch set.
- False: the step runs only the render case and the timeout case; it also runs the browser-free case.
- Verified: the theme-family contract is bounded by the time left before the 14-minute mark and names itself, with its last lines, when it overruns.
- Verified: the recorded leg-1 steps are exactly the steps only leg 1 runs, and 9, 17 and 42 s match the cited passing leg-1 job; the new step's 30 s is a local measurement (about 22 s here).
- Verified: the reserve applies only where those steps run, with the same value on every leg, and seeds leg 1 with 98 s × 2.3 of file time.
- Verified:
recordrefreshes those seconds from the same job log. - Verified: the workflow tests pin the new step, the gate, the bounded command, and every step whose condition holds the leg-1 test.
- Not verifiable: the leg-time projection table and the cancelled-attempt timeline, which are estimates and readings of other runs.
- Verified: the system-Chromium spawn-site table.
- Verified: the red-first row for a browser that never starts.
- False: "the other 11 pass" without the switch; 12 pass.
- Missing: the red-first result for the step's command with Chromium installed.
- Verified: this pull request's CI is full reach on every Node leg.
- Verified: the CI impact section gives the runner class, job-minutes per update, concurrency and time to green.
.github/scripts/ci-browser-gated-tests.test.mjs: pins the over-broad filter (blocking finding 1)..github/scripts/ci-node-leg-bounds.test.mjs: clear..github/scripts/ci-tooling-routing.test.mjs: clear (the rest is a formatter reflow)..github/workflows/ci.yml: blocking finding 1; non-blocking note on the job-age fallback.packages/cli/api/theme-edit/theme-real-bases.test.mjs: blocking finding 1 (case names); non-blocking note on the unbuilt skip.scripts/lib/duration-split.mjs: clear.scripts/vitest-node-durations.json: clear.scripts/vitest-shard-sequencer.mjs: clear; non-blocking note on its type declaration.scripts/vitest-shard-sequencer.test.mjs: clear.
…t fails when the base themes cannot be built; the bound warns without the job's age
There was a problem hiding this comment.
Changes requested. Every code finding from the last review is fixed at this head: the browser step now runs only the render and timeout cases, it fails when the base themes cannot be built, and the theme-family bound warns when it cannot read the job's age. Two description fixes remain:
- The Red-first row for the whole file without the switch says "the other 11 pass", but 12 cases pass at this head (13 in all, with the render case skipped).
- The Red-first row for the CI step's command with Chromium installed promises a result "below once that run finishes", but no result follows; that command gives 2 passed and 11 skipped, with the render case passing in about 3 s.
Smaller suggestions: inside it.runIf(BROWSER_STEP) the if (BROWSER_STEP) check always holds, so the ctx.skip() branch can go, and browser.newPage() and page.evaluate() could join within() so a hang there also fails by name. CI has not run on this draft head yet.
Claims and files checked
- Verified: the old case spawned the runner's system Chromium once per page with a 60 s limit and a bare timeout error.
- Verified: the render runs in Playwright's Chromium, launched once, with the same two assertions, in its own case with its own theme; it passes in the step's command.
- Verified: the browser-free CSS-rule checks stay in their own case, which runs in every Node shard and in main's full unit run.
- Verified: a hung launch or page load fails at 60 s with a named message, with Playwright's own timeouts 5 s later.
- Verified: the render case is gated on the switch, listed as skipped in the shard, and fails by name in its step when Chromium is missing or the base themes cannot be built.
- Verified: the new step runs on leg 1 after the Chromium install, under the same condition, with the switch set, and runs only the render and timeout cases.
- Verified: the theme-family contract is bounded by the time left before the 14-minute mark and names itself, with its last lines, when it overruns.
- Verified: the recorded leg-1 steps are exactly the steps only leg 1 runs, and 9, 17 and 42 s match the cited passing leg-1 job; the new step's 30 s is a local measurement (about 26 s here).
- Verified: the reserve applies only where those steps run, with the same value on every leg, and seeds leg 1 with 98 s × 2.3 of file time.
- Verified:
recordrefreshes those seconds from the same job log. - Verified: the workflow tests pin the new step, the gate, the bounded command, and every step whose condition holds the leg-1 test.
- Not verifiable: the leg-time projection table and the cancelled-attempt timeline, which are estimates and readings of other runs; a split of the recorded file times agrees that leg 1 is no longer the longest leg.
- Verified: the system-Chromium spawn-site table.
- Verified: the red-first rows for a browser that never starts and for a missing Chromium.
- False: "the other 11 pass" without the switch; 12 pass.
- Missing: the red-first result for the step's command with Chromium installed.
- Not yet shown: this pull request's own full-reach CI run, which has not run on the draft.
- Verified: the CI impact section gives the runner class, job-minutes per update, concurrency and time to green.
.github/scripts/ci-browser-gated-tests.test.mjs: clear..github/scripts/ci-node-leg-bounds.test.mjs: clear..github/scripts/ci-tooling-routing.test.mjs: clear (the rest is a formatter reflow)..github/workflows/ci.yml: clear.packages/cli/api/theme-edit/theme-real-bases.test.mjs: two non-blocking suggestions above.scripts/lib/duration-split.mjs: clear.scripts/vitest-node-durations.json: clear.scripts/vitest-shard-sequencer.d.mts: clear.scripts/vitest-shard-sequencer.mjs: clear.scripts/vitest-shard-sequencer.test.mjs: clear.
There was a problem hiding this comment.
Approved pending CI: CI has not run on this draft head yet. Both description rows from the last review now match the head (12 cases pass without the switch; the step's command gives 2 passed and 11 skipped), and the earlier suggestions are in: the always-true skip branch is gone and every browser wait fails by name. One optional note: the it.each reflow in ci-tooling-routing.test.mjs is unrelated formatting.
Claims and files checked
- Verified: the old case spawned the runner's system Chromium once per page with a 60 s limit and a bare timeout error.
- Verified: the render runs in Playwright's Chromium, launched once, with the same two assertions, in its own case with its own theme; it passes in the step's command.
- Verified: the browser-free CSS-rule checks stay in their own case, which runs in every Node shard and in main's full unit run.
- Verified: launching, opening the page, rendering and reading the padding each fail at 60 s with a named message, with Playwright's own launch and render timeouts 5 s later.
- Verified: the render case is gated on the switch, listed as skipped in the shard, and fails by name in its step when Chromium is missing.
- Verified: the workflow test requires both the gate and the step.
- Verified: the new step runs on leg 1 after the Chromium install, under the same condition, with the switch set, and runs only the render and timeout cases; the shard runs before any browser install.
- Verified: the theme-family contract is bounded by the time left before the 14-minute mark, counted as the shard counts it, and names itself with its last lines when it overruns.
- Verified: the recorded leg-1 steps are exactly the steps only leg 1 runs, and 9, 17 and 42 s match the cited passing leg-1 job; the new step's 30 s is a local measurement.
- Verified: the reserve applies only where those steps run, with the same value on every leg, and seeds leg 1 with 98 s × 2.3 of file time;
recordrefreshes those seconds from the same job log. - Verified: the workflow tests pin the new step, the gate, the bounded command, and every step whose condition holds the leg-1 test.
- Not verifiable: the leg-time projection table, the job-minutes and time-to-green arithmetic, and the cancelled-attempt timeline, which are estimates and readings of other runs; a split of the recorded file times agrees that leg 1 is no longer the longest leg.
- Verified: the system-Chromium spawn-site table.
- Consistent with the old code, not re-run: main's version failing with a bare timeout when the system browser never starts.
- Verified: the red-first rows for a browser that never starts, for a missing Chromium, for the step's command with Chromium installed (2 passed, 11 skipped), and for the whole file without the switch (12 pass, the render case skipped).
- Verified: the change classifies as shared infrastructure, so this pull request's own CI runs every Node leg at full reach; that run has not happened on the draft.
- Verified: the CI impact section gives the runner class, legs and concurrency, job-minutes per update and time to green.
.github/scripts/ci-browser-gated-tests.test.mjs: clear..github/scripts/ci-node-leg-bounds.test.mjs: clear..github/scripts/ci-tooling-routing.test.mjs: clear (the rest is a formatter reflow)..github/workflows/ci.yml: clear.packages/cli/api/theme-edit/theme-real-bases.test.mjs: clear.scripts/lib/duration-split.mjs: clear.scripts/vitest-node-durations.json: clear.scripts/vitest-shard-sequencer.d.mts: clear.scripts/vitest-shard-sequencer.mjs: clear.scripts/vitest-shard-sequencer.test.mjs: clear.
…the reserve reaches the split
There was a problem hiding this comment.
Changes requested: required lint fails on the new test code, and one sentence of the description is inaccurate.
- Found by CI:
theme-real-bases.test.mjs:445-446uses the browser globalsgetComputedStyleanddocumentinsidepage.evaluate, but ESLint checks this file with Node globals, so the requiredlintcheck fails with twono-undeferrors; reading the style through the element's own window (see the inline suggestion) lints clean and still passes the render case. - Miss: the description says "The Node shard lists it as skipped, by name", but in CI the shard's reporters (
ci.yml:1212) show the render case only as1 skippedontheme-real-bases.test.mjs's line, so please reword it, for example "The Node shard counts it among the file's skipped tests; only the browser step runs and names it."
Everything else checks out: the earlier inline suggestions are all in, the sequencer tests now pin the leg-1 switch so they pass under the shard step's setting, and the render, timeout and missing-browser cases behave as described. Optional: the projection's "about 2 min of setup" does not match its figures, which use about 1.3 min, and the it.each reflow in ci-tooling-routing.test.mjs is unrelated formatting. Heavy CI is deferred on this head, so test-node has not run here yet.
Claims and files checked
- Verified: the old case spawned the runner's system Chromium once per page with a 60 s limit and a bare timeout error.
- Verified: the render runs in Playwright's Chromium, launched once for both directions, with the same two assertions, in its own case with its own theme.
- Verified: the browser-free CSS-rule checks stay in their own case, which runs in the Node shard and in main's full unit run.
- Verified: launching, opening the page, rendering and reading the padding each fail at 60 s with a named message, and Playwright's own launch and render timeouts sit 5 s later.
- Verified: the render case is gated on the switch and fails by name in its step when Chromium is missing.
- False: the Node shard lists the render case as skipped by name; in CI it shows only a skip count on the file's line.
- Verified: the workflow test requires both the gate and the step.
- Verified: the new step runs on leg 1 after the Chromium install, under the same condition, with the switch set, and runs only the render and timeout cases; the shard runs before any browser install.
- Verified: the theme-family contract is bounded by the time left before the 14-minute mark, counted as the shard counts it, and names itself with its last lines when it overruns.
- Verified: the recorded leg-1 steps are exactly the steps only leg 1 runs; 9, 17 and 42 s match the cited passing leg-1 job, and the new step's 30 s is a local measurement.
- Verified: the reserve applies only where those steps run, with the same value on every leg, and seeds leg 1 with 98 s × 2.3 of file time;
recordrefreshes those seconds from the same job log. - Verified: the workflow tests pin the new step, the gate, the bounded command, and every step whose condition holds the leg-1 test.
- Verified with a caveat: the full-suite projection's figures follow from the recorded times with about 1.3 min of setup, not the stated 2 min; the scoped-selection row, the real-spend estimate and the cancelled-attempt timeline are readings of other runs and were not re-derived.
- Verified: the system-Chromium spawn-site table.
- Consistent with the old code, not re-run: main's version failing with a bare timeout when the system browser never starts.
- Verified: the red-first rows for a browser that never starts, for a missing Chromium, for the step's command with Chromium installed (2 passed, 11 skipped, about 3 s), and for the whole file without the switch (12 pass, the render case skipped).
- Verified: the change classifies as shared infrastructure, so this pull request's CI runs every Node leg at full reach; heavy CI is deferred on this head.
- Verified: the CI impact section gives the runner class, legs and concurrency, job-minutes per update and time to green, and its arithmetic holds.
.github/scripts/ci-browser-gated-tests.test.mjs: clear..github/scripts/ci-node-leg-bounds.test.mjs: clear..github/scripts/ci-tooling-routing.test.mjs: clear (the rest is a formatter reflow)..github/workflows/ci.yml: clear.packages/cli/api/theme-edit/theme-real-bases.test.mjs: finding: required lint fails at lines 445-446 (browser globals insidepage.evaluate); the description's claim about how the shard reports its skipped case is the other finding.scripts/lib/duration-split.mjs: clear.scripts/vitest-node-durations.json: clear.scripts/vitest-shard-sequencer.d.mts: clear.scripts/vitest-shard-sequencer.mjs: clear.scripts/vitest-shard-sequencer.test.mjs: clear.
There was a problem hiding this comment.
Approved pending CI: CI has not run on this draft head yet. Marking the pull request ready runs it, and it has to pass before merge.
Both points from the last round are fixed: the padding read now goes through the element's own window, so the test file lints clean and the render case still passes (2 passed, 11 skipped for the step's command), and the description now says the Node shard counts the render case among the file's skipped tests. The earlier note about the it.each reflow in ci-tooling-routing.test.mjs no longer applies: the formatter requires it once the file changes.
Claims and files checked
- Verified: the old case started the runner's system Chromium once per page with a 60 s limit and failed with a bare spawn timeout.
- Verified: the render runs in Playwright's pinned Chromium, launched once for both directions, with the same two padding assertions, in its own case with its own theme.
- Verified: the browser-free CSS-rule checks stay in their own case, which runs in the Node shard and in main's full unit run.
- Verified: launching, opening the page, rendering and reading the padding each fail at 60 s with a named message, and Playwright's own launch and render timeouts sit 5 s later.
- Verified: the render case runs only with the switch set, the Node shard counts it among the file's skipped tests, and in its step a missing Chromium fails it by name.
- Verified: the workflow test requires both the gate and the step, so the case cannot drop out of both runs.
- Verified: the new step runs on leg 1 after the Chromium install, under the install's condition, with the switch set, and runs only the render and timeout cases; the shard runs before any browser install.
- Verified: the theme-family contract runs inside the time left before the job's 14-minute mark, counted as the shard counts it, and fails by name with its last lines when it overruns.
- Verified: the recorded leg-1 steps are exactly the steps only leg 1 runs, 98 s in all, with the spec-only and Lab-only steps at 0; the new step's 30 s is a local measurement, and the other step times are readings of an earlier passing run, not re-derived.
- Verified: the reserve applies only where those steps run, with the same value on every leg, and starts leg 1 with 98 s × 2.3 of file time;
recordrefreshes those seconds from the same job log. - Verified: the workflow tests pin the new step, the gate, the bounded theme-family command, and every step whose condition holds the leg-1 test anywhere.
- Verified: the full-suite projection (14.8 / 13.1 to 13.5 / 13.5 minutes) follows from the recorded times, 2 minutes of setup and the 98 s; the scoped-selection row, the real-spend estimate and the cancelled-attempt timeline are readings of other runs, not re-derived.
- Verified: the spawn-site table: the theme editor's preview and the theme-family contract launch Playwright, not a system binary.
- Consistent with the old code, not re-run: main's version failing with a bare timeout when the system browser never starts.
- Verified: the red-first rows for a browser that never starts, for a missing Chromium, for the step's command with Chromium installed (2 passed, 11 skipped, about 3 s), and for the whole file without the switch (12 pass, the render case skipped).
- Verified: the change classifies as shared infrastructure, so CI runs every Node leg at full reach; CI has not run on this draft head.
- Verified: the CI impact section's runner class, legs and concurrency are unchanged, it adds no job, and its job-minute and time-to-green arithmetic holds.
.github/scripts/ci-browser-gated-tests.test.mjs: clear..github/scripts/ci-node-leg-bounds.test.mjs: clear..github/scripts/ci-tooling-routing.test.mjs: clear..github/workflows/ci.yml: clear.packages/cli/api/theme-edit/theme-real-bases.test.mjs: clear.scripts/lib/duration-split.mjs: clear.scripts/vitest-node-durations.json: clear.scripts/vitest-shard-sequencer.d.mts: clear.scripts/vitest-shard-sequencer.mjs: clear.scripts/vitest-shard-sequencer.test.mjs: clear.
There was a problem hiding this comment.
Approved pending CI: CI has not run on this draft head yet. Marking the pull request ready runs it, and it has to pass before merge.
The only change since the last round is a merge of main, which retitles other tests in theme-real-bases.test.mjs; the browser step's name filter still selects exactly the render and timeout cases, and both pass. One note for later, not a blocker: with the leg-1 reserve on, a scoped run whose fourth-slowest selected file is under about 225 s can put two of the five slowest files in one leg, which spec:AST-030 FR22 says never happens; the legs still balance.
Claims and files checked
- Verified: the old case started the runner's system Chromium once per page with a 60 s limit and failed with a bare spawn timeout; the cited failing runs were not re-read.
- Verified: the render runs in Playwright's pinned Chromium, launched once for both directions, with the same two padding assertions, in its own case with its own theme.
- Verified: the browser-free CSS-rule checks stay in their own case, which runs in the Node shard and in main's full unit run.
- Verified: launching, opening the page, rendering and reading the padding each fail at 60 s with a named message, and Playwright's own launch and render timeouts sit 5 s later.
- Verified: the render case runs only with the switch set, the Node shard counts it among the file's skipped tests, and in its step a missing Chromium fails it by name.
- Verified: the workflow test requires both the gate and the step, so the case cannot drop out of both runs.
- Verified: the new step runs on leg 1 after the Chromium install, under the install's condition, with the switch set, and runs only the render and timeout cases; the shard runs before any browser install.
- Verified: the theme-family contract runs inside the time left before the job's 14-minute mark, counted as the shard counts it, and fails by name with its last lines when it overruns.
- Verified: the recorded leg-1 steps are exactly the steps only leg 1 runs; the install, offline-media and theme-family times match the cited passing leg-1 job, the new step's 30 s is a local measurement, and the spec-only and Lab-only steps record 0.
- Verified: the reserve applies only where those steps run, with the same value on every leg, and starts leg 1 with 98 s × 2.3 of file time;
recordrefreshes those seconds from the same job log. - Verified: the workflow tests pin the new step, the gate, the bounded theme-family command, and every step whose condition holds the leg-1 test anywhere.
- Verified: the full-suite projection (14.8 / 13.1 to 13.5 / 13.5 minutes) follows from the recorded times, 2 minutes of setup and the 98 s; the scoped-selection row and the real-spend estimate are readings of other runs, not re-derived.
- Verified: the spawn-site table: this test no longer names a system browser, the theme editor's preview tries Playwright first and falls back to the user's Chrome, and the theme-family contract launches Playwright; no other site spawns a system browser.
- Not re-derived: the cancelled-attempt timeline of the earlier pull request; its passing attempt's 42 s for the contract is confirmed.
- Consistent with the old code, not re-run: main's version failing with a bare timeout when the system browser never starts.
- Verified: the red-first rows for a browser that never starts, for a missing Chromium, for the step's command with Chromium installed (2 passed, 11 skipped, about 3 s), and for the whole file without the switch (12 pass, the render case skipped).
- Verified: the change classifies as shared infrastructure outside the Vitest module graph, so CI runs every Node leg at full reach; CI has not run on this draft head.
- Verified: the CI impact section's runner class, legs and concurrency are unchanged, it adds no job, and its job-minute and time-to-green arithmetic holds.
.github/scripts/ci-browser-gated-tests.test.mjs: clear..github/scripts/ci-node-leg-bounds.test.mjs: clear..github/scripts/ci-tooling-routing.test.mjs: clear..github/workflows/ci.yml: clear.packages/cli/api/theme-edit/theme-real-bases.test.mjs: clear.scripts/lib/duration-split.mjs: clear.scripts/vitest-node-durations.json: clear.scripts/vitest-shard-sequencer.d.mts: clear.scripts/vitest-shard-sequencer.mjs: clear.scripts/vitest-shard-sequencer.test.mjs: clear.
Who this helps
Anyone whose pull request runs the CLI's Node tests.
theme-real-bases.test.mjs's text-direction case started the runner's systemchromium-browseronce per page, withexecFileSync --headless=new --dump-dom. Under load it failed with a barespawnSync chromium-browser ETIMEDOUTthat names nothing (#11266's run 43465463395; main's unit run 43474869518). The browser it tested in was whatever the runner image shipped, not the Chromium the repository pins.What changes
packages/cli/api/theme-edit/theme-real-bases.test.mjs:30px 4pxand8px 30px). It is its own case, "renders own and editor sides in each text direction (butter)", with its own theme. The browser-free CSS-rule checks stay in "keeps physical sides physical …", which runs in the shard (and in main's full unit run) as before.setContenttimeouts are set 5 s past that bound, so the named failure comes first.it.runIf(BROWSER_STEP), withBROWSER_STEP = process.env.ASTRYX_THEME_EDITOR_BROWSER === '1'. The Node shard counts it among the file's skipped tests; only the browser step runs and names it. The new step below runs it, and there a missing browser fails it ("Playwright's Chromium is not installed at …").ci-browser-gated-tests.test.mjsrequires both, so the case cannot vanish from both runs..github/workflows/ci.yml, test-node:ASTRYX_THEME_EDITOR_BROWSER=1. It runs only that case and the timeout case (-t 'renders own and editor sides|names what it waited on'). The Node shard runs before any browser is installed, so the case skips there, the same pattern as the offline-media browser cases.scripts/vitest-node-durations.jsongainslegOneSteps: the seconds of the steps only leg 1 runs (test-node'smatrix.shard == 1steps). Taken from fix(core): keep disabled selectors closed on default open #11488's passing leg 1 (job 132085441013): install 9 s, offline-media 17 s, theme-family 42 s, and this pull request's step 30 s (measured locally until a CI run records it); the spec-only and Lab-only steps record 0. WithVITEST_LEG_ONE_RESERVE=1on the shard step (set under those steps' own scope condition, the same value on every leg, so a tooling-only run, where they skip, reserves nothing),vitest-shard-sequencer.mjsstarts leg 1 with those 98 s in file time (× 2.3, the legs' measured parallelism).recordrefresheslegOneStepsfrom the same job log as the file times.ci-browser-gated-tests.test.mjsrequires the new step after the Chromium install, under the same condition, with the switch set; the case to beit.runIfon that switch; and that the file never names a system browser.ci-node-leg-bounds.test.mjsrequireslegOneStepsto name exactly test-node's steps whose condition holdsmatrix.shard == 1anywhere, so a new leg-1 step cannot escape the reserve.ci-tooling-routing.test.mjspins the bounded theme-family command.Leg 1's projected job time
Estimated as max(longest file, file time ÷ 2.3) for its tests, plus setup (about 2 min, from the replay's setup allowance), plus leg 1's 98 s of its own steps. Without the reserve, leg 1 projects past 13 minutes, so the reserve is in this pull request.
This estimate is conservative: #8582's real spend, spread evenly, is about 9.5 min of tests per leg, which puts every leg near 11 min. Either way, leg 1 is no longer the leg that reaches the cap first.
Every system-Chromium spawn site
packages/cli/api/theme-edit/theme-real-bases.test.mjschromium-browser,chromiumorgoogle-chromeper pagepackages/cli/api/theme-edit/_preview.mjs.github/scripts/theme-family-cascade.js)require('playwright')), not a system binaryThe theme-family cap on #11488 (run 43467631285) was not a hang. On the cancelled attempt, setup took about 1.5 min and the Node shard 732 s. "Run the theme-family contract" started 14 min into the job and ran 53 s before the 15-minute limit; on the passing attempt it took 42 s. The bound above makes that fail by name. The cause is that leg 1 also runs the browser install, the offline-media cases, the theme-family contract and now this step (98 s together), and the shard balancing did not know it. This pull request gives leg 1 that time (below).
Red-first
chromium-browserthat never starts (a shim onPATH)Error: spawnSync chromium-browser ETIMEDOUT, naming nothingASTRYX_THEME_EDITOR_BROWSER=1) with the pinned Chromium not installedThis pull request's own CI run is full reach on every Node leg. The classifier treats
.github/workflows/ci.ymland.github/scripts/as shared infrastructure outside the Vitest module graph, sovitest_full_suiteis true and no leg is scoped. The run covers the shard step and the theme-family step.CI impact
test-node: runner classubuntu-latest(unchanged), 5 legs at max-parallel 2 (unchanged), so runner-pool use stays at most 2 concurrent Node jobs per run. +0 jobs; the cap, budgets and retries are unchanged.Owning session: noopbot (a61f66c2), under CI & Release (ca77f950). Land path: the shipper, through merge-guard.