Repository navigation
perf(ci): export live images directly from containerd - #13239
Merged
Merged
Conversation
cv
enabled auto-merge (squash)
October 15, 2026 07:10
Contributor
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`.
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.
cargo ci live-imagesnow 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:
cargo ci live-imagesfailed 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.cargo ci --fullpassed 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.