Skip to content

Commit

Permalink
chore(ci): Aggressively free up runner disk space (#2265)
Browse files Browse the repository at this point in the history
Uses ublue-os/remove-unwanted-software to free up additional disk
space on runners

Additionally, this has been added to the CI for presubmit

Signed-off-by: RJ Sampson <[email protected]>
  • Loading branch information
EyeCantCU authored Feb 23, 2024
1 parent 4791a90 commit 70029fb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/presubmit-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}

# In some cases, we run out of disk space during tests, so this hack frees up approx 25G.
# See the following issue for more info: https://github.com/actions/runner-images/issues/2840#issuecomment-1284059930
- name: Free up runner disk space
uses: ublue-os/remove-unwanted-software@e3843c85f5f9b73626845de0f5d44fb78ce22e12 # v6

- uses: hashicorp/setup-terraform@a1502cd9e758c50496cc9ac5308c4843bcd56d36 # v3
with:
terraform_version: '1.5.7'
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,10 @@ jobs:
contents: read
actions: read
steps:
# In some cases, we runs out of disk space during tests, so this hack frees up approx 10G.
# In some cases, we run out of disk space during tests, so this hack frees up approx 25G.
# See the following issue for more info: https://github.com/actions/runner-images/issues/2840#issuecomment-1284059930
- name: Free up runner disk space
shell: bash
run: |
set -x
sudo rm -rf /usr/share/dotnet
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
uses: ublue-os/remove-unwanted-software@e3843c85f5f9b73626845de0f5d44fb78ce22e12 # v6

- uses: hashicorp/setup-terraform@a1502cd9e758c50496cc9ac5308c4843bcd56d36 # v3
with:
Expand Down

0 comments on commit 70029fb

Please sign in to comment.