Skip to content

Commit

Permalink
ci: Free up additional space for ovn-k jobs.
Browse files Browse the repository at this point in the history
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] actions/runner-images#2840 (comment)
[2] actions/runner-images#2606 (comment)

Signed-off-by: Ales Musil <amusil@redhat.com>
Signed-off-by: Dumitru Ceara <dceara@redhat.com>
  • Loading branch information
almusil authored and dceara committed Oct 6, 2023
1 parent c9393da commit 8594ca1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .ci/linux-util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 8594ca1

Please sign in to comment.