-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Windows file locking errors #4086
Comments
The easiest way to replicate this every single time is to fork wide at this commit and remove the following marked changes: Lokathor/wide@844d8c7#diff-73e17259d77e5fbef83b2bdbbe4dc40a912f807472287f7f45b77e0cbf78792dR78-R85 Edit: Seems like Github doesn't quite link this properly. It's the following env var that needs to be removed in both places: env:
CARGO_TARGET_DIR: "target-native" Or honestly the commit before this should cause the bug too. Anyways, just ensure the env var is not set (the env var changes the location of the target executable, so it doesn't try to overwrite the executable previously built, which is exactly when the bug would occur). Instead of running another build there you can also just try to delete the |
That seems to have resolved it (at least in wide where it wasn't really sporadic): https://github.com/Lokathor/wide/pull/109/checks?check_run_id=3609115201 |
@CryZe yes, the engineering team identified the root cause and rolled back the changes a couple of hours ago. Sorry for the inconvenience. |
I'm going to close the issue. |
Thanks @miketimofeev for the quick response! |
Description
Starting around 2021-09-13 11:30 am PST, the rust-lang project has noticed a large failure rate on our Windows runners. We are experiencing sporadic errors reading, copying, and creating executables with various errors related to file locks. Some examples are:
We are also getting reports from other projects experiencing similar errors.
I wanted to check if there were perhaps any unannounced changes to
windows-latest-xl
, or if perhaps there are any new scanning features running (windows defender, indexing service, etc.).More information may be found at rust-lang/rust#88924 with links to failed runs, or most of the runs at https://github.com/rust-lang-ci/rust/actions are currently failing due to this error.
Virtual environments affected
Image version and build link
Links to failed builds:
https://github.com/rust-lang-ci/rust/runs/3591374923
https://github.com/rust-lang-ci/rust/runs/3591788935
https://github.com/rust-lang-ci/rust/runs/3593656760
https://github.com/rust-lang-ci/rust/runs/3594233900
https://github.com/rust-lang-ci/rust/runs/3594557656
https://github.com/rust-lang-ci/rust/runs/3592301669
https://github.com/rust-lang-ci/rust/runs/3600286433
https://github.com/Lokathor/wide/runs/3592322856
https://github.com/PyO3/pyo3/runs/3601829130
https://github.com/PyO3/pyo3/runs/3590459443
Is it regression?
No response
Expected behavior
Windows runners shouldn't have any services or issues locking files during a build.
Actual behavior
Windows runners are experiencing a high error rate with file locks related to executables being created or copied or removed.
Repro steps
Reproduction may be difficult since it is part of a large build system, and the errors are happening somewhat randomly, and it is not known what is causing them. But, roughly, most of the errors seem related to creating a new executable, and then immediately trying to copy it to a new location. Or, we are also seeing errors with link.exe failing to read files.
The text was updated successfully, but these errors were encountered: