From: Ales Musil <[email protected]>

The ovn-kubernetes jobs require a lot of disk space,
in order to avoid jobs being terminated due to low
disk space [0] free up even more space.

This is based on comments from runner-images
project[1] [2]. As we do not use Android, .NET
or Boost it should be perfectly fine to remove
those files. All this combined gives us additional
space of ~22 GB.

[0] System.IO.IOException: No space left on device :
'/home/runner/runners/2.309.0/_diag/Worker_20230921-083343-utc.log'
[1] https://github.com/actions/runner-images/issues/2840#issuecomment-790492173
[2] https://github.com/actions/runner-images/issues/2606#issuecomment-772683150

Signed-off-by: Ales Musil <[email protected]>
---
 .ci/linux-util.sh |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/.ci/linux-util.sh b/.ci/linux-util.sh
index 05d438a97e..9203451235 100755
--- a/.ci/linux-util.sh
+++ b/.ci/linux-util.sh
@@ -12,4 +12,8 @@ function free_up_disk_space_ubuntu()
     local pkgs=$(echo $pkgs | sed 's/[^ ]* */~n&/g')
 
     sudo apt update && sudo apt-get --auto-remove -y purge $pkgs
+
+    local paths='/usr/local/lib/android/ /usr/share/dotnet/ /opt/ghc/
+                 /usr/local/share/boost/'
+    sudo rm -rf $paths
 }

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to