test: serialize Metal GPU tests #583

Open
github-bot wants to merge 5 commits from github-bot/gh-579 into main AGit
Owner

@⁠dhruv0807 on GitHub · 2026-11-28 06:58 UTC · original
dhruv0807:fix/serialize-metal-gpu-tests → main · +262 −6 · 27 files · 5 commits · open

Summary

Serializes Metal-touching tests across victory-gpu and victory-metal to prevent concurrent GPU test execution from overwhelming the macOS Metal driver.

  • Adds a test-only ONE_AT_A_TIME mutex for each test binary.
  • Acquires the mutex at the beginning of Metal-touching tests.
  • Covers indirect Metal initialization paths in victory-gpu.
  • Keeps CPU-only tests parallel.
  • Recovers poisoned mutexes so subsequent tests can continue.

Validation

  • cargo test -p victory-gpu -p victory-metal --no-run — passed.
  • GPU runtime tests were intentionally not run because of the GPU hang and watchdog issue described in #552.

Closes #552

**@⁠dhruv0807** on GitHub · 2026-11-28 06:58 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/579) `dhruv0807:fix/serialize-metal-gpu-tests` → `main` · +262 −6 · 27 files · 5 commits · open ## Summary Serializes Metal-touching tests across `victory-gpu` and `victory-metal` to prevent concurrent GPU test execution from overwhelming the macOS Metal driver. - Adds a test-only `ONE_AT_A_TIME` mutex for each test binary. - Acquires the mutex at the beginning of Metal-touching tests. - Covers indirect Metal initialization paths in `victory-gpu`. - Keeps CPU-only tests parallel. - Recovers poisoned mutexes so subsequent tests can continue. ## Validation - `cargo test -p victory-gpu -p victory-metal --no-run` — passed. - GPU runtime tests were intentionally not run because of the GPU hang and watchdog issue described in #552. Closes #552
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 07:01:11 +00:00
Author
Owner

@⁠AnastasisKon on GitHub · 2026-11-28 13:35 UTC · original · approved these changes

Reviewed the diff: the ONE_AT_A_TIME guard is taken at the top of each Metal-touching test, cfg(macos)-gated, poison-recovered via into_inner(), and held for the test's duration, so a panicking test cannot wedge the rest. CPU-only tests stay parallel. CI green. Approving.

**@⁠AnastasisKon** on GitHub · 2026-11-28 13:35 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/579#pullrequestreview-6098054806) · **approved these changes** Reviewed the diff: the ONE_AT_A_TIME guard is taken at the top of each Metal-touching test, cfg(macos)-gated, poison-recovered via into_inner(), and held for the test's duration, so a panicking test cannot wedge the rest. CPU-only tests stay parallel. CI green. Approving.
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/583/head:github-bot/gh-579'
git switch 'github-bot/gh-579'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-579'
git switch 'github-bot/gh-579'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-579'
git switch 'github-bot/gh-579'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-579'
git switch 'main'
git merge --squash 'github-bot/gh-579'
git switch 'main'
git merge --ff-only 'github-bot/gh-579'
git switch 'main'
git merge 'github-bot/gh-579'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.