Skip to content

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

Closed
muhammed-aksoy wants to merge 1 commit into
Marvisak:mainfrom
muhammed-aksoy:fix/write-watch-fixture-isolation
Closed

muhammed-aksoy wants to merge 1 commit into
Marvisak:mainfrom
muhammed-aksoy:fix/write-watch-fixture-isolation

Conversation

@muhammed-aksoy

Copy link
Copy Markdown

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 mercuryVM left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 DenRakEiw left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

mercuryVM added a commit to mercuryVM/VIctory that referenced this pull request Nov 24, 2026
…e from reused addresses

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MichaelSmithAI

Copy link
Copy Markdown

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

Copy link
Copy Markdown

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

Copy link
Copy Markdown

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

edsuuu referenced this pull request in edsuuu/VI-BR-PORT Nov 24, 2026
…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>
github-actions Bot added a commit to KevinPratap/VIctory that referenced this pull request Nov 24, 2026
github-actions Bot added a commit to KevinPratap/VIctory that referenced this pull request Nov 24, 2026
@Marvisak

Copy link
Copy Markdown
Owner

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 Marvisak closed this Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants