-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Avoid race conditions when installing multiple dependencies from the same git repository. #9658
Merged
radoering
merged 9 commits into
python-poetry:main
from
gustavgransbo:feature/avoid-git-race-condition
Sep 27, 2024
Merged
Avoid race conditions when installing multiple dependencies from the same git repository. #9658
radoering
merged 9 commits into
python-poetry:main
from
gustavgransbo:feature/avoid-git-race-condition
Sep 27, 2024
Commits on Sep 27, 2024
-
executor: avoid race condition for git dependency
Multiple installs from the same git repository causes arace condition when the repository is cloned. This commit only allows one operation per repository to be executed by the parallel workers. Any extra operation will be performed serially. Since the git repository is cached after the first operation, this is blazingly fast. Resolves: python-poetry#6958
Configuration menu - View commit details
-
Copy full SHA for 73f1b2b - Browse repository at this point
Copy the full SHA 73f1b2bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 30ced26 - Browse repository at this point
Copy the full SHA 30ced26View commit details -
Configuration menu - View commit details
-
Copy full SHA for 409315c - Browse repository at this point
Copy the full SHA 409315cView commit details -
Execute git operations serially per repository
Operations for a single repository are grouped and executed serially by a single worker.
Configuration menu - View commit details
-
Copy full SHA for d1af137 - Browse repository at this point
Copy the full SHA d1af137View commit details -
Configuration menu - View commit details
-
Copy full SHA for a1a7e55 - Browse repository at this point
Copy the full SHA a1a7e55View commit details -
Mark skipped operations parallel safe
This simplifies the subsequent if/else block.
Configuration menu - View commit details
-
Copy full SHA for fc3a2af - Browse repository at this point
Copy the full SHA fc3a2afView commit details -
Configuration menu - View commit details
-
Copy full SHA for 39a9631 - Browse repository at this point
Copy the full SHA 39a9631View commit details -
Revert "Move inner function to class"
This reverts commit 58e5338.
Configuration menu - View commit details
-
Copy full SHA for c9b1630 - Browse repository at this point
Copy the full SHA c9b1630View commit details -
Configuration menu - View commit details
-
Copy full SHA for 259100f - Browse repository at this point
Copy the full SHA 259100fView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.