Skip to content

test: re-record the Node legs' times from a full run that includes the new theme editor tests - #11644

Merged
cixzhang merged 2 commits into
mainfrom
data/rerecord-node-durations
Nov 14, 2026
Merged

cixzhang merged 2 commits into
mainfrom
data/rerecord-node-durations

Conversation

@cixzhang

@cixzhang cixzhang commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Who this helps

Anyone whose pull request runs the Node tests. #11595 added theme editor test files with no recorded time, so the legs' split counted each as the median file (about 0.7 s: the record's 0.3 s median plus 0.4 s of import) wherever it landed. On full runs, test-node leg 1 then overran: the shard watchdog stopped #11630's run near the job limit in a theme editor file (and #11543's scoped leg 1 the same way). This records those files, and the entries that are far off, so the split packs leg 1 by what its files take.

What changes

scripts/vitest-node-durations.json, 76 entries of seconds, written through the record's own recordDurations and mergeRecord (scripts/vitest-shard-sequencer.mjs). Nothing else in the file changes: #11592's legOneSteps and the $comment stay as on main.

Source: "Main validation of d55578a", the Main workflow's run at #11595's own merge commit (run 43535008182, all six Node legs passed). Each leg's times are divided by that leg's own factor (the median measured ÷ recorded over its files with a record, clamped at 1 or more):

Leg Files Files with a record Median Factor used
1 202 143 1.00 1
2 205 148 1.00 1
3 202 149 0.91 1
4 203 144 0.83 1
5 204 147 1.00 1
6 202 147 0.67 1

No leg ran slow, so every time is written as measured.

One entry from another run: theme-real-bases.test.mjs is 26.5 s from #11592's CI run (43538834019). #11592 moved its render case out of the Node shard, so main's Main validation (before #11592) timed the old file; 26.5 s is the time of the file as it is on main now.

Leg 1, replayed

The five Node legs as the sequencer packs a full-reach run, with #11592's leg-1 reserve (legOneSteps, 98 s). Each leg is estimated as max(longest file, file time ÷ 2.3) plus about 2 min of setup, plus leg 1's own steps, with every file at its measured time from the run above:

Packed by Leg 1 Legs 2–5
main's record 14.5 min 10.3 / 10.0 / 7.6 / 9.8 min
this record 11.7 min 12.0 / 9.4 / 10.1 / 9.0 min

Land order

#11592 is merged and in this branch, so the two do not conflict. #11617 (open) adds one entry, packages/cli/test/packed-component-list.test.mjs, next to the re-timed packed-gather-cache.changes entry; whichever of the two lands second carries a one-line merge that keeps both entries.

#11648 (open) also re-records this file for the same leg-1 overrun, from a pull request's run, and fixes the recorder to read only the Node legs' own times. Its recorder fix found that the old recorder booked build-job --project node tests (setup-canonical.test.ts, next.turbopack.test.mjs and two browser tests) to Node legs that never run them.

The 20 entries both records set that differ by more than half. Every one is KEPT: measured in a Node leg, none a build-job test. #11648's times come from a pull request's run that was slower on the heavy files.

Entry main this record #11648 Verdict
packages/build/src/babel.test.mjs 22.5 9.5 24.4 KEPT
cli/api/build/kit/shellcall.test.mjs — 2.9 1.5 KEPT
cli/api/search/search.test.mjs 11.9 6.4 17.5 KEPT
theme-edit/theme-hunt17.test.mjs 9.3 4.3 7 KEPT
theme-edit/theme-hunt28.test.mjs 18.3 6.1 18.2 KEPT
theme-edit/theme-hunt5.test.mjs 161.2 295.3 150.1 KEPT
theme-edit/theme-hunt56.test.mjs — 4.9 8.2 KEPT
theme-edit/theme-hunt60.test.mjs 29.9 18.4 39.5 KEPT
theme-edit/theme-hunt63.test.mjs — 7.9 4.2 KEPT
theme-edit/theme-hunt67.test.mjs — 4.9 8.6 KEPT
theme-edit/theme-hunt68.test.mjs — 14.2 7.3 KEPT
theme-edit/theme-palette.test.mjs 60.2 111.2 58.7 KEPT
theme-edit/theme-parts43.test.mjs — 23.8 38.4 KEPT
theme-edit/theme-real-bases.test.mjs 15.1 26.5 49.1 KEPT
theme-edit/theme-stress.test.mjs 79.9 36.6 128.5 KEPT
cli/clients/cli/commands/interactive-guard.test.mjs 16 9.1 14.7 KEPT
cli/test/packed-gather-cache.changes.test.mjs 182.9 115.5 186.7 KEPT
cli/test/packed-gather-cache.installed.test.mjs 90.9 137 80.1 KEPT
cli/test/packed-gather-cache.malformed.test.mjs 161 64.9 220.2 KEPT
cli/test/packed-gather-cache.records.test.mjs 184.6 103.1 248.6 KEPT

Overlap check

Searched open pull requests for the durations record: #11617 adds one entry, and #11648 re-records it (both above).

CI impact

+0 jobs. No test, budget or timeout changes; the Node split balances leg 1 by real times again.

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

@vercel

vercel Bot commented Nov 14, 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 2:42am UTC

Request Review

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

astracat-bot Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

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

@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · b6b98ea

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.


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.

Requesting changes. The re-recorded times check out: they reproduce byte for byte from the five Node legs of the cited run and pass the sequencer's own tests. Three statements in the description are wrong, though, and should be fixed before this lands.

  • The overlap check says no other open pull request changes the record and that #11592 merges cleanly in either order, but #11592 and #11617 both change scripts/vitest-node-durations.json and both conflict with this branch, so whichever lands second needs a hand merge that keeps both sides.
  • The description says the latest full run on main (23:37Z) predates #11595, but the Main validation of #11595's own merge commit finished at 00:46Z with all six Node legs passing and timed all 55 new files, so the reason for timing from another pull request's run needs restating.
  • theme-edit/theme-how.test.mjs is listed among the files recorded for the first time, but the base already records it at 33.1 s (it is re-timed to 71.6 s), and #11543's stopped leg was a scoped run, not a full one.

Four entries, including theme-real-bases.test.mjs, were also timed on #11592's rewritten versions of those tests, so they match the code only once #11592 lands; that is worth saying beside the land order.

Claims and files checked
  • Claim: Only the Node durations record changes: verified (one file in the diff).
  • Claim: Produced with the record's own recordDurations and mergeRecord: verified (the five leg logs reproduce the file byte for byte).
  • Claim: Source is the five Node legs of #11592's CI run, at a head that contains #11595: verified.
  • Claim: Every leg ran full reach and passed: verified (each log shows the unscoped run and a passing summary).
  • Claim: The latest full main run predates #11595: false (a Main validation of #11595's commit finished an hour before this pull request opened).
  • Claim: Per-leg factor table (files, files with a record, median ratio, factor 1): verified exactly.
  • Claim: 661 entries change; 55 files are recorded for the first time, 638 s together: verified (606 re-timed plus 55 new, 637.5 s).
  • Claim: theme-how.test.mjs is among the first-time files: false (the base records it at 33.1 s).
  • Claim: The five named theme hunt and parts files take 41–49 s: verified.
  • Claim: Total 7,691 s to 9,251 s, about 20% heavier: verified.
  • Claim: Replay: this record gives 15.4 min on five legs and 13.2 min on six: verified; main's record row reproduces within 0.8 min per leg.
  • Claim: The source run's legs took 13.0 / 11.8 / 11.8 / 8.0 / 8.5 min: verified (job times 13.1 / 11.9 / 11.9 / 8.0 / 8.5).
  • Claim: The watchdog stopped #11543's and #11630's leg 1 in theme editor files on full runs: partly false (#11630's run was full; #11543's was scoped).
  • Claim: #11595 added theme editor test files with no recorded time: verified (19 of the 55).
  • Claim: No other open pull request changes the record, and #11592 merges cleanly in either order: false (#11592 and #11617 both change it and both conflict).
  • Claim: No job, test, budget or timeout changes: verified.
  • File: scripts/vitest-node-durations.json: the data is correct and passes the sequencer's tests; the description's claims about it are corrected above.

Automated review (maintainer link)

Comment thread scripts/vitest-node-durations.json Resolved
Comment thread scripts/vitest-node-durations.json Resolved
Comment thread scripts/vitest-node-durations.json Resolved
Comment thread scripts/vitest-node-durations.json Resolved
…rations

# Conflicts:
#	scripts/vitest-node-durations.json

@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.

Requesting changes. The re-recorded times check out: every changed value matches the cited Main validation run's Node leg logs (and theme-real-bases matches #11592's run), the sequencer's own tests pass on the new record, and the leg-1 replay reproduces. Two statements in the description are wrong at this head:

  • The overlap check says no open pull request re-records scripts/vitest-node-durations.json, but #11648 re-records the same file for the same leg-1 overrun, conflicts with this branch and disagrees by more than half on 16 of the entries both set, so the description should name it and say which record lands.
  • The five theme files named "at 41–49 s each" as #11595's new files (theme-hunt75, theme-hunt70, theme-hunt62, theme-hunt82, theme-parts43) are 60.9, 43.5, 44.5, 31.8 and 23.8 s in this record, and only theme-hunt82 came from #11595.

Minor: an unrecorded file counts as the record's 0.3 s median plus 0.4 s per file, so "about 1 s" overstates it a little.

Claims and files checked
  • Claim: #11595 added theme editor test files with no recorded time, which the split counted at the median: verified: 19 of the 55 new files come from #11595; an unrecorded file costs the 0.3 s median plus 0.4 s per file, so 'about 1 s' is approximate.
  • Claim: On full runs leg 1 overran; the watchdog stopped #11630's full run near the limit in a theme editor file, and #11543's scoped leg 1 the same way: verified: #11630's unscoped leg 1 stopped at 760 s in theme-hunt13; #11543's scoped leg 1 at 752 s in theme-how.
  • Claim: Only the durations record changes: 76 entries of seconds: verified: 55 new plus 21 re-timed; one key also moves into the record writer's sort order.
  • Claim: Written through the record's own recordDurations and mergeRecord: consistent: values equal the leg logs as recordDurations parses them, the moved key follows mergeRecord's locale sort, and the swizzle-proof slices keep their larger times.
  • Claim: legOneSteps and $comment stay as on main: verified: both identical to the base.
  • Claim: 55 files recorded for the first time, 599 s together: verified: 598.9 s.
  • Claim: The five named theme files take 41–49 s each and are #11595's new files: false: 60.9, 43.5, 44.5, 31.8 and 23.8 s; only theme-hunt82 came from #11595.
  • Claim: 21 entries re-timed that were over 1.5× and at least 5 s off, with the four quoted examples: verified: each of the 21 meets the rule and the four examples match.
  • Claim: Swizzle-proof slices keep their largest time: verified: all eight slices would qualify and keep their recorded maximum.
  • Claim: Every other entry is left as it is: verified: no other measured file meets the rule and no other entry changes.
  • Claim: Source is the Main validation run at #11595's merge commit, with all six Node legs passing: verified: six test-node jobs, all successful.
  • Claim: Per-leg table of files, files with a record, median ratio and factor 1: verified exactly.
  • Claim: No leg ran slow, so every time is written as measured: verified.
  • Claim: theme-real-bases is 26.5 s from #11592's run, the file as it is on main: verified: 26.5 s shard time; that run's test file equals main's.
  • Claim: Leg 1 replay: 14.5 min on main's record, 11.7 min on this one, and legs 2–5: verified: the sequencer's packing with the run's times reproduces every figure.
  • Claim: #11592 is merged and in this branch: verified.
  • Claim: #11617 adds one adjacent entry, so the second to land needs a one-line merge: verified: the merge conflicts only in the record.
  • Claim: #11617 is the only other open pull request touching the record, and none re-records it: false: #11648 re-records the whole file and conflicts with this branch.
  • Claim: +0 jobs; no test, budget or timeout changes: verified.
  • File: scripts/vitest-node-durations.json: the data matches its cited CI logs entry for entry and passes the sequencer's tests; the two findings are in the description.

Automated review (maintainer link)

Comment thread scripts/vitest-node-durations.json Resolved
Comment thread scripts/vitest-node-durations.json 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.

Approved pending CI: CI has not run on this head yet, because the pull request is a draft; it runs once the pull request is marked ready for review.

The re-recorded times check out: every changed value equals the Node leg logs of the cited Main validation run (and theme-real-bases equals #11592's run), the sequencer's own tests pass over the new record, the leg-1 replay reproduces, and the description's overlap check and file times are now correct. This record and #11648 conflict and set very different times for 16 shared entries, so only one of them should land.

Claims and files checked
  • Claim: #11595 added theme editor test files with no recorded time, which the split costed at about 0.7 s each: verified (the record's 0.3 s median plus the sequencer's 0.4 s per file).
  • Claim: leg 1 overran on full runs, with the watchdog stopping #11630's run and #11543's scoped leg 1 near the limit in theme editor files: verified (760 s and 752 s).
  • Claim: only the durations record changes, 76 entries of seconds: verified (55 new, 21 re-timed; one key moves into the writer's sort order).
  • Claim: the entries are written through the record's own parser and merge: verified (values, key order and formatting all match).
  • Claim: legOneSteps and $comment stay as on main: verified.
  • Claim: 55 files recorded for the first time, 599 s together: verified.
  • Claim: 19 of them are #11595's theme editor files, 219 s together, the three heaviest as named: verified.
  • Claim: the other 36 were already unrecorded before #11595: verified.
  • Claim: 21 entries re-timed that were more than 1.5× off by at least 5 s, with the four quoted examples: verified.
  • Claim: swizzle-proof slices keep their largest time: verified.
  • Claim: every other entry is left as it is: verified.
  • Claim: the source is the Main validation run at #11595's merge commit, with all six Node legs passing: verified.
  • Claim: the per-leg table of files, medians and a factor of 1: verified (the files-with-a-record column counts records above 0).
  • Claim: no leg ran slow, so every time is written as measured: verified.
  • Claim: theme-real-bases is 26.5 s from #11592's run, the file as it is on main now: verified.
  • Claim: the leg-1 replay, 14.5 to 11.7 min, and legs 2–5: verified.
  • Claim: #11592 is merged and in this branch: verified.
  • Claim: #11617 adds one adjacent entry, so the second to land needs a one-line merge: verified.
  • Claim: #11648 re-records the file from a pull-request run, changes the recorder, conflicts with this branch and differs by more than half on 16 shared entries: verified.
  • Claim: the overlap search found only #11617 and #11648: verified.
  • Claim: no job, test, budget or timeout changes: verified.
  • File: scripts/vitest-node-durations.json: clear.

Automated review (maintainer link)

@cixzhang
cixzhang marked this pull request as ready for review November 14, 2026 04:10
@cixzhang
cixzhang merged commit 8b4b142 into main Nov 14, 2026
181 of 183 checks passed
@github-actions
github-actions Bot deleted the data/rerecord-node-durations branch November 14, 2026 06:03

This branch was successfully deployed

1 active deployment
Preview — b6b98eac 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