Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

ci: Node test legs split the suite by recorded file time, so the slowest files never share a leg (AST-030 FR22) (#9283)

Cindy Zhangf0b22eeb8c59
diff --git a/.github/scripts/a11y-contract-shard.mjs b/.github/scripts/a11y-contract-shard.mjs
index 6ae6f7e0c5..5fc81c440e 100644
--- a/.github/scripts/a11y-contract-shard.mjs
+++ b/.github/scripts/a11y-contract-shard.mjs
@@ -15,7 +15,8 @@
* assigns every listed test to exactly one leg, choosing the split that
* finishes soonest when each leg runs its files in path order on its
* workers, using the recorded seconds (a test with none counts as its
- * file's average, or the median). The numbers only steer balance; coverage
+ * file's average, or the median of scripts/lib/duration-split.mjs). The
+ * numbers only steer balance; coverage
* never depends on them, and the partition proves every test is selected
* by exactly one leg's list. A file longer than one leg's fair share is cut
* into consecutive runs of its tests, each in a different leg, so the
@@ -29,6 +30,7 @@ import {execFileSync} from 'node:child_process';
import fs from 'node:fs';
import path from 'node:path';
import {fileURLToPath, pathToFileURL} from 'node:url';
+import {medianOf} from '../../scripts/lib/duration-split.mjs';
const ROOT = path.resolve(
path.dirname(fileURLToPath(import.meta.url)),
@@ -146,10 +148,7 @@ export function partitionTests(tests, count, recorded, readSource = () => '') {
if (!byFile.has(test.file)) byFile.set(test.file, []);
byFile.get(test.file).push(test);
}
- const known = Object.values(perTest)
- .filter(value => value > 0)
- .sort((a, b) => a - b);
- const median = known.length > 0 ? known[Math.floor(known.length / 2)] : 1;
+ const median = medianOf(Object.values(perTest).filter(value => value > 0));
const seconds = test => {
if (perTest[testKey(test)] > 0) return perTest[testKey(test)];
const file = perFile[test.file];
diff --git a/docs/specs/AST-030/spec.md b/docs/specs/AST-030/spec.md
index 0ba73a9f30..3d72b37bf2 100644
--- a/docs/specs/AST-030/spec.md
+++ b/docs/specs/AST-030/spec.md
@@ -395,15 +395,19 @@ they are separately named.
- **FR22 — Main's full unit run finishes in minutes.** The Main workflow runs
every Vitest leg of `main`'s full unit run at once, with no `max-parallel`
hold: six UI legs and six Node legs beside the build-and-typecheck lane, each
- inside the fifteen-minute job budget (DEC-17). A dispatch may name `sha`, a
- commit in `main`'s history that has the size records the build lane keeps, and
- every lane checks that commit out; without it the run validates `main`'s tip.
- A `sha` run waits for no other validation and replaces nothing; like every
- Main run, it waits for room under CI's ceiling (FR16). One validation of
- `main` runs at a time and a newer one waits. Only a release re-check, which
- the workflow token sends with `recheck` and no `sha`, cancels the running
- validation, because the re-check validates `main`'s tip in full itself.
- Pull-request legs keep their shape.
+ inside the fifteen-minute job budget (DEC-17). Node legs, here and on a pull
+ request, split the files by their recorded test time rather than by count, so
+ the slowest files never share a leg and the slowest single file sets the
+ floor; a file with no recorded time counts as the median, and which files run
+ never depends on the times. A dispatch may name `sha`, a commit in `main`'s
+ history that has the size records the build lane keeps, and every lane checks
+ that commit out; without it the run validates `main`'s tip. A `sha` run waits
+ for no other validation and replaces nothing; like every Main run, it waits
+ for room under CI's ceiling (FR16). One validation of `main` runs at a time
+ and a newer one waits. Only a release re-check, which the workflow token sends
+ with `recheck` and no `sha`, cancels the running validation, because the
+ re-check validates `main`'s tip in full itself. Pull-request legs keep their
+ shape.
- **FR23 — A release-check finishes in minutes, and the release owner can
re-check `main`'s tip at once.** A release-check runs its browser owners in
@@ -456,25 +460,25 @@ The nightly perf lane is the one scheduled measurement outside them (FR18).
## Verification
-| Contract | Verification | Representative states | Mutation or failure expectation |
-| -------- | ------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| FR1–FR2 | classifier unit tests expose the surface set | knowledge; docsite; admitted tool; Core/Lab/Charts/Rich Text/Vega source; shared config; unknown | an unclassified path receives a specialized lane or a category has no check owner |
-| FR3–FR4 | workflow contract tests execute an isolated trusted-base classifier | valid base; missing merge base; missing matcher/registry; classifier self-change; merge group | PR-controlled policy grants a lane, or missing trust data skips checks |
-| FR5 | mixed-surface and incomplete-owner routing tests | spec+component; tooling+component; named surface without admitted lane; docsite+shared | one surface hides another owner or a named-but-incomplete surface skips broad CI |
-| FR6–FR8 | Node-tooling dependency, CI workflow, and trusted post-CI workflow tests | both admitted score-ledger paths; Sandbox projection imports; test/build joins; preview/visual publisher | UI/browser/build work or preview publication runs for the singleton tool set, an operational consumer is untested, a visual status stays pending, or a required context disappears |
-| FR9 | mutation-sensitive classifier and workflow fixtures | unknown path; rename from unknown; truncated list; package-specific public paths | weakening a fail-closed rule leaves the suite green |
-| FR10 | surface-admission and routing contract tests | existing surface; proposed surface with and without the full admission contract | a new surface adds lanes without its approved paths, commands, ownership, projections, and routing tests |
-| FR11 | surface owner, internal-job, and required-join contract tests | Build package browser behavior; CLI; theme-family broad fallback; mixed Core+CLI | a second owner is routed for one surface, an internal job masquerades as a lane, an owned failure misses its join, or an unrelated owner runs |
-| FR12 | Storybook visual-plan, canonical workflow, and repository-owner guard tests | PR scope; full-plan maintenance; report-only publication; deployment/a11y/RTL/vibe artifacts | another workflow captures or compares pixels, a renamed or aliased owner escapes the guard, or legitimate non-visual artifacts are rejected |
-| FR13 | classifier, workflow contract, component-analysis and RTL-scope tests | component change; shared module; Changeset beside code; infrastructure path; incomplete list; no build | an infrastructure path is scoped, a file-system guard test is skipped, a reverse dependent leaves visual/RTL or enters PR accessibility, or a full-suite event is narrowed |
-| FR14 | `workflow-paths.test.mjs` over every workflow | path allowlist; required-context workflow | a `paths-ignore`, a match-all or exclusion glob, or a path filter on a workflow that reports a required context fails |
-| FR15 | workflow contract and reconciler tests | ENGOWNER spec PR; owner command; other comment; fork review; non-spec PR; run over the request budget; maintainer dispatch | `review-required` succeeds while spec approval is missing, another workflow publishes a review context, a fork review starts the spec checks, a non-command comment starts a runner, or an over-budget run decides |
-| FR16 | `heavy-caps-action.test.mjs` cap cases and heavy-job contract; `ci-admission.test.mjs` | sixteenth-oldest PR; 101st heavy run of the day, beside cancelled, light and other-branch runs; agent lane and its five-PR and forty-run backstops; an engineering owner, including the shared login past those backstops, a commented-out or trailing-comment handle and an unreadable roster; bot; the deciding run; re-run; failed lookup; a run with room, without room, past its longest wait, beside a waiting `main` check, as a draft or unlabelled fork, with opt-in labels, beside small workflows past their measured most, and with the API unreadable; each workflow's most jobs; every required context's rule | a heavy suite that runs ahead of the author's fifteen oldest PRs, or past the daily cap, a capped job that passes, an engineering owner or a re-run that is held, or a roster read from the pull request's head, a run that starts without room before its longest wait, a pull-request run that starts while `main` waits, a job admission could skip, or a peak below the jobs its run holds fails |
-| FR17 | `ci-pr-gate.test.mjs` over every `pull_request` workflow and the shared conditions | branch here, fork with and without `ci:run`, another label, draft with the label, ready, push, merge group, dispatch | a job that can start on a pull request without the condition, a label trigger, a required job that skips for a pull request that may not run CI, or a draft or unlabelled fork that runs fails |
-| FR18 | `perf-nightly-workflow.test.mjs`, `perf-trend.test.mjs` and `run-labels.test.mjs` | nightly and dispatch; labelled, unlabelled, draft and unvouched-fork pull requests; write, read and no access; newest label event; failed lookup; 10% boundary; metric floors; seven-day window edges; fewer than three runs; a metric over once, twice in a row, or a different metric before; recorded and pull request runs | a run on an unlabelled pull request, a label honoured from read access, a regression called at exactly 10%, under its floor or on one run alone, a run outside the window in the baseline, a pull request run that records, or a second regression issue fails |
-| FR19 | `ci-impact.test.mjs`, `pr-preview.test.mjs` and the maintenance template | CI change and non-CI change; standard, non-standard and expression runners; added, removed and changed jobs; trigger change | a CI change reports no impact, a move onto a non-standard runner or a pool or time-to-green rise past its threshold goes unflagged, or the section names a price |
-| FR22 | `main-validation-workflow.test.mjs` over the Main workflow and its commit resolver | six UI and six Node legs; dispatch without a commit, with a commit in main's history, with a commit outside it and with a malformed one; a re-check from the workflow token and from a person, and one that names `sha`; a `sha` before the size records, and one of only spaces | a hold, a leg past the fifteen-minute budget, a commit outside main's history that validates, a person's dispatch or a `sha` run that cancels or replaces a validation of main, a `sha` lane that checks out another commit, or a `sha` run named for main's tip fails |
-| FR23 | `release-check-shape.test.mjs`, `a11y-contract-shard.test.mjs` and the release-check workflow contract | release-check and pull-request legs; a contract file longer than a leg's share, one it cannot name exactly, and a serial one; the recorded suite; a re-check from an admin, a maintainer and a writer, from another branch, with a short SHA and with an older commit; failed-only beside a passed, a running and a missing run | a narrower release-check, a held or over-budget leg, a test selected by no leg or by two, a re-check that a writer can start, that waits for main's running check, or that re-runs jobs of another commit fails |
+| Contract | Verification | Representative states | Mutation or failure expectation |
+| -------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| FR1–FR2 | classifier unit tests expose the surface set | knowledge; docsite; admitted tool; Core/Lab/Charts/Rich Text/Vega source; shared config; unknown | an unclassified path receives a specialized lane or a category has no check owner |
+| FR3–FR4 | workflow contract tests execute an isolated trusted-base classifier | valid base; missing merge base; missing matcher/registry; classifier self-change; merge group | PR-controlled policy grants a lane, or missing trust data skips checks |
+| FR5 | mixed-surface and incomplete-owner routing tests | spec+component; tooling+component; named surface without admitted lane; docsite+shared | one surface hides another owner or a named-but-incomplete surface skips broad CI |
+| FR6–FR8 | Node-tooling dependency, CI workflow, and trusted post-CI workflow tests | both admitted score-ledger paths; Sandbox projection imports; test/build joins; preview/visual publisher | UI/browser/build work or preview publication runs for the singleton tool set, an operational consumer is untested, a visual status stays pending, or a required context disappears |
+| FR9 | mutation-sensitive classifier and workflow fixtures | unknown path; rename from unknown; truncated list; package-specific public paths | weakening a fail-closed rule leaves the suite green |
+| FR10 | surface-admission and routing contract tests | existing surface; proposed surface with and without the full admission contract | a new surface adds lanes without its approved paths, commands, ownership, projections, and routing tests |
+| FR11 | surface owner, internal-job, and required-join contract tests | Build package browser behavior; CLI; theme-family broad fallback; mixed Core+CLI | a second owner is routed for one surface, an internal job masquerades as a lane, an owned failure misses its join, or an unrelated owner runs |
+| FR12 | Storybook visual-plan, canonical workflow, and repository-owner guard tests | PR scope; full-plan maintenance; report-only publication; deployment/a11y/RTL/vibe artifacts | another workflow captures or compares pixels, a renamed or aliased owner escapes the guard, or legitimate non-visual artifacts are rejected |
+| FR13 | classifier, workflow contract, component-analysis and RTL-scope tests | component change; shared module; Changeset beside code; infrastructure path; incomplete list; no build | an infrastructure path is scoped, a file-system guard test is skipped, a reverse dependent leaves visual/RTL or enters PR accessibility, or a full-suite event is narrowed |
+| FR14 | `workflow-paths.test.mjs` over every workflow | path allowlist; required-context workflow | a `paths-ignore`, a match-all or exclusion glob, or a path filter on a workflow that reports a required context fails |
+| FR15 | workflow contract and reconciler tests | ENGOWNER spec PR; owner command; other comment; fork review; non-spec PR; run over the request budget; maintainer dispatch | `review-required` succeeds while spec approval is missing, another workflow publishes a review context, a fork review starts the spec checks, a non-command comment starts a runner, or an over-budget run decides |
+| FR16 | `heavy-caps-action.test.mjs` cap cases and heavy-job contract; `ci-admission.test.mjs` | sixteenth-oldest PR; 101st heavy run of the day, beside cancelled, light and other-branch runs; agent lane and its five-PR and forty-run backstops; an engineering owner, including the shared login past those backstops, a commented-out or trailing-comment handle and an unreadable roster; bot; the deciding run; re-run; failed lookup; a run with room, without room, past its longest wait, beside a waiting `main` check, as a draft or unlabelled fork, with opt-in labels, beside small workflows past their measured most, and with the API unreadable; each workflow's most jobs; every required context's rule | a heavy suite that runs ahead of the author's fifteen oldest PRs, or past the daily cap, a capped job that passes, an engineering owner or a re-run that is held, or a roster read from the pull request's head, a run that starts without room before its longest wait, a pull-request run that starts while `main` waits, a job admission could skip, or a peak below the jobs its run holds fails |
+| FR17 | `ci-pr-gate.test.mjs` over every `pull_request` workflow and the shared conditions | branch here, fork with and without `ci:run`, another label, draft with the label, ready, push, merge group, dispatch | a job that can start on a pull request without the condition, a label trigger, a required job that skips for a pull request that may not run CI, or a draft or unlabelled fork that runs fails |
+| FR18 | `perf-nightly-workflow.test.mjs`, `perf-trend.test.mjs` and `run-labels.test.mjs` | nightly and dispatch; labelled, unlabelled, draft and unvouched-fork pull requests; write, read and no access; newest label event; failed lookup; 10% boundary; metric floors; seven-day window edges; fewer than three runs; a metric over once, twice in a row, or a different metric before; recorded and pull request runs | a run on an unlabelled pull request, a label honoured from read access, a regression called at exactly 10%, under its floor or on one run alone, a run outside the window in the baseline, a pull request run that records, or a second regression issue fails |
+| FR19 | `ci-impact.test.mjs`, `pr-preview.test.mjs` and the maintenance template | CI change and non-CI change; standard, non-standard and expression runners; added, removed and changed jobs; trigger change | a CI change reports no impact, a move onto a non-standard runner or a pool or time-to-green rise past its threshold goes unflagged, or the section names a price |
+| FR22 | `main-validation-workflow.test.mjs` over the Main workflow and its commit resolver; `vitest-shard-sequencer.test.mjs` over the recorded Node times | six UI and six Node legs; dispatch without a commit, with a commit in main's history, with a commit outside it and with a malformed one; a re-check from the workflow token and from a person, and one that names `sha`; a `sha` before the size records, and one of only spaces; four and six Node legs over the recorded suite, a file with no recorded time, a project other than `node` | a hold, a leg past the fifteen-minute budget, a commit outside main's history that validates, a person's dispatch or a `sha` run that cancels or replaces a validation of main, a `sha` lane that checks out another commit, or a `sha` run named for main's tip, or two of the slowest Node files in one leg, a file run by no leg or by two, or a split that depends on collection order fails |
+| FR23 | `release-check-shape.test.mjs`, `a11y-contract-shard.test.mjs` and the release-check workflow contract | release-check and pull-request legs; a contract file longer than a leg's share, one it cannot name exactly, and a serial one; the recorded suite; a re-check from an admin, a maintainer and a writer, from another branch, with a short SHA and with an older commit; failed-only beside a passed, a running and a missing run | a narrower release-check, a held or over-budget leg, a test selected by no leg or by two, a re-check that a writer can start, that waits for main's running check, or that re-runs jobs of another commit fails |
## Decision log
diff --git a/scripts/lib/duration-split.mjs b/scripts/lib/duration-split.mjs
new file mode 100644
index 0000000000..c4ab0d1c73
--- /dev/null
+++ b/scripts/lib/duration-split.mjs
@@ -0,0 +1,68 @@
+// Copyright (c) Meta Platforms, Inc. and affiliates.
+
+/**
+ * @file Splitting test files across legs by recorded time.
+ * @input Items (file paths), recorded seconds per item, a leg count.
+ * @output Each item's cost, legs that together hold every item exactly once,
+ * and slowest-first order.
+ * @position The Node leg sequencer (scripts/vitest-shard-sequencer.mjs) splits
+ * by it; the accessibility contract legs (.github/scripts/a11y-contract-shard.mjs),
+ * which split single tests, share its median for a test with no recorded
+ * time. The numbers only steer balance; which items run never depends on
+ * them.
+ */
+
+/** The median of recorded times, or 1 when there are none. */
+export function medianOf(values) {
+ const sorted = [...values].sort((a, b) => a - b);
+ return sorted.length > 0 ? sorted[Math.floor(sorted.length / 2)] : 1;
+}
+
+/**
+ * Seconds per item: its recorded time, a recorded 0 included, or the median of
+ * the recorded times of `items` when it has none (1 when none are recorded).
+ * @param {string[]} items
+ * @param {Record<string, number>} seconds
+ * @returns {(item: string) => number}
+ */
+export function costOf(items, seconds) {
+ const has = item =>
+ Object.hasOwn(seconds, item) && Number.isFinite(seconds[item]);
+ const median = medianOf(items.filter(has).map(item => seconds[item]));
+ return item => (has(item) ? seconds[item] : median);
+}
+
+/** Slowest first, ties by path: the same order whatever order items came in. */
+export function slowestFirst(items, cost) {
+ return [...items].sort((a, b) => cost(b) - cost(a) || a.localeCompare(b));
+}
+
+/** Throws unless `legs` together hold every item of `items` exactly once. */
+export function assertEachOnce(items, legs, what = 'item') {
+ const placed = legs.flat();
+ const unique = new Set(items);
+ if (placed.length !== unique.size || new Set(placed).size !== unique.size)
+ throw new Error(`The leg split lost or repeated a ${what}.`);
+ for (const item of placed)
+ if (!unique.has(item))
+ throw new Error(`The leg split added a ${what}: ${item}.`);
+}
+
+/**
+ * Splits items into `count` legs, slowest first, each to the leg with the
+ * least time so far.
+ * @returns {string[][]} each leg's items, sorted; together exactly `items`
+ */
+export function splitByDuration(items, count, cost) {
+ const legs = Array.from({length: count}, () => ({items: [], total: 0}));
+ for (const item of slowestFirst(new Set(items), cost)) {
+ const leg = legs.reduce((best, next) =>
+ next.total < best.total ? next : best,
+ );
+ leg.items.push(item);
+ leg.total += cost(item);
+ }
+ const result = legs.map(leg => leg.items.sort());
+ assertEachOnce(items, result, 'file');
+ return result;
+}
diff --git a/scripts/lib/duration-split.test.mjs b/scripts/lib/duration-split.test.mjs
new file mode 100644
index 0000000000..ebbffcde81
--- /dev/null
+++ b/scripts/lib/duration-split.test.mjs
@@ -0,0 +1,78 @@
+// Copyright (c) Meta Platforms, Inc. and affiliates.
+
+import fs from 'node:fs';
+import path from 'node:path';
+import {fileURLToPath} from 'node:url';
+import {describe, expect, it} from 'vitest';
+import {
+ assertEachOnce,
+ costOf,
+ medianOf,
+ slowestFirst,
+ splitByDuration,
+} from './duration-split.mjs';
+
+const ROOT = path.resolve(
+ path.dirname(fileURLToPath(import.meta.url)),
+ '../..',
+);
+
+describe('splitting test files by recorded time', () => {
+ it('uses a recorded time, a recorded 0 included, and the median otherwise', () => {
+ const cost = costOf(['a', 'b', 'c', 'zero', 'new'], {
+ a: 10,
+ b: 4,
+ c: 1,
+ zero: 0,
+ });
+ expect([cost('a'), cost('zero'), cost('new')]).toEqual([10, 0, 4]);
+ expect(costOf(['x'], {})('x')).toBe(1);
+ });
+
+ it('orders slowest first, ties by path, whatever order items came in', () => {
+ const cost = costOf(['b', 'a', 'c'], {a: 2, b: 2, c: 5});
+ expect(slowestFirst(['b', 'a', 'c'], cost)).toEqual(['c', 'a', 'b']);
+ expect(slowestFirst(['c', 'b', 'a'], cost)).toEqual(['c', 'a', 'b']);
+ });
+
+ it('puts every item in exactly one leg, the slowest ones apart', () => {
+ const seconds = {a: 9, b: 8, c: 3, d: 3, e: 2, f: 1};
+ const legs = splitByDuration(
+ Object.keys(seconds),
+ 2,
+ costOf(Object.keys(seconds), seconds),
+ );
+ expect(legs.flat().sort()).toEqual(Object.keys(seconds).sort());
+ expect(legs.findIndex(leg => leg.includes('a'))).not.toBe(
+ legs.findIndex(leg => leg.includes('b')),
+ );
+ });
+
+ it('refuses a split that lost, repeated or added an item', () => {
+ expect(() => assertEachOnce(['a', 'b'], [['a'], []])).toThrow(
+ 'lost or repeated',
+ );
+ expect(() => assertEachOnce(['a', 'b'], [['a', 'b'], ['a']])).toThrow(
+ 'lost or repeated',
+ );
+ expect(() => assertEachOnce(['a', 'b'], [['a'], ['c']])).toThrow('added');
+ expect(() => assertEachOnce(['a', 'b'], [['b'], ['a']])).not.toThrow();
+ });
+
+ it('gives the Node legs their split and the contract legs their median', () => {
+ expect(medianOf([5, 1, 3])).toBe(3);
+ expect(medianOf([])).toBe(1);
+ const read = file => fs.readFileSync(path.join(ROOT, file), 'utf8');
+ expect(read('scripts/vitest-shard-sequencer.mjs')).toMatch(
+ /import \{[^}]*splitByDuration[^}]*\} from '\.\/lib\/duration-split\.mjs'/,
+ );
+ expect(read('.github/scripts/a11y-contract-shard.mjs')).toMatch(
+ /import \{medianOf\} from '\.\.\/\.\.\/scripts\/lib\/duration-split\.mjs'/,
+ );
+ for (const file of [
+ 'scripts/vitest-shard-sequencer.mjs',
+ '.github/scripts/a11y-contract-shard.mjs',
+ ])
+ expect(read(file), file).not.toMatch(/known\[Math\.floor/);
+ });
+});
diff --git a/scripts/vitest-node-durations.json b/scripts/vitest-node-durations.json
new file mode 100644
index 0000000000..cef19320e6
--- /dev/null
+++ b/scripts/vitest-node-durations.json
@@ -0,0 +1,836 @@
+{
+ "$comment": "Seconds of test time per Node test file, from the Node legs of one full Main run. Only how scripts/vitest-shard-sequencer.mjs balances legs depends on these numbers; a missing or stale entry never drops or repeats a file. Regenerate from a full Main run: gh run view <run> --repo meta/astryx --log > main.log && node scripts/vitest-shard-sequencer.mjs record main.log",
+ "source": "recorded Node leg logs",
+ "seconds": {
+ ".github/scripts/a11y-contract-shard.test.mjs": 0,
+ ".github/scripts/a11y-pr-contracts.test.mjs": 0.4,
+ ".github/scripts/a11y-pr-scope.test.mjs": 1.1,
+ ".github/scripts/accessibility-audit.integration.test.mjs": 3.3,
+ ".github/scripts/accessibility-audit.test.mjs": 3.7,
+ ".github/scripts/analyze-pr.test.mjs": 4.8,
+ ".github/scripts/build-packages-and-storybook.test.mjs": 0,
+ ".github/scripts/change-scope.test.mjs": 0,
+ ".github/scripts/ci-docsite-browser.test.mjs": 4.1,
+ ".github/scripts/ci-duration-guard.test.mjs": 0,
+ ".github/scripts/ci-free-runners.test.mjs": 0,
+ ".github/scripts/ci-heavy-lanes.test.mjs": 0,
+ ".github/scripts/ci-interaction-webkit.test.mjs": 0.2,
+ ".github/scripts/ci-interaction.test.mjs": 0,
+ ".github/scripts/ci-lint-scope.test.mjs": 0.6,
+ ".github/scripts/ci-merge-back-scope.test.mjs": 0,
+ ".github/scripts/ci-native-swift.test.mjs": 0,
+ ".github/scripts/ci-native-typecheck.test.mjs": 0,
+ ".github/scripts/ci-no-dependency-cache.test.mjs": 0.4,
+ ".github/scripts/ci-package-size-predating-head.test.mjs": 0.1,
+ ".github/scripts/ci-pr-gate.test.mjs": 0,
+ ".github/scripts/ci-rtl-d7.test.mjs": 0,
+ ".github/scripts/ci-test-join.test.mjs": 1.2,
+ ".github/scripts/ci-test-routing.test.mjs": 0.2,
+ ".github/scripts/ci-tooling-routing.test.mjs": 0.1,
+ ".github/scripts/component-audit-scope.test.mjs": 0,
+ ".github/scripts/component-design-decisions.test.mjs": 0,
+ ".github/scripts/disabled-cursor-audit.test.mjs": 1.2,
+ ".github/scripts/disabled-hover-audit.test.mjs": 0.9,
+ ".github/scripts/fs-guard-tests.test.mjs": 0.8,
+ ".github/scripts/generate-pr-comment.test.mjs": 0.7,
+ ".github/scripts/heavy-caps-action.test.mjs": 0.3,
+ ".github/scripts/knowledge-paths.test.mjs": 0,
+ ".github/scripts/lib/a11y-baseline.test.mjs": 0,
+ ".github/scripts/lib/a11y-format.test.mjs": 0,
+ ".github/scripts/lib/a11y-shards.test.mjs": 0,
+ ".github/scripts/lib/a11y-story-identity.test.mjs": 0.4,
+ ".github/scripts/lib/a11y-story-readiness.test.mjs": 0,
+ ".github/scripts/lib/cdn-asset-priming.test.mjs": 0,
+ ".github/scripts/lib/cdn-page-render.test.mjs": 0,
+ ".github/scripts/lib/cdn-version.test.mjs": 0,
+ ".github/scripts/lib/ci-impact.test.mjs": 0.1,
+ ".github/scripts/lib/classify-visual.test.mjs": 0,
+ ".github/scripts/lib/component-size.test.mjs": 0.1,
+ ".github/scripts/lib/main-artifact.test.mjs": 0,
+ ".github/scripts/lib/package-size.test.mjs": 1.4,
+ ".github/scripts/lib/pr-preview-imports.test.mjs": 0,
+ ".github/scripts/lib/pr-preview.test.mjs": 0.7,
+ ".github/scripts/lib/pr-status.test.mjs": 0.1,
+ ".github/scripts/lib/rate-limit-backoff.test.mjs": 0.1,
+ ".github/scripts/lib/report-text.test.mjs": 0,
+ ".github/scripts/main-validation-workflow.test.mjs": 0,
+ ".github/scripts/merge-base.test.mjs": 0.3,
+ ".github/scripts/pages-landing.test.mjs": 0.3,
+ ".github/scripts/pr-concurrency.test.mjs": 0,
+ ".github/scripts/prebuilt-data-routing.test.mjs": 0.2,
+ ".github/scripts/release-check-workflow.test.mjs": 0.4,
+ ".github/scripts/release-publish-workflow.test.mjs": 2.4,
+ ".github/scripts/review-clear-workflow.test.mjs": 0,
+ ".github/scripts/review-signal-decision.test.mjs": 0,
+ ".github/scripts/review-signal-workflow.test.mjs": 0.1,
+ ".github/scripts/rtl-audit-cli.test.mjs": 3.1,
+ ".github/scripts/rtl-audit-coverage.test.mjs": 0.5,
+ ".github/scripts/rtl-audit-pool.test.mjs": 0.2,
+ ".github/scripts/rtl-audit-shards.test.mjs": 0,
+ ".github/scripts/rtl-join.test.mjs": 0.1,
+ ".github/scripts/rtl-report-completion.test.mjs": 0.1,
+ ".github/scripts/rtl-scorecard-failures.test.mjs": 0.5,
+ ".github/scripts/rtl-scorecard-summary.test.mjs": 0.1,
+ ".github/scripts/rtl-shard-scope.test.mjs": 0.4,
+ ".github/scripts/run-labels.test.mjs": 0,
+ ".github/scripts/shadcn-registry-ci.test.mjs": 0,
+ ".github/scripts/spec-owner-decision.test.mjs": 0,
+ ".github/scripts/spec-owner-reconcile.test.mjs": 0.2,
+ ".github/scripts/spec-owner-workflow.test.mjs": 0.1,
+ ".github/scripts/test-scope-action.test.mjs": 1.1,
+ ".github/scripts/tooling-surface-contract.test.mjs": 0.2,
+ ".github/scripts/touched-components.test.mjs": 0.2,
+ ".github/scripts/visual-gate/gate-accept.test.mjs": 2.8,
+ ".github/scripts/visual-gate/gate-context.test.mjs": 63,
+ ".github/scripts/visual-gate/lib/baseline.test.mjs": 0.2,
+ ".github/scripts/visual-gate/lib/canonical-png.test.mjs": 0,
+ ".github/scripts/visual-gate/lib/capture.test.mjs": 0.2,
+ ".github/scripts/visual-gate/lib/compare.test.mjs": 0.8,
+ ".github/scripts/visual-gate/lib/plan.test.mjs": 0.1,
+ ".github/scripts/visual-gate/lib/probe-theme.test.mjs": 0,
+ ".github/scripts/visual-gate/lib/scout-shards.test.mjs": 0,
+ ".github/scripts/visual-gate/lib/sources.test.mjs": 0,
+ ".github/scripts/visual-gate/lib/theme-matrix.test.mjs": 0,
+ ".github/scripts/visual-gate/publish-frames.test.mjs": 0,
+ ".github/scripts/visual-gate/publish-pr-report.test.mjs": 0.1,
+ ".github/scripts/visual-gate/workflow-concurrency.test.mjs": 0.1,
+ ".github/scripts/visual-maintenance-source.test.mjs": 0,
+ ".github/scripts/visual-maintenance-workflow.test.mjs": 0.1,
+ ".github/scripts/visual-scope.test.mjs": 0.1,
+ ".github/scripts/workflow-artifact-names.test.mjs": 0,
+ ".github/scripts/workflow-paths.test.mjs": 0,
+ "apps/sandbox/src/app/(fullscreen)/pages/diffviewer-perf/benchmark.test.ts": 0.2,
+ "apps/sandbox/src/app/(fullscreen)/pages/markdown-perf/benchmark.test.ts": 0,
+ "apps/sandbox/src/app/(fullscreen)/pages/markdown-perf/benchmarkProfiles.test.ts": 0,
+ "apps/sandbox/src/app/(sandbox)/pages/palette-generator/generator.test.ts": 0,
+ "apps/sandbox/src/components/themePreview/modeAwarePalettes.test.ts": 0,
+ "apps/sandbox/src/route-manifest.test.ts": 0.1,
+ "apps/sandbox/src/test-routing.test.ts": 0,
+ "apps/storybook/.storybook/main.test.ts": 0,
+ "apps/storybook/.storybook/Markdown.remarkPlugins.test.ts": 0,
+ "apps/storybook/.storybook/storyFrame.test.ts": 0,
+ "apps/storybook/.storybook/useResizableStory.test.mjs": 0.2,
+ "internal/a11y-spec/src/check.test.ts": 0,
+ "internal/a11y-spec/src/contract.test.ts": 0,
+ "internal/a11y-spec/src/expect.test.ts": 0,
+ "internal/a11y-spec/src/patterns/accordion.jsdom.test.ts": 0.7,
+ "internal/a11y-spec/src/patterns/alert-dialog.jsdom.test.ts": 0.2,
+ "internal/a11y-spec/src/patterns/breadcrumb.jsdom.test.ts": 0.2,
+ "internal/a11y-spec/src/patterns/button.jsdom.test.ts": 0.1,
+ "internal/a11y-spec/src/patterns/carousel.jsdom.test.ts": 0.3,
+ "internal/a11y-spec/src/patterns/checkbox.jsdom.test.ts": 0.8,
+ "internal/a11y-spec/src/patterns/combobox.jsdom.test.ts": 0.4,
+ "internal/a11y-spec/src/patterns/disclosure.jsdom.test.ts": 0.1,
+ "internal/a11y-spec/src/patterns/grid.jsdom.test.ts": 0.6,
+ "internal/a11y-spec/src/patterns/landmark.jsdom.test.ts": 0.1,
+ "internal/a11y-spec/src/patterns/link.jsdom.test.ts": 0.3,
+ "internal/a11y-spec/src/patterns/listbox-selection.jsdom.test.ts": 0,
+ "internal/a11y-spec/src/patterns/listbox.jsdom.test.ts": 0.1,
+ "internal/a11y-spec/src/patterns/menu-button.jsdom.test.ts": 0.3,
+ "internal/a11y-spec/src/patterns/menu.jsdom.test.ts": 0.4,
+ "internal/a11y-spec/src/patterns/modal-dialog.jsdom.test.ts": 0.1,
+ "internal/a11y-spec/src/patterns/progressbar.jsdom.test.ts": 0.3,
+ "internal/a11y-spec/src/patterns/radio-group.jsdom.test.ts": 0.4,
+ "internal/a11y-spec/src/patterns/slider.jsdom.test.ts": 0.4,
+ "internal/a11y-spec/src/patterns/spinbutton.jsdom.test.ts": 0.2,
+ "internal/a11y-spec/src/patterns/status-message.jsdom.test.ts": 0.1,
+ "internal/a11y-spec/src/patterns/switch.jsdom.test.ts": 0.3,
+ "internal/a11y-spec/src/patterns/table.jsdom.test.ts": 0.1,
+ "internal/a11y-spec/src/patterns/tabs.jsdom.test.ts": 1.3,
+ "internal/a11y-spec/src/patterns/text-input.jsdom.test.ts": 0.1,
+ "internal/a11y-spec/src/patterns/toggle-button.jsdom.test.ts": 0.2,
+ "internal/a11y-spec/src/patterns/toolbar.jsdom.test.ts": 0.3,
+ "internal/a11y-spec/src/patterns/tooltip.jsdom.test.ts": 0.4,
+ "internal/a11y-spec/src/patterns/tree-view.jsdom.test.ts": 0.9,
+ "internal/a11y-spec/src/patterns/window-splitter.jsdom.test.ts": 0.7,
+ "internal/eslint-plugin-astryx/boolean-prop-naming.test.mjs": 0.2,
+ "internal/eslint-plugin-astryx/copyright-header.test.mjs": 0.1,
+ "internal/eslint-plugin-astryx/disabled-cursor.test.mjs": 0.1,
+ "internal/eslint-plugin-astryx/docblock-example-format.test.mjs": 0.1,
+ "internal/eslint-plugin-astryx/focus-outline-keyboard-only.test.mjs": 0.2,
+ "internal/eslint-plugin-astryx/focus-outline-shared.test.mjs": 0.1,
+ "internal/eslint-plugin-astryx/no-border-shorthand.test.mjs": 0.1,
+ "internal/eslint-plugin-astryx/no-classname-clobber.test.mjs": 0.1,
+ "internal/eslint-plugin-astryx/no-core-internal-import.test.mjs": 0.2,
+ "internal/eslint-plugin-astryx/no-hardcoded-anchor.test.mjs": 0.1,
+ "internal/eslint-plugin-astryx/no-hardcoded-i18n-string.test.mjs": 0.5,
+ "internal/eslint-plugin-astryx/no-hover-on-disabled.test.mjs": 0.1,
+ "internal/eslint-plugin-astryx/no-internal-barrel-import.test.mjs": 0.2,
+ "internal/eslint-plugin-astryx/no-light-dark-outside-theme.test.mjs": 0.2,
+ "internal/eslint-plugin-astryx/no-nullish-jsx-guard.test.mjs": 0.2,
+ "internal/eslint-plugin-astryx/no-physical-properties.test.mjs": 0.3,
+ "internal/eslint-plugin-astryx/no-raw-color.test.mjs": 0.2,
+ "internal/eslint-plugin-astryx/no-raw-console-cli.test.mjs": 0.1,
+ "internal/eslint-plugin-astryx/no-raw-intl-locale.test.mjs": 0.3,
+ "internal/eslint-plugin-astryx/no-raw-paragraph.test.mjs": 0.2,
+ "internal/eslint-plugin-astryx/no-raw-private-attribute.test.mjs": 0.3,
+ "internal/eslint-plugin-astryx/no-react-introspection.test.mjs": 0.1,
+ "internal/eslint-plugin-astryx/no-react-namespace-hooks.test.mjs": 0.1,
+ "internal/eslint-plugin-astryx/no-style-only-wrapper.test.mjs": 0.3,
+ "internal/eslint-plugin-astryx/no-stylex-null-override.test.mjs": 0.1,
+ "internal/eslint-plugin-astryx/no-unguarded-ime-keydown.test.mjs": 0.2,
+ "internal/eslint-plugin-astryx/no-unstable-merged-refs.test.mjs": 0.4,
+ "internal/eslint-plugin-astryx/no-wrapper-transform.test.mjs": 0.2,
+ "internal/eslint-plugin-astryx/prefer-center-inline.test.mjs": 0.1,
+ "internal/eslint-plugin-astryx/presentational-component.test.mjs": 0.2,
+ "internal/eslint-plugin-astryx/require-baseprops-passthrough.test.mjs": 0.1,
+ "internal/eslint-plugin-astryx/require-table-section.test.mjs": 0.2,
+ "internal/eslint-plugin-astryx/stylex-style-source.test.mjs": 0,
+ "internal/interaction-harness/src/busy.control.test.ts": 0,
+ "internal/interaction-harness/src/busy.test.ts": 0.1,
+ "internal/interaction-harness/src/math.test.ts": 0,
+ "internal/interaction-harness/src/scripts.test.ts": 0,
+ "internal/interaction-harness/src/webInput.pacing.test.ts": 0,
+ "internal/lab-readiness/audit.test.mjs": 0.1,
+ "internal/shadcn-registry/generate-shadcn-registry.test.mjs": 11.9,
+ "internal/shadcn-registry/verify-production-gate.test.mjs": 1.2,
+ "internal/stylex-capabilities/scan.test.mjs": 0,
+ "internal/vibe-tests/palette-authoring-test/prompts.test.mjs": 0,
+ "internal/vibe-tests/setup-test/apply-recipe.test.mjs": 0.1,
+ "internal/vibe-tests/setup-test/linkDirectory.test.mjs": 0,
+ "internal/vibe-tests/setup-test/probe-selectors.test.mjs": 0.1,
+ "internal/vibe-tests/setup-test/public-artifact-cli.test.mjs": 0.7,
+ "internal/vibe-tests/setup-test/setup-aggregate.test.ts": 0,
+ "internal/vibe-tests/setup-test/setup-comments.test.mjs": 0.1,
+ "internal/vibe-tests/setup-test/setup-eval.test.ts": 0.1,
+ "internal/vibe-tests/setup-test/setup-important.test.mjs": 0.1,
+ "internal/vibe-tests/setup-test/setup-integrity.test.mjs": 10.7,
+ "internal/vibe-tests/setup-test/setup-interactions.test.mjs": 0,
+ "internal/vibe-tests/setup-test/setup-matrix.test.mjs": 0.1,
+ "internal/vibe-tests/setup-test/setup-measure.test.mjs": 0,
+ "internal/vibe-tests/setup-test/setup-workspace.test.mjs": 4.4,
+ "internal/vibe-tests/src/collect-results.test.mjs": 0,
+ "internal/vibe-tests/src/ensure-tsx.test.ts": 0,
+ "internal/vibe-tests/src/fixture-suite.test.mjs": 0.9,
+ "internal/vibe-tests/src/guest-token-contrast.test.mjs": 0,
+ "internal/vibe-tests/src/module-paths.test.mjs": 0,
+ "internal/vibe-tests/src/provenance-aggregation.test.ts": 0,
+ "internal/vibe-tests/src/provenance-matrix.test.ts": 0,
+ "internal/vibe-tests/src/provenance.test.ts": 0,
+ "packages/build/src/babel.test.mjs": 0.2,
+ "packages/build/src/next.test.mjs": 0.1,
+ "packages/build/src/packed-consumer.test.mjs": 9.7,
+ "packages/build/src/postcss.data-defaults.test.mjs": 33.3,
+ "packages/build/src/postcss.test.mjs": 0.8,
+ "packages/build/src/postcss.workspace-links.test.mjs": 0.2,
+ "packages/build/src/vite.build.test.ts": 7.6,
+ "packages/build/src/vite.test.ts": 0.6,
+ "packages/cli/api/api-docs-parse.test.mjs": 0.1,
+ "packages/cli/api/blog/_adapter.test.mjs": 0.1,
+ "packages/cli/api/blog/blog.test.mjs": 0,
+ "packages/cli/api/blog/detail/detail.test.mjs": 0,
+ "packages/cli/api/blog/list/list.test.mjs": 0,
+ "packages/cli/api/build/blocks/blocks.test.mjs": 0.1,
+ "packages/cli/api/build/build.test.mjs": 87.5,
+ "packages/cli/api/build/kit/answer.test.mjs": 0,
+ "packages/cli/api/build/kit/rank.test.mjs": 1.9,
+ "packages/cli/api/build/kit/weights.test.mjs": 0,
+ "packages/cli/api/build/tree.test.mjs": 33.2,
+ "packages/cli/api/component/component-replacement.test.mjs": 18.9,
+ "packages/cli/api/component/component.test.mjs": 9.6,
+ "packages/cli/api/component/doc-links.test.mjs": 7.1,
+ "packages/cli/api/component/integration-export-name.test.mjs": 31,
+ "packages/cli/api/component/integration-import-agreement.test.mjs": 20.8,
+ "packages/cli/api/discover/_adapter.test.mjs": 0.1,
+ "packages/cli/api/discover/_catalog-view.test.mjs": 0,
+ "packages/cli/api/discover/_package-scanner.test.mjs": 0,
+ "packages/cli/api/discover/detail/detail.test.mjs": 0,
+ "packages/cli/api/discover/detail/doc/doc.test.mjs": 0,
+ "packages/cli/api/discover/detail/item/item.test.mjs": 0,
+ "packages/cli/api/discover/discover.test.mjs": 0,
+ "packages/cli/api/discover/list/list.test.mjs": 0,
+ "packages/cli/api/discover/search/search.test.mjs": 0,
+ "packages/cli/api/docs/compiled-topics.test.mjs": 0.8,
+ "packages/cli/api/docs/detail/section/section.test.mjs": 1.4,
+ "packages/cli/api/docs/docOverlays.test.mjs": 1.9,
+ "packages/cli/api/docs/docs-homes.test.mjs": 12.7,
+ "packages/cli/api/docs/docs.depth.test.mjs": 0.7,
+ "packages/cli/api/docs/docs.test.mjs": 3,
+ "packages/cli/api/docs/guide-route-targets.test.mjs": 13.8,
+ "packages/cli/api/docs/index/index.test.mjs": 4.1,
+ "packages/cli/api/docs/integration-tree.test.mjs": 5.7,
+ "packages/cli/api/docs/integrationDocs.test.mjs": 5.1,
+ "packages/cli/api/docs/namespace-section.test.mjs": 3.1,
+ "packages/cli/api/docs/react-version-sync.test.mjs": 0,
+ "packages/cli/api/docs/reference-blocks.test.mjs": 3.2,
+ "packages/cli/api/docs/token-tables.test.mjs": 1.2,
+ "packages/cli/api/doctor/built-checks.test.mjs": 3.7,
+ "packages/cli/api/doctor/doctor.test.mjs": 15,
+ "packages/cli/api/doctor/icon-sets.test.mjs": 9,
+ "packages/cli/api/doctor/release-checks.test.mjs": 0,
+ "packages/cli/api/doctor/theme-checks.test.mjs": 37,
+ "packages/cli/api/gap-report/gap-report.test.mjs": 38.5,
+ "packages/cli/api/hook/detail/detail.test.mjs": 0.1,
+ "packages/cli/api/hook/detail/params/params.test.mjs": 0.1,
+ "packages/cli/api/hook/hook.test.mjs": 0.1,
+ "packages/cli/api/icon/all-or-nothing.test.mjs": 2.4,
+ "packages/cli/api/icon/error-codes.test.mjs": 0.6,
+ "packages/cli/api/icon/experimental-markers.test.mjs": 0,
+ "packages/cli/api/icon/icon.test.mjs": 0.6,
+ "packages/cli/api/icon/new-definition/new-definition.undo.test.mjs": 0.9,
+ "packages/cli/api/icon/new-set/new-set.test.mjs": 1.3,
+ "packages/cli/api/icon/option-pairs.test.mjs": 3.1,
+ "packages/cli/api/init/init.test.mjs": 0.8,
+ "packages/cli/api/init/remove/remove.test.mjs": 0.2,
+ "packages/cli/api/init/user/user.test.mjs": 0.3,
+ "packages/cli/api/integration/add-contribution.component-names.test.mjs": 0.1,
+ "packages/cli/api/integration/add-contribution.test.mjs": 3.1,
+ "packages/cli/api/integration/add-helpers.test.mjs": 0,
+ "packages/cli/api/integration/add-theme.test.mjs": 7.5,
+ "packages/cli/api/integration/authoring-checks.test.mjs": 22,
+ "packages/cli/api/integration/check/check.test.mjs": 5.8,
+ "packages/cli/api/integration/doc-stability.test.mjs": 5.8,
+ "packages/cli/api/integration/example-checks.no-npm.test.mjs": 1,
+ "packages/cli/api/integration/example-checks.test.mjs": 19.7,
+ "packages/cli/api/integration/integration-block-exports.test.mjs": 2.2,
+ "packages/cli/api/integration/pack-check.component-replaces.test.mjs": 2.6,
+ "packages/cli/api/integration/pack-check.lifecycle-output.test.mjs": 16.1,
+ "packages/cli/api/integration/pack-check.test.mjs": 225.6,
+ "packages/cli/api/integration/public-api.test.mjs": 0,
+ "packages/cli/api/integration/template-conflict-compatibility.test.mjs": 1,
+ "packages/cli/api/integration/validate-installed-icon-sets.test.mjs": 0.3,
+ "packages/cli/api/integration/validate-integration-case-disk.test.mjs": 2.5,
+ "packages/cli/api/integration/validate-integration-fixes.test.mjs": 2.7,
+ "packages/cli/api/integration/validate-integration-gaps.test.mjs": 101.5,
+ "packages/cli/api/integration/validate-integration.test.mjs": 16.8,
+ "packages/cli/api/integration/validate-unread-theme-folders.test.mjs": 0.2,
+ "packages/cli/api/json/envelope-types.test.mjs": 11.4,
+ "packages/cli/api/json/parse.test.mjs": 0,
+ "packages/cli/api/render/render.test.mjs": 33.9,
+ "packages/cli/api/search/_adapter.test.mjs": 6.6,
+ "packages/cli/api/search/_doc-searcher.test.mjs": 3.5,
+ "packages/cli/api/search/_entries.test.mjs": 9.3,
+ "packages/cli/api/search/_main-searcher.test.mjs": 29.6,
+ "packages/cli/api/search/_order.test.mjs": 15.2,
+ "packages/cli/api/search/_template-searcher.test.mjs": 2.7,
+ "packages/cli/api/search/search-return-type.test.mjs": 2.6,
+ "packages/cli/api/search/search.domain-priority.test.mjs": 12.5,
+ "packages/cli/api/search/search.family-members.test.mjs": 7.2,
+ "packages/cli/api/search/search.family-word.test.mjs": 7.6,
+ "packages/cli/api/search/search.integration-block.test.mjs": 7.5,
+ "packages/cli/api/search/search.integration-check.test.mjs": 3.5,
+ "packages/cli/api/search/search.test.mjs": 25.3,
+ "packages/cli/api/search/search.tie-order.test.mjs": 5.7,
+ "packages/cli/api/search/tree.test.mjs": 6.9,
+ "packages/cli/api/swizzle/_github.test.mjs": 0,
+ "packages/cli/api/swizzle/copy/copy.test.mjs": 0.2,
+ "packages/cli/api/swizzle/swizzle.test.mjs": 0,
+ "packages/cli/api/template/cdn/cdn.test.mjs": 0.1,
+ "packages/cli/api/template/checkout-wizard.test.mjs": 0,
+ "packages/cli/api/template/copy/copy.receipt.test.mjs": 1.2,
+ "packages/cli/api/template/copy/copy.test.mjs": 1.2,
+ "packages/cli/api/template/data-token-fallbacks.test.mjs": 0,
+ "packages/cli/api/template/discover-integration-templates.test.mjs": 0.9,
+ "packages/cli/api/template/form-wizard-dialog.test.mjs": 0,
+ "packages/cli/api/template/inline-wizard-template.test.mjs": 0.9,
+ "packages/cli/api/template/list/list.test.mjs": 0,
+ "packages/cli/api/template/show/show.test.mjs": 2.6,
+ "packages/cli/api/template/table-filter-view-tabs.test.mjs": 0,
+ "packages/cli/api/template/table-floating-bulk-actions.test.mjs": 0,
+ "packages/cli/api/template/template-integration.test.mjs": 15.2,
+ "packages/cli/api/template/template-suffix.test.mjs": 2.3,
+ "packages/cli/api/template/template.test.mjs": 0.9,
+ "packages/cli/api/template/tokenizer-showcase.test.mjs": 0,
+ "packages/cli/api/template/unknown-name.test.mjs": 2,
+ "packages/cli/api/theme/add/add.test.mjs": 2.7,
+ "packages/cli/api/theme/add/add.types.test.mjs": 4.1,
+ "packages/cli/api/theme/build/build.adaptation-core-compat.test.mjs": 1.3,
+ "packages/cli/api/theme/build/build.adaptation-enrollment.test.mjs": 2.5,
+ "packages/cli/api/theme/build/build.core-on-demand.test.mjs": 8,
+ "packages/cli/api/theme/build/build.family.test.mjs": 5.7,
+ "packages/cli/api/theme/build/build.font-warning.test.mjs": 3.8,
+ "packages/cli/api/theme/build/build.heading-core-compat.test.mjs": 1.8,
+ "packages/cli/api/theme/build/build.icon-entry-variants.test.mjs": 2,
+ "packages/cli/api/theme/build/build.icon-function-entries.test.mjs": 5.4,
+ "packages/cli/api/theme/build/build.icon-lineage.test.mjs": 2,
+ "packages/cli/api/theme/build/build.icon-preservation.test.mjs": 4.2,
+ "packages/cli/api/theme/build/build.icon-variants.test.mjs": 1.9,
+ "packages/cli/api/theme/build/build.icons-specifier.test.mjs": 4.4,
+ "packages/cli/api/theme/build/build.packed-old-core.test.mjs": 216.5,
+ "packages/cli/api/theme/build/build.project-core.test.mjs": 2.3,
+ "packages/cli/api/theme/build/build.public-component-vars.test.mjs": 2.3,
+ "packages/cli/api/theme/build/build.receipt-doc.test.mjs": 2,
+ "packages/cli/api/theme/build/build.rollback.test.mjs": 2,
+ "packages/cli/api/theme/build/build.test.mjs": 3.3,
+ "packages/cli/api/theme/build/font-warning.test.mjs": 0,
+ "packages/cli/api/theme/eject/eject.binary.test.mjs": 1,
+ "packages/cli/api/theme/eject/eject.copy-compat.test.mjs": 1.2,
+ "packages/cli/api/theme/eject/eject.rollback.test.mjs": 2.1,
+ "packages/cli/api/theme/eject/eject.staging.test.mjs": 1,
+ "packages/cli/api/theme/eject/eject.test.mjs": 3.5,
+ "packages/cli/api/theme/integration-themes.test.mjs": 1.5,
+ "packages/cli/api/theme/list/list.test.mjs": 1.4,
+ "packages/cli/api/theme/palette/generate/generate.test.mjs": 0.1,
+ "packages/cli/api/theme/palette/generate/generator.test.mjs": 0.1,
+ "packages/cli/api/theme/palette/generate/preview.test.mjs": 0,
+ "packages/cli/api/theme/remove/remove.test.mjs": 1.6,
+ "packages/cli/api/theme/targets/targets.test.mjs": 0.9,
+ "packages/cli/api/theme/template/template.test.mjs": 0,
+ "packages/cli/api/theme/use/use.test.mjs": 2.1,
+ "packages/cli/api/upgrade/list/list.test.mjs": 0.3,
+ "packages/cli/api/upgrade/project-context.test.mjs": 0.1,
+ "packages/cli/api/upgrade/provider-agreement.test.mjs": 0.1,
+ "packages/cli/api/upgrade/registry/registry.test.mjs": 0.3,
+ "packages/cli/api/upgrade/run/authoring-codemod-reachable.test.mjs": 0.3,
+ "packages/cli/api/upgrade/run/cli-behind-core.test.mjs": 4.1,
+ "packages/cli/api/upgrade/run/failure-receipt.test.mjs": 0.1,
+ "packages/cli/api/upgrade/run/files-changed.test.mjs": 0.3,
+ "packages/cli/api/upgrade/run/outcomes.test.mjs": 0.3,
+ "packages/cli/api/upgrade/run/run.test.mjs": 1.1,
+ "packages/cli/api/upgrade/upgrade.test.mjs": 1.1,
+ "packages/cli/assets/codemods/__tests__/registry.test.mjs": 0,
+ "packages/cli/assets/codemods/__tests__/rename-imperative-ref-to-handleRef.test.mjs": 0.2,
+ "packages/cli/assets/codemods/__tests__/rename-isStreaming-to-isStopShown.test.mjs": 0.1,
+ "packages/cli/assets/codemods/__tests__/rename-section-wash-to-muted.test.mjs": 0.1,
+ "packages/cli/assets/codemods/__tests__/runner.symlinks.test.mjs": 0.1,
+ "packages/cli/assets/codemods/__tests__/runner.test.mjs": 0.1,
+ "packages/cli/assets/codemods/__tests__/runner.unparseable.test.mjs": 0.1,
+ "packages/cli/assets/codemods/__tests__/toolbar-density-to-size.test.mjs": 0.1,
+ "packages/cli/assets/codemods/__tests__/validation.test.mjs": 0,
+ "packages/cli/assets/codemods/file-count.test.mjs": 0.1,
+ "packages/cli/assets/codemods/integration-discovery.test.mjs": 0.2,
+ "packages/cli/assets/codemods/integration-runner.protection.test.mjs": 0.1,
+ "packages/cli/assets/codemods/outcome.test.mjs": 0,
+ "packages/cli/assets/codemods/term-log.test.mjs": 0,
+ "packages/cli/assets/codemods/transform-prop.test.mjs": 0.1,
+ "packages/cli/assets/codemods/transforms/v0.0.10/__tests__/remove-size-props.test.mjs": 0.2,
+ "packages/cli/assets/codemods/transforms/v0.0.12/__tests__/add-is-icon-only.test.mjs": 0.2,
+ "packages/cli/assets/codemods/transforms/v0.0.13/__tests__/icon-name-deprecations.test.mjs": 0.2,
+ "packages/cli/assets/codemods/transforms/v0.0.13/__tests__/rename-attachments-to-drawer.test.mjs": 0.2,
+ "packages/cli/assets/codemods/transforms/v0.0.14/__tests__/rename-action-props.test.mjs": 0.2,
+ "packages/cli/assets/codemods/transforms/v0.0.14/__tests__/rename-status-variants.test.mjs": 0.2,
+ "packages/cli/assets/codemods/transforms/v0.0.15/__tests__/migrate-item-children-to-endcontent.test.mjs": 0.2,
+ "packages/cli/assets/codemods/transforms/v0.0.15/__tests__/migrate-selector-children-to-render-option.test.mjs": 0.3,
+ "packages/cli/assets/codemods/transforms/v0.0.15/__tests__/migrate-theme-selectors-to-data-attrs.test.mjs": 0,
+ "packages/cli/assets/codemods/transforms/v0.0.15/__tests__/rename-date-picker-to-input.test.mjs": 0.2,
+ "packages/cli/assets/codemods/transforms/v0.0.15/__tests__/rename-stack-element-to-as.test.mjs": 0.1,
+ "packages/cli/assets/codemods/transforms/v0.0.2/__tests__/migrate-badge-dot-to-statusdot.test.mjs": 0.2,
+ "packages/cli/assets/codemods/transforms/v0.0.2/__tests__/migrate-gap-to-numeric.test.mjs": 0.2,
+ "packages/cli/assets/codemods/transforms/v0.0.2/__tests__/migrate-isFullBleed-to-padding.test.mjs": 0.2,
+ "packages/cli/assets/codemods/transforms/v0.0.2/__tests__/migrate-useXDSIcon-to-getIcon.test.mjs": 0.1,
+ "packages/cli/assets/codemods/transforms/v0.0.2/__tests__/rename-banner-endButton-to-endContent.test.mjs": 0.3,
+ "packages/cli/assets/codemods/transforms/v0.0.2/__tests__/rename-form-tooltip-startIcon.test.mjs": 0.1,
+ "packages/cli/assets/codemods/transforms/v0.0.2/__tests__/rename-isShown-to-isOpen.test.mjs": 0.1,
+ "packages/cli/assets/codemods/transforms/v0.0.2/__tests__/rename-selector-items-to-options.test.mjs": 0.1,
+ "packages/cli/assets/codemods/transforms/v0.0.2/__tests__/rename-sidenav-header-to-heading.test.mjs": 0.3,
+ "packages/cli/assets/codemods/transforms/v0.0.2/__tests__/rename-topnav-title-to-heading.test.mjs": 0.2,
+ "packages/cli/assets/codemods/transforms/v0.0.2/__tests__/unify-uncontrolled-to-defaultX.test.mjs": 0.1,
+ "packages/cli/assets/codemods/transforms/v0.0.2/__tests__/unify-visibility-to-onOpenChange.test.mjs": 0.3,
+ "packages/cli/assets/codemods/transforms/v0.0.6/__tests__/migrate-badge-children-to-label.test.mjs": 0.1,
+ "packages/cli/assets/codemods/transforms/v0.0.6/__tests__/migrate-collapse-to-collapsible.test.mjs": 0.1,
+ "packages/cli/assets/codemods/transforms/v0.0.6/__tests__/migrate-radius-tokens.test.mjs": 0.1,
+ "packages/cli/assets/codemods/transforms/v0.0.6/__tests__/migrate-shadow-tokens.test.mjs": 0.2,
+ "packages/cli/assets/codemods/transforms/v0.0.6/__tests__/migrate-skeleton-radius.test.mjs": 0.1,
+ "packages/cli/assets/codemods/transforms/v0.0.6/__tests__/migrate-token-names.test.mjs": 0.2,
+ "packages/cli/assets/codemods/transforms/v0.0.7/__tests__/rename-banner-variant-to-container.test.mjs": 0.1,
+ "packages/cli/assets/codemods/transforms/v0.0.8/__tests__/migrate-token-renames.test.mjs": 0.3,
+ "packages/cli/assets/codemods/transforms/v0.0.8/__tests__/rename-endslot-to-endcontent.test.mjs": 0.2,
+ "packages/cli/assets/codemods/transforms/v0.1.0/__tests__/drop-xds-prefix-imports.test.mjs": 0.5,
+ "packages/cli/assets/codemods/transforms/v0.1.0/__tests__/migrate-xds-css-surfaces.test.mjs": 0.2,
+ "packages/cli/assets/codemods/transforms/v0.1.0/__tests__/migrate-xds-declare-module.test.mjs": 0.1,
+ "packages/cli/assets/codemods/transforms/v0.1.0/__tests__/migrate-xds-module-specifiers.test.mjs": 0.1,
+ "packages/cli/assets/codemods/transforms/v0.1.0/__tests__/v0.1.0-ordering.test.mjs": 0.2,
+ "packages/cli/assets/codemods/transforms/v0.1.2/__tests__/rename-text-color-active-to-accent.test.mjs": 0.3,
+ "packages/cli/assets/codemods/transforms/v0.1.3/__tests__/migrate-layout-components-to-experimental.test.mjs": 0.8,
+ "packages/cli/assets/codemods/transforms/v0.1.5/__tests__/rename-switch-label-spacing-default-to-hug.test.mjs": 0.2,
+ "packages/cli/assets/codemods/transforms/v0.1.7/__tests__/migrate-table-tableprops-to-direct-props.test.mjs": 0.2,
+ "packages/cli/assets/codemods/transforms/v0.1.7/__tests__/rename-table-renderprops-styles-to-xstyle.test.mjs": 0.3,
+ "packages/cli/assets/codemods/transforms/v0.1.8/__tests__/rename-avatar-size-scale.test.mjs": 0.2,
+ "packages/cli/assets/codemods/transforms/v0.2.0/__tests__/remove-tablist-orientation.test.mjs": 0.3,
+ "packages/cli/assets/codemods/transforms/v0.2.1/__tests__/migrate-dialog-position-to-logical.test.mjs": 0.2,
+ "packages/cli/assets/codemods/transforms/v0.3.0/__tests__/authoring-migration.e2e.test.mjs": 0.5,
+ "packages/cli/assets/codemods/transforms/v0.3.0/__tests__/authoring-migration.tsc.test.mjs": 6.4,
+ "packages/cli/assets/codemods/transforms/v0.3.0/__tests__/migrate-authoring-imports.test.mjs": 0.2,
+ "packages/cli/assets/codemods/transforms/v0.3.0/__tests__/migrate-grid-minchildwidth-to-columns.test.mjs": 0.2,
+ "packages/cli/assets/codemods/transforms/v0.3.0/__tests__/next-codemods.test.mjs": 0.1,
+ "packages/cli/assets/codemods/transforms/v0.3.0/__tests__/rename-authoring-doctypes.test.mjs": 0.1,
+ "packages/cli/assets/codemods/transforms/v0.3.0/__tests__/rename-radiogroup-arialabel-to-label.test.mjs": 0.1,
+ "packages/cli/assets/codemods/transforms/v0.3.0/__tests__/unwrap-authoring-factories.test.mjs": 0.3,
+ "packages/cli/assets/codemods/transforms/v0.4.0/__tests__/migrate-table-rowexpansion-to-tree.test.mjs": 0.2,
+ "packages/cli/assets/codemods/transforms/v0.4.0/__tests__/next-codemods.test.mjs": 0.1,
+ "packages/cli/assets/codemods/transforms/v0.5.0/__tests__/next-codemods.test.mjs": 0.1,
+ "packages/cli/assets/codemods/transforms/v0.6.0/__tests__/migrate-astryx-theme-selectors-to-data-attrs.test.mjs": 0.1,
+ "packages/cli/assets/codemods/transforms/v0.6.0/__tests__/next-codemods.test.mjs": 0.2,
+ "packages/cli/assets/codemods/transforms/v0.6.4/__tests__/migrate-native-picker-to-presentation.test.mjs": 0.2,
+ "packages/cli/assets/codemods/transforms/v0.6.4/__tests__/migrate-theme-catalog-to-descriptors.test.mjs": 0.1,
+ "packages/cli/assets/codemods/transforms/v0.6.7/__tests__/migrate-copied-themes-to-descriptors.test.mjs": 0.1,
+ "packages/cli/assets/codemods/transforms/v0.7.0/__tests__/migrate-deprecated-theme-surface.test.mjs": 0.3,
+ "packages/cli/assets/codemods/transforms/v0.7.0/__tests__/migrate-field-input-styling.test.mjs": 0.1,
+ "packages/cli/assets/codemods/transforms/v0.7.0/__tests__/preserve-bottom-sheet-content-padding.test.mjs": 0.3,
+ "packages/cli/assets/codemods/transforms/v0.7.0/__tests__/rename-empty-search-results-text.test.mjs": 0.4,
+ "packages/cli/assets/codemods/transforms/v0.7.0/__tests__/validate-data-token-ownership.test.mjs": 0.1,
+ "packages/cli/assets/codemods/transforms/v0.7.2/__tests__/migrate-list-edge-compensation-to-edge.test.mjs": 0.2,
+ "packages/cli/assets/codemods/transforms/v0.7.5/__tests__/migrate-codeblock-tokenizer-to-language.test.mjs": 0.2,
+ "packages/cli/authoring/_shared/errors.test.mjs": 0,
+ "packages/cli/authoring/codemod/parse.test.mjs": 0,
+ "packages/cli/authoring/config/debug-composition.test.mjs": 0,
+ "packages/cli/authoring/config/parse.test.mjs": 0,
+ "packages/cli/authoring/debug/parse.test.mjs": 0,
+ "packages/cli/authoring/discover/parse.test.mjs": 0,
+ "packages/cli/authoring/doctypes/doc-stability-types.test.mjs": 1.1,
+ "packages/cli/authoring/doctypes/doctypes-new.test.mjs": 0,
+ "packages/cli/authoring/doctypes/icon-definition/parse.test.mjs": 0,
+ "packages/cli/authoring/doctypes/icon-set/icon-names.test.mjs": 0,
+ "packages/cli/authoring/doctypes/icon-set/parse.test.mjs": 0,
+ "packages/cli/authoring/doctypes/load-contract.test.mjs": 0,
+ "packages/cli/authoring/doctypes/namespace/parse.test.mjs": 0,
+ "packages/cli/authoring/doctypes/parse.test.mjs": 0.1,
+ "packages/cli/authoring/doctypes/template/parse.test.mjs": 0,
+ "packages/cli/authoring/gap-report/parse.test.mjs": 0,
+ "packages/cli/authoring/integration/parse.test.mjs": 0,
+ "packages/cli/authoring/shadcn/receipt.test.mjs": 0.1,
+ "packages/cli/authoring/shadcn/source-variants.test.mjs": 0.1,
+ "packages/cli/clients/cli/__tests__/cliManifest.test.ts": 0.1,
+ "packages/cli/clients/cli/cli-command.test.mjs": 1.9,
+ "packages/cli/clients/cli/cli-exit-codes.test.mjs": 3.2,
+ "packages/cli/clients/cli/command-load-failure.test.mjs": 4.3,
+ "packages/cli/clients/cli/command-result-coverage.test.mjs": 0,
+ "packages/cli/clients/cli/commands/blog.test.mjs": 0.2,
+ "packages/cli/clients/cli/commands/build-theme.adaptations.test.mjs": 3.4,
+ "packages/cli/clients/cli/commands/build-theme.ascii-output.test.mjs": 2.6,
+ "packages/cli/clients/cli/commands/build-theme.batch-report.test.mjs": 4.4,
+ "packages/cli/clients/cli/commands/build-theme.color-scheme.test.mjs": 2,
+ "packages/cli/clients/cli/commands/build-theme.data-tokens.test.mjs": 2.1,
+ "packages/cli/clients/cli/commands/build-theme.flag-docs.test.mjs": 0.3,
+ "packages/cli/clients/cli/commands/build-theme.font-warning.test.mjs": 1.9,
+ "packages/cli/clients/cli/commands/build-theme.icons-specifier.test.mjs": 9.2,
+ "packages/cli/clients/cli/commands/build-theme.import-path.test.mjs": 2.1,
+ "packages/cli/clients/cli/commands/build-theme.multi.test.mjs": 3.6,
+ "packages/cli/clients/cli/commands/build-theme.outside-project.test.mjs": 34.5,
+ "packages/cli/clients/cli/commands/build-theme.path-safety.test.mjs": 2.8,
+ "packages/cli/clients/cli/commands/build-theme.prose.test.mjs": 1.9,
+ "packages/cli/clients/cli/commands/build-theme.registry.test.mjs": 2.1,
+ "packages/cli/clients/cli/commands/build-theme.variants.test.mjs": 7.5,
+ "packages/cli/clients/cli/commands/build-theme.watch.test.mjs": 28.1,
+ "packages/cli/clients/cli/commands/build.error-codes.test.mjs": 0.1,
+ "packages/cli/clients/cli/commands/build.exit-codes-doc.test.mjs": 0.1,
+ "packages/cli/clients/cli/commands/build.playbook.test.mjs": 0.1,
+ "packages/cli/clients/cli/commands/build.text-fields.test.mjs": 16.3,
+ "packages/cli/clients/cli/commands/cli-postinstall.test.mjs": 0.1,
+ "packages/cli/clients/cli/commands/component-batch.test.mjs": 3.8,
+ "packages/cli/clients/cli/commands/component-ownership.test.mjs": 1.1,
+ "packages/cli/clients/cli/commands/component-package.test.mjs": 2.1,
+ "packages/cli/clients/cli/commands/component-replacement.text.test.mjs": 13,
+ "packages/cli/clients/cli/commands/component-resolution.test.mjs": 2,
+ "packages/cli/clients/cli/commands/component.test.mjs": 1.8,
+ "packages/cli/clients/cli/commands/debug-result-summary.test.mjs": 15.3,
+ "packages/cli/clients/cli/commands/detail-levels.test.mjs": 5.3,
+ "packages/cli/clients/cli/commands/dialog-adaptive-template.test.mjs": 0.8,
+ "packages/cli/clients/cli/commands/discover.broken-integration.test.mjs": 12.5,
+ "packages/cli/clients/cli/commands/discover.components-flag.test.mjs": 1.1,
+ "packages/cli/clients/cli/commands/discover.icon-sets.test.mjs": 1.2,
+ "packages/cli/clients/cli/commands/discover.no-source.test.mjs": 1.9,
+ "packages/cli/clients/cli/commands/discover.sources.test.mjs": 1.1,
+ "packages/cli/clients/cli/commands/discover.text-projection.test.mjs": 1.2,
+ "packages/cli/clients/cli/commands/docs.depth.test.mjs": 1.4,
+ "packages/cli/clients/cli/commands/docs.test.mjs": 2.4,
+ "packages/cli/clients/cli/commands/doctor-integration.package-json.test.mjs": 0.1,
+ "packages/cli/clients/cli/commands/doctor-integration.test.mjs": 192.2,
+ "packages/cli/clients/cli/commands/doctor.test.mjs": 3.9,
+ "packages/cli/clients/cli/commands/empty-argument.test.mjs": 2,
+ "packages/cli/clients/cli/commands/external-showcase.test.mjs": 1.1,
+ "packages/cli/clients/cli/commands/gap-report.test.mjs": 6.7,
+ "packages/cli/clients/cli/commands/hook.text-projection.test.mjs": 0.9,
+ "packages/cli/clients/cli/commands/icon-authoring.test.mjs": 6.9,
+ "packages/cli/clients/cli/commands/icon-options-wiring.test.mjs": 0.3,
+ "packages/cli/clients/cli/commands/icon-sets-guide.test.mjs": 2.4,
+ "packages/cli/clients/cli/commands/icon.test.mjs": 0.3,
+ "packages/cli/clients/cli/commands/import-hint-correctness.test.mjs": 4.2,
+ "packages/cli/clients/cli/commands/init.behavior.test.mjs": 2.2,
+ "packages/cli/clients/cli/commands/init.flag-help.test.mjs": 0.8,
+ "packages/cli/clients/cli/commands/init.next-steps.test.mjs": 0,
+ "packages/cli/clients/cli/commands/integration-add.controls.test.mjs": 0.2,
+ "packages/cli/clients/cli/commands/integration-authoring.test.mjs": 3,
+ "packages/cli/clients/cli/commands/integration-check.test.mjs": 18.7,
+ "packages/cli/clients/cli/commands/integration-real-world.test.mjs": 13.8,
+ "packages/cli/clients/cli/commands/interactive-guard.test.mjs": 23.8,
+ "packages/cli/clients/cli/commands/json-contract.test.mjs": 3.3,
+ "packages/cli/clients/cli/commands/no-prompt-wording.test.mjs": 2.4,
+ "packages/cli/clients/cli/commands/option-pair-refusals.test.mjs": 0.4,
+ "packages/cli/clients/cli/commands/outside-project.test.mjs": 23.4,
+ "packages/cli/clients/cli/commands/search.test.mjs": 30.4,
+ "packages/cli/clients/cli/commands/setup-nudge.test.mjs": 1.6,
+ "packages/cli/clients/cli/commands/silent-success-refusals.test.mjs": 1,
+ "packages/cli/clients/cli/commands/swizzle.path-safety.test.mjs": 0.2,
+ "packages/cli/clients/cli/commands/swizzle.routing.test.mjs": 0.8,
+ "packages/cli/clients/cli/commands/template-cdn.behavior.test.mjs": 1.2,
+ "packages/cli/clients/cli/commands/template.copy-receipt.test.mjs": 1.4,
+ "packages/cli/clients/cli/commands/template.flag-help.test.mjs": 1.2,
+ "packages/cli/clients/cli/commands/template.icons.test.mjs": 2.2,
+ "packages/cli/clients/cli/commands/template.path-help.test.mjs": 0.1,
+ "packages/cli/clients/cli/commands/template.path-safety.test.mjs": 1.6,
+ "packages/cli/clients/cli/commands/template.show-media.test.mjs": 1.5,
+ "packages/cli/clients/cli/commands/template.test.mjs": 0.9,
+ "packages/cli/clients/cli/commands/text-json-parity.test.mjs": 12.2,
+ "packages/cli/clients/cli/commands/theme-add-lifecycle.test.mjs": 3,
+ "packages/cli/clients/cli/commands/theme-list.behavior.test.mjs": 1,
+ "packages/cli/clients/cli/commands/theme-palette-generate.test.mjs": 0.1,
+ "packages/cli/clients/cli/commands/theme-targets.behavior.test.mjs": 0.8,
+ "packages/cli/clients/cli/commands/theme-template.behavior.test.mjs": 0.1,
+ "packages/cli/clients/cli/commands/upgrade.ascii-output.test.mjs": 0.4,
+ "packages/cli/clients/cli/commands/upgrade.config-ordering.test.mjs": 0.2,
+ "packages/cli/clients/cli/commands/upgrade.file-protection.test.mjs": 11.1,
+ "packages/cli/clients/cli/commands/upgrade.flag-help.test.mjs": 0.5,
+ "packages/cli/clients/cli/commands/upgrade.hook-output.test.mjs": 0.9,
+ "packages/cli/clients/cli/commands/upgrade.integration-policy.test.mjs": 0.7,
+ "packages/cli/clients/cli/commands/upgrade.older-cli.test.mjs": 1.8,
+ "packages/cli/clients/cli/commands/upgrade.outcomes.test.mjs": 9.1,
+ "packages/cli/clients/cli/commands/upgrade.subfolder-path.test.mjs": 0.3,
+ "packages/cli/clients/cli/commands/upgrade.test.mjs": 0.4,
+ "packages/cli/clients/cli/commands/validate-nothing-exits-nonzero.test.mjs": 0.1,
+ "packages/cli/clients/cli/commands/write-failure.test.mjs": 2.1,
+ "packages/cli/clients/cli/e2e-smoke.test.mjs": 14,
+ "packages/cli/clients/cli/error-envelope-code.test.mjs": 0,
+ "packages/cli/clients/cli/formatters/index.test.mjs": 0,
+ "packages/cli/clients/cli/latest-version-env.test.mjs": 0.7,
+ "packages/cli/clients/cli/lib/cli-error.test.mjs": 0,
+ "packages/cli/clients/cli/lib/component-format.test.mjs": 0.1,
+ "packages/cli/clients/cli/lib/define-command.test.mjs": 0,
+ "packages/cli/clients/cli/lib/doc-text-ascii.test.mjs": 0,
+ "packages/cli/clients/cli/lib/exit-codes.test.mjs": 1.4,
+ "packages/cli/clients/cli/lib/hook-format.test.mjs": 0,
+ "packages/cli/clients/cli/lib/json-shim.test.mjs": 1.7,
+ "packages/cli/clients/cli/lib/manifest.test.mjs": 0.9,
+ "packages/cli/clients/cli/lib/parse-error-format.test.mjs": 0.1,
+ "packages/cli/clients/cli/lib/resolve-theme.test.mjs": 30.1,
+ "packages/cli/foundation/agent-docs/agent-docs.path-safety.test.mjs": 5.6,
+ "packages/cli/foundation/agent-docs/agent-docs.test.mjs": 1.8,
+ "packages/cli/foundation/agent-docs/app-theme-workflow.test.mjs": 0,
+ "packages/cli/foundation/agent-docs/computer-agent-text.test.mjs": 0.6,
+ "packages/cli/foundation/config/config-cache.test.mjs": 0,
+ "packages/cli/foundation/config/config-writer.test.mjs": 0.1,
+ "packages/cli/foundation/config/integration-debug.test.mjs": 0.2,
+ "packages/cli/foundation/config/project-themes.test.mjs": 1.8,
+ "packages/cli/foundation/config/project.test.mjs": 15.5,
+ "packages/cli/foundation/config/theme-private-vars.test.mjs": 0.1,
+ "packages/cli/foundation/config/theme-state.test.mjs": 0,
+ "packages/cli/foundation/debug/debug-fields.test.mjs": 0,
+ "packages/cli/foundation/debug/integration-handlers.test.mjs": 0.3,
+ "packages/cli/foundation/debug/on-event.test.mjs": 1.2,
+ "packages/cli/foundation/debug/privacy-contract.test.mjs": 0.2,
+ "packages/cli/foundation/debug/redact.test.mjs": 2,
+ "packages/cli/foundation/discovery/authoring-self-docs.test.mjs": 1.6,
+ "packages/cli/foundation/discovery/authoring-surface.test.mjs": 1.1,
+ "packages/cli/foundation/discovery/cli-self-docs.test.mjs": 0.3,
+ "packages/cli/foundation/discovery/component-discovery.export-names.test.mjs": 0.2,
+ "packages/cli/foundation/discovery/component-discovery.importpath.test.mjs": 0.2,
+ "packages/cli/foundation/discovery/component-discovery.test.mjs": 1,
+ "packages/cli/foundation/discovery/component-loader.test.mjs": 0,
+ "packages/cli/foundation/discovery/component-replacement.test.mjs": 1.7,
+ "packages/cli/foundation/discovery/componentDocOverlay.test.mjs": 0.3,
+ "packages/cli/foundation/discovery/copied-passages.test.mjs": 0,
+ "packages/cli/foundation/discovery/doc-consistency.test.mjs": 0.1,
+ "packages/cli/foundation/discovery/doc-fluff.test.mjs": 0,
+ "packages/cli/foundation/discovery/doc-types.test.mjs": 12.7,
+ "packages/cli/foundation/discovery/docs-discovery.test.mjs": 0.1,
+ "packages/cli/foundation/discovery/docs-section-key.test.mjs": 0,
+ "packages/cli/foundation/discovery/hook-discovery.test.mjs": 0.6,
+ "packages/cli/foundation/discovery/icon-set-checks.test.mjs": 2.6,
+ "packages/cli/foundation/discovery/icon-set-discovery.test.mjs": 1.8,
+ "packages/cli/foundation/discovery/icon-set-writer.test.mjs": 0,
+ "packages/cli/foundation/discovery/integration-doc-files.test.mjs": 0.1,
+ "packages/cli/foundation/discovery/module-exports.test.mjs": 0.5,
+ "packages/cli/foundation/discovery/package-tsconfig.test.mjs": 0.1,
+ "packages/cli/foundation/discovery/prop-drift.test.mjs": 14.3,
+ "packages/cli/foundation/discovery/runner-commands.test.mjs": 0,
+ "packages/cli/foundation/discovery/stray-pointers.test.mjs": 0,
+ "packages/cli/foundation/discovery/template-adapter.fixture-refs.test.mjs": 0.8,
+ "packages/cli/foundation/discovery/template-adapter.integration-isolation.test.mjs": 1,
+ "packages/cli/foundation/discovery/template-adapter.test.mjs": 0.1,
+ "packages/cli/foundation/discovery/template-conflict-release.test.mjs": 0,
+ "packages/cli/foundation/discovery/template-icons.test.mjs": 0.2,
+ "packages/cli/foundation/discovery/template-needs.test.mjs": 0,
+ "packages/cli/foundation/discovery/theme-discovery.test.mjs": 1.8,
+ "packages/cli/foundation/discovery/theme-imports.test.mjs": 0,
+ "packages/cli/foundation/discovery/theming-targets.test.mjs": 0.9,
+ "packages/cli/foundation/discovery/type-match.test.mjs": 1.8,
+ "packages/cli/foundation/discovery/type-text.test.mjs": 0.1,
+ "packages/cli/foundation/discovery/unresolved-references.test.mjs": 8.9,
+ "packages/cli/foundation/doc-compiler/bundle.test.mjs": 14.2,
+ "packages/cli/foundation/doc-compiler/doc-compiler.test.mjs": 5.2,
+ "packages/cli/foundation/doc-compiler/doc-loads.test.mjs": 2.7,
+ "packages/cli/foundation/doc-compiler/doc-syntax.test.mjs": 0,
+ "packages/cli/foundation/doc-compiler/inputs.test.mjs": 4.4,
+ "packages/cli/foundation/doc-compiler/links.test.mjs": 0,
+ "packages/cli/foundation/doc-compiler/lower-doc.test.mjs": 0.1,
+ "packages/cli/foundation/doc-compiler/read.test.mjs": 3.5,
+ "packages/cli/foundation/doc-compiler/split-topic-keywords.test.mjs": 0.3,
+ "packages/cli/foundation/doc-compiler/tree.test.mjs": 0.6,
+ "packages/cli/foundation/env/cli-command.test.mjs": 0,
+ "packages/cli/foundation/env/node-version.test.mjs": 0,
+ "packages/cli/foundation/env/package-manager.global.test.mjs": 0,
+ "packages/cli/foundation/env/package-manager.test.mjs": 3.5,
+ "packages/cli/foundation/env/search-path.test.mjs": 0,
+ "packages/cli/foundation/env/semver.test.mjs": 0,
+ "packages/cli/foundation/env/user-dirs.test.mjs": 0,
+ "packages/cli/foundation/env/user-settings.test.mjs": 0,
+ "packages/cli/foundation/fs/file-protection.test.mjs": 0,
+ "packages/cli/foundation/fs/listing-cache.test.mjs": 0,
+ "packages/cli/foundation/fs/module-loader.stdout.test.mjs": 10.5,
+ "packages/cli/foundation/fs/module-loader.test.mjs": 0.7,
+ "packages/cli/foundation/fs/path-safety.test.mjs": 0,
+ "packages/cli/foundation/fs/paths.test.mjs": 0.2,
+ "packages/cli/foundation/fs/publish-file-eperm-mutation.test.mjs": 0,
+ "packages/cli/foundation/fs/publish-file-hardlink-unavailable.test.mjs": 0.2,
+ "packages/cli/foundation/fs/publish-file.test.mjs": 0,
+ "packages/cli/foundation/fs/read-record.test.mjs": 0,
+ "packages/cli/foundation/identity/provider-identity.test.mjs": 0,
+ "packages/cli/foundation/integrations/autolink.test.mjs": 1.6,
+ "packages/cli/foundation/integrations/cli-peer-version.test.mjs": 2.3,
+ "packages/cli/foundation/integrations/cli-requirement.test.mjs": 0,
+ "packages/cli/foundation/integrations/computer-integrations.test.mjs": 0.1,
+ "packages/cli/foundation/integrations/contribution-inventory.test.mjs": 0,
+ "packages/cli/foundation/integrations/integration-warnings.test.mjs": 0,
+ "packages/cli/foundation/integrations/integrations.test.mjs": 5.3,
+ "packages/cli/foundation/integrations/manifest-writer.test.mjs": 0.5,
+ "packages/cli/foundation/integrations/provider-conflicts.test.mjs": 4.6,
+ "packages/cli/foundation/integrations/provider-ledger.test.mjs": 5.9,
+ "packages/cli/foundation/integrations/provider-resolution.test.mjs": 0,
+ "packages/cli/foundation/integrations/public-imports.test.mjs": 46.1,
+ "packages/cli/foundation/release/cache.test.mjs": 5.9,
+ "packages/cli/foundation/release/choose.test.mjs": 0.1,
+ "packages/cli/foundation/release/global-state.test.mjs": 0.7,
+ "packages/cli/foundation/release/handoff.e2e.test.mjs": 25.9,
+ "packages/cli/foundation/release/notices.test.mjs": 5.8,
+ "packages/cli/foundation/release/project.test.mjs": 0,
+ "packages/cli/foundation/render/render.test.mjs": 1.5,
+ "packages/cli/foundation/response/error-codes.test.mjs": 2.2,
+ "packages/cli/foundation/response/json-contract.test.mjs": 4.4,
+ "packages/cli/foundation/response/json-serialize.test.mjs": 0,
+ "packages/cli/foundation/response/response-types.doc.test.mjs": 8.4,
+ "packages/cli/foundation/route/route.test.mjs": 0,
+ "packages/cli/foundation/runtime/hosted-runtime.test.mjs": 7.7,
+ "packages/cli/foundation/runtime/package-set.test.mjs": 0.1,
+ "packages/cli/foundation/text/copyright-header.test.mjs": 0,
+ "packages/cli/foundation/text/levenshtein.test.mjs": 0,
+ "packages/cli/foundation/text/string-utils.test.mjs": 0.3,
+ "packages/cli/foundation/text/suggest-order.test.mjs": 0,
+ "packages/cli/foundation/xle/browser-imports.test.mjs": 0,
+ "packages/cli/foundation/xle/expand.test.mjs": 2.2,
+ "packages/cli/foundation/xle/print.test.mjs": 0,
+ "packages/cli/foundation/xle/registry.test.mjs": 3.6,
+ "packages/cli/foundation/xle/xle.test.mjs": 0,
+ "packages/cli/host/door-conformance.test.mjs": 324.2,
+ "packages/cli/host/index.test.mjs": 17,
+ "packages/cli/test-utils/release-fixtures.test.mjs": 0,
+ "packages/cli/test/authoring-self-docs-match-types.test.mjs": 15.6,
+ "packages/cli/test/authoring-types.test.mjs": 0.1,
+ "packages/cli/test/cli-strict-guard.test.mjs": 0,
+ "packages/cli/test/core-doc-quality.test.mjs": 5.1,
+ "packages/cli/test/core-doc-types.test.mjs": 7.4,
+ "packages/cli/test/core-prop-docs.test.mjs": 11.4,
+ "packages/cli/test/doc-tokens-compile.test.mjs": 0.7,
+ "packages/cli/test/docs-graph.test.mjs": 24.1,
+ "packages/cli/test/docs-topic-refs.test.mjs": 1.2,
+ "packages/cli/test/drift/docs-drift.test.mjs": 3.2,
+ "packages/cli/test/experimental-isolation.test.mjs": 159.1,
+ "packages/cli/test/global-local.test.mjs": 273.7,
+ "packages/cli/test/global-mode-docs.test.mjs": 9.9,
+ "packages/cli/test/global-mode-notes.test.mjs": 0.4,
+ "packages/cli/test/golden-reads.test.mjs": 17.8,
+ "packages/cli/test/icon-set-doc-pointers.test.mjs": 2.8,
+ "packages/cli/test/integration-check-failures.test.mjs": 12,
+ "packages/cli/test/inv28-discover-provenance.test.mjs": 0,
+ "packages/cli/test/inv28-package-provenance.test.mjs": 16,
+ "packages/cli/test/invalid-component-metadata.regression.test.mjs": 6.8,
+ "packages/cli/test/readme-gen.test.mjs": 1.8,
+ "packages/cli/test/readme-prose.test.mjs": 0.8,
+ "packages/cli/test/runner-commands.test.mjs": 2.5,
+ "packages/cli/test/search-consumer-ranking.test.mjs": 6,
+ "packages/cli/test/taught-core-imports.test.mjs": 0.4,
+ "packages/cli/test/template-icon-declarations.test.mjs": 0.9,
+ "packages/cli/test/traceable-paths.test.mjs": 1.2,
+ "packages/native/src/contract/contracts.test.ts": 11.7,
+ "packages/native/src/contract/fromComponentDoc.test.ts": 0,
+ "packages/native/src/contract/parseDocType.test.ts": 0,
+ "packages/native/src/icons/defaults.test.ts": 0,
+ "packages/native/src/icons/swiftIcons.test.ts": 0,
+ "packages/native/src/logic/logic.test.ts": 0.8,
+ "packages/native/src/theme/defineNativeTheme.test.ts": 0,
+ "packages/native/src/theme/swiftIOSStrings.test.ts": 0.1,
+ "packages/native/src/theme/swiftIOSTheme.test.ts": 0.7,
+ "packages/themes/butter/src/butterColorMapping.test.ts": 0.2,
+ "packages/themes/butter/src/butterPalettes.test.ts": 0,
+ "packages/themes/butter/src/butterTheme.test.ts": 0.1,
+ "packages/themes/chocolate/src/chocolateTheme.test.ts": 0.1,
+ "packages/themes/gothic/src/gothicColorMapping.test.ts": 0,
+ "packages/themes/gothic/src/gothicPalettes.test.ts": 0,
+ "packages/themes/gothic/src/gothicTheme.test.ts": 0,
+ "packages/themes/matcha/src/matchaColorMapping.test.ts": 0,
+ "packages/themes/matcha/src/matchaPalettes.test.ts": 0,
+ "packages/themes/matcha/src/matchaTheme.spacing.test.ts": 0,
+ "packages/themes/matcha/src/matchaTheme.test.ts": 0.1,
+ "packages/themes/neutral/src/neutralPalettes.test.ts": 0,
+ "packages/themes/neutral/src/neutralTheme.test.ts": 0.1,
+ "packages/themes/probe/src/probeTheme.test.ts": 0.1,
+ "packages/themes/stone/src/stoneColorMapping.test.ts": 0,
+ "packages/themes/stone/src/stonePalettes.test.ts": 0,
+ "packages/themes/stone/src/stoneTheme.test.ts": 0.1,
+ "packages/themes/y2k/src/y2kColorMapping.test.ts": 0.1,
+ "packages/themes/y2k/src/y2kPalettes.test.ts": 0,
+ "packages/themes/y2k/src/y2kTheme.spacing.test.ts": 0,
+ "packages/themes/y2k/src/y2kTheme.test.ts": 0.1,
+ "scripts/add-declaration-extensions.test.mjs": 0.1,
+ "scripts/api-report/api-report.test.mjs": 1.7,
+ "scripts/build-css.data-tokens.test.mjs": 0,
+ "scripts/build-css.graph.test.mjs": 0.4,
+ "scripts/build-css.layers.test.mjs": 0,
+ "scripts/build-css.test.mjs": 0,
+ "scripts/check-badge-contrast.test.mjs": 0,
+ "scripts/check-changesets.test.mjs": 0,
+ "scripts/check-cli-official-packages.test.mjs": 0.4,
+ "scripts/check-cli-structure.test.mjs": 1.1,
+ "scripts/check-cli-theme-bundle.test.mjs": 2.1,
+ "scripts/check-fully-specified.test.mjs": 0.1,
+ "scripts/check-i18n-catalog.test.mjs": 0.1,
+ "scripts/check-knowledge.test.mjs": 14.9,
+ "scripts/check-muted-status-contrast.test.mjs": 0,
+ "scripts/check-package-boundaries.test.mjs": 0.2,
+ "scripts/check-portable-scripts.test.mjs": 0.2,
+ "scripts/check-secondary-selector-parity.test.mjs": 0,
+ "scripts/check-status-text-contrast.test.mjs": 2.7,
+ "scripts/check-stone-secondary-text-contrast.test.mjs": 0,
+ "scripts/check-syntax-punctuation-contrast.test.mjs": 0,
+ "scripts/check-theme-icon-coverage.test.mjs": 0.2,
+ "scripts/check-theme-template.test.mjs": 1.1,
+ "scripts/check-visual-workflow-owner.test.mjs": 0.4,
+ "scripts/clean-dist.test.mjs": 0,
+ "scripts/clean-workspace-node-modules.test.mjs": 0,
+ "scripts/core-internal-entries.test.mjs": 1.9,
+ "scripts/core-single-bundle.test.mjs": 1.1,
+ "scripts/data-token-consumers.test.mjs": 0.2,
+ "scripts/format-changelogs.test.mjs": 0,
+ "scripts/generate-butter-palette-refs.test.mjs": 0.1,
+ "scripts/generate-cldr-weekdays.test.mjs": 0.3,
+ "scripts/generate-data-tokens.test.mjs": 0,
+ "scripts/generate-gothic-palette-refs.test.mjs": 0.1,
+ "scripts/generate-i18n-runtime.test.mjs": 1.9,
+ "scripts/generate-matcha-palette-refs.test.mjs": 0.1,
+ "scripts/generate-neutral-palette-refs.test.mjs": 0.2,
+ "scripts/generate-stone-palette-refs.test.mjs": 0.1,
+ "scripts/generate-y2k-palette-refs.test.mjs": 0.1,
+ "scripts/lib/api-index-star-exports.test.mjs": 0,
+ "scripts/lib/review-diff.test.mjs": 1,
+ "scripts/motion-node-load.test.mjs": 0.2,
+ "scripts/npm/prune-canaries.test.mjs": 0,
+ "scripts/npm/verify-published.test.mjs": 0,
+ "scripts/package-stylesheet-side-effects.test.mjs": 0,
+ "scripts/palette-receipt-test-utils.test.mjs": 0,
+ "scripts/promote-codemod-next.test.mjs": 0.2,
+ "scripts/prune-branches.test.mjs": 0.5,
+ "scripts/release-admission.test.mjs": 0,
+ "scripts/release/active-release.test.mjs": 0.4,
+ "scripts/release/changeset-coverage.test.mjs": 0.1,
+ "scripts/release/release-check-receipt.test.mjs": 0,
+ "scripts/release/release-inputs.test.mjs": 0,
+ "scripts/release/verify-published.test.mjs": 0,
+ "scripts/release/version-packages.test.mjs": 1.2,
+ "scripts/rewrite-template-asset-paths.test.mjs": 0.1,
+ "scripts/score-ledger.test.mjs": 7.7,
+ "scripts/specs-for-file.test.mjs": 2.1,
+ "scripts/split-topic-consumers.test.mjs": 1.9,
+ "scripts/stylex-module-resolution.test.mjs": 0.2,
+ "scripts/template-score-ledger.test.mjs": 2.7,
+ "scripts/touch-support-bundle.test.mjs": 3.4
+ }
+}
diff --git a/scripts/vitest-shard-sequencer.d.mts b/scripts/vitest-shard-sequencer.d.mts
new file mode 100644
index 0000000000..c8328db349
--- /dev/null
+++ b/scripts/vitest-shard-sequencer.d.mts
@@ -0,0 +1,20 @@
+// Copyright (c) Meta Platforms, Inc. and affiliates.
+
+/**
+ * @file vitest-shard-sequencer.d.mts
+ * @output Types for vitest-shard-sequencer.mjs, for vitest.config.ts, which
+ * imports it
+ */
+
+import type {BaseSequencer} from 'vitest/node';
+
+export declare const DURATIONS: string;
+export declare function partitionByDuration(
+ files: string[],
+ count: number,
+ seconds: Record<string, number>,
+): string[][];
+export declare function readDurations(file?: string): Record<string, number>;
+export declare function recordDurations(text: string): Record<string, number>;
+declare const DurationShardSequencer: typeof BaseSequencer;
+export default DurationShardSequencer;
diff --git a/scripts/vitest-shard-sequencer.mjs b/scripts/vitest-shard-sequencer.mjs
new file mode 100644
index 0000000000..3dbdf44efb
--- /dev/null
+++ b/scripts/vitest-shard-sequencer.mjs
@@ -0,0 +1,164 @@
+// Copyright (c) Meta Platforms, Inc. and affiliates.
+
+/**
+ * @file Which Node test files one `--shard <i>/<n>` leg runs.
+ * @input The test specifications Vitest collected; `--shard`; recorded
+ * seconds per Node test file (scripts/vitest-node-durations.json).
+ * @output The specifications this leg runs. With `record <log>…`, a fresh
+ * durations file from Node leg logs.
+ * @position `sequence.sequencer` in vitest.config.ts, so every `--shard` run,
+ * the Main workflow's legs and pull requests' alike, splits the `node` project
+ * this way. Vitest's own split deals files out by a hash of their path, by
+ * count, so slow files can pile into one leg while other legs idle: on
+ * `main` one leg drew the slowest and the fifth-slowest file, 830 s of test
+ * time against about 320 s for two other legs. This assigns every file to
+ * exactly one leg, slowest first, each to the leg with the least recorded
+ * time so far, so the slowest files each take a leg of their own and the
+ * slowest single file sets the floor (spec:AST-030 FR22). Within a leg it
+ * starts the slowest recorded file first, so that file never waits behind
+ * others. A file with no recorded time counts as the median
+ * (scripts/lib/duration-split.mjs). The numbers only steer balance; which
+ * files run never depends on them. Other projects keep Vitest's split and
+ * order.
+ */
+
+import fs from 'node:fs';
+import path from 'node:path';
+import {fileURLToPath, pathToFileURL} from 'node:url';
+import {BaseSequencer} from 'vitest/node';
+import {costOf, slowestFirst, splitByDuration} from './lib/duration-split.mjs';
+
+const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
+export const DURATIONS = path.join(ROOT, 'scripts/vitest-node-durations.json');
+const PROJECT = 'node';
+// Seconds of import and transform per Node test file, as the legs report.
+export const PER_FILE_SECONDS = 0.4;
+
+/**
+ * Splits files into `count` legs by recorded seconds.
+ * @param {string[]} files repository-relative paths
+ * @param {number} count legs
+ * @param {Record<string, number>} seconds recorded seconds per file
+ * @returns {string[][]} each leg's files, sorted; together exactly `files`
+ */
+export function partitionByDuration(files, count, seconds) {
+ const cost = costOf(files, seconds);
+ // Every file also costs its import and transform, which its recorded time
+ // leaves out; without it the hundreds of files recorded at 0 s would all go
+ // to one leg.
+ return splitByDuration(files, count, file => cost(file) + PER_FILE_SECONDS);
+}
+
+/** Recorded seconds per file, or none when the file cannot be read. */
+export function readDurations(file = DURATIONS) {
+ try {
+ return JSON.parse(fs.readFileSync(file, 'utf8')).seconds ?? {};
+ } catch {
+ return {};
+ }
+}
+
+/** Seconds per Node test file from Vitest's default reporter lines. */
+export function recordDurations(text) {
+ const seconds = {};
+ for (const line of text.replace(/\x1b\[[0-9;]*m/g, '').split('\n')) {
+ const match =
+ /[✓❯×]\s+\|?node\|?\s+(\S+\.(?:test|spec)\.[cm]?[jt]sx?)\s+\(\d+ tests?[^)]*\)\s+(\d+(?:\.\d+)?)(ms|s)\s*$/.exec(
+ line,
+ );
+ if (!match) continue;
+ const value = Number(match[2]) / (match[3] === 'ms' ? 1000 : 1);
+ seconds[match[1]] = Math.round(value * 10) / 10;
+ }
+ return seconds;
+}
+
+export default class DurationShardSequencer extends BaseSequencer {
+ relative(spec) {
+ return path
+ .relative(this.ctx.config.root, spec.moduleId)
+ .split(path.sep)
+ .join('/');
+ }
+
+ async shard(specs) {
+ const {index, count} = this.ctx.config.shard;
+ const relative = spec => this.relative(spec);
+ const node = specs.filter(spec => spec.project.name === PROJECT);
+ const others = specs.filter(spec => spec.project.name !== PROJECT);
+ const mine = new Set(
+ partitionByDuration(node.map(relative), count, readDurations())[
+ index - 1
+ ],
+ );
+ return [
+ ...node.filter(spec => mine.has(relative(spec))),
+ ...(others.length > 0 ? await super.shard(others) : []),
+ ];
+ }
+
+ // Vitest orders files by its results cache, which a fresh CI checkout does
+ // not have, so it falls back to file size. Node files start slowest recorded
+ // first instead, in the places Vitest gave `node` files; the rest keep
+ // Vitest's order.
+ async sort(specs) {
+ const sorted = await super.sort(specs);
+ const slots = [];
+ const node = [];
+ sorted.forEach((spec, position) => {
+ if (spec.project.name !== PROJECT) return;
+ slots.push(position);
+ node.push(spec);
+ });
+ const byPath = new Map(node.map(spec => [this.relative(spec), spec]));
+ // One spec per file is the rule; anything else keeps Vitest's order.
+ if (byPath.size !== node.length) return sorted;
+ const files = [...byPath.keys()];
+ const order = slowestFirst(files, costOf(files, readDurations()));
+ const result = [...sorted];
+ order.forEach((file, i) => {
+ result[slots[i]] = byPath.get(file);
+ });
+ return result;
+ }
+}
+
+if (
+ process.argv[1] &&
+ import.meta.url === pathToFileURL(process.argv[1]).href
+) {
+ const [command, ...logs] = process.argv.slice(2);
+ if (command !== 'record' || logs.length === 0) {
+ console.error(
+ 'usage: node scripts/vitest-shard-sequencer.mjs record <Node leg log>…',
+ );
+ process.exit(2);
+ }
+ const seconds = {};
+ for (const log of logs)
+ Object.assign(seconds, recordDurations(fs.readFileSync(log, 'utf8')));
+ if (Object.keys(seconds).length === 0) {
+ console.error('No Node test file times found in those logs.');
+ process.exit(1);
+ }
+ const current = fs.existsSync(DURATIONS)
+ ? JSON.parse(fs.readFileSync(DURATIONS, 'utf8'))
+ : {};
+ fs.writeFileSync(
+ DURATIONS,
+ `${JSON.stringify(
+ {
+ ...current,
+ source: 'recorded Node leg logs',
+ seconds: Object.fromEntries(
+ Object.entries(seconds).sort(([a], [b]) => a.localeCompare(b)),
+ ),
+ },
+ null,
+ 2,
+ )}\n`,
+ );
+ console.error(
+ `Recorded ${Object.keys(seconds).length} Node test files in ${path.relative(ROOT, DURATIONS)}.`,
+ );
+}
diff --git a/scripts/vitest-shard-sequencer.test.mjs b/scripts/vitest-shard-sequencer.test.mjs
new file mode 100644
index 0000000000..bbd46c963f
--- /dev/null
+++ b/scripts/vitest-shard-sequencer.test.mjs
@@ -0,0 +1,215 @@
+// Copyright (c) Meta Platforms, Inc. and affiliates.
+
+import fs from 'node:fs';
+import path from 'node:path';
+import {fileURLToPath} from 'node:url';
+import {describe, expect, it} from 'vitest';
+import DurationShardSequencer, {
+ DURATIONS,
+ partitionByDuration,
+ readDurations,
+ recordDurations,
+} from './vitest-shard-sequencer.mjs';
+
+const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
+const recorded = readDurations();
+const files = Object.keys(recorded).sort();
+const total = leg => leg.reduce((sum, file) => sum + recorded[file], 0);
+const slowest = [...files].sort((a, b) => recorded[b] - recorded[a]);
+
+describe('duration-balanced Node legs', () => {
+ it('records a time for the whole Node suite', () => {
+ expect(files.length).toBeGreaterThan(500);
+ for (const file of files) {
+ // A file faster than 50 ms is recorded as 0.
+ expect(recorded[file], file).toBeGreaterThanOrEqual(0);
+ expect(path.isAbsolute(file), file).toBe(false);
+ }
+ // The slowest files still exist, so the split they steer is real.
+ for (const file of slowest.slice(0, 6))
+ expect(fs.existsSync(path.join(ROOT, file)), file).toBe(true);
+ });
+
+ it.each([4, 6])(
+ 'runs every file in exactly one of %i legs, the same split in any order',
+ count => {
+ const legs = partitionByDuration(files, count, recorded);
+ expect(legs.flat().sort()).toEqual(files);
+ expect(new Set(legs.flat()).size).toBe(files.length);
+ const shuffled = [...files].reverse();
+ expect(partitionByDuration(shuffled, count, recorded)).toEqual(legs);
+ },
+ );
+
+ it.each([4, 6])(
+ 'never puts two of the %i slowest files in one leg, and keeps legs within a slow file of each other',
+ count => {
+ const legs = partitionByDuration(files, count, recorded);
+ const legOf = file => legs.findIndex(leg => leg.includes(file));
+ const top = slowest.slice(0, count).map(legOf);
+ expect(new Set(top).size).toBe(count);
+ // Greedy slowest-first: legs differ by at most the slowest file's time.
+ const totals = legs.map(total);
+ expect(Math.max(...totals) - Math.min(...totals)).toBeLessThanOrEqual(
+ recorded[slowest[0]],
+ );
+ },
+ );
+
+ it.each([4, 6])(
+ 'spreads the files recorded at 0 s over all %i legs, not into one',
+ count => {
+ const legs = partitionByDuration(files, count, recorded);
+ const zero = file => recorded[file] === 0;
+ const zeros = files.filter(zero).length;
+ expect(zeros).toBeGreaterThan(100);
+ const mean = files.length / count;
+ for (const leg of legs) {
+ expect(leg.length).toBeLessThanOrEqual(mean * 1.15);
+ expect(leg.filter(zero).length).toBeLessThanOrEqual(
+ (zeros / count) * 1.5,
+ );
+ }
+ },
+ );
+
+ it('counts a file with no recorded time as the median', () => {
+ const seconds = {'a.test.mjs': 10, 'b.test.mjs': 6, 'c.test.mjs': 1};
+ const legs = partitionByDuration(
+ ['a.test.mjs', 'b.test.mjs', 'c.test.mjs', 'new.test.mjs'],
+ 2,
+ seconds,
+ );
+ // new counts as 6, the median: a (10) and c (1) share one leg, b and new
+ // (6 each) the other. Counted as 1 or as 10 it would land elsewhere.
+ expect(legs).toEqual([
+ ['a.test.mjs', 'c.test.mjs'],
+ ['b.test.mjs', 'new.test.mjs'],
+ ]);
+ });
+
+ it('splits only the node project; other projects keep Vitest’s split', async () => {
+ const spec = (project, file) => ({
+ project: {name: project},
+ moduleId: path.join(ROOT, file),
+ });
+ const node = slowest.slice(0, 12).map(file => spec('node', file));
+ const ui = Array.from({length: 9}, (_, i) =>
+ spec('ui', `packages/core/src/X${i}/X${i}.test.tsx`),
+ );
+ const count = 3;
+ const legs = [];
+ for (let index = 1; index <= count; index += 1) {
+ const sequencer = new DurationShardSequencer({
+ config: {root: ROOT, shard: {index, count}},
+ });
+ legs.push(await sequencer.shard([...ui, ...node]));
+ }
+ const ids = legs.flat().map(item => item.moduleId);
+ expect(ids.sort()).toEqual(
+ [...ui, ...node].map(item => item.moduleId).sort(),
+ );
+ const expected = partitionByDuration(
+ node.map(item => path.relative(ROOT, item.moduleId)),
+ count,
+ recorded,
+ );
+ for (const [index, leg] of legs.entries()) {
+ expect(
+ leg
+ .filter(item => item.project.name === 'node')
+ .map(item => path.relative(ROOT, item.moduleId))
+ .sort(),
+ ).toEqual(expected[index]);
+ expect(leg.filter(item => item.project.name === 'ui')).toHaveLength(3);
+ }
+ });
+
+ it('runs a new test file that has no recorded time in exactly one leg', async () => {
+ const added = 'packages/cli/a-brand-new.test.mjs';
+ expect(recorded[added]).toBeUndefined();
+ const node = [...slowest.slice(0, 20), added].map(file => ({
+ project: {name: 'node'},
+ moduleId: path.join(ROOT, file),
+ }));
+ const legs = [];
+ for (let index = 1; index <= 6; index += 1) {
+ const sequencer = new DurationShardSequencer({
+ config: {root: ROOT, shard: {index, count: 6}},
+ });
+ legs.push((await sequencer.shard(node)).map(item => item.moduleId));
+ }
+ expect(
+ legs.filter(leg => leg.includes(path.join(ROOT, added))),
+ ).toHaveLength(1);
+ expect(legs.flat().sort()).toEqual(node.map(item => item.moduleId).sort());
+ });
+
+ it('documents how to regenerate the recorded times', () => {
+ const {$comment} = JSON.parse(fs.readFileSync(DURATIONS, 'utf8'));
+ expect($comment).toContain(
+ 'node scripts/vitest-shard-sequencer.mjs record',
+ );
+ expect(
+ fs.readFileSync(
+ path.join(ROOT, 'scripts/vitest-shard-sequencer.mjs'),
+ 'utf8',
+ ),
+ ).toContain("command !== 'record'");
+ });
+
+ it("starts each leg's slowest recorded Node file first, keeping other projects' order", async () => {
+ // The project fields Vitest's own sort reads.
+ const spec = (project, file) => ({
+ project: {
+ name: project,
+ config: {sequence: {groupOrder: 0}, isolate: true},
+ },
+ moduleId: path.join(ROOT, file),
+ });
+ const fast = slowest.slice(-3).map(file => spec('node', file));
+ const slow = slowest.slice(0, 3).map(file => spec('node', file));
+ const ui = [spec('ui', 'packages/core/src/A/A.test.tsx')];
+ const sequencer = new DurationShardSequencer({
+ config: {root: ROOT, shard: {index: 1, count: 1}},
+ cache: {
+ getFileTestResults: () => undefined,
+ getFileStats: () => undefined,
+ },
+ });
+ const order = (await sequencer.sort([...fast, ...ui, ...slow])).map(item =>
+ path.relative(ROOT, item.moduleId),
+ );
+ const nodeOrder = order.filter(file => !file.startsWith('packages/core/'));
+ expect(nodeOrder.slice(0, 3)).toEqual(slowest.slice(0, 3));
+ expect(order).toContain('packages/core/src/A/A.test.tsx');
+ expect(order).toHaveLength(7);
+ });
+
+ it('is the sequencer every Vitest run uses', () => {
+ const config = fs.readFileSync(path.join(ROOT, 'vitest.config.ts'), 'utf8');
+ expect(config).toContain(
+ "import DurationShardSequencer from './scripts/vitest-shard-sequencer.mjs';",
+ );
+ expect(config).toContain('sequence: {sequencer: DurationShardSequencer},');
+ });
+
+ it('records seconds per file from Node leg log lines, failed files included', () => {
+ const log = [
+ '2026-11-01T07:54:35.11Z ✓ node packages/cli/a.test.mjs (124 tests) 2733ms',
+ 'job\tstep\t2026-11-01T07:57:41.61Z ❯ node packages/cli/b.test.mjs (40 tests | 1 failed) 192231ms',
+ ' ✓ |node| scripts/c.test.mjs (3 tests) 1.5s',
+ ' ↓ node internal/d.test.ts (31 tests | 31 skipped)',
+ ' ✓ ui packages/core/src/E/E.test.tsx (5 tests) 900ms',
+ 'unrelated',
+ ].join('\n');
+ expect(recordDurations(log)).toEqual({
+ 'packages/cli/a.test.mjs': 2.7,
+ 'packages/cli/b.test.mjs': 192.2,
+ 'scripts/c.test.mjs': 1.5,
+ });
+ expect(path.relative(ROOT, DURATIONS)).toBe(
+ 'scripts/vitest-node-durations.json',
+ );
+ });
+});
diff --git a/vitest.config.ts b/vitest.config.ts
index 5ab173f171..344e0abf73 100644
--- a/vitest.config.ts
+++ b/vitest.config.ts
@@ -3,8 +3,8 @@
/**
* @file vitest.config.ts
* @input Uses vitest/config, @vitejs/plugin-react
- * @output Vitest configuration with jsdom, coverage, test setup, and the two
- * test projects (`ui`, `node`)
+ * @output Vitest configuration with jsdom, coverage, test setup, the two
+ * test projects (`ui`, `node`), and the sequencer that splits `--shard` legs
* @position Root test config and the actual test entry point. The two projects
* under `test.projects` decide which files run where via their per-project
* include lists. The root-level `test` options (globals, environment,
@@ -22,6 +22,7 @@ import path from 'node:path';
import {configDefaults, defineConfig} from 'vitest/config';
import react from '@vitejs/plugin-react';
import stylexResolution from './scripts/stylex-module-resolution.cjs';
+import DurationShardSequencer from './scripts/vitest-shard-sequencer.mjs';
const rootDir = path.resolve(__dirname, '.');
const coreSrc = path.resolve(__dirname, 'packages/core/src');
@@ -85,6 +86,10 @@ export default defineConfig({
// (e.g. Chat composer tests with contentEditable + popover portals in
// jsdom). Vitest 4 removed `poolOptions`; per-worker argv is now top-level.
execArgv: ['--max-old-space-size=4096'],
+ // A `--shard` leg of the `node` project runs files chosen by their
+ // recorded time, not by count, so the slowest files never share a leg
+ // (scripts/vitest-shard-sequencer.mjs, spec:AST-030 FR22).
+ sequence: {sequencer: DurationShardSequencer},
// Test projects (migrated from vitest.workspace.ts). Partitioning rule
// (nothing can fall through):
// - `ui` = packages/core + packages/lab + packages/charts + packages/richtext