Skip to content

Commit 032a4e7

Browse files
zhengruifengdongjoon-hyun
authored andcommitted
[SPARK-53831][INFRA] Update script free_disk_space
### What changes were proposed in this pull request? 1, uninstall large package `temurin`; 2, monitor `/opt/*` ### Why are the changes needed? save more space ### Does this PR introduce _any_ user-facing change? no, infra-only ### How was this patch tested? ci ### Was this patch authored or co-authored using generative AI tooling? no Closes #52541 from zhengruifeng/more_clean_disk. Authored-by: Ruifeng Zheng <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent c5f007b commit 032a4e7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dev/free_disk_space

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
# limitations under the License.
1818
#
1919

20+
set -ex
21+
2022
echo "=================================="
2123
echo "Free up disk space on CI system"
2224
echo "=================================="
@@ -40,10 +42,12 @@ sudo rm -rf /opt/az
4042
sudo rm -rf /opt/hostedtoolcache/CodeQL
4143
sudo rm -rf /opt/hostedtoolcache/go
4244
sudo rm -rf /opt/hostedtoolcache/node
45+
du -sh /opt/*
4346

4447
sudo apt-get remove --purge -y '^aspnet.*'
4548
sudo apt-get remove --purge -y '^dotnet-.*'
4649
sudo apt-get remove --purge -y '^llvm-.*'
50+
sudo apt-get remove --purge -y '^temurin-.*'
4751
sudo apt-get remove --purge -y 'php.*'
4852
sudo apt-get remove --purge -y '^mongodb-.*'
4953
sudo apt-get remove --purge -y snapd google-chrome-stable microsoft-edge-stable firefox

0 commit comments

Comments
 (0)