From 26677e220638a2b03f4d082a0b21865129784054 Mon Sep 17 00:00:00 2001 From: Matt Hargett Date: Tue, 7 Jul 2026 16:13:53 -0700 Subject: [PATCH] ci: free disk space before the LLVM cache restore in the linux test job The multi-tier-jit `test` job restores the prebuilt LLVM libraries cache via actions/cache; on the standard runner that cache does not always fit alongside the preinstalled toolchains, and the restore can fail with "no space left on device", surfacing as "can not get prebuilt llvm libraries". Free ~20 GB of preinstalled toolchains this build never uses (dotnet, android, ghc, the CodeQL bundle, boost) before the restore, only in the legs that actually download LLVM. No test is added, removed, or skipped. The containerized spec_test_on_qemu job hits the same ENOSPC but cannot be fixed this way: its steps run inside a docker container and cannot free host disk. That surface is covered by #4983, which removes the external LLVM cache entirely. --- .github/workflows/compilation_on_android_ubuntu.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/compilation_on_android_ubuntu.yml b/.github/workflows/compilation_on_android_ubuntu.yml index b22a213769..4d5e0e0363 100644 --- a/.github/workflows/compilation_on_android_ubuntu.yml +++ b/.github/workflows/compilation_on_android_ubuntu.yml @@ -707,6 +707,16 @@ jobs: && matrix.running_mode != 'fast-jit' && matrix.running_mode != 'jit' && matrix.running_mode != 'multi-tier-jit') run: echo "TEST_ON_X86_32=true" >> $GITHUB_ENV + - name: Free up disk space + if: env.USE_LLVM == 'true' + run: | + # Restoring the prebuilt LLVM libraries cache overflows the runner's + # small default free space and fails with "no space left on device". + # Drop preinstalled toolchains this job never uses (~20 GB freed). + sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc \ + /opt/hostedtoolcache/CodeQL /usr/local/share/boost + df -h / + #only download llvm libraries in jit and aot mode - name: Get LLVM libraries if: env.USE_LLVM == 'true'