mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-06 08:23:19 +08:00
The test compiles the three npm package twice, dev and release, and both cases shared one 600s budget through test.each. Release compiles the whole library into one LLVM module that scriptc-llvm-codegen optimizes and codegens in a single process on a single core: 426s of the 477s total run in the native-archive phase alone. Across sandbox lanes release measured 331, 335, 339, 345, 348, 350, 358, 428, 450, 511, 521 and 581s, so whole- box speed varies about 1.7x and the slowest lanes sat within 20s of the budget; the sanitized dev case hit 600s twice. There is no regression, the work is fixed and single-threaded. Generate the two cases in a loop so each gets its own timeout: 1200_000ms for release and for dev under SCRIPTC_SAN, and the unchanged 600_000ms else. Test names are byte-identical to the .each %s expansion, so skipUnownedTest keeps assigning each case to the same shard. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>