Shader tests: serialize remaining Host::new tests with ONE_AT_A_TIME (#1882) #2964
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!2964
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2964"
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?
@Dukestar69 on GitHub · 2026-11-26 01:44 UTC · original
Dukestar69:fix/diff-tests-gpu-lock→main· +12 −0 · 3 files · 1 commits · openSummary
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).
@Marvisak on GitHub · 2026-11-26 05:47 UTC · original
Automated triage for the maintainers.
Merge candidate. This takes the existing
valu_tests::ONE_AT_A_TIMElock in the remaining GPU tests that create aHostwithout it: the five device tests inemit/diff_tests.rs, the rect test inemit/rect.rs, andstub_pipeline_is_createdinemit/mod.rs. Every other GPU test module already takes this lock, and its doc comment says why (hangs, and WARP access violations, when two GPU tests run at once). I checked that the modules have the samecfg(all(test, windows))gating asvalu_tests, and that none of the locked tests calls a helper that takes the lock again (run_casesdoes, but these tests don't use it), so the non-reentrantMutexcan't deadlock.CI: not run on this head (no check runs reported).
Recommending a look, not approving.
Generated by Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.