Skip to content

Commit d89f74f

Browse files
authored
ci: free up disk space before running tests (#643)
**What problem does this PR solve?**: Noticed `no space left on device` [error messages](https://github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/actions/runs/9008250141/job/24773942020?pr=638#step:5:276) in e2e tests which cases the tests to fail. This PR runs a step to clean up the disk, replicated from upstream issue actions/runner-images#2840 **Which issue(s) this PR fixes**: Fixes # **How Has This Been Tested?**: <!-- Please describe the tests that you ran to verify your changes. Provide output from the tests and any manual steps needed to replicate the tests. --> **Special notes for your reviewer**: <!-- Use this to provide any additional information to the reviewers. This may include: - Best way to review the PR. - Where the author wants the most review attention on. - etc. -->
1 parent 3caed23 commit d89f74f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/e2e.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,19 @@ jobs:
4242
restore-keys: |
4343
${{ runner.os }}-go-
4444
45+
# The default disk size of these runners is ~14GB, this is not enough to run the e2e tests.
46+
# Cleanup the disk, see upstream discussion https://github.com/actions/runner-images/issues/2840.
47+
- name: Cleanup Disk Space
48+
run: |
49+
echo "Before removing files:"
50+
df -h
51+
sudo rm -rf /usr/share/dotnet
52+
sudo rm -rf /opt/ghc
53+
sudo rm -rf "/usr/local/share/boost"
54+
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
55+
echo "After removing files:"
56+
df -h
57+
4558
- name: Run e2e tests
4659
run: devbox run -- make e2e-test E2E_LABEL='provider:${{ inputs.provider }}' E2E_SKIP='${{ inputs.skip }}' E2E_FOCUS='${{ inputs.focus }}'
4760
env:

0 commit comments

Comments
 (0)