Repository navigation
test: re-record the Node legs' times from a full run that includes the new theme editor tests - #11644
Conversation
…e new theme editor tests
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report🔎 Preview ·
|
There was a problem hiding this comment.
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.jsonand 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.mjsis 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
recordDurationsandmergeRecord: 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
mainrun 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.mjsis 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.
…rations # Conflicts: # scripts/vitest-node-durations.json
There was a problem hiding this comment.
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 onlytheme-hunt82came 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.
There was a problem hiding this comment.
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:
legOneStepsand$commentstay as onmain: 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-basesis 26.5 s from #11592's run, the file as it is onmainnow: 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.
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 ofseconds, written through the record's ownrecordDurationsandmergeRecord(scripts/vitest-shard-sequencer.mjs). Nothing else in the file changes: #11592'slegOneStepsand the$commentstay as onmain.theme-hunt8231.8 s,theme-hunt7827.6 s,theme-parts4418.8 s). The other 36 were already unrecorded onmainbefore experimental theme: measured how answers, state and one-mode settings, app copy on every compile, input labels, preview stops #11595.theme-how.test.mjs33.1 → 55.7 s,theme-hunt5161.2 → 295.3 s,packed-gather-cache.records184.6 → 103.1 s,packed-gather-cache.changes182.9 → 115.5 s. Swizzle-proof slices keep their largest time, as the record's merge always does.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):
No leg ran slow, so every time is written as measured.
One entry from another run:
theme-real-bases.test.mjsis 26.5 s from #11592's CI run (43538834019). #11592 moved its render case out of the Node shard, somain's Main validation (before #11592) timed the old file; 26.5 s is the time of the file as it is onmainnow.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:main's recordLand 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-timedpacked-gather-cache.changesentry; 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 nodetests (setup-canonical.test.ts,next.turbopack.test.mjsand two browser tests) to Node legs that never run them.main's validation run, so nothing is dropped, and leg 1 stays at 11.7 min.mainin and keeps the other's data lines where they don't overlap.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.
mainpackages/build/src/babel.test.mjscli/api/build/kit/shellcall.test.mjscli/api/search/search.test.mjstheme-edit/theme-hunt17.test.mjstheme-edit/theme-hunt28.test.mjstheme-edit/theme-hunt5.test.mjstheme-edit/theme-hunt56.test.mjstheme-edit/theme-hunt60.test.mjstheme-edit/theme-hunt63.test.mjstheme-edit/theme-hunt67.test.mjstheme-edit/theme-hunt68.test.mjstheme-edit/theme-palette.test.mjstheme-edit/theme-parts43.test.mjstheme-edit/theme-real-bases.test.mjstheme-edit/theme-stress.test.mjscli/clients/cli/commands/interactive-guard.test.mjscli/test/packed-gather-cache.changes.test.mjscli/test/packed-gather-cache.installed.test.mjscli/test/packed-gather-cache.malformed.test.mjscli/test/packed-gather-cache.records.test.mjsOverlap 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.