Repository navigation
fix(crs): pull prebuilt images instead of rebuilding in prepare phase - #140
Merged
Merged
Conversation
0xdkay
force-pushed
the
fix/prepare-pull-prebuilt-images
branch
from
March 20, 2026 15:28
51dbed7 to
5be3c2c
Compare
azchin
reviewed
Mar 20, 2026
azchin
left a comment
Collaborator
There was a problem hiding this comment.
Can you add a --no-pull or --force-rebuild to oss-crs prepare so it can build the images locally without publishing?
0xdkay
force-pushed
the
fix/prepare-pull-prebuilt-images
branch
2 times, most recently
from
March 20, 2026 16:00
fdba502 to
4b8fcc8
Compare
Signed-off-by: Dongkwan Kim <0xdkay@gmail.com>
Signed-off-by: Dongkwan Kim <0xdkay@gmail.com>
Signed-off-by: Dongkwan Kim <0xdkay@gmail.com>
type=bool caused --publish false to parse as True (bool("false") == True).
Now works as a simple flag: --publish to enable, omit to disable.
Signed-off-by: Dongkwan Kim <0xdkay@gmail.com>
Skip pulling prebuilt images and always build locally via bake. Useful for local development when images need to be rebuilt. Signed-off-by: Dongkwan Kim <0xdkay@gmail.com>
Signed-off-by: Dongkwan Kim <0xdkay@gmail.com>
0xdkay
force-pushed
the
fix/prepare-pull-prebuilt-images
branch
from
March 20, 2026 16:08
4b8fcc8 to
c7c6a94
Compare
Collaborator
Author
|
@azchin I've added |
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.
Summary
--set=*.cache-from/--set=*.cache-tooverrides that broke per-target registry cache. The framework was setting cache-from to{registry}/{crs_name}:{version}for all targets, but actual images have distinct per-target names (e.g.,multilang-given_fuzzer-clang,multilang-given_fuzzer-crs). The--set=*replaced the correct HCL-defined refs, causing silent cache misses on every target.prepare(). Before runningdocker buildx bake, parse the HCL build plan viabake --print,docker pullall registry-tagged images, and tag them locally. Falls back to full bake build if any pull fails.Context
oss-crs preparewas always building from scratch (~30+ min for given_fuzzer) even when prebuilt images existed in the registry. Two issues:--set=*.cache-fromused the CRS name for all targets, overriding per-target refs in the HCL:cache-from,type=registrydoesn't work with thedockerbuildx driver for multi-stage builds without inline cache metadata.Verified with
docker buildx bake --printthat the override replaces (not appends) per-target values.Test plan
oss-crs preparepulls 6 images from registry instead of buildingdocker system prune(the original reported failure case)oss-crs prepare --publishstill builds and pushes correctly