Repository navigation
ci(docker): stop exporting PR BuildKit layers to GHA cache to prevent sccache eviction - #1078
Merged
Merged
Conversation
… sccache eviction A single PR Docker build (PR #1070, run 45215356002) exported 4,259 MB of buildkit-blob entries into the 10 GB repo-wide GitHub Actions cache via cache-to=type=gha,scope=docker-pr-{variant},mode=max, pushing total repo cache usage to 7.84 GB / 10 GB and risking LRU eviction of ci.yml's sccache and uv caches. Drop type=gha cache-from/cache-to on pull_request runs; PR builds still import main's GHCR buildcache read-only for shared base layers and restore main's docker-ccache read-only without consuming GHA cache quota.
davide221
reviewed
Nov 24, 2026
davide221
left a comment
Contributor
There was a problem hiding this comment.
Code review
No issues found. Checked for bugs and logic errors in the changed code.
Reviewed 1885727e · 0 candidate issues checked, kept at ≥70% confidence · add the code-review label to review again
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Based on
main(a70ab3ca2). Independent of #1068, #1070, #1074, #1076, and #1077 (touches only.github/workflows/docker.yml).What
main/release BuildKit layer caches to GHCR,docker.ymlkeptcache-to=type=gha,scope=docker-pr-{variant},mode=maxfor pull requests. A single PR build (perf(ci): bootstrap Ninja and ROCm lld on lucebox3, prune affine FA units, and cache build deps #1070, run45215356002, job137835232783) exported 4,259 MB (4.26 GB) ofbuildkit-blobentries (refs/pull/1070/merge) into the 10 GB repo-wide GitHub Actions cache, pushing total repo cache usage to 7.84 GB / 10 GB (alongside ~3.0 GB ofsccacheand 567 MB ofdocker-ccache). Two concurrent Docker PRs immediately exceed 10 GB and trigger LRU eviction ofmain'ssccacheentries (sending hosted PR builds back from ~5–8 min warm to 31–45 min cold / Windows timeout)..github/workflows/docker.yml):type=gha,scope=docker-pr-{variant}cache-fromandcache-tolines on pull requests.cache-from=type=registry,ref=ghcr.io/luce-org/lucebox-hub:buildcache-{variant}for shared base layers and read-onlydocker-ccacherestore frommain.main,release, andworkflow_dispatchGHCR cache behavior is unchanged.Baseline & measurement (provisional)
actions/cache/usageon 2026-11-24T07:27Z):7,839 MB / 10,240 MB(10,600active entries)buildkit-blob(refs/pull/1070/merge):4,259 MB(23entries — 54% of total repo cache from 1 PR)docker.ymlPR wait (50 runs, 22 successful): median49m 26s, slowest 5%68m 26sdocker.ymlruns write0 Bofbuildkit-blobto GHA cache andci.ymlsccachestays warm without eviction across >= 5 comparable runs.Coverage & checks
cuda12,rocm) and verification step indocker.ymlis unchanged.yaml.safe_loadon.github/workflows/docker.ymland.github/ci/check_commit_messages.py.