Skip to content

ci: archive each test layer separately so test jobs download only their tests - #14345

Merged
cv merged 1 commit into
v1from
cv/split-test-archives-by-layer
Nov 10, 2026
Merged

cv merged 1 commit into
v1from
cv/split-test-archives-by-layer

Conversation

@cv

@cv cv commented Nov 10, 2026

Copy link
Copy Markdown
Collaborator

Contract, integration, and live test jobs now download only their own layer's test executables instead of one archive of every layer's. On linux_arm64, each integration job's test archive drops from 326 MiB to about 73 MiB and each contract job's to about 214 MiB.

Problem

cargo ci archive wrote one nextest archive, .build/ci/lifecycle.tar.zst, with every contract, integration, and, on Linux, live test binary, and every contract, integration, and live job downloaded all of it: 326 MiB compressed on linux_arm64, about 2 GB unpacked. An integration job runs about a quarter of what it unpacks, and a contract job about three fifths. On a runner with a slow link to GitHub's artifact storage, such as the leased GB300 machine, that download took 46 to 50 seconds of each test job.

Change

  • cargo ci archive writes one archive per layer: .build/ci/contract.tar.zst, .build/ci/integration.tar.zst, and, on Linux, .build/ci/live.tar.zst, each with the test binaries its layer's nextest profiles select. It selects every layer's tests before writing any archive, so a layer that selects nothing fails the step and publishes nothing.
  • Nextest archives a package's executables only with one of that package's test binaries, and the contract tests start nemoclaw-fixture-control and nemoclaw-fixture-provider. A new fixtures nextest profile selects the two fixture test binaries that bring those executables, and the contract archive includes its selection. The integration profile already selects them.
  • The build job uploads the inputs and each archive as separate artifacts named lifecycle-PLATFORM-SHA-ATTEMPT-inputs, -contract, -integration, and -live. Contract and integration shards download the inputs and their own layer, the timing reports only the inputs, the live suites the inputs and the live archive, and the HCL E2E jobs only the live archive.
  • The testing guide describes the per-layer archives. It now also says that reproducing the archive handoff needs the checkout at the path where the tests were built: the tests read fixtures through CARGO_MANIFEST_DIR paths fixed at compile time, which nextest's workspace remap does not change.

On Linux, the build job now compresses and uploads about 440 MiB of test archives instead of 326 MiB, because the live archive repeats some provider executables that the contract archive also holds. That adds to the build job, which the test jobs wait for. Debug information is more than half of each archive; dropping it in CI is left for a separate change.

Beyond CI

The archive sizes come from a local cargo ci archive on linux_arm64. Locally, with target moved aside, the contract and integration layers each passed from their own archive alone.

@cv

cv commented Nov 10, 2026

Copy link
Copy Markdown
Collaborator Author
Authoring session — opening
Field Status Value Evidence or limit
Harness recorded pi 1.5.0 (session format v3) Session metadata and harness install path
Skills recorded nemoclaw-contributor-create-pr (complete read) Tool reads to cutoff; no other skill file was read in full
Instruction files recorded AGENTS.md (injected); WRITING.md (complete read); .github/PULL_REQUEST_TEMPLATE.md (complete read); .github/SESSION_REPORT_TEMPLATE.md (complete read) Startup injection and tool reads to cutoff; internal-docs/contributing/testing.md was read only in part
Tool calls partial typescript: 132 Wrapper calls through cutoff, including failed calls; the wrapper hides nested git, gh, cargo, docker, and file calls. The session also merged #14305 and #14340 and measured CI runs before this change.
Session window recorded 2026-11-09T19:32Z to 2026-11-10T00:07Z; 275 min First event to cutoff, including idle time; the session began with other work
Compactions recorded 0 Complete record to cutoff
Models recorded claude-opus-5-5 Model change record; no changes
Reasoning levels recorded high Thinking-level record; no changes

@github-actions

Copy link
Copy Markdown
Contributor

@cv
cv merged commit 89565bd into v1 Nov 10, 2026
68 checks passed
@cv
cv deleted the cv/split-test-archives-by-layer branch November 10, 2026 05:24
@wscurran wscurran added area: ci CI workflows, checks, release automation, or GitHub Actions chore Build, CI, dependency, or tooling maintenance v1 NemoClaw v1 branch labels Nov 12, 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 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