Skip to content

ci(self-hosted): Drop BuildKit cache and skip QEMU for native builds - #127277

Merged
joshuarli merged 2 commits into
masterfrom
ref/self-hosted-drop-buildkit-cache
Oct 13, 2026
Merged

joshuarli merged 2 commits into
masterfrom
ref/self-hosted-drop-buildkit-cache

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Removes two GHA cache users from the self-hosted image build. Neither one makes the build faster, and together they take ~3.9 GB of the repo's 10 GB Actions cache, so other caches get evicted after ~25 minutes.

  • binfmt / QEMU: each matrix job builds its own architecture, so QEMU does nothing here. Even so, the step took 5–15s per job and saved the binfmt image from almost every PR (~1.2 GB). feat: Skip QEMU for native builds and make BuildKit cache configurable action-build-and-push-images#26 now skips it for native builds.
  • BuildKit cache (scope=buildcache, ~2.7 GB): across 12 recent runs, arm64 never got a cache hit. amd64 always did, but restoring the cached uv sync layer took 19–49s, while arm64 rebuilds it from scratch in ~6s. The build-and-push step was faster on arm64 with no cache (PRs: 31–34s vs 36–45s). The cache is now disabled through the new cache_from/cache_to inputs. The distroless cache-from is removed too, since nothing will write that scope anymore.

The action is now pinned to the merged #26 commit. The bump from 07a1c83 also picks up the action's intervening mainline changes: image-mirror for QEMU/BuildKit, forced gzip layers on publish, the WIF login for GAR, merge-queue publishing, and the release_branches input (its default still matches releases/*).

via @joshuarli.

--

View Junior Session [Sentry]

Co-Authored-By: Joshua Li <14209781+joshuarli@users.noreply.github.com>
Co-Authored-By: Joshua Li <14209781+joshuarli@users.noreply.github.com>
@sentry-junior
sentry-junior Bot marked this pull request as ready for review October 13, 2026 17:43
@sentry-junior
sentry-junior Bot requested a review from a team as a code owner October 13, 2026 17:43
@joshuarli
joshuarli merged commit 4ae598c into master Oct 13, 2026
61 checks passed
@joshuarli
joshuarli deleted the ref/self-hosted-drop-buildkit-cache branch October 13, 2026 17:47
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