Part of #834 (Production-Readiness Audit) — Batch B4 (regression prevention, parallel-safe).
Replaces audit item #24 (P3). Parallel with: audit-b4 siblings — this issue owns the SPIR-V size-check step (build/test wiring).
Problem
glslangValidator validates shader correctness in zig build test, but doesn't fail on a 2× SPIR-V size growth or compile-time spike. Shader bloat creeps in unobserved.
Acceptance criteria
Files in scope
build.zig (test step wiring) — identify the shader-test invocation
docs/shaders/spirv-sizes.json (new baseline)
- comparison helper script if needed (
scripts/compare_spirv.sh)
Dependencies
Out of scope
- Shader perf (covered by B4-3 ceilings + benchmark harness).
- Cross-toolchain SPIR-V comparison.
Branch / PR
- Branch:
ci/spirv-size-regression · Targets: dev
Part of #834 (Production-Readiness Audit) — Batch B4 (regression prevention, parallel-safe).
Replaces audit item #24 (P3). Parallel with:
audit-b4siblings — this issue owns the SPIR-V size-check step (build/test wiring).Problem
glslangValidatorvalidates shader correctness inzig build test, but doesn't fail on a 2× SPIR-V size growth or compile-time spike. Shader bloat creeps in unobserved.Acceptance criteria
zig build test(or a dedicated step).docs/shaders/spirv-sizes.json).Files in scope
build.zig(test step wiring) — identify the shader-test invocationdocs/shaders/spirv-sizes.json(new baseline)scripts/compare_spirv.sh)Dependencies
zig fmt --checkon src/ and modules/ in build.yml #859, fmt-check) and the base test job being trustworthy — this plugs into the existing test job.Out of scope
Branch / PR
ci/spirv-size-regression· Targets:dev