Test that a probe round reaches every blank texture when others leave after the wrap #399
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/399"
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 LakshanSivakumar/Native-Victory-macOS. Originally posted by m0rff on 2026-11-27T16:49:19Z.
Refs #344
Cause of the flake. #349 (already merged) changed
a_texture_blank_for_thousands_of_submissions_is_still_probedto hold the title lock and check the write with no probe deadline. That was not the cause: the test still failed with no deadline, now at the new assertion. A diagnostic on that assertion showed the test's texture still blank and still inblank_keysafter the submission. In that same round the list went from 204 to 203 entries, because another test running in parallel had written its own blank texture.Before #252,
probe_roundremoved a leaving key withswap_remove, which moves the list's last key into its slot. After the round had wrapped, that key had often been probed already. Probing it again used up the round's last step, so the key just before the round's start was not probed in that submission. #252's wrapped removal, merged after this issue's measurements, keeps removals inside the unvisited part of the list and fixes this. So this PR changes no code. It adds a test for that behaviour and a note indocs/native-host.md.Test.
a_blank_texture_leaving_after_the_wrap_does_not_skip_anotherputs only four blank textures inblank_keys, starts the round at the last one, and writes:Each case expects every written texture to be uploaded at that submission. Results, 20 runs each:
[1, 2, 1, 1]for the first case on the old code);[2, 2, 1, 1]).Stress results (
texture_testsmodule, 8 threads, 4 CPU burners, as in #308):60baf130)a_missed_write_not_followed_by_another_backs_off_whole_reads, line 256)4cf84c83+ this testa_missed_write_not_followed_by_another_backs_off_whole_readsfailed on the old base in two ways. Its blank-write assertion (left: 1, right: 2) looks like the same skip. Its "missed-sample write uploaded" assertion is a different mechanism: it drops the title lock betweenwith_titleblocks. Neither failure showed in the 500 runs on main, but this PR does not change that test.Checks: the CI test set (native arm64), Windows clippy with
-D warnings, andcargo xtask policyall pass.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Olima34 on 2026-11-28T01:34:16Z.
Review: APPROVED
Check report (helping the maintainer clear the queue):
checkandmacos-scriptsgreen on the current head.226645f9) merged with this PR and the other test/docs/tools PRs we're landing in this batch (#397 #399 #422 #467 #471 #475 #479 #481 #486 #489 #494 #498 #505 #511). On it, thevictory-gpu(arm64),victory-shader,victory-backend,victory-metalandvictorytests pass, as do the macOS script tests (rustup-path.sh,run-summary-compare.sh,run-summary.sh --self-test), Windows clippy (-D warnings) andcargo xtask policy. Onevictory-gpurun in four failed main's ownmulti_mip_array_and_placed_depth_twins_preserve_all_subresources_and_remirror_immediately. That test also flakes on main alone, so it isn't from this batch.Thanks @m0rff!