mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-22 05:59:31 +08:00
self-hosting-native-frontend.test.ts was one test of 577 s (plain) and 607 s (sanitized) in the cost table, and 748 s on san 1/20 in run 38835202089; once the other long files were spread, it alone bounded the Linux test lane. It builds the compiler frontend into a native executable, then checks 17 corpus programs and four other cases with it. Locally the build took about 189 s and the checks 297 s (14-20 s per program). The build and the checks move to tests/harness/native-frontend.ts without changes to what they check; useNativeFrontend builds the executable in a beforeAll of the calling suite. self-hosting-native-frontend.test.ts, -programs.test.ts and -checks.test.ts each build once and run programs 1-6, 7-12, and 13-17 plus the four other checks, each check as its own test. The diagnostics, library contract and FFI checks use project directories of their own instead of rewriting one shared main.ts. scripts/ci-test-costs.json replaces the old file's entry with estimates for the three files (the build share of its measured cost plus each file's share of the checks); the next refresh measures them, since vitest's file time includes beforeAll. The largest side-queue share per shard at 20 shards goes from 580 to 367 s (plain) and from 608 to 432 s (sanitized), for two more builds per flavor.