ci(health-check): rewire cache to match docker-new restructure#7032
Merged
ci(health-check): rewire cache to match docker-new restructure#7032
Conversation
- Switch buildcache-new tag to its own scope `health-check-<build-type>-humble-<platform>-<ref>` (instead of the ci-universe tags that no longer populate), with current-ref + main fallback reads and a current-ref write, mirroring docker-build-new.yaml's pattern. - Add read-only `buildkit-cache-dance` injection fed by the `buildkit-mounts-ci-universe-humble-<platform>-*` tarballs the main pipeline saves, so health-check reuses the same apt / ccache / pip / pipx mount state without writing back. Signed-off-by: Mete Fatih Cırıt <[email protected]>
|
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
Signed-off-by: Mete Fatih Cırıt <[email protected]>
mitsudome-r
approved these changes
Apr 17, 2026
Contributor
Author
|
The cache this one will use will come with the next pr 😅 |
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.
health-check-<build-type>-humble-<platform>-<ref>with-mainas fallback read and a current-ref write (mode=max, ignore-error=true). Mirrors the pattern used by the maindocker-build-newpipeline.buildkit-cache-dance@v3injection fed by the main pipeline'sbuildkit-mounts-ci-universe-humble-<platform>-*tarballs (apt / apt-lists / ccache / pip / pipx, IDs matched to the main build). Health-check never writes back.ref_nameoutput (replaces/with-) so branch names likefeat/fooproduce valid registry tags.Why
The previous
buildcache-new:humble-<platform>-main/buildcache-new:<build-type>-humble-<platform>-maintags live in the maindocker-build-newpipeline's registry namespace. Sharing scope meant health-check runs could overwrite each other's or main's entries, and the tag layout didn't reflect the new per-distro / per-arch / per-ref structure. Giving health-check its ownhealth-check-*prefix keeps caches isolated; read-only mount restore lets health-check warm apt/ccache/pip/pipx from tarballs main already paid to produce.buildkit-mounts-ci-universe-humble-<platform>-*tarballs that this reads are produced by the maindocker-build-newpipeline. Until the next PR in the stack (docker-new restructure) lands, those tarballs don't exist andcache-restorewill stay a miss — benign, just no mount reuse.Test plan
run:health-checklabel). Confirm the🔨 Build Autowarestep'sset:block references the new scope:ghcr.io/<repo>-buildcache-new:health-check-<build-type>-humble-<platform>-<ref_name>(cache-from + cache-to) plushealth-check-*-main(cache-from fallback).💾 Restore BuildKit cache mounts (read-only)step runs and logs eitherCache restored from key: buildkit-mounts-ci-universe-humble-<platform>-...(hit) orCache not found(miss — expected before PR 5 lands).💉 Inject BuildKit cache mountsstep completes without error even on a miss (inject tolerates emptycache-mounts/).health-checkfrom the Actions UI and verify the cache-to write lands:docker manifest inspect ghcr.io/<repo>-buildcache-new:health-check-main-humble-amd64-mainshould resolve after the run.