Repository navigation
ci: require the live suites in each platform check - #12970
Merged
Merged
Conversation
cv
enabled auto-merge (squash)
October 10, 2026 20:27
Contributor
cv
disabled auto-merge
October 10, 2026 20:37
cv
added a commit
that referenced
this pull request
Oct 11, 2026
## Failure Each live job compiles the workspace's test executables again, although `Build and test` already built and archived the same commit's tests for the lifecycle shards. Before compiling, each job also restores the Rust cache and compiles `nemoclaw-build` to decide whether the pull request can affect it. With #12970, live jobs set when the Linux `Test / PLATFORM` checks finish, so this repeated work delays required checks: In the last warm `v1` run ([38070042632](https://github.com/NVIDIA/NemoClaw/actions/runs/38070042632)), each live job spent 107–128 s before its suite started: - **Rust setup:** 25–33 s, including restoring a 1 GB cache. - **`cargo ci build`:** 63–95 s. ## Decision Run the live suites the way the lifecycle shards already run: - **Archive:** on Linux, `cargo ci archive` also packs the test executables the `live-docker` and `live-kind` nextest profiles select. Selection still comes from the profiles, so there's no second list to maintain. Other platforms archive only the lifecycle suite. - **Runner:** `ci live-docker` and `ci live-kind` accept `--archive-file`, like `ci lifecycle`. `--partition` stays lifecycle-only. - **Decision:** `Build and test` runs `nemoclaw-build changes live`, since it already has the build tool compiled. Live jobs skip when the change can't affect them, so they no longer start a runner just to decide. - **Live jobs:** each waits for `Build and test` and `Build bundle`, then downloads both artifacts. It runs `.build/ci/nemoclaw-build ci SUITE --archive-file`, with no Rust setup and no compiling. It restores the downloads cache read-only, for Kind's pinned tools. In the last four warm `v1` runs, Linux `Build and test` finished 9–110 s before `Build bundle`. This change adds a few seconds to `Build and test` (a larger archive and the decision step), so occasionally the live jobs may start a few seconds later. ## Validation - **New tests:** three, all failing before the change. On Linux, the archive holds the live suites; on other platforms, it holds only the lifecycle suite; the live steps accept an archive. The option-rejection test now covers `live-docker --partition`. - **Real archive on Linux ARM64:** listing from the archive gives exactly the compiled listing for all three profiles: 128 lifecycle tests, 10 Docker, and 5 Kind. - **Archive size:** 184 MB on `v1`, 293 MB now, mostly `nemoclaw-build`'s and `nemoclaw-runtime`'s test executables. - **`cargo ci`** passed in 523 s: 1,329 workspace tests and 128 lifecycle tests. - **`actionlint`** passes. - **Hosted:** a `run-live/` push of this commit passed ([38085576274](https://github.com/NVIDIA/NemoClaw/actions/runs/38085576274)). Setup before each suite dropped to 14–35 s, from 107–128 s, except one 117-second artifact download on ARM64 Kind. Whole live jobs vary more than that from run to run; see the comment below.
cv
added a commit
that referenced
this pull request
Oct 11, 2026
## Failure Since #12970, Linux AMD64's live suites decide how long required checks take. In `v1` run [38132223890](https://github.com/NVIDIA/NemoClaw/actions/runs/38132223890), required checks finished at 1,001 s, waiting for `linux_amd64 / Live / Docker`; Windows and macOS were done by about 610 s. Each live job builds its platform's agent image from scratch: OpenClaw on AMD64, Pi on ARM64. The Docker job also builds two proxy images. Docker and Kind each build the same agent image, so each platform builds it twice. On AMD64, that build took 300–303 s of each live job. An experiment on hosted AMD64 runners (since deleted) measured the alternatives: | Approach | Time | |---|---| | Build without a cache, as today | 243 s | | Build and export a layer cache to the Actions cache | 472 s | | Build with that cache imported | 63 s | | Save the built image and upload it (4.47 GB, 1.01 GB with zstd) | 21 s | | Download and load it | 46 s | ## Decision Build each Linux platform's live images once, in a job that starts with the run, and have both live jobs load them: - **`cargo ci live-images`:** an opt-in step that builds the agent image and both proxy images under `nc-live-images`. It streams `docker save` through the `zstd` command into `.build/ci/live-images.tar.zst`; uncompressed, the AMD64 images take 4.5 GB. - **`--images FILE`:** `ci live-docker` and `ci live-kind` load the archive and retag each image under the run's own fresh prefix. Digests and cleanup work as before: each run removes only the names it created. Without `--images`, both build as before. - **`Build live images` job:** runs alongside `Build and test` and `Build bundle`. It now makes the live decision, which moves from `Build and test`, so a pull request that can't affect the live suites builds no images and skips both live jobs. - **Live jobs:** wait for all three jobs and download the image archive along with the test archive and bundle. - **Shared action:** the containerd image store setup moves to `.github/actions/containerd-store`, which the image job and the live jobs both use. The image job builds under that store too, so saved images load the same way. A layer cache would cut the image job further, but live jobs also wait for the bundle, ready at about 190–270 s on Linux. It would save at most about a minute, for 229 s of cache export on `v1` pushes and 1.7 GB of cache per image, so this PR doesn't add one. On AMD64, this PR's own run ([38137587218](https://github.com/NVIDIA/NemoClaw/actions/runs/38137587218)) finished the image job at +382 s, and both live jobs started at +384 s instead of +261 s. Each skipped its image build, so required checks finished at +926 s instead of +1,001 s. That's 75 s, less than the 3 minutes I estimated: see the comment below. ## Validation - **New tests:** three, written first and failing before the change, using fake `docker` and `zstd` commands. One more adds `--images` cases to the option-rejection test. - `ci live-images` builds Pi and both proxy images with the shared prefix and saves them in one `docker save` through `zstd`. - It refuses to run off Linux. - `ci live-docker --images` loads the archive, retags all three images under its own `nc-live-` prefix, and builds nothing. - **Real run on Linux ARM64:** - `cargo ci live-images` wrote a 177 MB archive with Docker's local build cache. - `cargo ci live-docker --images` passed all 10 Docker tests in 277 s, with no image builds and no `nc-live-` images left afterwards. - **Kind metadata:** the Kind suite reads the agent image's metadata from `docker image save`. A loaded image exports the same metadata as a freshly built one; only the blob key, which is each image's own digest, differs. - **`cargo ci`** passed in 464 s: 1,333 workspace tests and 129 lifecycle tests. - **`actionlint`** passes. - **Not run locally:** the Kind suite. This PR's own run executes both live suites on both Linux platforms.
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
Since #12962,
Live / DockerandLive / Kindrun inside each Linux platform's reusable workflow withcontinue-on-error. A live failure never failsTest / PLATFORM, but each gate still waits for the platform's whole workflow, live jobs included. Required checks therefore wait for the live suites without depending on their result.In run 38070042632, measured from when its jobs started, every check that decides the gates finished by 674 s. Linux AMD64
Live / Dockerfinished at 1,077 s, and the gates at 1,080 s.Decision
Remove
continue-on-errorfrom both live jobs, so a live failure fails its platform'sTest / PLATFORMcheck, as a lifecycle failure does. When a change cannot affect the live suites, each live job skips its remaining steps and passes, as before. Check names are unchanged.The suites have been reliable enough to require. Since #12962, Linux Docker and Kind ran 19 times each and passed every run that wasn't cancelled: 34 of 34. The six other jobs were all cancelled.
When the live suites run, they still set how long required checks take:
Live / Dockeron Linux AMD64 has a median of 810 s and a maximum of 1,524 s. Follow-up changes will cache Docker layers between runs and reuse the test executablesBuild and testalready compiles.Validation
actionlintpasses onnative-platform.ymlandrust.yml.cargo cipassed: 1,326 workspace tests and 128 lifecycle tests.native-platform.yml.