From fb995cf3f06e3fbce25f6cd92246e5bf6cf75754 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dean=20Qui=C3=B1anola?= Date: Tue, 28 Apr 2026 16:44:21 -0700 Subject: [PATCH] ci: free more disk in docker-test-gpu/lb runners The multi-Python rollout in #89 added a ~7 GB torch reinstall to Dockerfile and Dockerfile-lb when PYTHON_VERSION != 3.12. On the ubuntu-latest runner this pushed the build over the available disk budget; recent main runs fail with `OSError: [Errno 28] No space left on device` while pip downloads torch-2.9.1+cu128 for cp311. Reclaim ~25 GB more by also removing the Android SDK, CodeQL toolcache, .ghcup, and the Microsoft/Google language toolchains in the existing "Clear space" step. sudo is required because the preinstalled toolchains are owned by root. --- .github/workflows/ci.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 307e552..cf7c119 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -144,7 +144,14 @@ jobs: steps: - name: Clear space run: | - rm -rf /usr/share/dotnet /opt/ghc /usr/local/share/boost "$AGENT_TOOLSDIRECTORY" + sudo rm -rf /usr/share/dotnet \ + /opt/ghc /usr/local/.ghcup \ + /usr/local/lib/android \ + /usr/local/share/boost \ + /opt/hostedtoolcache/CodeQL \ + /opt/microsoft /opt/google \ + /imagegeneration \ + "$AGENT_TOOLSDIRECTORY" docker system prune -af df -h @@ -177,7 +184,14 @@ jobs: steps: - name: Clear space run: | - rm -rf /usr/share/dotnet /opt/ghc /usr/local/share/boost "$AGENT_TOOLSDIRECTORY" + sudo rm -rf /usr/share/dotnet \ + /opt/ghc /usr/local/.ghcup \ + /usr/local/lib/android \ + /usr/local/share/boost \ + /opt/hostedtoolcache/CodeQL \ + /opt/microsoft /opt/google \ + /imagegeneration \ + "$AGENT_TOOLSDIRECTORY" docker system prune -af df -h