Skip to content

ci: run the live suites in CI / Native with its bundle - #12962

Merged
cv merged 4 commits into
v1from
ci/live-in-native
Oct 10, 2026
Merged

cv merged 4 commits into
v1from
ci/live-in-native

Conversation

@cv

@cv cv commented Oct 10, 2026 •

Copy link
Copy Markdown
Collaborator

Failure

Live / Docker and Live / Kind were separate workflows. A workflow run can't use another run's artifacts or needs: another run's jobs, so each live job built its own bundle, which took 416–551 s on #12956. That duplicated CI / Native's Build bundle job for the same commit. Across the last 15 PRs merged into v1, these were the slowest workflows, with medians of 22.2 and 21.3 minutes.

Decision

Run the live suites as Live / Docker and Live / Kind jobs in native-platform.yml. Their steps live in a shared composite action, .github/actions/live-suite. Only the two Linux platforms enable them, through a new live input; other platforms show them as skipped.

  • Shared bundle: each job needs: only that platform's Build bundle. It downloads and unpacks the bundle instead of building one, then builds its test executables from the dependency cache and runs cargo ci live-docker or cargo ci live-kind.
  • Not required: each live job uses continue-on-error: true, so a live failure shows on its job without failing the platform's required Test / PLATFORM check. A throwaway workflow on an orphan branch, since deleted, confirmed that a reusable workflow still reports success to its caller in this case.
  • Relevance: each job still runs nemoclaw-build changes live and skips its remaining steps for changes that can't affect the suite. .config/determinator-live.toml now treats native-platform.yml and rust.yml, which hold the live jobs, as live inputs.
  • Triggers: CI / Native now also runs on run-live/** branch pushes, which replace the run-live-docker/ and run-live-kind/ prefixes. The live jobs follow Native's concurrency: superseded PR runs are cancelled, and v1 pushes finish.
  • Docs: testing.md describes the combined jobs. It also no longer says Windows runs its lifecycle suite on one runner; test: run the SSH simulator's tests on Windows #12963 gave every platform two partitions.
  • Removed: live-docker.yml and live-kind.yml. The jobs now appear as linux_arm64 / Live / Docker, linux_amd64 / Live / Kind, and so on.

Expected effect: on a warm run, the bundle is ready after about 4–7 minutes, so live results should arrive in about 12–17 minutes instead of 21–22, with four fewer bundle builds per run. That's an estimate; this PR's own run shows the first measurement.

Validation

  • The live relevance test now requires changes to native-platform.yml and rust.yml to run the suites. It failed against the old rules and passes; all 8 relevance tests pass.
  • actionlint passes on every workflow, and fern check passes.
  • cargo ci passed: 1,324 workspace tests and all 121 lifecycle tests.
  • Stacked PRs don't get CI / Native, so run-live/live-in-native branch pushes ran it instead. Both runs passed every job, and the second (run 38043908247) used the named jobs. Each live job started as soon as its platform's bundle finished, and none built a bundle of its own. Branch pushes can't restore v1's caches, so both runs built cold; this PR's run after retargeting to v1 shows warm timings.

Base automatically changed from ci/drop-redundant-work to v1 October 10, 2026 10:33
# Conflicts:
#	.github/workflows/live-docker.yml
#	.github/workflows/live-kind.yml
@github-actions

Copy link
Copy Markdown
Contributor

@cv

cv commented Oct 10, 2026

Copy link
Copy Markdown
Collaborator Author

Warm timing from this PR's run after retargeting to v1 (run 38047731956), which restored v1's caches:

  • Both Linux Build bundle jobs finished at about 206 s. All four live jobs started within 6 s of that, and none built a bundle.
  • Live results arrived 675–978 s after the run started, about 11–16 minutes. Before, the last 15 PRs had medians of 22.2 min for Live / Docker and 21.3 min for Live / Kind.
  • Every job passed. The non-live jobs, which hold the required checks, finished by 779 s, and the whole run took 985 s.

@cv
cv merged commit 9d96338 into v1 Oct 10, 2026
@cv
cv deleted the ci/live-in-native branch October 10, 2026 11:34
cv added a commit that referenced this pull request Oct 10, 2026
…suites (#12964)

Part of #12877; the parts still open after #12938.

## Failure

- Each platform's lifecycle suite runs in two partitions, and each
partition reports only its own tests, so no report shows a platform's
whole lifecycle suite.
- Live / Docker and Live / Kind had no budgets.
- `cargo ci live-docker` runs four nextest commands (the shared tests,
then each gateway test with its own document). Each command rewrote
`live-docker.xml`, so the step's timing report and its uploaded artifact
showed only the last command's single test. In the 11 most recent v1
runs, the artifact reports 3–7 s; the four commands took 210–255 s
together.

## Decision

- `nemoclaw-build lifecycle-timing DIR --platform P --shards '[1, 2]'`
reads the downloaded `lifecycle-P-SHARD-ATTEMPT` artifacts. It uses each
shard's latest attempt, names any shard without a report, and prints one
report: a partition table, then the existing module and slowest-test
tables over all tests. Partitions run in parallel, so the wall time is
the slowest partition's.
- A new `Lifecycle timing` job in `native-platform.yml` runs that
command after the lifecycle shards and writes the report to its job
summary. It runs on the platform's runner and takes the build tool from
the existing lifecycle-inputs artifact, so it compiles nothing. It is
`continue-on-error`, so a reporting problem cannot fail `Test /
PLATFORM`. I put it here instead of the `Test / PLATFORM` gate job in
`rust.yml`: the gate runs on Linux and has no build tool for the other
platforms. Using it would mean compiling the tool inside a required
check that has a 5-minute timeout.
- Each partition keeps reporting and enforcing its own budget; the
combined report enforces nothing.
- The live-docker step now saves each nextest command's JUnit report and
joins them (`ci::timing::join_consecutive`, run time summed), whether or
not the tests pass.
- `.config/test-budgets.yaml` adds budgets for the two live suites.
Since #12962, they run as the `Live / Docker` and `Live / Kind` jobs in
`native-platform.yml`, still through `cargo ci live-docker` and `cargo
ci live-kind`. `cargo ci` already enforces a budget for every step it
finds in the file, on Linux CI runners. A new test checks that every
step that writes a JUnit report has a budget.
- `live-kind`: 270 s wall, 120 s per test. In 11 v1 runs: at most 199 s
wall on linux_amd64 and 171 s on linux_arm64; slowest test 83 s.
- `live-docker`: 360 s wall, 180 s per test. In the same v1 runs, the
four commands together took at most 255 s on linux_amd64 and 210 s on
linux_arm64. The v1 JUnit kept only the last command's test. This PR's
run reports all 10 tests: 222 s wall on linux_amd64 and 197 s on
linux_arm64. Its slowest test,
`retained_runtime_rebuilds_offline_without_protobuf_or_a_dependency_cache`,
took 110 s and 101 s. In v1 logs, that test ran past 120 s in 5 of 11
linux_amd64 runs. Subtracting the other six tests in its command (about
70 s here) from that command's v1 wall time (at most 218 s) puts it
under about 150 s. That figure is an estimate, not a measurement.
- `docs/contributing/testing.md` describes the combined report and lists
the budgets, including the 120 s lifecycle limit from #12965.

## Validation

- New tests in `crates/nemoclaw-build/tests/ci.rs`: joining consecutive
JUnit reports, and the partitioned report (latest attempt, other
platforms ignored, missing shard named, parse errors naming the
artifact). The budget-coverage test failed on `live-docker has no
budget` before the budgets were added.
- `cargo test -p nemoclaw-build --no-default-features --test integration
-- ci::`, `cargo fmt --all --check`, and `cargo clippy --workspace
--all-targets -- -D warnings` pass.
- Ran `lifecycle-timing` against v1 run 38046386392's
`lifecycle-linux_amd64-*` artifacts: 121 tests, 249.5 s wall (partitions
249.5 s and 240.0 s), 1657.5 s summed.
- CI on 55ccf01 passed, including all four `Lifecycle timing` jobs
(about 11 s each on Linux). The linux_amd64 report shows 121 tests and
244.4 s wall. The live-docker artifacts now hold all 10 tests.
- CI on ff88cbf, after merging v1, passed. The windows_amd64 report
covers its three partitions: 112 tests, 198.8 s wall. The live jobs
report "Within budget": live-docker 10 tests in 208.9 s on both Linux
platforms, and live-kind 175.2 s on linux_amd64 and 158.0 s on
linux_arm64. Those jobs use `continue-on-error`, so I checked the
reports in their logs, not just the green checks.
cv added a commit that referenced this pull request Oct 10, 2026
## 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](https://github.com/NVIDIA/NemoClaw/actions/runs/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 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