Skip to content

fix(ci): designate a single bun cache saver per OS to stop save races - #56

Merged
LeXwDeX merged 1 commit into
devfrom
fix/bun-cache-save-race
Jul 3, 2026
Merged

fix(ci): designate a single bun cache saver per OS to stop save races#56
LeXwDeX merged 1 commit into
devfrom
fix/bun-cache-save-race

Conversation

@LeXwDeX

Copy link
Copy Markdown
Owner

Summary

  • Concurrent Linux/Windows jobs across ci-test.yml, ci-typecheck.yml, and release-fork.yml all compute the same {OS}-bun-{hash} cache key and race to save it, producing "Unable to reserve cache... another job may be creating this cache" warnings and the cache never actually landing.
  • Designate a single saver per OS: ci-typecheck.yml (linux), ci-test.yml e2e-tests (windows, unchanged), release-fork.yml (macos, the only job touching macOS). Every other job now only restores.

Test plan

  • bun turbo typecheck passes (ran via pre-commit hook)
  • Trigger release-fork.yml via workflow_dispatch alongside a push to dev/main and confirm no more "Unable to reserve cache" warnings, and that cache saves succeed on the designated jobs

Concurrent Linux/Windows jobs across ci-test.yml, ci-typecheck.yml, and
release-fork.yml all computed the same {OS}-bun-{hash} cache key and raced
to save it, causing "Unable to reserve cache... another job may be
creating this cache" warnings and the cache never actually updating.
Now only one job per OS saves (ci-typecheck linux, ci-test e2e windows,
release-fork macos); everything else only restores.
@LeXwDeX
LeXwDeX merged commit 977f8ad into devJul 3, 2026
4 checks passed
@LeXwDeX
LeXwDeX deleted the fix/bun-cache-save-race branch July 3, 2026 12:06
@LeXwDeXLeXwDeX mentioned this pull request Aug 24, 2026
2 tasks
Sign up for freeto 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.

1 participant

@LeXwDeX