Tests: one submission at a time across the suite (no_write_is_lost_with_port_7 failed beside refreshed_ranges_hold_title_memory) #342
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/342"
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 avatarmanz/VIctory-7900XTX. Originally posted by felicerosella on 2026-11-26T17:46:07Z.
watch::port7_tests::no_write_is_lost_with_port_7(new with renderer port 7) fails now and then in the parallelvictory-gpusuite, withround N, page P: X is not after Xfrom its submission thread. It is another test's doing, not port 7's.Cause.
ask_onceends whatever asking stands, as it should with the runtime's one submission thread. The tests that play the submission each kept to that in their own way, or not at all:host::refresh_tests::submission: a mutex of its own (static ONE)host::refresh_tests::unchanged_ranges_are_known: a retry "if a submission of another test ended it"watch::tests::the_rest_of_the_one_asking_has_a_number_of_its_own: nothingSo
refreshed_ranges_hold_title_memory'sask_onceended the port-7 test's asking mid-round, and that test then read a page's write with a number it had already seen.Fix (test code only).
watch::submission_in_test()is one lock for all of them:unchanged_ranges_are_known'slookandthe_rest_of_the_one_asking_has_a_number_of_its_ownhold it;I left
unchanged_ranges_are_known's retry loop in place to keep the change small. It should no longer be needed.How it was found. RTX 4070 SUPER, Ryzen 7 7800X3D, Windows 11 26200,
mainatc9c932c;2de9980only changes the README.refreshed_ranges_hold_title_memory.refreshed_ranges_hold_title_memory(--exact)cargo test -p victory-gpu --lib, clean runsno_write_is_lost_with_port_7failures in the suiteunchanged_ranges_are_knownfailures in the suiteThe one failure left after the fix is
watch::tests::what_is_left_alone_is_no_known_hole(1/20), a guard-state test of #321's kind, unrelated to the submission.cargo clippy -p victory-gpu --all-targets -- -D warningsis clean apart frommain's ownunnecessary_mut_passedintitle_memory_remapped(#324), so CI will show that until #324 or an equivalent lands.Part of #321 (
unchanged_ranges_are_known's submission interference). Independent of #328, #277 and #315.AI-assisted: yes (Claude Code)
Imported from avatarmanz/VIctory-7900XTX. Originally posted by kilolimaVI on 2026-11-26T19:31:27Z.
Reproduced and confirmed on Windows 11 (Ryzen 7 8845HS / Radeon 780M, pinned toolchain 1.98.1).
Filter:
cargo test -p victory-gpu --lib --locked -- no_write_is_lost_with_port_7 refreshed_ranges_hold_title_memory unchanged_ranges_are_known the_rest_of_the_one_asking, 20 runs each:no_write_is_lost_with_port_7aloneOn main the failure is the one described:
no_write_is_lost_with_port_7panics atwatch.rs:5917("round N, page P: X is not after X"), and only when run beside the others. With this PR it's gone.At 18/20 on an 8-core laptop this likely also makes main's "Default tests" job flaky, so it may be worth merging early.
Imported from avatarmanz/VIctory-7900XTX. Originally posted by felicerosella on 2026-11-26T20:11:14Z.
Closing in favour of #347, which includes the same shared lock for the tests that play the submission (and conflicts with this PR in
host.rs). Thanks @kilolimaVI for the independent confirmation. Happy to reopen if #347 doesn't go in.Pull request closed