Skip to content

Commit db574c8

Browse files
lordgamezszaszm
authored andcommitted
MINIFICPP-2492 Free up disk space for docker tests
It seems Elasticsearch tests were transiently failing due to insufficient disk space to start the Elasticsearch node. Freeing up some additional disk space solves this issue. https://issues.apache.org/jira/browse/MINIFICPP-2492 Closes #1899 Signed-off-by: Marton Szasz <szaszm@apache.org>
1 parent 5953140 commit db574c8

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,16 @@ jobs:
553553
restore-keys: |
554554
docker-ccache-${{github.ref}}-
555555
docker-ccache-refs/heads/main
556+
- id: free_disk_space
557+
run: |
558+
# We can gain additional disk space on the Ubuntu runners thanks to these suggestions:
559+
# https://github.com/actions/runner-images/issues/2840#issuecomment-790492173
560+
# https://github.com/actions/runner-images/issues/2606#issuecomment-772683150
561+
sudo rm -rf /usr/share/dotnet
562+
sudo rm -rf /usr/local/lib/android
563+
sudo rm -rf /opt/ghc
564+
sudo rm -rf "/usr/local/share/boost"
565+
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
556566
- id: build
557567
run: |
558568
mkdir build
@@ -599,6 +609,16 @@ jobs:
599609
run: |
600610
sudo apt update
601611
sudo apt install -y python3-virtualenv
612+
- id: free_disk_space
613+
run: |
614+
# We can gain additional disk space on the Ubuntu runners thanks to these suggestions:
615+
# https://github.com/actions/runner-images/issues/2840#issuecomment-790492173
616+
# https://github.com/actions/runner-images/issues/2606#issuecomment-772683150
617+
sudo rm -rf /usr/share/dotnet
618+
sudo rm -rf /usr/local/lib/android
619+
sudo rm -rf /opt/ghc
620+
sudo rm -rf "/usr/local/share/boost"
621+
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
602622
- id: test
603623
name: Docker Verify
604624
working-directory: ./build

0 commit comments

Comments
 (0)