Shader tests: serialize remaining Host::new tests with ONE_AT_A_TIME (#1882) #2019
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!2019
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2019/head"
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?
@DenRakEiw on GitHub · 2026-11-25 03:14 UTC · original
fix/diff-tests-gpu-lock→main· +12 −0 · 3 files · 1 commits · closed without mergingRelated 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).
@jeremygold02 on GitHub · 2026-11-25 03:28 UTC · original
Triage verdict — Keep the broader test hardening; leave the flake open (
2ce000e)Evidence
Checks and limits
Next step
This verification was AI-assisted.
@Calvix2k on GitHub · 2026-11-25 03:40 UTC · original
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.@Marvisak on GitHub · 2026-11-25 09:17 UTC · original · edited 2026-11-25 15:52 UTC
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
@sinan-cmyk on GitHub · 2026-11-25 09:50 UTC · original
Offline measurement on a retail dump
Result: no count change against
main.I merged head 2ce000eb onto
main940d32f(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).
@DenRakEiw on GitHub · 2026-11-26 00:53 UTC · original
Closing this PR — stepping back from code contributions on this account. Feel free to reuse the approach if helpful.
Pull request closed