Skip to content

Commit 0bab3ae

Browse files
committed
ci: free disk space at the start of each integration test job
Two failures in the previous run (test-traefik full, test-nginx simple) ended with the runner reporting "No space left on device" while flushing its diagnostic log. ubuntu-latest starts with ~14 GB free; downloading the full image artifact (5-8 GB), loading it into docker (decompressed, larger), pulling kind's node image, then loading the OCI tar into the kind cluster easily exceeds that budget. Mirror the cleanup already used by `build-arm64`: drop the runner's preinstalled dotnet / android SDK / ghc / hostedtoolcache to recover ~30 GB. Same step now runs at the top of test-apptainer, test-nginx, and test-traefik on both amd64 (ubuntu-latest) and arm64 (ubuntu-24.04-arm) matrix entries — the arm runner is at least as tight as amd64.
1 parent 5185c3e commit 0bab3ae

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/build-and-test.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,16 @@ jobs:
296296
steps:
297297
- uses: actions/checkout@v4
298298

299+
- name: Free disk space
300+
# ubuntu-latest has ~14 GB free; the full image (5-8 GB) plus kind
301+
# node image plus loading the OCI tar into both docker and kind can
302+
# exhaust it. The arm runner is even tighter. Same incantation as
303+
# `build-arm64`'s "Free disk space" step.
304+
run: |
305+
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache || true
306+
sudo apt-get clean
307+
df -h
308+
299309
- name: Download image artifact
300310
uses: actions/download-artifact@v4
301311
with:
@@ -530,6 +540,16 @@ jobs:
530540
steps:
531541
- uses: actions/checkout@v4
532542

543+
- name: Free disk space
544+
# ubuntu-latest has ~14 GB free; the full image (5-8 GB) plus kind
545+
# node image plus loading the OCI tar into both docker and kind can
546+
# exhaust it. The arm runner is even tighter. Same incantation as
547+
# `build-arm64`'s "Free disk space" step.
548+
run: |
549+
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache || true
550+
sudo apt-get clean
551+
df -h
552+
533553
- name: Download image artifact
534554
uses: actions/download-artifact@v4
535555
with:
@@ -629,6 +649,16 @@ jobs:
629649
steps:
630650
- uses: actions/checkout@v4
631651

652+
- name: Free disk space
653+
# ubuntu-latest has ~14 GB free; the full image (5-8 GB) plus kind
654+
# node image plus loading the OCI tar into both docker and kind can
655+
# exhaust it. The arm runner is even tighter. Same incantation as
656+
# `build-arm64`'s "Free disk space" step.
657+
run: |
658+
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache || true
659+
sudo apt-get clean
660+
df -h
661+
632662
- name: Download image artifact
633663
uses: actions/download-artifact@v4
634664
with:

0 commit comments

Comments
 (0)