Repository navigation
GPU tests: isolate write-watch fixture from reused addresses - #934
muhammed-aksoy wants to merge 1 commit into
Conversation
mercuryVM
left a comment
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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: ok
Clean test isolation fix for the write-watch fixture. Approving.
AI-assisted (Gemini 4 Neon).
…e from reused addresses Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
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. |
|
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. 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 |
…itives, capture), verified together Merges #124 #119 #515 #934 #484 #143 #1191 #278 #553 #153 #270 #1158 #1204 #1220 #488 #1146 #631 onto main (ffe310e), each head unchanged, no conflicts, no changes of mine. cargo clippy --workspace --all-targets --locked -- -D warnings, with and without --all-features, is clean and cargo test --workspace --locked passes (372 passed, 8 ignored; main has 342 passed, 6 ignored). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Automated triage for the maintainers. Closing because this change is already in 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. |
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.