Repository navigation
fix(ci): build staged runtime images in the containerd image store - #13677
Merged
Merged
Conversation
The runtime jobs built on the hosted runners classic image store and pushed straight from the build, which ignored the targets timestamp rewriting: directories in every layer NemoClaw adds carried the build time, so each staging produced new runtime digests. Build in the containerd store with the targets own output, then push. Signed-off-by: Carlos Villela <[email protected]>
cv
enabled auto-merge (squash)
October 23, 2026 19:22
Contributor
cv
added a commit
that referenced
this pull request
Oct 23, 2026
…13679) ## Failure #13677 moved the staged runtime builds to Docker's containerd image store with the bake targets' own output (`type=docker,rewrite-timestamp=true,unpack=false`). That worked on Docker 29.6.2, but the hosted runners run Docker 28.0.4 (buildx 0.38.0), whose built-in BuildKit rejects it: both `Runtimes` jobs of `v0.1.0-rc5` failed with `exporter option "rewrite-timestamp" conflicts with "unpack"`. On the classic image store, the same BuildKit silently ignores `rewrite-timestamp`, which is why `v0.1.0-rc4` produced new runtime digests on every staging. ## Decision Push the runtime images from a `docker-container` buildx builder running the BuildKit image Brev already pins (`moby/buildkit@sha256:28a89871...`), with `type=image,push=true,rewrite-timestamp=true`. This replaces #13677's containerd-store step and its separate `docker push`. The images aren't in the runner's Docker afterwards, so the SBOM script scans them from the registry. With reproducible digests, that happens once per runtime image digest, and later stagings reuse the SBOM. ## Validation - A throwaway branch workflow on the hosted runners (since deleted) confirmed the failure with the built-in BuildKit on both architectures, then built the Ollama runtime image twice without cache with this builder and output: amd64 produced `sha256:ee428627...` both times, and arm64 `sha256:e6888697...` both times. - `actionlint` is clean. - The release check comes with the next release candidate: staging it twice should show unchanged runtime digests and reused SBOMs. Signed-off-by: Carlos Villela <[email protected]>
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.
Failure
Staging
v0.1.0-rc4twice from the same commit produced different digests for every runtime image (vLLM and Ollama, both architectures), so #13664's SBOM reuse never applied to them and vLLM was scanned on every staging (about 9 minutes per architecture). It also breaks the docs' promise that rebuilding the same sources keeps the same digest.The cause: the base layers matched, but every layer NemoClaw adds differed, because the directories in those layers carried each build's actual time. The runtime jobs pushed straight from the build (
type=image,push=true,rewrite-timestamp=true) on the hosted runners' classic Docker image store, which silently ignoresrewrite-timestamp. In the containerd image store, the same option conflicts with unpacking and fails.Decision
Build the runtime images the way the bake targets define, in the containerd image store:
containerd-storeaction, as the live suites and the bundle job already do;type=docker,rewrite-timestamp=true,unpack=false), which loads each image with clamped timestamps;docker pushthen pushes each tag, keeping that digest.The images are now also local when the SBOM script runs, so it scans them directly instead of downloading them.
Validation
v0.1.0-rc4's two Ollama arm64 manifests: identical base layers; every added layer's tar differed only in directory times (opt/,opt/nemoclaw/,opt/nemoclaw/source/), while the files matched.sha256:9f96168e...). Staging's old output failed there withexporter option "rewrite-timestamp" conflicts with "unpack".actionlintis clean.