Skip to content

Fix flaky test_jsum_list_of_lists bfloat16 test#517

Merged
fwilliams merged 1 commit intomainfrom
fw/fix-flaky-jsum-list-of-lists-test
Mar 8, 2026
Merged

Fix flaky test_jsum_list_of_lists bfloat16 test#517
fwilliams merged 1 commit intomainfrom
fw/fix-flaky-jsum-list-of-lists-test

Conversation

@fwilliams
Copy link
Collaborator

Summary

  • Add @probabilistic_test decorator to test_jsum_list_of_lists, matching the pattern already used by test_jsum
  • The bfloat16 numerical precision causes non-deterministic allclose failures when comparing jsum against scatter_sum
  • The decorator runs 20 iterations and passes if >= 80% succeed, which is the same strategy used for the flat-list variant

This was observed as a transient CI failure on the V0.4 release branch (PR #515).

Test plan

  • CI passes (codestyle + unit tests)
  • Verify test_jsum_list_of_lists_1_cuda (bfloat16) no longer flakes

Made with Cursor

Add @probabilistic_test decorator to test_jsum_list_of_lists, matching
the pattern already used by test_jsum. The bfloat16 numerical precision
can cause non-deterministic allclose failures when comparing jsum against
scatter_sum. The decorator runs 20 iterations and passes if >= 80%
succeed, which is the same strategy used for the flat-list variant.

Signed-off-by: Francis Williams <francis@fwilliams.info>
Made-with: Cursor
@fwilliams fwilliams requested a review from a team as a code owner March 6, 2026 23:24
@fwilliams fwilliams merged commit 2cb9d39 into main Mar 8, 2026
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant