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 <blaine.gardner@ibm.com>
(cherry picked from commit e97103d859)
This commit is contained in:
Blaine Gardner authored and Mergify committed 2025-04-16 17:11:31 +00:00
1 parent 7874395178
commit 8986fe12b9
1 file changed
+9
@@ -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: