From e97103d8594f34570e80fc20e9670922fea8517a Mon Sep 17 00:00:00 2001 From: Blaine Gardner Date: Wed, 16 Apr 2025 10:24:30 -0600 Subject: [PATCH] ci: run selective disk cleanups in go CI tests The Ceph upgrade tests have been flaky or reliably failing for various Ceph/Rook versions due to mon out of space issues. Reinstate the disk cleanup action, but do not clean up items that rely on the package manager for removal. Package manager takes 2-4 minutes to operate and is likely not worth it, even for saving 15+ GB of space. From testing with this configuration, we can save 11GB of space in about 8 seconds of runtime. This should (hopefully) be plenty of space to keep total disk usage below 95% and keep mons healthy, and the time needed is negligible. Signed-off-by: Blaine Gardner --- .../integration-test-config-latest-k8s/action.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/integration-test-config-latest-k8s/action.yaml b/.github/workflows/integration-test-config-latest-k8s/action.yaml index 479973412..34a956a19 100644 --- a/.github/workflows/integration-test-config-latest-k8s/action.yaml +++ b/.github/workflows/integration-test-config-latest-k8s/action.yaml @@ -8,6 +8,15 @@ inputs: runs: using: "composite" steps: + - name: Free Disk Space (Ubuntu) + uses: jlumbroso/free-disk-space@main + with: + tool-cache: true # removes old golang version but saves ~6GB + large-packages: false # takes a long time to run b/c package mgr + android: false # takes a long time to run b/c package mgr + dotnet: false # takes a long time to run b/c package mgr + haskell: false # takes a long time to run b/c package mgr + - name: setup golang uses: actions/setup-go@v5 with: