Repository navigation
ci: share native caches and shard Unix lifecycle tests - #12884
Merged
Merged
Conversation
Contributor
The archive regression compared a temporary path with the child process working directory. On macOS, /var and /private/var can identify the same directory. Compare canonical paths while retaining the archive and no-build assertions. Reproduced the failure with a symlinked TMPDIR on Linux before the fix. The integration suite now passes with that TMPDIR, and full cargo ci passes, including all 112 lifecycle tests.
Collaborator
Author
|
Fixed the macOS failure in fa9c3eb. The new test compared the temporary directory’s literal Reproduced the failure on Linux using a symlinked |
Replace labels and prose that implied a contrast the workflow does not have: no nondeterministic tests, no non-native bundle, and no ordinary/unordinary test split. Name the `nemoclaw-build` executable instead of "CI runner", which could mean the GitHub runner.
This was referenced Oct 9, 2026
cv
added a commit
that referenced
this pull request
Oct 9, 2026
#12884 moved the native test steps into native-platform.yml and runs the Unix lifecycle in two partitions. The timing report now names the partition it covers, and the deterministic step's JUnit report is uploaded from the new workflow.
cv
added a commit
that referenced
this pull request
Oct 9, 2026
cv
added a commit
that referenced
this pull request
Oct 9, 2026
## Failure #12884 made `CI / Native` cancel superseded `v1` pushes. Only `v1` pushes save the shared Rust dependency caches, and the post-step that saves them runs at the end of each platform's build job. After #12884 merged, both completed `v1` pushes were cancelled by the next merge after 16.9 and 8.8 minutes. Linux saved its caches, but cold macOS and Windows builds take 17–21 minutes, so neither saved a shared cache. Every PR since has built those platforms cold: Windows alone took 20.9 minutes in #12888's run, longer than the previous 19.5-minute PR median. Warm Linux now finishes `Build and test` in 6.6–7.0 minutes. Cancelling pushes also helped less than #12884 claimed. PR runs use a separate concurrency group, so they never waited behind push runs. ## Decision Cancel only superseded PR runs in `CI / Native`. Push runs finish, so each platform saves its cache; a newer push still replaces an older pending run, so `v1` does not build every intermediate merge. `CI / Images` keeps cancelling superseded pushes because it does not write the Rust caches. ## Validation - `cargo ci` passed on Linux ARM64: formatting, Clippy, 1,297 tests, doctests, schema check, bundle verification, and 112 lifecycle tests. - Actionlint 1.7.12 and `git diff --check` passed. - After merge, the next completed `v1` push should create `native-deps-v2-darwin_arm64-*` and `native-deps-v2-windows_amd64-*` cache entries. Their absence would mean this did not fix the cold builds.
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
Recent successful Native PR runs had a median of 19m33s. Warm Linux jobs spent roughly 11–12 minutes in lifecycle tests. Rust caches included job-specific keys, duplicating native dependencies in Docker and Kind jobs; repository cache usage was 9.64 GB against a 10 GB limit. Superseded pushes could also hold newer Native runs in the queue.
Decision
v1; Docker and Kind only restore it. Documentation and Brev keep separate prefixes.Test / PLATFORMrequired checks; each fails if any job for that platform fails. Plaincargo cistill runs the complete local suite.The new shared cache key will cause a one-time cold build. Old job-specific entries can expire normally; this PR does not delete caches or change repository limits.
Validation
cargo cipassed on Linux ARM64: formatting, Clippy, compilation, 1,297 ordinary tests, doctests, schema checks, bundle verification, and all 112 lifecycle tests.cargo ci archivecompleted in two seconds locally. Selecting lifecycle binaries reduced the nextest archive from 1.2 GB to 140 MB; the input tar is compressed by the artifact uploader.git diff --checkpassed. Fern checks passed with zero errors and one warning per site.Hosted platform compatibility, cache reuse, artifact-transfer overhead, and end-to-end timing still need confirmation from CI. Local timings are not a claim of hosted-CI speedup.