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 global handler_test.go test failure #804

Merged
merged 3 commits into from
Jun 10, 2020

Conversation

MrAlias
Copy link
Contributor

@MrAlias MrAlias commented Jun 9, 2020

On slower VMs (like the CI VMs), this test was timing out in 2ms and failing. Additionally, in the process of failing, the suite tear-down function would reset the globalHandler and cause a race with the spawned goroutine that was abandoned.

This increases the pause from 2ms to 10ms, unifies and simplifies the wait logic, and stops the child goroutine on failure.

On slower VMs (like the CI VMs), this test was timing out in 2ms and
failing. Additionally, in the process of failing, the suite tear-down
function would reset the globalHandler and cause a race with the spawned
goroutine that was abandoned.

This increases the pause from 2ms to 10ms, unifies and simplifies the
wait logic, and stops the child goroutine on failure.
@MrAlias MrAlias self-assigned this Jun 9, 2020
@MrAlias MrAlias changed the title Update global handler_test.go Fix global handler_test.go test failure Jun 9, 2020
@MrAlias
Copy link
Contributor Author

MrAlias commented Jun 9, 2020

Looks like this is still occasionally failing: https://app.circleci.com/pipelines/github/open-telemetry/opentelemetry-go/2318/workflows/236422f0-b620-4fd3-bd62-5a11fdb43af4/jobs/2873/steps

Going to look at using the change in sent to detect successful error Handles instead.

@MrAlias
Copy link
Contributor Author

MrAlias commented Jun 10, 2020

Ran the CI build 3x (6x if you count each job individually) and all successful. I think b2b9149 was the fix for the underlying issue.

An added benefit of not fixing it right away was the data race was also shown to be resolved.

@MrAlias MrAlias merged commit c367f25 into open-telemetry:master Jun 10, 2020
@MrAlias MrAlias deleted the handler-test branch June 10, 2020 00:36
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