Skip to content

Commit 35720d1

Browse files
committed
Add disk space cleanup to E2E tests workflow
GitHub runners have limited disk space (~14GB free). E2E tests build multiple Docker images which can fill up the disk, causing "no space left on device" errors. Free up ~10GB by removing unused packages (.NET, Android SDK, GHC) and cleaning Docker at the start of the workflow, before the kind cluster is created. This cleanup is safe because it runs before any test infrastructure exists.
1 parent 2e953fa commit 35720d1

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/test-e2e.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ jobs:
1919
builder: [pack, s2i]
2020
deployer: [knative, raw, keda]
2121
steps:
22+
- name: Free up disk space
23+
run: |
24+
# Remove large packages to free up disk space on GitHub runners
25+
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc
26+
# Clean up Docker to start fresh
27+
docker system prune -af --volumes
28+
df -h
29+
2230
- name: Clone the code
2331
uses: actions/checkout@v6
2432

0 commit comments

Comments
 (0)