Skip to content

test: record Node test times for the files that had none - #11896

Merged
josephfarina merged 1 commit into
mainfrom
test-node-record-refresh
Nov 15, 2026
Merged

josephfarina merged 1 commit into
mainfrom
test-node-record-refresh

Conversation

@josephfarina

Copy link
Copy Markdown
Contributor

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 on main have no recorded time, so the record is past its staleness bound and no pull request can pass test.

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.json with node scripts/vitest-shard-sequencer.mjs record, from the seven Node-leg logs of one recent pull-request run (one merge tree with main). No other file changes.

Evidence

  • Failure before the change: on main, vitest run scripts/vitest-shard-sequencer.test.mjs fails with "141 Node test files have no recorded time".
  • Success after the change: the record covers all but 12 of 1,381 Node test files; scripts/vitest-shard-sequencer.test.mjs and scripts/vitest-node-legs.test.mjs pass (31 / 31).
  • Product/runtime behavior verified unchanged: only the test-time record changes.
  • CI impact: the planner now plans 10,470 s of Node tests in 8 legs (longest 1,309 s against a 1,387 s budget a leg), where the stale record planned 9,418 s in 7 legs. The new times are the measured CI times, so legs finish closer to plan.

Scope

Components: test tooling (Node test record)

  • No intended public API, product behavior, visual direction, or policy change.
  • Product changes discovered during the work were removed or split.
  • Public text and artifacts contain no internal Meta context.

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.

@vercel

vercel Bot commented Nov 15, 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 15, 2026 4:49pm UTC

Request Review

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

astracat-bot Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 15, 2026, 4:58 PM 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.

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 record command 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.

Automated review (maintainer link)

@josephfarina
josephfarina merged commit 344ec5b into main Nov 15, 2026
75 checks passed
@github-actions
github-actions Bot deleted the test-node-record-refresh branch November 16, 2026 06:04

This branch was successfully deployed

1 active deployment
Preview — 7fd2237b Deployed Nov 15, 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