Skip to content

perf(ci): load saved images directly into Kind - #13188

Merged
cv merged 2 commits into
v1from
codex/kind-direct-image-archive
Oct 14, 2026
Merged

cv merged 2 commits into
v1from
codex/kind-direct-image-archive

Conversation

@cv

@cv cv commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator

The Kind live suite loads CI's saved images into host Docker, exports the agent again to read its metadata, then lets kind load docker-image export it a second time for the node. The reference AMD64 job spent about 110 seconds on that path before test-archive extraction.

When --images is supplied, decompress the existing archive once, select the agent by its exact OCI image name, and verify its metadata while seeking past layer data. Import with kind load image-archive, then give the node image the same unique digest reference used by the tests. The local image-build path stays available.

The entire shared archive is imported into the disposable node, including auxiliary images. This keeps the artifact format unchanged; hosted CI will establish whether the removed host load and exports outweigh that extra node import work. No hosted speedup is claimed yet.

Validation:

  • Existing metadata tests passed before refactoring. The shared-image selection test failed before implementation, then passed. Regression coverage includes missing/ambiguous names, wrong platforms, altered metadata, command output handling, and Kind import failure.
  • cargo ci --full passed in 332 seconds: 1,501 regular tests and 138 lifecycle tests, plus formatting, Clippy, workspace build, schema, and bundle checks.
  • Native smoke test with pinned Kind 0.33.0 and Kubernetes 1.37: imported an existing ARM64 OpenClaw archive, created the unique digest alias, and resolved it through crictl inspecti. The temporary cluster was deleted.
  • The new production reader returned byte-identical 27 KB metadata from the real 1 GB image archive.
  • Complete Docker/Kind live suites and AMD64 validation remain with hosted CI; the native smoke test checks import and reference preservation, not the full deployment suite or end-to-end speedup.

@github-actions

Copy link
Copy Markdown
Contributor

@cv
cv merged commit e0c8f19 into v1 Oct 14, 2026
@cv
cv deleted the codex/kind-direct-image-archive branch October 14, 2026 18:56
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 area: ci CI workflows, checks, release automation, or GitHub Actions area: performance Latency, throughput, resource use, benchmarks, or scaling chore Build, CI, dependency, or tooling maintenance platform: k8s Affects Kubernetes deployments v1 NemoClaw v1 branch labels Oct 22, 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: performance Latency, throughput, resource use, benchmarks, or scaling chore Build, CI, dependency, or tooling maintenance platform: k8s Affects Kubernetes deployments v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants