Thanks to visit codestin.com
Credit goes to github.com

Skip to content

chore: fix turbo cache configuration in ci#7950

Merged
himself65 merged 1 commit into
canaryfrom
starsling/fix-turbo-cache-config
Feb 13, 2026
Merged

chore: fix turbo cache configuration in ci#7950
himself65 merged 1 commit into
canaryfrom
starsling/fix-turbo-cache-config

Conversation

@starslingdev
Copy link
Copy Markdown
Contributor

@starslingdev starslingdev Bot commented Feb 12, 2026

chore: fix turbo cache configuration in ci

Your workflows set TURBO_CACHE: remote:rw, which disables Turborepo's local cache. Since remote:rw omits the local: source, Turborepo never writes to .turbo/cache, the directory is never created, and actions/cache has nothing to save.

This is a pre-existing issue that StarSling has identified - the .turbo directory was a stale ~68 MB artifact restored from GHES cache (never regenerated by turbo build), and the Post Cache turbo build setup silently failed every time with Unable to reserve cache with key.

Run Time (UTC) Restore Result Restored Key Cache Size Post Save Result
21924958647 2026-02-11 22:08 HIT Linux-turbo-3877e588069d03dfaa67741a9e9d65e90b4a8543 68 MB Unable to reserve cache with key Linux-turbo-78562610cc...

Fix

Remove TURBO_CACHE: remote:rw and let it default to local:rw,remote:rw. This is what Turborepo's GitHub Actions guide recommends — both local and remote caching active, with actions/cache persisting .turbo across CI runs. Your remote cache (84% hit rate, 2,445/2,900 lookups) continues working as before; the local cache adds a faster first-check layer.

Changes

  • .github/workflows/ci.yml
  • .github/workflows/e2e.yml
  • .github/workflows/preview.yml

References


Summary by cubic

Enable Turborepo local caching in CI by removing TURBO_CACHE=remote:rw, so actions/cache can save .turbo and reduce build times. Remote caching remains active.

  • Bug Fixes
    • Fixed CI cache failures where .turbo/cache was never created, causing "Unable to reserve cache" on post-save.

Written for commit 3dd0932. Summary will update on new commits.

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 12, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
better-auth-docs Error Error Feb 12, 2026 10:05pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
better-auth-demo Ignored Ignored Feb 12, 2026 10:05pm

Request Review

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Feb 12, 2026

Open in StackBlitz

better-auth

npm i https://pkg.pr.new/better-auth/better-auth@7950

@better-auth/cli

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/cli@7950

@better-auth/core

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/core@7950

@better-auth/drizzle-adapter

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/drizzle-adapter@7950

@better-auth/electron

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/electron@7950

@better-auth/expo

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/expo@7950

@better-auth/i18n

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/i18n@7950

@better-auth/kysely-adapter

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/kysely-adapter@7950

@better-auth/memory-adapter

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/memory-adapter@7950

@better-auth/mongo-adapter

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/mongo-adapter@7950

@better-auth/oauth-provider

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/oauth-provider@7950

@better-auth/passkey

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/passkey@7950

@better-auth/prisma-adapter

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/prisma-adapter@7950

@better-auth/redis-storage

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/redis-storage@7950

@better-auth/scim

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/scim@7950

@better-auth/sso

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/sso@7950

@better-auth/stripe

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/stripe@7950

@better-auth/telemetry

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/telemetry@7950

@better-auth/test-utils

npm i https://pkg.pr.new/better-auth/better-auth/@better-auth/test-utils@7950

commit: 3dd0932

@starslingdev starslingdev Bot marked this pull request as ready for review February 12, 2026 22:28
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 3 files

@himself65 himself65 added this pull request to the merge queue Feb 13, 2026
Merged via the queue into canary with commit 221b6ae Feb 13, 2026
31 of 32 checks passed
@himself65 himself65 mentioned this pull request Feb 18, 2026
AndreaJ-Vasquez pushed a commit to AndreaJ-Vasquez/better-auth that referenced this pull request Feb 26, 2026
Co-authored-by: starslingdev[bot] <248995740+starslingdev[bot]@users.noreply.github.com>
@better-auth better-auth locked as resolved and limited conversation to collaborators Mar 31, 2026
@bytaesu bytaesu added the locked Locked conversations after being closed for 7 days label Mar 31, 2026
@gustavovalverde gustavovalverde deleted the starsling/fix-turbo-cache-config branch April 4, 2026 19:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

locked Locked conversations after being closed for 7 days

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants