Skip to content

ci: stop fork build from writing gha cache#93

Merged
skjnldsv merged 1 commit into
mainfrom
fix/fork-no-cache-write
Jul 8, 2026
Merged

ci: stop fork build from writing gha cache#93
skjnldsv merged 1 commit into
mainfrom
fix/fork-no-cache-write

Conversation

@skjnldsv

@skjnldsv skjnldsv commented Jul 8, 2026

Copy link
Copy Markdown
Owner

What

Drop cache-to from the fork build; keep a read-only cache-from on the publish scope.

Why

The fork build kept failing with:

error writing layer blob: failed to reserve cache

Root cause is the repo GHA cache quota, not buildx or scopes. Usage sits at ~9.3 GB against GitHub's 10 GB per-repo limit (143 entries, all from docker-publish's mode=max export). The fork build's own mode=max cache-to can't reserve the space it needs, so the export fails.

Fork builds are occasional, maintainer-gated test builds — they don't need to persist cache. Reading the already-warm publish layers keeps them reasonably fast without adding to the quota.

Testing

AI-assisted change.

The repo GHA cache sits at ~9.3 GB against the 10 GB per-repo limit
(filled by docker-publish's mode=max export), so the fork build's own
cache-to export could not reserve space and failed with:

  error writing layer blob: failed to reserve cache

Fork builds are occasional test builds, so drop cache-to entirely and
only read the publish scope's warm layers for speed. No new reservation,
no quota growth.

Assisted-by: ClaudeCode:claude-opus-4-8
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
@skjnldsv
skjnldsv merged commit 61e119a into main Jul 8, 2026
1 check passed
@skjnldsv
skjnldsv deleted the fix/fork-no-cache-write branch July 8, 2026 08:30
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