Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pkg/quantile] Increase ulpLimit to prevent flakes #53

Merged
merged 1 commit into from
Apr 14, 2023

Conversation

mx-psi
Copy link
Member

@mx-psi mx-psi commented Apr 14, 2023

What does this PR do?

Doubles ulpLimit to prevent TestSummary/InsertN from failing (see sample failure).

Motivation

TestSummary/InsertN is flaky in Go 1.20, but not on Go 1.19. This happens because of golang/go@90a67d0: we are not explicitly seeding the math/rand RNG, which means the sequence of random numbers is fixed in Go 1.19 and below, but non-deterministic after it. See also golang/go/issues/54880.

The test has probably been broken for a while, we just didn't notice because of the fixed inputs. We may want to revisit why the test is broken if we want to have a lower ulpLimit, but 256 still seems acceptable.

@mx-psi mx-psi requested a review from a team as a code owner April 14, 2023 11:50
@mx-psi mx-psi requested a review from liustanley April 14, 2023 11:50
@mx-psi mx-psi merged commit 37a6383 into main Apr 14, 2023
5 checks passed
@mx-psi mx-psi deleted the mx-psi/increase-ulp branch April 14, 2023 14:03
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.

None yet

2 participants