From 38f7b5aa320c15c5e4c0cf1bd575a59c20a53199 Mon Sep 17 00:00:00 2001 From: justrach <54503978+justrach@users.noreply.github.com> Date: Sat, 21 Nov 2026 10:11:30 +0800 Subject: [PATCH] Run only Zig fixture units for spec conformance The test step also runs subprocess integrations despite a unit-test filter. Use the unit target for fixture conformance while leaving the full test target unchanged. Co-Authored-By: Codegraff --- spec/README.md | 2 +- spec/conformance.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/spec/README.md b/spec/README.md index ec92a973..47f181d4 100644 --- a/spec/README.md +++ b/spec/README.md @@ -69,7 +69,7 @@ python3 spec/conformance.py --diagram transport python3 spec/conformance.py --diagram score python3 spec/conformance.py --break imagegen-always-on # demo a counterexample python3 spec/conformance.py --lean # lake build, if installed -zig build test --summary none -Dtest-filter="spec/tool_catalog" +python3 spec/conformance.py --lean --impl # Lean build + Zig fixture unit tests ``` Process kernels (`GoalLoop`, `PromptCache`, `PromptPrefix`, `PromptStable`, diff --git a/spec/conformance.py b/spec/conformance.py index 25c613ee..f2047523 100644 --- a/spec/conformance.py +++ b/spec/conformance.py @@ -499,10 +499,11 @@ def try_impl() -> int: if zig is None: print("impl: zig not on PATH; skip") return 0 - cmd = [zig, "build", "test", "--summary", "none", "-Dtest-filter=spec/"] + # The "test" step also runs subprocess integrations, regardless of the unit filter. + cmd = [zig, "build", "unit", "--summary", "none", "-Dtest-filter=spec/"] print("impl:", " ".join(cmd)) if subprocess.run(cmd, cwd=ROOT.parent).returncode != 0: - raise Counterexample("impl", None, "zig test spec/tool_catalog failed") + raise Counterexample("impl", None, "Zig spec fixture tests failed") return 0