GPU tests: isolate write-watch fixture from reused addresses #934
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!934
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/934/head"
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?
@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 mergingWindows 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.@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.@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@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.@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-gpupasses, 50 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).Tested with AI assistance (Claude).
@Marvisak on GitHub · 2026-11-25 00:28 UTC · original
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