From 11aa370ee379575ad77ad67b00271a0f6b3bceb1 Mon Sep 17 00:00:00 2001 From: "anthropic-code-agent[bot]" <242468646+Claude@users.noreply.github.com> Date: Thu, 12 Feb 2026 07:18:35 +0000 Subject: [PATCH 1/2] Initial plan From 81ea256f3443f263b20219b0b79488f71cbce3a8 Mon Sep 17 00:00:00 2001 From: "anthropic-code-agent[bot]" <242468646+Claude@users.noreply.github.com> Date: Thu, 12 Feb 2026 07:22:38 +0000 Subject: [PATCH 2/2] fix(ci): clean npm cache and add Rust binary verification - Clean npm cache before tests to avoid permission errors - Add verification of Rust binary locations in workflow - This should fix the npm test failure (exit code 1) --- .github/workflows/test-chroot.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/test-chroot.yml b/.github/workflows/test-chroot.yml index 2f5457f52..c2097cbe2 100644 --- a/.github/workflows/test-chroot.yml +++ b/.github/workflows/test-chroot.yml @@ -100,6 +100,9 @@ jobs: run: | echo "=== Pre-test cleanup ===" ./scripts/ci/cleanup.sh || true + # Clean npm cache to avoid permission errors (cache may be root-owned from previous runs) + rm -rf ~/.npm 2>/dev/null || true + echo "npm cache cleaned" - name: Run chroot language tests run: | @@ -213,10 +216,14 @@ jobs: echo "Rust: $(rustc --version)" echo "Cargo: $(cargo --version)" echo "CARGO_HOME: $CARGO_HOME" + echo "Cargo location: $(which cargo)" + echo "Rustc location: $(which rustc)" + echo "Cargo bin exists: $(ls -la ~/.cargo/bin/cargo 2>&1 || echo 'NOT FOUND')" echo "Java: $(java --version 2>&1 | head -1)" echo "JAVA_HOME: $JAVA_HOME" echo "dotnet: $(dotnet --version 2>&1)" echo "DOTNET_ROOT: $DOTNET_ROOT" + echo "npm cache: $(ls -ld ~/.npm 2>&1 || echo 'NOT FOUND')" - name: Install dependencies run: npm ci @@ -234,6 +241,9 @@ jobs: run: | echo "=== Pre-test cleanup ===" ./scripts/ci/cleanup.sh || true + # Clean npm cache to avoid permission errors (cache may be root-owned from previous runs) + rm -rf ~/.npm 2>/dev/null || true + echo "npm cache cleaned" - name: Run chroot package manager tests run: | @@ -308,6 +318,9 @@ jobs: run: | echo "=== Pre-test cleanup ===" ./scripts/ci/cleanup.sh || true + # Clean npm cache to avoid permission errors (cache may be root-owned from previous runs) + rm -rf ~/.npm 2>/dev/null || true + echo "npm cache cleaned" - name: Run chroot procfs tests run: | @@ -364,6 +377,9 @@ jobs: run: | echo "=== Pre-test cleanup ===" ./scripts/ci/cleanup.sh || true + # Clean npm cache to avoid permission errors (cache may be root-owned from previous runs) + rm -rf ~/.npm 2>/dev/null || true + echo "npm cache cleaned" - name: Run chroot edge case tests run: |