mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-24 06:14:01 +08:00
npm-static.test.ts ran whole on one shard as an isolated suite: 406 s plain and 519 s sanitized in the cost table, and 672 s on san 2/20 in run 38835202089, the second-longest job of that run. skipUnownedTest (tests/harness/shard.ts), called from the suite's beforeEach, balances the suite's tests across the shards of SCRIPTC_TEST_SHARD by their measured milliseconds (tests/harness/npm-static-costs.json; an unmeasured test weighs as much as the median) and skips the tests this shard does not own. Repeated test.each titles get an occurrence suffix as their key. Without a shard spec every test runs. The CI plan runs the suite on every shard in its own vitest process (caseShardedSideFiles) instead of on one owner. At 20 shards the largest shares are 113 and 106 s plain and 181 and 137 s sanitized (the two published Effect generator tests), and about 10 s elsewhere, plus about 11 s per shard to collect the file. scripts/ci-test-costs.mjs also refreshes the per-test table and drops side-queue files that no longer run whole.