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

distsqlrun: fix Sampler test flake #31363

Merged
merged 1 commit into from Oct 15, 2018

Conversation

Projects
None yet
3 participants
@RaduBerinde
Member

RaduBerinde commented Oct 15, 2018

The Sampler test verifies that the sampling is uniform by running it
many times and checking the frequencies. The probability of failure
decreases exponentially with numRuns.

The fix increases the number of runs to 5000 but to avoid slowing down
the test, we modify it to check every 200 runs (and exit early).

Fixes #31293.

Release note: None

@RaduBerinde RaduBerinde requested a review from rytaft Oct 15, 2018

@RaduBerinde RaduBerinde requested review from cockroachdb/distsql-prs as code owners Oct 15, 2018

@cockroach-teamcity

This comment has been minimized.

Show comment
Hide comment
@cockroach-teamcity

cockroach-teamcity Oct 15, 2018

Member

This change is Reviewable

Member

cockroach-teamcity commented Oct 15, 2018

This change is Reviewable

@rytaft

rytaft approved these changes Oct 15, 2018

:lgtm:

Reviewed 1 of 1 files at r1.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (and 1 stale)

distsqlrun: fix Sampler test flake
The Sampler test verifies that the sampling is uniform by running it
many times and checking the frequencies. The probability of failure
decreases exponentially with `numRuns`.

The fix increases the number of runs to 5000 but to avoid slowing down
the test, we modify it to check every 200 runs (and exit early).

Fixes #31293.

Release note: None
@RaduBerinde

This comment has been minimized.

Show comment
Hide comment
@RaduBerinde

RaduBerinde Oct 15, 2018

Member

bors r+

Member

RaduBerinde commented Oct 15, 2018

bors r+

craig bot pushed a commit that referenced this pull request Oct 15, 2018

Merge #31363 #31376
31363: distsqlrun: fix Sampler test flake r=RaduBerinde a=RaduBerinde

The Sampler test verifies that the sampling is uniform by running it
many times and checking the frequencies. The probability of failure
decreases exponentially with `numRuns`.

The fix increases the number of runs to 5000 but to avoid slowing down
the test, we modify it to check every 200 runs (and exit early).

Fixes #31293.

Release note: None

31376: roachtest: tag the slack message with the cloud r=benesch a=petermattis

For example, `[AWS]` or `[GCE]`.

Release note: None

Co-authored-by: Radu Berinde <radu@cockroachlabs.com>
Co-authored-by: Peter Mattis <petermattis@gmail.com>
@craig

This comment has been minimized.

Show comment
Hide comment
@craig

craig bot commented Oct 15, 2018

Build succeeded

@craig craig bot merged commit 978a113 into cockroachdb:master Oct 15, 2018

3 checks passed

GitHub CI (Cockroach) TeamCity build finished
Details
bors Build succeeded
Details
license/cla Contributor License Agreement is signed.
Details

@RaduBerinde RaduBerinde deleted the RaduBerinde:flaky-sampler-test branch Oct 15, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment