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

ci: use latest Go version and fix a flaky test #632

Merged
merged 4 commits into from
Jun 9, 2021
Merged

Conversation

dnephin
Copy link
Contributor

@dnephin dnephin commented Jun 9, 2021

Also remove module cache, because downloading from the module proxy is faster than using the cache.

@dnephin dnephin requested a review from a team June 9, 2021 17:14
@dnephin dnephin mentioned this pull request Jun 9, 2021
Also remove module cache, because downloading from the module proxy is faster than using the cache.
It is not safe to call Fatalf from a goroutine because Fatalf calls runtime.Goexit
which exits the current goroutine. That will not end the test when run from a different goroutine.

Calling Errorf and returning does the right thing.
The test was not sleeping long enough, and was frequently missing the 'EventMemberFailed' event. By
sleeping a bit logner this test seems to pass reliably.
@dnephin
Copy link
Contributor Author

dnephin commented Jun 9, 2021

TestSnapshotter_forceCompact seems to flake a lot as well, but it does pass locally.

Copy link
Member

@rboyer rboyer left a comment

Choose a reason for hiding this comment

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

LGTM

@dnephin dnephin merged commit 6b5b700 into master Jun 9, 2021
@dnephin dnephin deleted the dnephin/update-ci branch June 9, 2021 21:41
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.

2 participants