Skip to content

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

Merged
cixzhang merged 12 commits into
mainfrom
fix/theme-real-bases-chromium
Nov 14, 2026

Conversation

@cixzhang

@cixzhang cixzhang commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

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 system chromium-browser once per page, with execFileSync --headless=new --dump-dom. Under load it failed with a bare spawnSync chromium-browser ETIMEDOUT that 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:
    • The browser: the text-direction render renders in Playwright's pinned Chromium, launched once for its two pages (left-to-right and right-to-left), with the same assertions per page (30px 4px and 8px 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.
    • Named timeouts: a launch or render that does not finish within the existing 60 s bound (no raise, no retry) fails naming what it waited on: "launching Playwright's Chromium did not finish within 60 s", or "rendering the rtl page did not finish within 60 s". Opening the page and reading its padding have the same named bound. Playwright's own launch and setContent timeouts are set 5 s past that bound, so the named failure comes first.
    • It runs in exactly one place, and never skips silently. The render case is it.runIf(BROWSER_STEP), with BROWSER_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.mjs requires both, so the case cannot vanish from both runs.
  • .github/workflows/ci.yml, test-node:
    • New step "Theme editor browser case": on leg 1, after "Install Playwright for theme-family contract", under that step's own condition, with 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.
    • "Run the theme-family contract" now runs inside the time the job's 15-minute limit leaves, less a minute, counted as the Node shard counts it. If it runs out, it fails by name with its last output lines, before the limit cancels the job and cuts the log.
  • The Node split gives leg 1 its own steps' time, measured. scripts/vitest-node-durations.json gains legOneSteps: the seconds of the steps only leg 1 runs (test-node's matrix.shard == 1 steps). 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. With VITEST_LEG_ONE_RESERVE=1 on 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.mjs starts leg 1 with those 98 s in file time (× 2.3, the legs' measured parallelism). record refreshes legOneSteps from the same job log as the file times.
  • Workflow tests:
    • ci-browser-gated-tests.test.mjs requires the new step after the Chromium install, under the same condition, with the switch set; the case to be it.runIf on that switch; and that the file never names a system browser.
    • ci-node-leg-bounds.test.mjs requires legOneSteps to name exactly test-node's steps whose condition holds matrix.shard == 1 anywhere, so a new leg-1 step cannot escape the reserve.
    • ci-tooling-routing.test.mjs pins 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.

Selection Without the reserve: leg 1 / legs 2–5 With it
#8582 (1,108 files) 14.3 / 12.7 min 13.0 / 13.0 min
Full suite (#10312, 1,163 files) 14.8 / 13.1 min 13.5 / 13.5 min

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

Site What it does Here
packages/cli/api/theme-edit/theme-real-bases.test.mjs spawned system chromium-browser, chromium or google-chrome per page removed: Playwright's pinned Chromium, launched once
packages/cli/api/theme-edit/_preview.mjs product code: the theme editor's preview launches Playwright, with the user's own Chrome when one is found unchanged; that is the right browser for a user
"Run the theme-family contract" (.github/scripts/theme-family-cascade.js) launches Playwright's pinned Chromium (require('playwright')), not a system binary unchanged

The 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

Run (local, macOS) Result
main's version, with a system chromium-browser that never starts (a shim on PATH) fails after 66.8 s with a bare Error: spawnSync chromium-browser ETIMEDOUT, naming nothing
this version, Playwright given a "browser" that never starts (the new case) fails at its bound with "launching Playwright's Chromium did not finish within 1 s"
this version, the CI step's command (ASTRYX_THEME_EDITOR_BROWSER=1) with the pinned Chromium not installed the render case fails by name: "Playwright's Chromium is not installed at …"; nothing skips
this version, the CI step's command with the pinned Chromium installed 2 passed, 11 skipped; the render case passes in about 3 s (CodeBunny's run of the command). This pull request's own CI run repeats it in the leg-1 "Theme editor browser case" step
this version, the whole file without the switch the render case is counted as skipped; the other 12 pass

This pull request's own CI run is full reach on every Node leg. The classifier treats .github/workflows/ci.yml and .github/scripts/ as shared infrastructure outside the Vitest module graph, so vitest_full_suite is true and no leg is scoped. The run covers the shard step and the theme-family step.

CI impact

  • Job test-node: runner class ubuntu-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.
  • Job-minutes per update (conservative model, feat(richtext): Markdown shortcuts typed at the start of a list item re-mark it #8582's selection): before, 14.3 + 4 × 12.7 = 65.1; after, 5 × 13.0 = 65.0, plus the new step's about 0.5 min on leg 1. About the same.
  • Time to green (three rounds at max-parallel 2): before, 14.3 + 12.7 + 12.7 = 39.7 min; after, 3 × 13.0 = 39.0 min. By feat(richtext): Markdown shortcuts typed at the start of a list item re-mark it #8582's real spend (25.1 min to green on its re-run), both are lower; leg 1 is no longer the leg that reaches the 15-minute cap first.
  • The render no longer depends on the runner image's browser. The theme-family step's time is unchanged; it is now bounded.

Owning session: noopbot (a61f66c2), under CI & Release (ca77f950). Land path: the shipper, through merge-guard.

…, launched once, failing by name; the theme-family contract runs inside the job's limit
@vercel

vercel Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 14, 2026 12:43am UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 13, 2026
@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · d50edca

Storybook · Sandbox · built from this PR's head

Package size: no published package changed; no new dependencies.

Not run on this PR: add ci:run-visual, ci:run-a11y or ci:run-rtl to run them.

CI impact: +10.7 job-min per update · pool +9.2% · time to green −19.5 min · standard runners · 3 CI action or script files changed (not measured)
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

@astracat-bot

astracat-bot Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 14, 2026, 12:53 AM UTC

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.setContent in theme-real-bases.test.mjs gets no timeout, 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 record refreshes 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 on main; 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.

Automated review (maintainer link)

Comment thread .github/workflows/ci.yml Resolved

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 on renders own and editor sides|names what it waited on (and updating the pinned string in ci-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: record refreshes 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.

Automated review (maintainer link)

Comment thread .github/workflows/ci.yml Resolved
…t fails when the base themes cannot be built; the bound warns without the job's age

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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: record refreshes 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.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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; record refreshes 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.

Automated review (maintainer link)

@cixzhang
cixzhang marked this pull request as ready for review November 13, 2026 22:45

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-446 uses the browser globals getComputedStyle and document inside page.evaluate, but ESLint checks this file with Node globals, so the required lint check fails with two no-undef errors; 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 as 1 skipped on theme-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; record refreshes 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 inside page.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.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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; record refreshes 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.

Automated review (maintainer link)

@cixzhang
cixzhang marked this pull request as ready for review November 14, 2026 00:16
@cixzhang
cixzhang marked this pull request as draft November 14, 2026 00:33

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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; record refreshes 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.

Automated review (maintainer link)

@cixzhang
cixzhang marked this pull request as ready for review November 14, 2026 01:09
@cixzhang
cixzhang merged commit 7b31541 into main Nov 14, 2026
190 of 192 checks passed
@github-actions
github-actions Bot deleted the fix/theme-real-bases-chromium branch November 14, 2026 06:03

This branch was successfully deployed

1 active deployment
Preview — d50edcac Deployed Nov 14, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant