We raised $3M for agent-native runners

Transpile test sources once per run

Compile the TypeScript that test subprocesses load once, before the tests start.

How OpenAI used this technique

Read what OpenAI changed and follow the original sources.

Transpile test sources once per run

The Node SDK's tests start hundreds of child processes. Each used to load a TypeScript compiler and transpile the same sources; the suite now compiles the example, CLI and SDK sources once per Vitest invocation and points the subprocesses at that snapshot.

Node 22 job for the whole pull request, which also enables Node's compilation cache, bounded concurrency for package downloads and type checks, and an invariant JSON parse hoisted out of a property-test loop: 5m37s to 3m47s (1m32s before the regression on main), one successful run per revision Source

Use it when
A test suite starts many subprocesses that each transpile the same sources.
Before applying it
The compiled snapshot belongs to one run; never restore it across runs.

Company Playbooks