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

[chore] Fix "Device or resource busy" error on Windows CI #35192

Conversation

pjanotti
Copy link
Contributor

Description:
The error "Device or resource busy" happens intermittently when running the build-and-test-windows workflow on CI. Examining a few instances of the error it becomes clear that the concurrent run of component tests trigger concurrent builds of gotestsum. This can cause one of the runs to clash with the other and fail to build the gotestsum target.

The fix is to add a explicit step to build gotestsum in the CI workflow. This way the local dev modus operandi is not altered (they can still rely on make test to build any tool necessary for the test). If any other tools are added to the test target they should also be added to the workflow on Windows.

Link to tracking Issue:
Fix #34691

Testing:
Validated on repository fork.

Documentation:
N/A

@pjanotti pjanotti requested review from a team and dashpole September 14, 2024 23:29
@atoulme atoulme added the Run Windows Enable running windows test on a PR label Sep 15, 2024
@bogdandrutu bogdandrutu merged commit 7734698 into open-telemetry:main Sep 16, 2024
171 of 172 checks passed
@github-actions github-actions bot added this to the next release milestone Sep 16, 2024
@pjanotti pjanotti deleted the fix-windows-ci-intermittent-error-device-or-resource-busy branch September 16, 2024 18:44
jriguera pushed a commit to springernature/opentelemetry-collector-contrib that referenced this pull request Oct 4, 2024
…etry#35192)

**Description:**
The error "Device or resource busy" happens intermittently when running
the `build-and-test-windows` workflow on CI. Examining a few instances
of the error it becomes clear that the concurrent run of component tests
trigger concurrent builds of `gotestsum`. This can cause one of the runs
to clash with the other and fail to build the `gotestsum` target.

The fix is to add a explicit step to build `gotestsum` in the CI
workflow. This way the local dev modus operandi is not altered (they can
still rely on `make test` to build any tool necessary for the test). If
any other tools are added to the `test` target they should also be added
to the workflow on Windows.

**Link to tracking Issue:**
Fix open-telemetry#34691

**Testing:**
Validated on repository fork.

**Documentation:**
N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Run Windows Enable running windows test on a PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[tests] gotestsum: Device or resource busy
5 participants