Repository navigation
test: record Node test times for the files that had none - #11896
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
josephfarina
requested review from
cixzhang and
imdreamrunner
as code owners
November 15, 2026 16:41
Contributor
|
AI review status for this pull request.
|
Contributor
There was a problem hiding this comment.
Approved pending CI: CI has not finished on this head yet.
The regenerated record leaves 12 of 1,381 Node test files without a recorded time, inside the 10% staleness bound, and the leg plan fits: 8 legs, the longest 1,309 s against a 1,387 s budget. No changes are needed. Note that the plan now sits at the eight-leg ceiling with about 620 s of headroom, so further growth of the Node suite will need faster tests rather than another refresh.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Claim: on main, 141 of 1,381 Node test files have no recorded time, so the staleness test fails: verified, 141/1,381 is 10.2%, over the test's 10% bound (
scripts/vitest-shard-sequencer.test.mjs:73-84). - Claim: every pull request's Node legs fail on that test: verified for every pull request that runs the Node legs, since the test reads files and scoped runs always include it as a guard; which leg holds it depends on the run's file list, and docsite-only and spec-only pull requests skip the Node legs.
- Claim: the record was regenerated with the sequencer's
recordcommand from one run's seven Node-leg logs: consistent, since the key order, 0.1 s values, unchanged metadata and kept entries match what the recorder writes; the run is not named, so it was not replayed. - Claim: no other file changes: verified.
- Claim: the record now covers all but 12 of 1,381 Node test files: verified.
- Claim: the sequencer and leg-planner test files pass, 31 of 31: verified at this head.
- Claim: the planner now plans 10,470 s in 8 legs (longest 1,309 s, budget 1,387 s), against 9,418 s in 7 legs before: verified in both trees and in this head's CI plan.
- Claim: only the test-time record changes, so product behavior is unchanged: verified.
- Claim: legs will finish closer to plan: verified in mechanism, since each leg splits by these same measured times; the wall-time gain shows only when the legs run.
- File:
scripts/vitest-node-durations.json: clear.
3 tasks done
4 tasks done
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Maintainer impact
Every pull request's first Node test leg fails at
scripts/vitest-shard-sequencer.test.mjs("keeps a recorded time for nine in ten of the Node project's test files"): 141 of the 1,381 Node test files onmainhave no recorded time, so the record is past its staleness bound and no pull request can passtest.Intended invariant
The Node test record holds a time for at least nine in ten Node test files, and the leg planner plans from those times (
scripts/vitest-shard-sequencer.mjs,scripts/vitest-node-legs.mjs).Change
Regenerates
scripts/vitest-node-durations.jsonwithnode scripts/vitest-shard-sequencer.mjs record, from the seven Node-leg logs of one recent pull-request run (one merge tree withmain). No other file changes.Evidence
main,vitest run scripts/vitest-shard-sequencer.test.mjsfails with "141 Node test files have no recorded time".scripts/vitest-shard-sequencer.test.mjsandscripts/vitest-node-legs.test.mjspass (31 / 31).Scope
Components: test tooling (Node test record)
Testing
node scripts/vitest-shard-sequencer.mjs record <the seven Node-leg logs>vitest run scripts/vitest-shard-sequencer.test.mjs scripts/vitest-node-legs.test.mjs: 2 files, 31 tests pass.node scripts/vitest-node-legs.mjs plan: 8 legs, every leg fits.