From 3efe645978d033758f305a83ece58b0fd6cdf403 Mon Sep 17 00:00:00 2001 From: Dakera Ops Date: Thu, 2 Jul 2026 18:20:39 +0000 Subject: [PATCH] fix(ci): purge incomplete aws-lc-sys src extraction before each ARM compile job MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .github/workflows/ci.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 824fd89..74e1e01 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -72,7 +72,9 @@ jobs: with: shared-key: arm64-ci-v2 - name: Purge stale build artifacts - run: rm -rf target/ + run: | + rm -rf target/ + rm -rf ~/.cargo/registry/src/aws-lc-sys-* - run: cargo check clippy: @@ -87,7 +89,9 @@ jobs: with: shared-key: arm64-ci-v2 - name: Purge stale build artifacts - run: rm -rf target/ + run: | + rm -rf target/ + rm -rf ~/.cargo/registry/src/aws-lc-sys-* - run: cargo clippy -- -D warnings fmt: @@ -110,7 +114,9 @@ jobs: with: shared-key: arm64-ci-v2 - name: Purge stale build artifacts - run: rm -rf target/ + run: | + rm -rf target/ + rm -rf ~/.cargo/registry/src/aws-lc-sys-* - run: cargo test integration-test: @@ -138,7 +144,9 @@ jobs: shared-key: integration-test cache-all-crates: "true" - name: Purge stale build artifacts - run: rm -rf target/ + run: | + rm -rf target/ + rm -rf ~/.cargo/registry/src/aws-lc-sys-* - name: Build dk binary run: cargo build --release - name: Wait for dakera server