Shader tests: serialize remaining Host::new tests with ONE_AT_A_TIME (#1882) #2017
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2019"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-25T03:14:11Z.
Related to #1882 (extending the shared
ONE_AT_A_TIMElock rationale from #433 and @fiestorra's #1892).Every other GPU test module in
crates/victory-shader/src/emit/(valu_tests,memory_tests,flow_tests,bvh_tests,semantics_tests,stride_tests,synthetic_tests,waterfall_tests) serializesHost::new/ D3D12+WARP execution viavalu_tests::ONE_AT_A_TIME, except for:crates/victory-shader/src/emit/diff_tests.rs(all 5Host::newcall sites)crates/victory-shader/src/emit/mod.rs(stub_pipeline_is_created)crates/victory-shader/src/emit/rect.rs(rectangles_get_their_fourth_corner)Taking
ONE_AT_A_TIMEin these remaining GPU test call sites ensures no twovictory-shadertests create or drive D3D12/WARP devices concurrently during parallelcargo test --workspaceruns. (Kept asRelated to #1882so #1882 remains open until the specific intermittent bitmap failure is reproduced/confirmed resolved.)Verified locally on Windows 11 x64 (NVIDIA GeForce RTX 5090 + WARP, Rust 1.98.1 MSVC):
cargo test -p victory-shader --lib emit::diff_tests::— 5 passed, 0 failedcargo test -p victory-shader --lib stub_pipeline_is_created— 1 passed, 0 failedcargo test -p victory-shader --lib emit::rect::— 1 passed, 0 failedcargo test -p victory-shader --lib emit::memory_tests::— 3 passed, 0 failedcargo clippy -p victory-shader --all-targets— 0 warningscargo xtask policy— ok (183 files ok)AI-assisted (Gemini 4 Neon).
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T03:34:31Z.
Review: APPROVED
Tested locally: macOS arm64, rustc 1.98.1, PR head merged into main
940d32f69b,cargo test -p victory-shader --locked.144 passed / 0 failed. Remaining Host::new tests serialized with ONE_AT_A_TIME — fixes the flaky parallel-host-init class; same theme as #1892's shared lock (GPU side).
Imported from Marvisak/VIctory. Originally posted by jeremygold02 on 2026-11-25T03:28:14Z.
Triage verdict — Keep the broader test hardening; leave the flake open (
2ce000e)Evidence
Checks and limits
Next step
This verification was AI-assisted.
Imported from Marvisak/VIctory. Originally posted by Calvix2k on 2026-11-25T03:40:38Z.
Verified on Windows 10 19045 (RX 7800 XT), your head
2ce000eplus the "skip the GPU suites a device cannot run" patch from #1991 (this host reports SM 6.5, so the probes would otherwise fail for an unrelated reason):cargo test -p victory-shader --lib— 247 passed, 0 failed, 3 ignored, including the three tests you moved underONE_AT_A_TIME(diff_tests,rect,stub_pipeline_is_created). The serialisation is the right fix for the shared-device flakiness; nothing else in the suite changed behavior.One note:
rectandstub_pipeline_is_createdskip here (no SM 6.6 device), so the lock ordering is only exercised on a machine like CI's. If the intent is to cover them on ordinary hosts too, #1991's skip lands them as skips rather than silent passes.Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T09:17:25Z.
Automated triage for the maintainers.
This pull request no longer merges cleanly into
main(conflicts incrates/victory-shader/src/emit/rect.rs). It will be reviewed once it is rebased onto the currentmain. The earlier verdict (merge-candidate) was for an older state ofmain.Generated by Claude Code
Imported from Marvisak/VIctory. Originally posted by sinan-cmyk on 2026-11-25T09:50:57Z.
Offline measurement on a retail dump
Result: no count change against
main.I merged head
2ce000ebontomain940d32f(clean merge) and ranvictory translate --validate --listonshaders.rpf(1.0.2.1), with dxil.dll 1.8.2502.11. I compared the result withmainprogram by program (25,889 programs). Validated: 23,918 onmain, 23,918 with this PR.No program changes its failure reason. The count shows that the change rejects nothing on this data. It does not show whether the output is right.
No shader names or data are included, per the asset policy. AI-assisted (Claude Code).
Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-26T00:53:53Z.
Closing this PR — stepping back from code contributions on this account. Feel free to reuse the approach if helpful.
Pull request closed