Flaky test: a_texture_blank_for_thousands_of_submissions_is_still_probed #344

Closed
opened 2026-11-27 13:24:23 +00:00 by m0rff · 4 comments
m0rff commented 2026-11-27 13:24:23 +00:00 (Migrated from github.com)
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by m0rff on 2026-11-27T13:24:23Z.


The test a_texture_blank_for_thousands_of_submissions_is_still_probed (crates/victory-gpu/src/native/texture_tests.rs) fails now and then under load: 5 of 500 runs on the #308 merged head and 2 of 300 on main (texture_tests module, 8 threads, 4 CPU burners), measured in the last comment on #308.

Plan: reproduce under the same load, trace which assertion fails and why, fix it, and loop 500 runs.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:issue:6647328316 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/344). Originally posted by [m0rff](https://github.com/m0rff) on 2026-11-27T13:24:23Z. --- The test `a_texture_blank_for_thousands_of_submissions_is_still_probed` (crates/victory-gpu/src/native/texture_tests.rs) fails now and then under load: 5 of 500 runs on the #308 merged head and 2 of 300 on main (texture_tests module, 8 threads, 4 CPU burners), measured in the last comment on #308. Plan: reproduce under the same load, trace which assertion fails and why, fix it, and loop 500 runs.
m0rff commented 2026-11-27 13:24:28 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by m0rff on 2026-11-27T13:24:28Z.


/claim

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7219439576 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/344#issuecomment-7219439576). Originally posted by [m0rff](https://github.com/m0rff) on 2026-11-27T13:24:28Z. --- /claim
github-actions[bot] commented 2026-11-27 13:24:39 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-27T13:24:39Z.


Claimed by @m0rff. Open a draft pull request with Refs #344 in its description within 24 hours, or the claim expires.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7219443111 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/344#issuecomment-7219443111). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-27T13:24:39Z. --- Claimed by @m0rff. Open a draft pull request with `Refs #344` in its description within 24 hours, or the claim expires.
m0rff commented 2026-11-27 16:49:31 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by m0rff on 2026-11-27T16:49:31Z.


Traced. The deadline was not the cause, so #349's test change alone did not fix this. The cause was a probe round skipping a key: a key leaving the round after the wrap was swapped for the list's last key, which the round had often probed already, so the key just before the round's start was not probed in that submission. Another test running in parallel writes its own blank texture into the same round. A diagnostic showed the list going from 204 to 203 entries while this test's texture stayed blank and stayed in blank_keys.

#252's wrapped removal fixed that on main. Stress loop (texture_tests, 8 threads, 4 CPU burners):

  • old base 60baf130: 3 failures of this test in 400 runs;
  • main 4cf84c83: 0 failures of any test in 500 runs.

#399 adds a regression test for the skip and a note in the docs. It changes no code.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7223712554 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/344#issuecomment-7223712554). Originally posted by [m0rff](https://github.com/m0rff) on 2026-11-27T16:49:31Z. --- Traced. The deadline was not the cause, so #349's test change alone did not fix this. The cause was a probe round skipping a key: a key leaving the round after the wrap was swapped for the list's last key, which the round had often probed already, so the key just before the round's start was not probed in that submission. Another test running in parallel writes its own blank texture into the same round. A diagnostic showed the list going from 204 to 203 entries while this test's texture stayed blank and stayed in `blank_keys`. #252's wrapped removal fixed that on main. Stress loop (`texture_tests`, 8 threads, 4 CPU burners): - old base `60baf130`: 3 failures of this test in 400 runs; - main `4cf84c83`: 0 failures of any test in 500 runs. #399 adds a regression test for the skip and a note in the docs. It changes no code.
LakshanSivakumar commented 2026-11-28 00:35:43 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-28T00:35:43Z.


Thank you for tracing this. The cause was a probe round skipping a key after a wrapped removal. #252 fixed the wrap, and #349 makes this test hold the title lock and probe without a deadline. Both are on main. You measured it failing 5 of 500 and 2 of 300 before. I have not looped it 500 times on a6a58361, so I am not sure it can never fail. Closing now; if it fails again, please post the assertion and the load, and I will reopen it.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7231037447 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/344#issuecomment-7231037447). Originally posted by [LakshanSivakumar](https://github.com/LakshanSivakumar) on 2026-11-28T00:35:43Z. --- Thank you for tracing this. The cause was a probe round skipping a key after a wrapped removal. #252 fixed the wrap, and #349 makes this test hold the title lock and probe without a deadline. Both are on main. You measured it failing 5 of 500 and 2 of 300 before. I have not looped it 500 times on a6a58361, so I am not sure it can never fail. Closing now; if it fails again, please post the assertion and the load, and I will reopen it.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
LakshanSivakumar/Native-Victory-macOS#344
No description provided.