GPU tests: isolate write-watch fixture from reused addresses #934

Closed
github-bot wants to merge 1 commit from gh-pr/934/head into gh-pr/934/base
Owner

@⁠muhammed-aksoy on GitHub · 2026-11-24 14:20 UTC · original
muhammed-aksoy:fix/write-watch-fixture-isolation → main · +6 −0 · 1 files · 1 commits · closed without merging

Windows can reuse a virtual address from an earlier test. The process-wide write-watch journal can still contain entries for that range, so the fixture's initial empty check can fail. I observed this when testing #230 and #693 against main.

Clear journal entries for the fixture's newly allocated pages before the first assertion. The fixture still checks that a write is reported to both readers after the kernel clears its bit.

  • Windows 11 x64 with WARP. The GPU diagnostics suite passed 53 tests, with one ignored.
  • Command used cargo test --locked -p victory-gpu --features diagnostics -- --test-threads=1.
  • This changes only a synthetic test fixture. AI-assisted.
**@⁠muhammed-aksoy** on GitHub · 2026-11-24 14:20 UTC · [original](https://github.com/Marvisak/VIctory/pull/934) `muhammed-aksoy:fix/write-watch-fixture-isolation` → `main` · +6 −0 · 1 files · 1 commits · closed without merging Windows can reuse a virtual address from an earlier test. The process-wide write-watch journal can still contain entries for that range, so the fixture's initial empty check can fail. I observed this when testing #230 and #693 against main. Clear journal entries for the fixture's newly allocated pages before the first assertion. The fixture still checks that a write is reported to both readers after the kernel clears its bit. - Windows 11 x64 with WARP. The GPU diagnostics suite passed 53 tests, with one ignored. - Command used `cargo test --locked -p victory-gpu --features diagnostics -- --test-threads=1`. - This changes only a synthetic test fixture. AI-assisted.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:14:26 +00:00
github-bot closed this pull request 2026-11-26 04:14:26 +00:00
Author
Owner

@⁠MichaelSmithAI on GitHub · 2026-11-24 14:28 UTC · original

Independent Win64 Wine 11.22 run on 95cefda: all three write-watch tests passed serially, including the check that both readers see the written page. The test-only change also applies cleanly to our #776 integration and clears the same journal entries before the fixture’s first query. This run verified the isolated fixture; it did not reproduce address reuse.

**@⁠MichaelSmithAI** on GitHub · 2026-11-24 14:28 UTC · [original](https://github.com/Marvisak/VIctory/pull/934#issuecomment-7134436082) Independent Win64 Wine 11.22 run on 95cefda: all three write-watch tests passed serially, including the check that both readers see the written page. The test-only change also applies cleanly to our #776 integration and clears the same journal entries before the fixture’s first query. This run verified the isolated fixture; it did not reproduce address reuse.
Author
Owner

@⁠dcastell1 on GitHub · 2026-11-24 14:35 UTC · original

Verified on native Windows (no Wine): NVIDIA GeForce RTX 5090 (driver 621.24), Windows 11 10.0.26300, Rust 1.98.1, MSVC 14.44.35207, debug build. main@ffe310e baseline on this box: 342 passed, 0 failed, 6 ignored.

cargo test --workspace
342 passed; 0 failed; 6 ignored   (exit 0)

Same count as the baseline (the fixture isolation change), nothing regresses.

Tree restored afterwards (full diff against a clean checkout); no game data, the tests are synthetic. AI-assisted (opencode): applied the patch to a built tree, ran cargo test --workspace, reverted it.

**@⁠dcastell1** on GitHub · 2026-11-24 14:35 UTC · [original](https://github.com/Marvisak/VIctory/pull/934#issuecomment-7134615186) Verified on native Windows (no Wine): NVIDIA GeForce RTX 5090 (driver 621.24), Windows 11 10.0.26300, Rust 1.98.1, MSVC 14.44.35207, debug build. `main@ffe310e` baseline on this box: **342 passed, 0 failed, 6 ignored**. ``` cargo test --workspace 342 passed; 0 failed; 6 ignored (exit 0) ``` Same count as the baseline (the fixture isolation change), nothing regresses. Tree restored afterwards (full diff against a clean checkout); no game data, the tests are synthetic. AI-assisted (opencode): applied the patch to a built tree, ran `cargo test --workspace`, reverted it.
Author
Owner

@⁠Zipettte on GitHub · 2026-11-24 15:40 UTC · original

Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at 95cefda: cargo test -p victory-gpu passes, 50 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).

Tested with AI assistance (Claude).

**@⁠Zipettte** on GitHub · 2026-11-24 15:40 UTC · [original](https://github.com/Marvisak/VIctory/pull/934#issuecomment-7136432371) Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at 95cefda: `cargo test -p victory-gpu` passes, 50 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed). _Tested with AI assistance (Claude)._
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 00:28 UTC · original

Automated triage for the maintainers. Closing because this change is already in main, or main has since replaced the code it patches.

Fixes a test of the write-watch journal (JOURNAL, writes); main has neither the test nor the journal.

If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

**@⁠Marvisak** on GitHub · 2026-11-25 00:28 UTC · [original](https://github.com/Marvisak/VIctory/pull/934#issuecomment-7148544054) Automated triage for the maintainers. Closing because this change is already in `main`, or `main` has since replaced the code it patches. Fixes a test of the write-watch journal (JOURNAL, writes); main has neither the test nor the journal. If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

Pull request closed

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!934
No description provided.