Tests: one submission at a time across the suite (no_write_is_lost_with_port_7 failed beside refreshed_ranges_hold_title_memory) #342
No reviewers
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX!342
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@felicerosella on GitHub · 2026-11-26 17:46 UTC · original
felicerosella:fix/one-submission-in-tests→main· +14 −3 · 2 files · 1 commits · closed without mergingwatch::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)
ask_once ends whatever asking stands, as the runtime's one submission thread may. Tests that play the submission each had their own way of keeping to that: host::refresh_tests::submission a mutex of its own, unchanged_ranges_are_known a retry "if a submission of another test ended it", the port-7 test and the_rest_of_the_one_asking_has_a_number_of_its_own nothing. Run together, one test's ask_once ended another's asking in the middle, and the port-7 test read a page's write with the number it had already seen ("round N, page P: X is not after X"). watch::submission_in_test is one lock for all of them: the host helper's mutex becomes it, unchanged_ranges_are_known's look and the_rest_of_the_one_asking_has_a_number_of_its_own hold it, and the port-7 test's submission thread holds it for each round (its other threads still ask and write meanwhile). Test code only. Co-Authored-By: Claude Opus 5.5 <[email protected]>@kilolimaVI on GitHub · 2026-11-26 19:31 UTC · original
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.
@felicerosella on GitHub · 2026-11-26 20:11 UTC · original
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