victory-gpu: written_pages_are_reported_to_every_asker flaked once in a full workspace run #102
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD#102
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@dutch2005 on GitHub · 2026-11-25 14:08 UTC · original
Summary
watch::tests::written_pages_are_reported_to_every_askerfailed once during a full serial workspace run on Windows 11 / RX 6700 XT:Reproduction
cargo test --workspace --locked --exclude xtask -- --test-threads=1(from a local integration branch based on71652a2; no local change toucheswatch.rs).cargo test -p victory-gpu written_pages_are_reported_to_every_asker -- --test-threads=1— 1 passed.cargo test -p victory-gpu --lib -- --test-threads=1— 111 passed, 0 failed, 4 ignored.So it is order/state dependent, not deterministic.
Environment
71652a2Why it matters
A flaky write-watch test can hide a real ordering bug in the guard/watch path; it should be made deterministic or its shared state reset between tests. No fix attempted here.
github-bot referenced this issue2026-11-26 03:35:59 +00:00
github-bot referenced this issue2026-11-26 03:36:03 +00:00
@adrianmjim on GitHub · 2026-11-25 18:57 UTC · original
Data from an RX 7900 XT (RDNA3), driver 32.0.32029.2010, Windows 11 build 26300, Rust 1.98.1. No game data, title not run. I ran the victory-gpu lib test binary directly. Main
01aadd1and the PR heads were run interleaved under the same machine load, with another GPU job running at the same time. This adds an RDNA3 card and default-thread runs to the RX 6950 XT numbers on #112 and #115.written_pages_are_reported_to_every_asker:--test-threads=1: main 23/23 failed (watch.rs:998,before.is_empty()), #132 (does not touch it) 23/23, #115c866e7a0/23, #112a1e531b0/23.git apply --checkboth ways). With #112 + #115 + #132 together, the test failed 0/15 serial and 0/40 with default threads. #112'sremapped_memory_clears_stale_write_journalpassed in every run.watch.rs:994).Neither PR added a failure. Other
watch::testsfailures that neither PR changes are in #174 (guarded-view tests and pins).Not tested: the title, other crates.
@qtLkz on GitHub · 2026-11-26 15:43 UTC · original
NVIDIA data for this flake, and for #112 as its fix. Setup: RTX 4070 Ti (Ada), driver 621.01, Windows 11 Pro 26300, Rust 1.98.1.
mainwas at4f62c2a, #112 ata1e531band #153 at0f373ac. Both PRs merge cleanly onmainand on each other. No game data, title not run.Cause (as identified on #112 and #153):
watch::JOURNAL.writtenis process-global.texture::tests::warp_write_watched_texture_uploads_only_when_writtenfrees its write-watched page without telling the journal. WhenVirtualAlloclater hands that address towritten_pages_are_reported_to_every_asker, the firstwrites()already returns the stale page, andassert!(before.is_empty())fails. #112 clears the journal for fully covered pages intitle_memory_remapped, and calls it from both tests beforeVirtualFree.Two-test reproduction:
victory-gpu --lib,--test-threads=1, 2 runsmaindynamic_slots_are_held_until_releasedmain+ #112dynamic_slots_are_held_until_releasedonlymain+ #153main+ #153 + #112dynamic_slots_are_held_until_releasedis the NVIDIA 1M view-heap cap from #74, which #153 fixes. #112's ownremapped_memory_clears_stale_write_journalpassed in every run. The texture test passed in every run on all four trees.So on NVIDIA, #112 removes the flake with or without #153, and
main+ #153 + #112 is fully green forvictory-gpuon this card.AI-assisted (Claude).