Skip to content

Commit b1d0dbe

Browse files
authored
remove unused packages on github runners (#1426)
We're consistently running short on disk space in multiple jobs during CICD. This removes some of the unused tools & libraries based on suggestions from someone that worked on Github Actions. Ref: actions/runner-images#2840 (comment)
1 parent 93f069e commit b1d0dbe

File tree

6 files changed

+25
-0
lines changed

6 files changed

+25
-0
lines changed

eng/scripts/check_wasm.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
set -eux -o pipefail
44
cd $(dirname ${BASH_SOURCE[0]})/../../
55

6+
./eng/scripts/github-disk-cleanup.sh
7+
68
BUILD=${1:-stable}
79

810
rustup update --no-self-update ${BUILD}

eng/scripts/e2e_tests.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
set -eux -o pipefail
44
cd $(dirname ${BASH_SOURCE[0]})/../../
55

6+
./eng/scripts/github-disk-cleanup.sh
7+
68
BUILD=${1:-stable}
79

810
rustup update --no-self-update ${BUILD}

eng/scripts/emulator_tests.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
set -eux -o pipefail
44
cd $(dirname ${BASH_SOURCE[0]})/../../
55

6+
./eng/scripts/github-disk-cleanup.sh
7+
68
BUILD=${1:-stable}
79

810
npm install [email protected]

eng/scripts/github-disk-cleanup.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
# avoid running out of disk space on GitHub Runners
4+
5+
set -eux -o pipefail
6+
7+
if [ -v CI ] && [ -v GITHUB_ACTION ] ; then
8+
# ref: https://github.com/actions/runner-images/issues/2840#issuecomment-790492173
9+
# ref: https://github.com/actions/runner-images/issues/2606#issuecomment-772683150
10+
# ref: https://github.com/apache/flink/blob/master/tools/azure-pipelines/free_disk_space.sh
11+
sudo rm -rf /opt/ghc
12+
sudo rm -rf /usr/local/graalvm
13+
sudo rm -rf /usr/local/lib/android
14+
sudo rm -rf /usr/local/share/boost
15+
fi

eng/scripts/sdk_tests.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
set -eux -o pipefail
44
cd $(dirname ${BASH_SOURCE[0]})/../../
55

6+
./eng/scripts/github-disk-cleanup.sh
7+
68
BUILD=${1:-stable}
79

810
rustup update --no-self-update ${BUILD}

eng/scripts/services_tests.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
set -eux -o pipefail
44
cd $(dirname ${BASH_SOURCE[0]})/../../
55

6+
./eng/scripts/github-disk-cleanup.sh
7+
68
BUILD=${1:-stable}
79

810
rustup update --no-self-update ${BUILD}

0 commit comments

Comments
 (0)