Repository navigation
Shader tests: serialize remaining Host::new tests with ONE_AT_A_TIME (#1882) - #2964
Dukestar69 wants to merge 1 commit into
Conversation
…ipeline_is_created
fuzeofficlal
left a comment
There was a problem hiding this comment.
Reviewed and verified against main (63bcca43) on Windows 11 (RTX 5090 + WARP, VICTORY_D3D12_DEBUG=1). All updated lock sites acquire ONE_AT_A_TIME before Host::new with .unwrap_or_else(|e| e.into_inner()) (no deadlock or poison cascade even when pre-existing tests panic).
Two remaining Host::new(true) sites in victory-shader were not covered yet (optional follow-up or include here):
crates/victory-shader/src/emit/synthetic_tests.rs:1006(pops_wait_loop_exits_immediately_for_inactive_lanes) callsHost::new(true)without holdingONE_AT_A_TIME.crates/victory-shader/src/emit/host.rs:2035, 2039, 2051(parallel_warp_pipelines_and_draws) intentionally spawns 8 concurrent WARP threads internally, so holdingONE_AT_A_TIMEonce at test entry would keep it from overlapping other serialized WARP tests.
Local verification:
- Modified modules in parallel (
emit::diff_tests::,emit::rect::,emit::tests::stub_pipeline_is_created,VICTORY_D3D12_DEBUG=1): 8/8 passed - Full parallel
victory-shader --librun: 297 passed (zero deadlocks, zero WARP concurrent crashes, zero lock-poison cascades; the 3 failures are pre-existing RTX 5090 baseline tests) cargo clippy --all-targets -- -D warnings+cargo xtask policy(192 files ok): 0 warnings
kotekompotek
left a comment
There was a problem hiding this comment.
Verified: the remaining Host::new tests now take ONE_AT_A_TIME, consistent with the serialized-hardware convention already in valu_tests — removes the parallel-GPU-use flake without changing coverage.
|
Automated triage for the maintainers. Merge candidate. This takes the existing CI: not run on this head (no check runs reported). Recommending a look, not approving. Generated by Claude Code |
…s with ONE_AT_A_TIME (Marvisak#1882)
Summary
Serialize the remaining
Host::newcall sites invictory-shadertests (diff_tests.rs,rect.rs, andmod.rs::stub_pipeline_is_created) withONE_AT_A_TIME, extending the rationale in #1882 / #1892 (credit to @fiestorra).Related to #1882.
Testing
cargo test -p victory-shader emit::rect::tests: 1/1 passed.cargo test -p victory-shader stub_pipeline_is_created: 1/1 passed.cargo clippy -p victory-shader --all-targets -- -D warnings: 0 warnings.cargo xtask policy: 192 files ok.Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).