Flaky test: a_texture_blank_for_thousands_of_submissions_is_still_probed #346

Closed
opened 2026-11-27 13:27:52 +00:00 by github-bot · 4 comments
Owner

@⁠m0rff on GitHub · 2026-11-27 13:24 UTC · original

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** on GitHub · 2026-11-27 13:24 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/344) 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 13:27:52 +00:00
Author
Owner

@⁠m0rff on GitHub · 2026-11-27 13:24 UTC · original

/claim

**@⁠m0rff** on GitHub · 2026-11-27 13:24 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/344#issuecomment-7219439576) /claim
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-27 13:24 UTC · original

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

**@⁠github-actions[bot]** on GitHub · 2026-11-27 13:24 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/344#issuecomment-7219443111) Claimed by @⁠m0rff. Open a draft pull request with `Refs #344` in its description within 24 hours, or the claim expires.
Author
Owner

@⁠m0rff on GitHub · 2026-11-27 16:49 UTC · original

Traced. The deadline was not the cause, so #351'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.

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

**@⁠m0rff** on GitHub · 2026-11-27 16:49 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/344#issuecomment-7223712554) Traced. The deadline was not the cause, so #351'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. #403 adds a regression test for the skip and a note in the docs. It changes no code.
Author
Owner

@⁠LakshanSivakumar on GitHub · 2026-11-28 00:35 UTC · original

Thank you for tracing this. The cause was a probe round skipping a key after a wrapped removal. #252 fixed the wrap, and #351 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.

**@⁠LakshanSivakumar** on GitHub · 2026-11-28 00:35 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/344#issuecomment-7231037447) Thank you for tracing this. The cause was a probe round skipping a key after a wrapped removal. #252 fixed the wrap, and #351 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.
This discussion has been locked. Commenting is limited to contributors.
No description provided.