Skip to content

ci: require the live suites in each platform check - #12970

Merged
cv merged 1 commit into
v1from
ci/require-live-suites
Oct 10, 2026
Merged

cv merged 1 commit into
v1from
ci/require-live-suites

Conversation

@cv

@cv cv commented Oct 10, 2026

Copy link
Copy Markdown
Collaborator

Failure

Since #12962, Live / Docker and Live / Kind run inside each Linux platform's reusable workflow with continue-on-error. A live failure never fails Test / 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 / Docker finished at 1,077 s, and the gates at 1,080 s.

Decision

Remove continue-on-error from both live jobs, so a live failure fails its platform's Test / PLATFORM check, 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 / Docker on 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 executables Build and test already compiles.

Validation

  • actionlint passes on native-platform.yml and rust.yml.
  • cargo ci passed: 1,326 workspace tests and 128 lifecycle tests.
  • This PR's own run exercises the live jobs, because it changes native-platform.yml.

@cv
cv enabled auto-merge (squash) October 10, 2026 20:27
@github-actions

Copy link
Copy Markdown
Contributor

@cv
cv disabled auto-merge October 10, 2026 20:37
@cv
cv merged commit 9753862 into v1 Oct 10, 2026
@cv
cv deleted the ci/require-live-suites branch October 10, 2026 20:55
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.
@cv cv added the v1 NemoClaw v1 branch label Oct 12, 2026
@wscurran wscurran added 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 labels Oct 28, 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 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