Shader tests: serialize remaining Host::new tests with ONE_AT_A_TIME (#1882) #2964

Open
github-bot wants to merge 1 commit from github-bot/gh-2964 into main AGit
Owner

@⁠Dukestar69 on GitHub · 2026-11-26 01:44 UTC · original
Dukestar69:fix/diff-tests-gpu-lock → main · +12 −0 · 3 files · 1 commits · open

Summary

Serialize the remaining Host::new call sites in victory-shader tests (diff_tests.rs, rect.rs, and mod.rs::stub_pipeline_is_created) with ONE_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).

**@⁠Dukestar69** on GitHub · 2026-11-26 01:44 UTC · [original](https://github.com/Marvisak/VIctory/pull/2964) `Dukestar69:fix/diff-tests-gpu-lock` → `main` · +12 −0 · 3 files · 1 commits · open ## Summary Serialize the remaining `Host::new` call sites in `victory-shader` tests (`diff_tests.rs`, `rect.rs`, and `mod.rs::stub_pipeline_is_created`) with `ONE_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).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:18:47 +00:00
Author
Owner

@⁠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_TIME lock in the remaining GPU tests that create a Host without it: the five device tests in emit/diff_tests.rs, the rect test in emit/rect.rs, and stub_pipeline_is_created in emit/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 same cfg(all(test, windows)) gating as valu_tests, and that none of the locked tests calls a helper that takes the lock again (run_cases does, but these tests don't use it), so the non-reentrant Mutex can't deadlock.

CI: not run on this head (no check runs reported).

Recommending a look, not approving.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-26 05:47 UTC · [original](https://github.com/Marvisak/VIctory/pull/2964#issuecomment-7183810944) <!-- victory-triage v1 head=9956c99a5ca0cba17806a0ccbac5163c9ce320ec verdict=merge-candidate at=2026-11-26T05:47:27Z --> Automated triage for the maintainers. **Merge candidate.** This takes the existing `valu_tests::ONE_AT_A_TIME` lock in the remaining GPU tests that create a `Host` without it: the five device tests in `emit/diff_tests.rs`, the rect test in `emit/rect.rs`, and `stub_pipeline_is_created` in `emit/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 same `cfg(all(test, windows))` gating as `valu_tests`, and that none of the locked tests calls a helper that takes the lock again (`run_cases` does, but these tests don't use it), so the non-reentrant `Mutex` can't deadlock. CI: not run on this head (no check runs reported). Recommending a look, not approving. --- _Generated by [Claude Code](https://claude.ai/code)_
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2964/head:github-bot/gh-2964'
git switch 'github-bot/gh-2964'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2964'
git switch 'github-bot/gh-2964'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2964'
git switch 'github-bot/gh-2964'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2964'
git switch 'main'
git merge --squash 'github-bot/gh-2964'
git switch 'main'
git merge --ff-only 'github-bot/gh-2964'
git switch 'main'
git merge 'github-bot/gh-2964'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!2964
No description provided.