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 random Windows CI error for changing_bin_features_caches_targets #5493

Merged

Conversation

ehuss
Copy link
Contributor

@ehuss ehuss commented May 6, 2018

Fixes #5481.

@rust-highfive
Copy link

r? @matklad

(rust_highfive has picked a reviewer for you, use r? to override)

@ehuss
Copy link
Contributor Author

ehuss commented May 6, 2018

I've been doing some stress tests on AppVeyor, and I have been unable to get it to fail with this change. An alternative solution would be to unlink the file and attempt to replace it in a loop until it succeeds.

@alexcrichton
Copy link
Member

Thanks! I wonder though if in this situation instead of cargo run this could execute cargo build? Then it could copy the binary somewhere else to run it and make an assert about the output, and hopefully that'll avoid the can't-delete-after-exec problem?

@ehuss
Copy link
Contributor Author

ehuss commented May 6, 2018

copy the binary somewhere else to run

Sure! I'll try that soon!

@matklad
Copy link
Member

matklad commented May 6, 2018

I think one can use —out-directory flag to avoid coping by hand

@ehuss ehuss force-pushed the fix-changing_bin_features_caches_targets branch from be81522 to 21f220b Compare May 6, 2018 22:18
@ehuss ehuss force-pushed the fix-changing_bin_features_caches_targets branch from 21f220b to 3521144 Compare May 6, 2018 22:19
@ehuss
Copy link
Contributor Author

ehuss commented May 6, 2018

Updated with new approach. I stressed this on AppVeyor for a while and it seems OK.

@matklad
Copy link
Member

matklad commented May 7, 2018

@bors r+

Awesome!

@bors
Copy link
Contributor

bors commented May 7, 2018

📌 Commit 3521144 has been approved by matklad

@bors
Copy link
Contributor

bors commented May 7, 2018

⌛ Testing commit 3521144 with merge 9e53ac6...

bors added a commit that referenced this pull request May 7, 2018
… r=matklad

Fix random Windows CI error for changing_bin_features_caches_targets

Fixes #5481.
@bors
Copy link
Contributor

bors commented May 7, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: matklad
Pushing 9e53ac6 to master...

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.

Spurious Windows errors on CI
5 participants