Flaky: victory-gpu a_texture_rewritten_whole_is_read_whole_only_now_and_then (probe deadline vs other tests' hot textures) #307
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?
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by m0rff on 2026-11-27T10:51:24Z.
victory-gpunative::tests::texture_tests::a_texture_rewritten_whole_is_read_whole_only_now_and_thenfails now and then:It also fails at line 219 ("and the next one at the next submission").
Reproduction. Native arm64, origin/main
c1b9587, with the victory-gpu lib test binary run with--test-threads=8while acargo build -j6of other crates loops alongside:--exact): 0 failures in 300 runs.a_texture_uploaded_blank_is_probed_at_each_submissionfailed in 3 of the same 200 runs, at line 163 ("the next at the next submission").Cause, from a trace in
probe_round. The texture tests share oneTitle. Hot textures stay hot forHOTsubmissions after the test that made them ends; the 200 ofa_hot_texture_is_probed_at_each_submission_among_hundredskeep doing so after it releasesAGING. In a failing runhot_keysheld about 215 textures. On the failing submission,PROBE_BUDGET(2 ms) stopped the round after 61 probes (MIN_SYNC_HOTis 32), with 154 not visited, and this test's texture was one of them. So the write is seen a submission or more later. The deadline behaves as its doc comment says it should (a documented shortcut); the problem is that these asserts expect the probe to reach their texture at every submission.Holding
AGINGlonger would not help, since the textures stay hot after the lock is released. #252 changes how hot textures cool down, but it keeps the deadline, so it would not fix this.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by m0rff on 2026-11-27T10:51:37Z.
/claim
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-27T10:51:48Z.
Claimed by @m0rff. Open a draft pull request with
Refs #307in its description within 24 hours, or the claim expires.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by m0rff on 2026-11-27T11:07:11Z.
A second cause, found after the first fix (no probe deadline) still let
a_texture_uploaded_blank_is_probed_at_each_submissionfail at its last assert ("the next at the next submission"). The fix was 2 failures in a partial 500-run loop.Traced: other tests' submissions run between this test's own
with_titlecalls, and they probe its texture too. One of them uploaded the write the samples missed (upload 3), which setsampled_sees_writes = false. The test's next submission then did the follow-up whole read and found nothing new, so it went back toWHOLE_EVERY. Only then did the test seeuploads == 3and make its next write, which then waited up to 8 probes. That upload never showed in the test's own captured output, because it happened in another test's sync.So both tests now also hold the title lock from their first write to their last assert.
a_texture_rewritten_whole_is_read_whole_only_now_and_thenhas the same structure (its line-219 failures fit either cause).Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by m0rff on 2026-11-27T13:23:55Z.
Fixed by
bb1a6ddf(from #308).