From 05be84e10cb7a631134942e246508cb8d30e0757 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Thu, 22 Feb 2024 10:08:23 +0100 Subject: [PATCH] Try to get more disk space --- .github/ci-prerequisites.sh | 11 +++++++++++ .github/workflows/ci-actions-incremental.yml | 3 +++ 2 files changed, 14 insertions(+) diff --git a/.github/ci-prerequisites.sh b/.github/ci-prerequisites.sh index 94a0a47e57552..5c8773b20939d 100755 --- a/.github/ci-prerequisites.sh +++ b/.github/ci-prerequisites.sh @@ -41,8 +41,19 @@ time sudo rm -rf /usr/share/swift || true time sudo rm -rf /usr/local/lib/android || true # Remove Haskell time sudo rm -rf /opt/ghc || true +time sudo rm -rf /usr/local/.ghcup || true # Remove pipx time sudo rm -rf /opt/pipx || true +# Remove Rust +time sudo rm -rf /usr/share/rust || true +# Remove Go +time sudo rm -rf /usr/local/go || true +# Remove miniconda +time sudo rm -rf /usr/share/miniconda || true +# Remove powershell +time sudo rm -rf /usr/local/share/powershell || true +# Remove Google Cloud SDK +time sudo rm -rf /usr/lib/google-cloud-sdk || true # Remove infrastructure things that are unused and take a lot of space time sudo rm -rf /opt/hostedtoolcache/CodeQL || true diff --git a/.github/workflows/ci-actions-incremental.yml b/.github/workflows/ci-actions-incremental.yml index 1e623a37d822c..a34518ee35d89 100644 --- a/.github/workflows/ci-actions-incremental.yml +++ b/.github/workflows/ci-actions-incremental.yml @@ -376,6 +376,9 @@ jobs: - name: Clean Gradle temp directory if: always() run: devtools/gradle/gradlew --stop && rm -rf devtools/gradle/gradle-extension-plugin/build/tmp + - name: Analyze disk space + if: always() && !startsWith(matrix.java.os-name, 'windows') && !startsWith(matrix.java.os-name, 'macos') + run: .github/ci-disk-usage.sh - name: Prepare failure archive (if maven failed) if: failure() run: find . -name '*-reports' -type d -o -name '*.log' | tar -czf test-reports.tgz -T -