Skip to content

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

Merged
dnephin merged 4 commits intomasterfrom
dnephin/update-ci
Jun 9, 2021
Merged

ci: use latest Go version and fix a flaky test#632
dnephin merged 4 commits intomasterfrom
dnephin/update-ci

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
dnephin added 4 commits June 9, 2021 13:19
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 dnephin force-pushed the dnephin/update-ci branch from 1cd04fb to ac85eef Compare June 9, 2021 17:20
@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