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

fix TestReadBadZookieFlake #165

Merged
merged 1 commit into from
Oct 4, 2021

Conversation

ecordell
Copy link
Contributor

@ecordell ecordell commented Oct 4, 2021

The flake is caused by GC pauses. I can't produce a failure with GOGC=off.

When the test gets unlucky w.r.t GC, the timestamps in the changelog can be behind now-gcwindow by 5-7ms. Bumping the GC window up a bit stabilizes the test so that now-gcwindow is less than the changelog timestamps even if there are GC pauses.

Prior to this change, I could get 1-5 failures / 1k runs. After the change, I can't reproduce the flake.

Fixes #101

occasionally, the timetamps in the changelog can be behind now-gcwindow
by 5-7ms. bumping the gc window up a bit stabilizes the test

Signed-off-by: Evan Cordell <cordell.evan@gmail.com>
@github-actions github-actions bot added area/api v0 Affects the v0 API area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools) labels Oct 4, 2021
Copy link
Member

@josephschorr josephschorr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@josephschorr josephschorr merged commit 72fd40a into authzed:main Oct 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/api v0 Affects the v0 API area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TestReadBadZookie is flakey
2 participants