Skip to content

Comments

Fix race condition in artifact cache#8517

Merged
radoering merged 3 commits intopython-poetry:masterfrom
radoering:artifact-cache-race-condition
Oct 29, 2023
Merged

Fix race condition in artifact cache#8517
radoering merged 3 commits intopython-poetry:masterfrom
radoering:artifact-cache-race-condition

Conversation

@radoering
Copy link
Member

Pull Request Check List

Resolves: #7611

  • Added tests for changed code.
  • Updated documentation for changed code.

Fixes the race condition identified in #7611 (comment)

The first two commits are refactorings to reduce duplicated code and let the artifact cache handle downloads of archives that will be stored in the artifact cache. The third commit is the actual fix, which uses per-artifact locks.

@thesct22
Copy link

Patiently working for this to be available
😁
Do you guys have an estimated update on when (if) this will be patched through as a new release?

@radoering
Copy link
Member Author

It's planned for 1.7 (see #8483). I'll probably start with the preparations for the release after this one has been reviewed and merged.

@radoering radoering force-pushed the artifact-cache-race-condition branch from 1e58964 to 8e89a8d Compare October 28, 2023 16:32
… threads and trying to store it in the same location of the artifact cache
@radoering radoering force-pushed the artifact-cache-race-condition branch from 8e89a8d to bb0a64f Compare October 28, 2023 16:44
@radoering radoering merged commit 092402d into python-poetry:master Oct 29, 2023
@github-actions
Copy link

github-actions bot commented Mar 3, 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 3, 2024
@radoering radoering deleted the artifact-cache-race-condition branch November 24, 2024 12:48
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.

Installing a package that depends on setuptools fails intermittently: Backend 'setuptools.build_meta:__legacy__' is not available.

3 participants