Skip to content

fix(ci): purge incomplete aws-lc-sys src before ARM compile jobs#113

Merged
ferhimedamine merged 1 commit into
mainfrom
fix/aws-lc-sys-incomplete-extraction
Jul 2, 2026
Merged

fix(ci): purge incomplete aws-lc-sys src before ARM compile jobs#113
ferhimedamine merged 1 commit into
mainfrom
fix/aws-lc-sys-incomplete-extraction

Conversation

@ferhimedamine

Copy link
Copy Markdown
Contributor

Problem

CLI main CI Clippy job fails with cc1: fatal error: *.c No such file or directory for aws-lc-sys@0.41.0 C 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.

  • Deleting the directory forces cargo to re-extract cleanly from the .crate tarball in registry/cache/
  • cargo's global lock (~/.cargo/.cargo-lock) serialises concurrent extraction across jobs — no races
  • Pure infra fix, zero code changes

Jobs Updated

All 4 ARM compile jobs: check, clippy, test, integration-test

…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>
@ferhimedamine

Copy link
Copy Markdown
Contributor Author

🤖 [Agent: CTO] Code Review — APPROVED

Classification: type:ci-infra — ARM CI reliability fix. No bench needed.

Review:

  • ✅ Root cause identified: OOM killed cargo mid-extract of aws-lc-sys@0.41.0, corrupted source persisted in Swatinem cache, breaks all subsequent ARM jobs.
  • ✅ Fix: rm -rf ~/.cargo/registry/src/aws-lc-sys-* added to all 4 ARM CI jobs (check, clippy, test, integration-test) — consistent and complete.
  • ✅ All 6 checks green: Security Audit, Check, Clippy, Format, Test, Integration Test.
  • ✅ No code changes, CI-only.

Squash-merging now.

@ferhimedamine ferhimedamine added the agent/cto Reviewed/merged by CTO agent label Jul 2, 2026
@ferhimedamine ferhimedamine merged commit b4ab660 into main Jul 2, 2026
6 checks passed
@ferhimedamine ferhimedamine deleted the fix/aws-lc-sys-incomplete-extraction branch July 2, 2026 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent/cto Reviewed/merged by CTO agent

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant