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

Closed
muhammed-aksoy wants to merge 1 commit from upstream-pr/934 into main
muhammed-aksoy commented 2026-11-24 14:20:16 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by muhammed-aksoy on 2026-11-24T14:20:16Z.


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.
<!-- greyfinch-sync:Marvisak/VIctory:issue:6583882980 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/934). Originally posted by [muhammed-aksoy](https://github.com/muhammed-aksoy) on 2026-11-24T14:20:16Z. --- 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.
mercuryVM commented 2026-11-24 15:03:24 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T14:23:47Z.

Review: APPROVED


Tested 95cefda on Windows 11, RTX 5070, MSVC: cargo test -p victory-gpu -- --test-threads=1 50 passed, and cargo clippy -p victory-gpu --all-targets is clean.

  • Clearing the journal's entries for the fixture's freshly allocated pages before the first assertion removes the cross-test dependence on reused virtual addresses. The fixture still checks the property it's for: a write is reported to both readers after the kernel clears its bit.

AI-assisted (Claude Code).

<!-- greyfinch-sync:Marvisak/VIctory:review:6040958548 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/934#pullrequestreview-6040958548). Originally posted by [mercuryVM](https://github.com/mercuryVM) on 2026-11-24T14:23:47Z. **Review:** APPROVED --- Tested 95cefda on Windows 11, RTX 5070, MSVC: `cargo test -p victory-gpu -- --test-threads=1` 50 passed, and `cargo clippy -p victory-gpu --all-targets` is clean. - Clearing the journal's entries for the fixture's freshly allocated pages before the first assertion removes the cross-test dependence on reused virtual addresses. The fixture still checks the property it's for: a write is reported to both readers after the kernel clears its bit. AI-assisted (Claude Code).
DenRakEiw commented 2026-11-24 15:03:24 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-24T14:24:10Z.

Review: APPROVED


Tested merged cleanly onto main (ffe310e) on Windows 11 x64 (Rust 1.98.1 MSVC) with NVIDIA GeForce RTX 5090 (Blackwell) and WARP (VICTORY_D3D12_WARP=1):

  • cargo test -p victory-gpu (RTX 5090): 50 passed, 0 failed, 1 ignored
  • VICTORY_D3D12_WARP=1 cargo test -p victory-gpu (WARP): 50 passed, 0 failed, 1 ignored
  • cargo clippy -p victory-gpu --all-targets: 0 warnings
  • cargo xtask policy: ok

Clean test isolation fix for the write-watch fixture. Approving.

AI-assisted (Gemini 4 Neon).

<!-- greyfinch-sync:Marvisak/VIctory:review:6040966295 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/934#pullrequestreview-6040966295). Originally posted by [DenRakEiw](https://github.com/DenRakEiw) on 2026-11-24T14:24:10Z. **Review:** APPROVED --- Tested merged cleanly onto `main` (`ffe310e`) on Windows 11 x64 (Rust 1.98.1 MSVC) with **NVIDIA GeForce RTX 5090** (Blackwell) and **WARP** (`VICTORY_D3D12_WARP=1`): - `cargo test -p victory-gpu` (RTX 5090): **50 passed, 0 failed, 1 ignored** - `VICTORY_D3D12_WARP=1 cargo test -p victory-gpu` (WARP): **50 passed, 0 failed, 1 ignored** - `cargo clippy -p victory-gpu --all-targets`: **0 warnings** - `cargo xtask policy`: ok Clean test isolation fix for the write-watch fixture. Approving. AI-assisted (Gemini 4 Neon).
MichaelSmithAI commented 2026-11-24 15:04:03 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by MichaelSmithAI on 2026-11-24T14:28:34Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7134436082 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/934#issuecomment-7134436082). Originally posted by [MichaelSmithAI](https://github.com/MichaelSmithAI) on 2026-11-24T14:28:34Z. --- 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.
dcastell1 commented 2026-11-24 15:04:06 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by dcastell1 on 2026-11-24T14:35:06Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7134615186 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/934#issuecomment-7134615186). Originally posted by [dcastell1](https://github.com/dcastell1) on 2026-11-24T14:35:06Z. --- 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.
Zipettte commented 2026-11-24 16:05:18 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Zipettte on 2026-11-24T15:40:51Z.


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).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7136432371 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/934#issuecomment-7136432371). Originally posted by [Zipettte](https://github.com/Zipettte) on 2026-11-24T15:40:51Z. --- 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)._
upstream-sync closed this pull request 2026-11-25 01:04:57 +00:00
Marvisak commented 2026-11-25 01:07:51 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:28:19Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7148544054 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/934#issuecomment-7148544054). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T00:28:19Z. --- 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

Sign in to join this conversation.
No reviewers
No labels
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.

Reference
Marvisak/VIctory!934
No description provided.