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

Fixes racey tests in tsh #7416

Merged
merged 3 commits into from
Jun 26, 2021
Merged

Fixes racey tests in tsh #7416

merged 3 commits into from
Jun 26, 2021

Conversation

tcsc
Copy link
Contributor

@tcsc tcsc commented Jun 25, 2021

Multiple routines were fighting over the global logrus Logger
instance, causing the race detector to trip roughly once in every 10
test runs.

This patch addresses this race condition by supplying each of the
competing processes an entirely separate logger, and ensuring that
these log instances are plumbed through to the code that would otherwise
trip the race detector.

Multiple routines were fighting over the global logrus `Logger`
instance, causing the race detector to trip roughly once in every 10
test runs.

This patch addresses this race condition by supplying each of the
competing processes an entirely separate logger, and ensuring that
these log instances are plumbed through to the code that would otherwise
trip the race detector.
@tcsc tcsc enabled auto-merge (squash) June 26, 2021 00:30
@tcsc tcsc merged commit 9b7002c into master Jun 26, 2021
@tcsc tcsc deleted the trent/flaky-tests-logger branch June 26, 2021 00:44
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.

4 participants