Skip to content

ci(live): pull a v1 commit's images instead of building the live images - #13724

Merged
cv merged 2 commits into
v1from
ci/faster-live-suites
Oct 26, 2026
Merged

cv merged 2 commits into
v1from
ci/faster-live-suites

Conversation

@cv

@cv cv commented Oct 26, 2026

Copy link
Copy Markdown
Collaborator

Failure

On a pull request that selects the live suites, the slowest path is Linux AMD64's Build live images (6.3 to 7.2 min), then Live / Kind. Both live jobs on each platform then download the 1 GB live-images archive, 202 to 205 s each, before their tests start. In #13551's last run, Live / Kind took 10.8 min for 3.9 min of tests, and the whole workflow took about 20 min.

Most pull requests change no image input, and v1 already pushes each image-changing commit's checked agent and proxy images to ghcr.io/nvidia/nemoclaw/v1-ci.

Decision

flowchart LR
    P["plan: changes live-images"] -->|v1 commit found| L["Live / Docker, Live / Kind<br/>pull that commit's images"]
    P -->|none| B["Build live images<br/>(unchanged)"] --> A["live jobs load the archive"]
Loading
  • Planner: nemoclaw-build changes live-images --base REV names the newest of the latest 30 commits on the base's first-parent history that pushed the agent, reference, and proxy images for both architectures, provided the image rules find no change between it and HEAD. Checking the image rules against that commit, not the merge base, also covers a v1 commit whose image run a later push cancelled. Any failure leaves the live suites to build, as today, including fork pull requests that can't read the package.
  • Workflows: the plan job reads the package (packages: read, granted by rust.yml and images.yml). Build live images is skipped when the plan names a commit. The live jobs then run with explicit result checks, so a skipped build only stands in for a named commit and never silently skips them.
  • cargo ci live-docker|live-kind --images-commit COMMIT: live-docker pulls the three images and derives the proxy pair from the pushed proxy with one label each, as ci live-images builds it. live-kind pulls the agent straight into the kind node with ctr and reads its metadata bundle from the registry: a Docker save of a pulled image lacks its config, so neither can go through the host engine. Registry credentials reach ctr through the environment and are removed before the tests run.
  • v1 pushes: they also push the reference dummy image, which image-build.yml already builds and qualifies, without an SBOM; releases select their images from the Bake agents group and the proxy, so it doesn't reach them.

v1 pushes and this PR, which changes nemoclaw-build, still build the live images: reuse only starts once v1 has pushed dummy.

Validation

  • New tests failed first: three planner cases (reuse, an image change since the pushed commit, an incomplete push) and two ci cases (the pull path and its flag rules).
  • cargo ci: 1,694 unit and 156 lifecycle tests pass; clippy is clean; fern check reports 0 errors; actionlint reports only the existing images.yml finding.
  • cargo ci live-kind --images-commit 69e0eabb40fd9b1dc54507fd9c3dc24ab20b26d3 on a GB10 (arm64), pulling v1's pushed OpenClaw image: 7 of 7 pass, including the registry test, which pushes the node's copy; no token appears in the log.
  • Not run for real: live-docker pulling, because v1 hasn't pushed dummy yet. The first pull request after this merges and v1 pushes images will exercise it; its plan summary names the reused commit.

On a pull request that changes no image input since a v1 commit that pushed
the live images, the plan names that commit and the live jobs pull its
images, skipping Build live images and its 1 GB artifact.

Signed-off-by: Carlos Villela <[email protected]>
@cv
cv enabled auto-merge (squash) October 26, 2026 10:50
GitHub checks a reusable workflow's job permissions for every caller, so the
macOS and Windows calls must allow the live jobs' package reads too.

Signed-off-by: Carlos Villela <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

@cv
cv merged commit 4eed2b3 into v1 Oct 26, 2026
52 checks passed
@cv
cv deleted the ci/faster-live-suites branch October 26, 2026 11:07
@wscurran wscurran added v1 NemoClaw v1 branch area: ci CI workflows, checks, release automation, or GitHub Actions area: e2e End-to-end tests, nightly failures, or validation infrastructure chore Build, CI, dependency, or tooling maintenance security area: security Security controls, permissions, secrets, or hardening and removed security 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: e2e End-to-end tests, nightly failures, or validation infrastructure area: security Security controls, permissions, secrets, or hardening 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