Skip to content

perf(ci): export live images directly from containerd - #13239

Merged
cv merged 3 commits into
v1from
codex/live-image-export
Oct 15, 2026
Merged

cv merged 3 commits into
v1from
codex/live-image-export

Conversation

@cv

@cv cv commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator

cargo ci live-images now exports directly from Docker's local containerd store to a temporary file before zstd compression. This replaces the slower Docker save stream for both local runs and CI, with no exporter flag. It discovers Docker's containerd address and namespace, retains all platforms and attestations, and reports export, compression, archive size, and cleanup timings.

Three local ARM64 comparisons with the same OpenClaw and dummy images measured Docker export/compression at 10.76–11.89s, versus 4.47–6.35s with containerd. Image digests, metadata, and all blob contents matched. Archive size remains about 1 GB. The command requires local Docker with the containerd image store, sudo -n ctr, and temporary disk space for the uncompressed archive. Hosted end-to-end savings still need measurement.

Validation:

  • The command-level test for plain cargo ci live-images failed against the previous default, then passed with direct export. All 16 related integration tests and 14 build-tool unit tests passed; command tests cover inspection/export/compression failures and temporary-file cleanup.
  • Formatting and Clippy with all build-tool targets/features passed.
  • The native comparison passed again after removing the flag, verifying metadata and every blob, including layers and attestations.
  • cargo ci --full passed on the initial implementation: 1,541 regular tests and 140 lifecycle tests, plus formatting, Clippy, build, schema, and bundle. The final default-path simplification used the targeted checks above because bundle and lifecycle behavior did not change.
  • A disposable Kind cluster imported the archive and resolved its digest alias, then was deleted. Complete hosted Docker/Kind suites and AMD64 validation remain for CI because the local host is ARM64.

@cv
cv enabled auto-merge (squash) October 15, 2026 07:10
@github-actions

Copy link
Copy Markdown
Contributor

@cv
cv merged commit b858f40 into v1 Oct 15, 2026
@cv
cv deleted the codex/live-image-export branch October 15, 2026 07:35
@wscurran wscurran added area: ci CI workflows, checks, release automation, or GitHub Actions area: security Security controls, permissions, secrets, or hardening chore Build, CI, dependency, or tooling maintenance platform: container Affects Docker, containerd, Podman, or images labels Oct 15, 2026
cv added a commit that referenced this pull request Oct 20, 2026
## Failure

Releases need the exact images CI checked (#13516), but `CI / Images`
discarded every image it built and checked. A release workflow would
have to rebuild them, and agent images are not reproducible byte for
byte, so the published digests would differ from the checked ones.

## Decision

Build once per commit, and let releases promote what was checked.

- **`image-build.yml` (new, reusable):**
  - it has the image job's steps, unchanged;
- it takes the validation plan's result, the image decision, and a
`push` switch;
- the calling job is named `Build` and its own job is named after the
platform, so the required checks keep their names (`Build /
linux_arm64`, `Build / linux_amd64`).
- **`images.yml`** calls it, with `push` only for pushes to `v1`. Pull
requests, stacked branches, and pushes that skip image work push
nothing.
- **When pushing,** after the existing checks pass, each agent image and
the Ollama proxy is pushed to
`ghcr.io/nvidia/nemoclaw/v1-ci/<image>:<commit>-<arch>` with the
workflow's own token:
- Docker's containerd store pushes the manifest it built, so the digest
doesn't change;
  - the job summary lists each digest and its push time;
- the job fails if any of those packages turns out public, since nothing
must be public before a release.
- **Left alone:** the live suites' `live-images` path, which is tuned to
stay behind the bundle on the critical path (#12995, #13188, #13239).

Later: the tag workflow that promotes these digests (#13516), and a
cleanup schedule for old per-commit tags.

## Validation

- `actionlint` reports nothing for both workflows.
- This pull request runs the same steps through the reusable workflow,
without pushing.
- **Not yet run:** the push step, which runs only on a `v1` push that
builds images. I'll watch the first one for push time and the new
packages' visibility; earlier, a package pushed with a personal token
started `internal`.
@wscurran wscurran added the v1 NemoClaw v1 branch label Oct 28, 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: security Security controls, permissions, secrets, or hardening chore Build, CI, dependency, or tooling maintenance platform: container Affects Docker, containerd, Podman, or images v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants