Skip to content

ci: Main's Node legs draw the theme editor as a pull request does - #12256

Merged
cixzhang merged 4 commits into
mainfrom
ci/main-unit-no-real-renders
Nov 17, 2026
Merged

cixzhang merged 4 commits into
mainfrom
ci/main-unit-no-real-renders

Conversation

@cixzhang

@cixzhang cixzhang commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Who this helps

Everyone who waits on main's unit run. Since 35fbc11, deploy.yml sets THEME_EDIT_REAL_RENDERS: '1' on Main's Node legs, so every theme-editor test file draws its pages for real on main (pull requests' tests use the stand-ins). Main's Node legs are planned from recorded times measured without that drawing (#12120), so the legs now run far longer than planned. Unit run 44038626677 (07:25Z, at 0fbecc6) had 7 of its 12 Node legs cancelled at the fifteen-minute limit inside pnpm test:node (legs 1, 3, 4, 6, 7, 9 and 11), so that unit gave no Node verdict.

What changes

.github/workflows/deploy.yml, the test-node job's test step: no THEME_EDIT_REAL_RENDERS. Main's Node legs draw the theme editor's pages as a pull request's tests do: stand-ins, plus real drawing in the files that ask for it (realRenders(true)). This is the default before 35fbc11, and it matches the times the legs are planned from. vitest.setup.node.mjs and the flag itself are unchanged, so a run that sets the flag still draws everywhere.

Not in this pull request:

  • The shard watchdog on Main's legs. As it stands, the watchdog ends a leg still running at minute 14 with exit 1, so a Main overrun would conclude failure. main-heavy-lanes.yml would then count it as the tip's tested run instead of an incomplete one (AST-030 FR21: dispatch the next run at once and report it in the "did not complete" issue). It needs a mode that names the running files without failing the leg first; that is a pull request of its own.
  • Where the real drawing runs instead: a scheduled lane of its own, with its own recorded times and watchdog, filed for triage.

Evidence

  • New main-validation-workflow.test.mjs case: test-node's run step, job and workflow set no THEME_EDIT_REAL_RENDERS. It fails on main's deploy.yml ("expected … to not have property THEME_EDIT_REAL_RENDERS").
  • With current main merged in, 117 of 117 pass across main-validation-workflow, ci-test-routing, workflow-paths and main-unit-run. prettier and actionlint pass.

CI impact: Main's unit run only. Its Node legs return to their planned times (the slowest about 11 minutes on a slow runner). No job, runner, matrix or trigger change; pull requests are unchanged.

Overlap checked: #12129, #11921 (#12129, josephfarina's recorded Node test inputs, edits test-node's test step in deploy.yml and main-validation-workflow.test.mjs too, but keeps the THEME_EDIT_REAL_RENDERS line as context so it does not fix this; whichever lands second merges the two step edits. #11921 adds an early-warning step to test-node and its own test cases, other lines)

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

…th the shard watchdog

Since 35fbc11 the Main unit run set THEME_EDIT_REAL_RENDERS on its Node legs, so every theme-editor file drew its pages for real while the legs are planned from times measured without that drawing; unit run 44038626677 had 7 of 12 Node legs cancelled at the limit. The legs now draw as a pull request's do, and run the shard watchdog that names the files still running before the limit.
@vercel

vercel Bot commented Nov 17, 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 17, 2026 11:48am UTC

Request Review

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

astracat-bot Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

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

@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec c42ce5b

@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 852c85a

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 for Visual, ci:run-a11y for Accessibility, ci:run-rtl for RTL.

CI impact: 0 job-min per update · pool 0% · time to green +8.2 min · standard runners · 1 other workflow changed (not measured) · 1 CI action or script file changed (not measured) ⚠️
Before After Change
Job-minutes per PR update 182 182 0
Runner pool, runner-minutes a day 63,754 63,754 0 (0%)
Average concurrent jobs 44.3 44.3 0
Time to green (median → this run) 45.4 min 53.7 min +8.2 min
Runs a day 350 350 0

Other workflows: deploy.yml changed: runs on push, workflow_dispatch; standard runners; its minutes are not measured here

Not measured (the jobs that use these keep their recent minutes above): .github/scripts/main-validation-workflow.test.mjs.

Flags: time to green +8.2 min.

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 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. Dropping THEME_EDIT_REAL_RENDERS puts Main's Node legs back on the times they are planned from, and the new contract test fails on main and passes here. One problem with the added watchdog needs fixing first:

  • With the watchdog, a Main Node leg still running at minute 14 ends as a failure (process.exit(1) in scripts/vitest-shard-watchdog.mjs) instead of being cancelled by the job limit, so the run concludes failure and main-heavy-lanes.yml counts it as the tip's tested run instead of dispatching the next run at once and reporting it in the "did not complete" issue, as AST-030 FR21 requires; keep a watchdog stop with no failed test incomplete on Main (for example, let the reporter name the files without ending the run, or have the scheduler treat a Node shard stuck stop as incomplete the way cli-minimum-node.yml already does), and add a test for it.

The description's "names the files still running before the cancel" should match whichever fix you choose.

Claims and files checked

Review mode: full; reason: no-earlier-review

  • Claim: since #12097, Main's Node legs set the real-drawing flag, so every theme-editor file draws for real on Main while pull-request tests use stand-ins. Verified: the base step's env, the stand-in's flag check, and ci.yml setting no flag.
  • Claim: Main's legs are planned from recorded times measured without that drawing (#12120). Verified: the record says it comes from pull-request Node legs, and the planner reads it.
  • Claim: the 07:25Z Main unit run had Node legs 1, 3, 4, 6, 7, 9 and 11 of 12 cancelled at the fifteen-minute limit inside the test step. Verified from that run's jobs.
  • Claim: those legs ran with no watchdog, so their logs do not name the running files. Verified: the base step has no watchdog reporter.
  • Claim: dropping the flag restores the stand-ins with per-file real drawing, and the setup file and flag are unchanged. Verified: only two files change.
  • Claim: the step sets the watchdog a minute before the limit, counted from the job's start, with the same lines as ci.yml's Node legs. Verified against ci.yml.
  • Claim: a leg near its limit names the files still running before the cancel. False: the watchdog ends the leg itself, so no cancel follows.
  • Claim: real drawing elsewhere is a separate follow-up filed for triage. Unverified: no issue in this repository names it.
  • Claim: the new case fails on main's deploy.yml. Verified: run on the base, it fails with the quoted assertion.
  • Claim: 207 of 207 tests pass across the seven named files. Verified at this head.
  • Claim: prettier and actionlint pass. Prettier verified; actionlint not run here, but shellcheck at error severity on the new block is clean.
  • Claim: the slowest leg returns to about 11 minutes on a slow runner. Verified as the planner's projection (12 legs, longest 1113 s of tests).
  • Claim: no job, runner, matrix or trigger changes, and pull requests are unchanged. Verified: one step of deploy.yml changes and ci.yml is untouched.
  • Claim: #12129 edits the same step and test file but keeps the flag and adds no watchdog, and #11921 adds an early-warning step with its own tests. Verified from their files.
  • File .github/workflows/deploy.yml: the finding above.
  • File .github/scripts/main-validation-workflow.test.mjs: clear; it matches the new step.

Automated review (maintainer link)

Comment thread .github/workflows/deploy.yml Resolved
…ll request

The watchdog ends a still-running leg with exit 1, so a Main overrun would conclude as failure and main-heavy-lanes would count it as the tip's tested run instead of an incomplete run (AST-030 FR21). It needs a name-only mode first.
@cixzhang cixzhang changed the title ci: Main's Node legs draw the theme editor as a pull request does, with the shard watchdog ci: Main's Node legs draw the theme editor as a pull request does Nov 17, 2026
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec ece6850

@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 head yet, and marking the pull request ready for review starts it.

Dropping THEME_EDIT_REAL_RENDERS from Main's Node test step puts those legs back on the drawing mode their recorded times were measured in; the new contract case fails on main and passes here, and the watchdog problem from the last review left with the watchdog. Release re-checks run the same step, so they too stop drawing real theme-editor pages outside the files that opt in until the follow-up lane exists.

Claims and files checked

Review mode: incremental; reason: none

  • changed rules (0): none
  • Claim: since #12097, Main's Node legs set the real-drawing flag, so every theme-editor test file draws for real on Main while pull-request tests use stand-ins. Verified: the base step's env, the stand-in module's flag check, and ci.yml setting no flag.
  • Claim: Main's legs are planned from recorded times measured without that drawing (#12120). Verified: the record says it comes from pull-request Node legs, and the leg planner reads it.
  • Claim: the 07:25Z Main unit run had Node legs 1, 3, 4, 6, 7, 9 and 11 of 12 cancelled at the fifteen-minute limit inside the test step, so it gave no Node verdict. Verified from that run's jobs.
  • Claim: the step now sets no flag, so Main draws as pull-request tests do, with stand-ins plus real drawing in files that call realRenders(true). Verified: the step's env and the stand-in module's default.
  • Claim: that was the default before #12097. Verified: the step had no flag and Main and pull-request legs drew alike before it; the shared stand-in itself arrived in that same change.
  • Claim: it matches the times the legs are planned from. Verified: the record is measured from pull-request legs, which use the stand-ins.
  • Claim: the setup file and the flag are unchanged, so a run that sets the flag still draws everywhere. Verified: only two files change, and the stand-in module still reads the flag.
  • Claim: the watchdog, left out here, would end a Main overrun with exit 1, so the scheduler would count it as a tested run instead of an incomplete one. Verified against the watchdog reporter and the scheduler's incomplete list; it is not part of this diff.
  • Claim: real drawing moves to a scheduled lane of its own, filed for triage. Unverified: no issue in this repository names it; it is outside this pull request.
  • Claim: the new case fails on main's deploy.yml with the quoted assertion. Verified: run on the base, it fails with that message.
  • Claim: 117 of 117 tests pass across the four named files with current main merged in. Verified at this head.
  • Claim: prettier and actionlint pass. Prettier verified; actionlint not run here.
  • Claim: only Main's unit run is affected, and its slowest Node leg returns to about 11 minutes on a slow runner. Verified as the planner's projection (12 legs, longest 1114 s); release re-checks use the same step.
  • Claim: no job, runner, matrix or trigger changes, and pull requests are unchanged. Verified: one step's env and comment change, and ci.yml is untouched.
  • Claim: #12129 edits the same step and test file but keeps the flag line as context, and #11921 adds an early-warning step and its own tests on other lines. Verified from their files.
  • Claim: ownership and landing route. A process note, not a claim about the code.
  • File .github/workflows/deploy.yml: clear.
  • File .github/scripts/main-validation-workflow.test.mjs: clear; it pins exactly the env the step drops.

Automated review (maintainer link)

@cixzhang
cixzhang marked this pull request as ready for review November 17, 2026 08:42
@cixzhang
cixzhang marked this pull request as draft November 17, 2026 09:10
@cixzhang
cixzhang marked this pull request as ready for review November 17, 2026 09:10
@cixzhang
cixzhang marked this pull request as draft November 17, 2026 09:31
@cixzhang
cixzhang marked this pull request as ready for review November 17, 2026 09:31
@cixzhang
cixzhang marked this pull request as draft November 17, 2026 09:49
@cixzhang
cixzhang marked this pull request as ready for review November 17, 2026 09:49
@cixzhang
cixzhang marked this pull request as draft November 17, 2026 10:11
@cixzhang
cixzhang marked this pull request as ready for review November 17, 2026 10:12
@cixzhang
cixzhang marked this pull request as draft November 17, 2026 10:32
@cixzhang
cixzhang marked this pull request as ready for review November 17, 2026 10:32
@cixzhang
cixzhang marked this pull request as draft November 17, 2026 11:32
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 852c85a

@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 head yet; marking the pull request ready for review starts it.

Dropping THEME_EDIT_REAL_RENDERS from Main's Node test step puts those legs back on the drawing mode their recorded times were measured in, and the new contract case fails on main and passes here. Release re-checks run the same step, so they too stop drawing real theme-editor pages outside the files that opt in until the follow-up lane exists.

Claims and files checked

Review mode: incremental; reason: none

  • changed rules (0): none
  • Claim: since #12097, Main's Node legs set the real-drawing flag, so every theme-editor test file draws for real on Main while pull-request tests use stand-ins. Verified: the base step's env, the stand-in module's flag check, and ci.yml setting no flag.
  • Claim: Main's legs are planned from recorded times measured without that drawing (#12120). Verified: the record says it comes from a pull request's Node legs, and the leg planner reads it.
  • Claim: the 07:25 Main unit run had Node legs 1, 3, 4, 6, 7, 9 and 11 of 12 cancelled at the fifteen-minute limit inside the test step, so it gave no Node verdict. Verified from that run's jobs.
  • Claim: the step now sets no flag, so Main draws as pull-request tests do, with stand-ins plus real drawing in files that call realRenders(true). Verified: the step's env and the stand-in module's default.
  • Claim: that was the default before #12097. Verified: the step had no flag before it, so Main and pull-request legs drew alike; the shared stand-in default arrived in that same change.
  • Claim: it matches the times the legs are planned from. Verified: the record is measured on pull-request legs, which use the stand-ins.
  • Claim: the setup file and the flag are unchanged, so a run that sets the flag still draws everywhere. Verified: only two files change, and the stand-in module still reads the flag.
  • Claim: the watchdog, left out here, would end a Main overrun with exit 1, so the scheduler would count it as a tested run instead of an incomplete one, and it needs a pull request of its own. Verified against the watchdog reporter and the scheduler's incomplete list; that pull request is #12263.
  • Claim: real drawing moves to a scheduled lane of its own, filed for triage. Unverified: no issue in this repository names it; it is outside this pull request.
  • Claim: the new case fails on main's deploy.yml with the quoted assertion. Verified: run on the base, it fails with that message.
  • Claim: 117 of 117 tests pass across the four named files with current main merged in. Verified at this head.
  • Claim: prettier and actionlint pass. Prettier verified; actionlint not run here.
  • Claim: only Main's unit run is affected, and its slowest Node leg returns to about 11 minutes on a slow runner. Verified as the planner's projection (12 legs, slowest 1125 s, about 11.2 minutes); release re-checks use the same step.
  • Claim: no job, runner, matrix or trigger changes, and pull requests are unchanged. Verified: one step's env and a comment change, and ci.yml is untouched.
  • Claim: #12129 edits the same step and test file but keeps the flag line as context, and #11921 adds a warning step and its own tests on other lines. Verified from their files.
  • Claim: ownership and landing route. A process note, not a claim about the code.
  • File .github/workflows/deploy.yml: clear.
  • File .github/scripts/main-validation-workflow.test.mjs: clear; it pins exactly the env the step drops.

Automated review (maintainer link)

@cixzhang
cixzhang marked this pull request as ready for review November 17, 2026 11:54
@cixzhang
cixzhang merged commit deb3b38 into main Nov 17, 2026
136 checks passed
@github-actions
github-actions Bot deleted the ci/main-unit-no-real-renders branch November 18, 2026 06:04

This branch was successfully deployed

1 active deployment
Preview — 852c85a0 Deployed Nov 17, 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