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

Aggressive remove_dir_all #1015

Merged
merged 3 commits into from
Apr 5, 2017
Merged

Aggressive remove_dir_all #1015

merged 3 commits into from
Apr 5, 2017

Conversation

brson
Copy link
Contributor

@brson brson commented Mar 28, 2017

Let's see if this helps the flakiness.

cc @Diggsey @alexcrichton

cc @Aaronepower this PR contains a self-contained remove_dir_all module based on winapi.

@Diggsey
Copy link
Contributor

Diggsey commented Mar 29, 2017

Looks like we might need an aggressive remove_file too...

@alexcrichton
Copy link
Member

I personally forget, but can you clarify how precisely this is more aggressive again?

@Diggsey
Copy link
Contributor

Diggsey commented Mar 29, 2017

It moves the files out of the subdirectory and up next to the directory being deleted, prior to deleting them. This means if the file deletion is delayed due to outstanding locks, then the directories can still be deleted successfully without waiting for other processes to close their file handles.

The failure here looks different - like a race condition in one of the self-updater tests possibly?

@brson
Copy link
Contributor Author

brson commented Mar 29, 2017

Updated to fix the linux build hopefully.

@brson
Copy link
Contributor Author

brson commented Mar 31, 2017

@bors r+

@bors
Copy link
Contributor

bors commented Mar 31, 2017

📌 Commit b61370a has been approved by brson

@bors
Copy link
Contributor

bors commented Mar 31, 2017

⌛ Testing commit b61370a with merge 0acd9dd...

bors added a commit that referenced this pull request Mar 31, 2017
Aggressive remove_dir_all

Let's see if this helps the flakiness.

cc @Diggsey @alexcrichton

cc @Aaronepower this PR contains a self-contained remove_dir_all module based on winapi.
@bors
Copy link
Contributor

bors commented Mar 31, 2017

💔 Test failed - status-appveyor

@brson brson merged commit 605bb99 into rust-lang:master Apr 5, 2017
@brson
Copy link
Contributor Author

brson commented Apr 5, 2017

Test failure was network error and i want to deploy this in next release.

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.

4 participants