Repository navigation
ci(live): pull a v1 commit's images instead of building the live images - #13724
Merged
Merged
Conversation
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
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]>
Contributor
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.
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), thenLive / 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 / Kindtook 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"]nemoclaw-build changes live-images --base REVnames 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 andHEAD. 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.packages: read, granted byrust.ymlandimages.yml).Build live imagesis 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-dockerpulls the three images and derives the proxy pair from the pushed proxy with one label each, asci live-imagesbuilds it.live-kindpulls the agent straight into the kind node withctrand 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 reachctrthrough the environment and are removed before the tests run.dummyimage, whichimage-build.ymlalready builds and qualifies, without an SBOM; releases select their images from the Bakeagentsgroup 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 pusheddummy.Validation
cicases (the pull path and its flag rules).cargo ci: 1,694 unit and 156 lifecycle tests pass; clippy is clean;fern checkreports 0 errors;actionlintreports only the existingimages.ymlfinding.cargo ci live-kind --images-commit 69e0eabb40fd9b1dc54507fd9c3dc24ab20b26d3on 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.live-dockerpulling, because v1 hasn't pusheddummyyet. The first pull request after this merges and v1 pushes images will exercise it; its plan summary names the reused commit.