Skip to content

Commit bf04a7f

Browse files
committed
fix: Add disk cleanup step to test_dockerfile CI job
The recent dependency updates (torch 2.7.1 → 2.9.0, transformers 4.52.4 → 4.57.1, etc.) increased the Docker image build size, causing the test_dockerfile job to fail with "No space left on device" errors. This adds the same disk cleanup step that's already used in the docker-publish workflow, freeing up ~17GB by removing dotnet, ghc, and boost which aren't needed for our builds. Resolves the "ERROR: Could not install packages due to an OSError: [Errno 28] No space left on device" error in CI.
1 parent 1438341 commit bf04a7f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ jobs:
118118
uses: actions/setup-python@v6
119119
with:
120120
python-version: ${{ env.PYTHON_VERSION }}
121+
- name: Free up disk space
122+
run: |
123+
# Clear some space (https://github.com/actions/runner-images/issues/2840)
124+
sudo rm -rf /usr/share/dotnet /opt/ghc /usr/local/share/boost
121125
- name: Test Dockerfile
122126
run: |
123127
python${{ env.PYTHON_VERSION }} -m venv .venv

0 commit comments

Comments
 (0)