Skip to content

Fix random Windows CI error for changing_bin_features_caches_targets#5493

Merged
bors merged 1 commit into
rust-lang:masterfrom
ehuss:fix-changing_bin_features_caches_targets
May 7, 2018
Merged

Fix random Windows CI error for changing_bin_features_caches_targets#5493
bors merged 1 commit into
rust-lang:masterfrom
ehuss:fix-changing_bin_features_caches_targets

Conversation

@ehuss

@ehuss ehuss commented May 6, 2018

Copy link
Copy Markdown
Contributor

Fixes #5481.

@rust-highfive

Copy link
Copy Markdown

r? @matklad

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

@ehuss

ehuss commented May 6, 2018

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
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

ehuss commented May 6, 2018

Copy link
Copy Markdown
Contributor Author

copy the binary somewhere else to run

Sure! I'll try that soon!

@matklad

matklad commented May 6, 2018

Copy link
Copy Markdown
Contributor

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

ehuss commented May 6, 2018

Copy link
Copy Markdown
Contributor Author

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

@matklad

matklad commented May 7, 2018

Copy link
Copy Markdown
Contributor

@bors r+

Awesome!

@bors

bors commented May 7, 2018

Copy link
Copy Markdown
Contributor

📌 Commit 3521144 has been approved by matklad

@bors

bors commented May 7, 2018

Copy link
Copy Markdown
Contributor

⌛ 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

bors commented May 7, 2018

Copy link
Copy Markdown
Contributor

☀️ 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