Repository navigation
ci: archive each test layer separately so test jobs download only their tests - #14345
Merged
Merged
Conversation
…ir tests Signed-off-by: Carlos Villela <[email protected]>
Collaborator
Author
Authoring session — opening
|
Contributor
This was referenced Nov 10, 2026
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.
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 archivewrote 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 onlinux_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 archivewrites 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.nemoclaw-fixture-controlandnemoclaw-fixture-provider. A newfixturesnextest profile selects the two fixture test binaries that bring those executables, and the contract archive includes its selection. The integration profile already selects them.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.CARGO_MANIFEST_DIRpaths 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 archiveonlinux_arm64. Locally, withtargetmoved aside, the contract and integration layers each passed from their own archive alone.