Thanks to visit codestin.com
Credit goes to github.com

Skip to content

test: Fix flaky TestServer/Logging/{Multiple,Stackdriver} #5727

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

Merged
merged 8 commits into from
Jan 17, 2023

Conversation

mafredri
Copy link
Member

Saw this flaking on dogfood instance due to Terraform being downloaded and adding a good amount of time (15+ seconds) to startup.

In lieu of disabling terraform download, this should help alleviate such pains.

@mafredri mafredri requested a review from mtojek January 16, 2023 14:47
@mafredri mafredri self-assigned this Jan 16, 2023
Copy link
Member

@mtojek mtojek left a comment

Choose a reason for hiding this comment

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

LGTM

@mafredri mafredri changed the title test: Fix flaky TestServer/Logging/Multiple test: Fix flaky TestServer/Logging/{Multiple,Stackdriver} Jan 16, 2023
@mafredri
Copy link
Member Author

mafredri commented Jan 17, 2023

Ran into temp dir cleanup errors on Windows, at first I tried to fix the wrong issue. Turned out it was a test bug creating and opening files without closing them.

So I introduced two new testutil functions TempFile (string) and CreateTemp (like os.CreateTemp with cleanup) and cleaned up the tests.

@mafredri mafredri merged commit db78770 into main Jan 17, 2023
@mafredri mafredri deleted the mafredri/test-fix-flaky-log-test branch January 17, 2023 12:14
@github-actions github-actions bot locked and limited conversation to collaborators Jan 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants