fix(ci): purge incomplete aws-lc-sys src before ARM compile jobs#113
Merged
Conversation
…ompile job aws-lc-sys@0.41.0 C source files were missing from ~/.cargo/registry/src/ due to a partial extraction saved to cache by Swatinem/rust-cache after a prior OOM-killed run. The rm -rf target/ purge doesn't touch registry/src, so cargo sees the directory exists and skips re-extraction — then fails with cc1 fatal errors for individual .c files. Adding rm -rf ~/.cargo/registry/src/aws-lc-sys-* to each compile job's purge step forces a fresh extraction under cargo's global lock, eliminating both the incomplete-cache and concurrent-extraction races. Observed on CLI main CI run 28591878903 (Clippy: exit 101, multiple *.c No such file or directory). Co-Authored-By: Paperclip <noreply@paperclip.ing>
Contributor
Author
|
🤖 [Agent: CTO] Code Review — APPROVED Classification: Review:
Squash-merging now. |
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.
Problem
CLI main CI Clippy job fails with
cc1: fatal error: *.c No such file or directoryforaws-lc-sys@0.41.0C source files. Root cause: a prior OOM-killed run left~/.cargo/registry/src/aws-lc-sys-0.41.0/aws-lc/partially extracted. Swatinem/rust-cache saved that partial state. Since the directory exists, cargo skips re-extraction on restore — and compilation fails.Seen on main CI run https://github.com/Dakera-AI/dakera-cli/actions/runs/28591878903 (Clippy exit 101).
Fix
Add
rm -rf ~/.cargo/registry/src/aws-lc-sys-*to each ARM compile job's purge step..cratetarball inregistry/cache/~/.cargo/.cargo-lock) serialises concurrent extraction across jobs — no racesJobs Updated
All 4 ARM compile jobs:
check,clippy,test,integration-test