Skip to content

fix(ci): build staged runtime images in the containerd image store - #13677

Merged
cv merged 1 commit into
v1from
fix/runtime-image-push
Oct 23, 2026
Merged

cv merged 1 commit into
v1from
fix/runtime-image-push

Conversation

@cv

@cv cv commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator

Failure

Staging v0.1.0-rc4 twice 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 ignores rewrite-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:

  • the runtime jobs switch the runner to the containerd store with the existing containerd-store action, as the live suites and the bundle job already do;
  • bake uses the targets' own output (type=docker,rewrite-timestamp=true,unpack=false), which loads each image with clamped timestamps;
  • docker push then 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

  • Compared 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.
  • On a DGX Spark, against a local registry: two builds of the Ollama runtime image without cache, loaded and pushed this way, produced the same digest (sha256:9f96168e...). Staging's old output failed there with exporter option "rewrite-timestamp" conflicts with "unpack".
  • actionlint is clean.
  • The CI check comes with the next release candidate: staging it twice should show unchanged runtime digests, reused SBOMs, and no vLLM scan.

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
cv enabled auto-merge (squash) October 23, 2026 19:22
@github-actions

Copy link
Copy Markdown
Contributor

@cv
cv merged commit 6b60a76 into v1 Oct 23, 2026
49 checks passed
@cv
cv deleted the fix/runtime-image-push branch October 23, 2026 19:31
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]>
@wscurran wscurran added v1 NemoClaw v1 branch area: ci CI workflows, checks, release automation, or GitHub Actions area: packaging Packages, images, registries, installers, or distribution chore Build, CI, dependency, or tooling maintenance labels Oct 27, 2026
@cv cv added this to the Roadmap: GTC DC 2026 milestone Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ci CI workflows, checks, release automation, or GitHub Actions area: packaging Packages, images, registries, installers, or distribution chore Build, CI, dependency, or tooling maintenance v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants