no_write_is_lost_with_port_7 and unchanged_ranges_are_known share the global standing asking #534

Open
opened 2026-11-27 10:41:08 +00:00 by github-bot · 0 comments
Owner

@⁠jptorres96 on GitHub · 2026-11-27 10:08 UTC · original

cargo test -p victory-gpu --lib (default threads) failed 2 of 15 runs on an RTX 4080 SUPER and Ryzen 5 5600X, at upstream/main:

watch.rs:5917: round 369, page 2: 142316 is not after 142319 (no_write_is_lost_with_port_7)
host.rs:11100: (unchanged_ranges_are_known)

In isolation: 0/20. With watch:: only: 0/10. With --test-threads=1: passes.

Both tests drive the process-wide journal's standing asking (ask_once / ask_once_end), as does Host::submit/settle_stale/run_deferred in other host tests. One test's ask_once_end ends the other's asking mid-round. unchanged_ranges_are_known already retries for this ("Again if a submission of another test ended it"); the port 7 test does not. Only one thread submits in the runtime, so this looks test-only, not a port 7 race.

Suggested fix: a test-only lock shared by the tests that stand an asking (and by submit under cfg(test)). Happy to send a PR.

**@⁠jptorres96** on GitHub · 2026-11-27 10:08 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/534) cargo test -p victory-gpu --lib (default threads) failed 2 of 15 runs on an RTX 4080 SUPER and Ryzen 5 5600X, at upstream/main: watch.rs:5917: round 369, page 2: 142316 is not after 142319 (no_write_is_lost_with_port_7) host.rs:11100: (unchanged_ranges_are_known) In isolation: 0/20. With watch:: only: 0/10. With --test-threads=1: passes. Both tests drive the process-wide journal's standing asking (ask_once / ask_once_end), as does Host::submit/settle_stale/run_deferred in other host tests. One test's ask_once_end ends the other's asking mid-round. unchanged_ranges_are_known already retries for this ("Again if a submission of another test ended it"); the port 7 test does not. Only one thread submits in the runtime, so this looks test-only, not a port 7 race. Suggested fix: a test-only lock shared by the tests that stand an asking (and by submit under cfg(test)). Happy to send a PR.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 10:41:09 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.