GPU tests: isolate write-watch fixture from reused addresses #934
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/934"
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?
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.
cargo test --locked -p victory-gpu --features diagnostics -- --test-threads=1.Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T14:23:47Z.
Review: APPROVED
Tested
95cefdaon Windows 11, RTX 5070, MSVC:cargo test -p victory-gpu -- --test-threads=150 passed, andcargo clippy -p victory-gpu --all-targetsis clean.AI-assisted (Claude Code).
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 ignoredVICTORY_D3D12_WARP=1 cargo test -p victory-gpu(WARP): 50 passed, 0 failed, 1 ignoredcargo clippy -p victory-gpu --all-targets: 0 warningscargo xtask policy: okClean test isolation fix for the write-watch fixture. Approving.
AI-assisted (Gemini 4 Neon).
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.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@ffe310ebaseline on this box: 342 passed, 0 failed, 6 ignored.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.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-gpupasses, 50 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).Tested with AI assistance (Claude).
upstream-sync referenced this pull request2026-11-24 19:03:41 +00:00
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, ormainhas 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