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

Spurious failure removing std.dll during tests on MSVC #41006

Closed
alexcrichton opened this issue Apr 2, 2017 · 4 comments
Closed

Spurious failure removing std.dll during tests on MSVC #41006

alexcrichton opened this issue Apr 2, 2017 · 4 comments
Labels
A-spurious Area: Spurious failures in builds (spuriously == for no apparent reason) C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC

Comments

@alexcrichton
Copy link
Member

First witnessed at https://ci.appveyor.com/project/rust-lang/rust/build/1.0.2679/job/wan951duah2q7d3q

looks like:

[02:11:03] 	finished in 57.500
[02:11:03] Testing libstd stage2 (x86_64-pc-windows-msvc -> x86_64-pc-windows-msvc)
[02:11:05]    Compiling cmake v0.1.22
[02:11:05]    Compiling alloc v0.0.0 (file:///C:/projects/rust/src/liballoc)
[02:11:09]    Compiling rustc_lsan v0.0.0 (file:///C:/projects/rust/src/librustc_lsan)
[02:11:10]    Compiling rustc_asan v0.0.0 (file:///C:/projects/rust/src/librustc_asan)
[02:11:10]    Compiling rand v0.0.0 (file:///C:/projects/rust/src/librand)
[02:11:11]    Compiling rustc_msan v0.0.0 (file:///C:/projects/rust/src/librustc_msan)
[02:11:12]    Compiling rustc_tsan v0.0.0 (file:///C:/projects/rust/src/librustc_tsan)
[02:11:12]    Compiling core v0.0.0 (file:///C:/projects/rust/src/libcore)
[02:11:15]    Compiling collections v0.0.0 (file:///C:/projects/rust/src/libcollections)
[02:12:17]    Compiling std v0.0.0 (file:///C:/projects/rust/src/libstd)
[02:12:18] error: failed to remove: C:\projects\rust\build\x86_64-pc-windows-msvc\stage1-std\x86_64-pc-windows-msvc\release\std.dll
[02:12:18] Build failed, waiting for other jobs to finish...
[02:15:01] error: build failed

No idea what's going on :(

@alexcrichton alexcrichton added the A-spurious Area: Spurious failures in builds (spuriously == for no apparent reason) label Apr 2, 2017
@nagisa
Copy link
Member

nagisa commented Apr 2, 2017

As with all removal failures on windows, something had it open at the time of deletion.

@retep998
Copy link
Member

retep998 commented Apr 2, 2017

We really need to add more retries internally to rustc and cargo. Stuff like this gets hit a lot by people building code on network drives, due to operations not actually being done by the time the function returns. Every time we create a file and then delete it or we delete a file and then create it or other such sequential operations, we should have a retry loop that tries a couple times with a short sleep after each attempt.

@kennytm
Copy link
Member

kennytm commented Aug 11, 2017

This spurious failure affects x86_64-pc-windows-gnu as well, not just MSVC.

@alexcrichton
Copy link
Member Author

This hasn't happened in quite some time so I'm going to assume that some cargo change along the way helped fix this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-spurious Area: Spurious failures in builds (spuriously == for no apparent reason) C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC
Projects
None yet
Development

No branches or pull requests

5 participants