Skip to content

Make GHA cache export non-fatal in release Docker builds#255

Merged
thekoma merged 1 commit into
mainfrom
fix/release-cache-export
Jul 17, 2026
Merged

Make GHA cache export non-fatal in release Docker builds#255
thekoma merged 1 commit into
mainfrom
fix/release-cache-export

Conversation

@thekoma

@thekoma thekoma commented Jul 17, 2026

Copy link
Copy Markdown
Owner

Summary

Every Release run since July 6 has failed in both Docker (amd64) and Docker (arm64) with:

ERROR: failed to build: failed to solve: error writing layer blob: failed to reserve cache

The image build and push succeed — only the cache-to: type=gha export step fails, killing the job and skipping the manifest/release stages. Evidence it's a GitHub-side cache service issue, not our code:

  • Last green release was July 4; the July 6 failure used the same BuildKit version (v0.30.0) as the green run.
  • Identical error on every release since, across different PRs.
  • Reruns fail identically, and purging all repo Actions caches (87 MB) didn't help.

Fix

Add ignore-error=true to both cache-to lines, so a failed cache export logs a warning instead of aborting the release. cache-from still works, so cache hits resume automatically whenever GitHub's cache service recovers.

Merging this PR will itself trigger a Release run that exercises the fix.

🤖 Generated with Claude Code

Every release since July 6 has failed with "error writing layer blob:
failed to reserve cache" while exporting the buildx cache to the GitHub
Actions cache backend. The build and push themselves succeed; only the
cache export step kills the job. The failure persists across reruns,
after purging all repo caches, and with the same BuildKit version that
worked on July 4, pointing at a GitHub-side cache service problem.

Add ignore-error=true to cache-to so a failed cache export no longer
aborts the release. Cache reads (cache-from) are unaffected.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jul 17, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@thekoma, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 49 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: d8c50a52-9cd3-4d60-bc8c-8515623c650f

📥 Commits

Reviewing files that changed from the base of the PR and between 895a8f1 and dc15026.

📒 Files selected for processing (1)
  • .github/workflows/on_pr.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/release-cache-export

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@thekoma
thekoma merged commit 26df9ee into main Jul 17, 2026
3 checks passed
@thekoma
thekoma deleted the fix/release-cache-export branch July 17, 2026 16:22
Sign up for free to 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