Parent: #494 Discovered while verifying #1024.
Reproduction
On current main:
zig build test-jit -j1The focused JIT root imports the production module closure, including src/wasm/api.zig's test at line 4681. That test imports wasm_test_options, but the focused_jit_tests root in build.zig only receives private_abi_options.
Observed compiler error:
src/wasm/api.zig:4681:38: error: no module named 'wasm_test_options' available within module 'root'The ordinary full-test root already creates and installs this options module at build.zig:1447-1449; the focused JIT root at build.zig:1491-1508 does not.
Scope
- Wire the existing generated
wasm_test_optionsmodule intofocused_jit_tests, or narrow the focused root so unrelated wasm test bodies are not part of its semantic closure. - Keep
zig build test-jita genuinely focused feedback command rather than running the full unit inventory. - Add a build-step regression check that reaches the compile phase from a clean cache.
Definition of done
zig build test-jit -j1compiles and runs on a checkout with the real zig-gc dependency.- The focused gate's executed-test denominator is documented and substantially smaller than the full unit suite.
zig build test-parallelremains unchanged.