Skip to content

ci: warm buildkit cache from parent ref on PRs and branches - #26

Merged
zbeekman merged 1 commit into
mainfrom
cache-test
May 7, 2026
Merged

ci: warm buildkit cache from parent ref on PRs and branches#26
zbeekman merged 1 commit into
mainfrom
cache-test

Conversation

@zbeekman

@zbeekman zbeekman commented May 7, 2026

Copy link
Copy Markdown
Member

Per-ref buildcache (:buildcache-${ref}) is cold for first-time PRs and feature-branch pushes. Shared :buildcache lags behind because it only updates on default-branch builds, so during active feature-branch development (e.g. successive LLVM bumps on their own branch) every retry rebuilt against stale main layers.

Add a parent cache-from layer:

  • PR -> :buildcache-${base_ref} (PR target branch)
  • non-default branch push -> :buildcache-${default_branch}
  • default branch push / tag -> none (shared :buildcache covers it)

Applies to both salt-dev and salt-dev-tools images.

Per-ref buildcache (`:buildcache-${ref}`) is cold for first-time
PRs and feature-branch pushes. Shared `:buildcache` lags behind
because it only updates on default-branch builds, so during
active feature-branch development (e.g. successive LLVM bumps on
their own branch) every retry rebuilt against stale main layers.

Add a parent cache-from layer:
- PR -> `:buildcache-${base_ref}` (PR target branch)
- non-default branch push -> `:buildcache-${default_branch}`
- default branch push / tag -> none (shared :buildcache covers it)

Applies to both `salt-dev` and `salt-dev-tools` images.
@zbeekman
zbeekman merged commit 14e1445 into main May 7, 2026
8 checks passed
@zbeekman
zbeekman deleted the cache-test branch May 7, 2026 11:32
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