← Back to issue list

fix: lock shared cache directory

View original Github issue

Metadata

Project
charmcraft
Number
#1888
Type
pull request
State
merged
Author
lengau
Labels
—
Created
Updated
Closed

Current evaluation

Merged PR #1888 in commit 4cce11b0, locking Charmcraft's shared cache to prevent concurrent-build cache races; fixes #1845.

Resolution: closed resolved

Reason: PR #1888 was approved and merged as commit 4cce11b0. Its shared-cache locking resolves the concurrency failures reported in #1845.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Locks the shared cache directory to prevent concurrency issues. Fixes #1845 CRAFT-3313

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged PR #1888 in commit 4cce11b0, locking Charmcraft's shared cache to prevent concurrent-build cache races; fixes #1845.
stealth/space-bunny-alpha — closed resolved Merged #1888 in commit 4cce11b0, locking the shared cache directory to prevent concurrency errors during parallel charm builds; fixes #1845.
stealth/space-bunny-alpha — closed resolved Merged #1888 in commit 4cce11b0, locking Charmcraft's shared cache to prevent concurrent-build cache races; fixes #1845.
qwen/qwen3.6-35b-a3b — — Merged to resolve concurrency issues by locking the shared cache directory, addressing #1845 and CRAFT-3313. Approved by two reviewers, the change modifies eight files and implements directory locking to prevent race conditions.
qwen3.6-35b-a3b-mtp-q6 — — Merged a fix that locks the shared cache directory to prevent concurrency issues, resolving #1845 and CRAFT-3313.

Update history

No update history recorded yet.

Related work

  • Related To: charmcraft#1845 (confidence 100%)

    The issue reported caching errors during simultaneous charm builds and is explicitly fixed by PR #1888.

Related issues

Issue Project State Summary Similarity
#1762 `CRAFT_SHARED_CACHE` broken or ignored in charmcraft 3.1 charmcraft closed Fixed in merged PR canonical/charmcraft#1763 (commit e0eaee74), which forwards the host shared-cache path to the build provider so CRAFT_SHARED_CACHE is populated and reused.
75%
#1845 Building multiple charms simultaneously can cause caching errors charmcraft closed Parallel charm builds were fixed by merged PR #1888 (commit 4cce11b0), which locks the shared cache to prevent concurrent builds from reusing incomplete files.
74%
#2205 fix: remove the storage 'shared' field charmcraft merged Merged charmcraft#2205 as be3c6110, removing the never-implemented storage `shared` field after approval by two reviewers.
70%