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 #2658: Run all uninstalls serially #3095

Closed
wants to merge 1 commit into from

Conversation

PetterS
Copy link
Contributor

@PetterS PetterS commented Oct 6, 2020

Resolves: #2658

  • Added tests for changed code.

This is one way of fixing the issue. Most of the changes are to make this code testable.

@abn

@abn
Copy link
Member

abn commented Oct 6, 2020

@PetterS why not simply add a retry once if EnvCommadError logic for the run_pip in uninstall call since this is really an edge case?

@PetterS
Copy link
Contributor Author

PetterS commented Oct 6, 2020

That just does not seem safe to me? 😕 The code we are using is not built for concurrent uninstalls and we don't know that simply retrying is safe. It is hard to know the state of the virtualenv after a race condition failure.

Might work in practice though.

@abn
Copy link
Member

abn commented Oct 6, 2020

@PetterS fair enough. I am proposing #3099 as the fix for this; as it ensures that we run these unsafe tasks serially within their priority groups.

@PetterS
Copy link
Contributor Author

PetterS commented Oct 6, 2020

Cheers! Is a better solution, albeit a bit harder to test.

Copy link

github-actions bot commented Mar 1, 2024

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Race condition in new installer (1.1.0rc1) with --remove-untracked
2 participants