From db574c8218b1e15f7e19517b302e525833b36c06 Mon Sep 17 00:00:00 2001 From: Gabor Gyimesi Date: Thu, 21 Nov 2024 14:13:31 +0100 Subject: [PATCH] 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 --- .github/workflows/ci.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7c3770f3cd..37921919cf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -553,6 +553,16 @@ jobs: restore-keys: | docker-ccache-${{github.ref}}- docker-ccache-refs/heads/main + - id: free_disk_space + run: | + # We can gain additional disk space on the Ubuntu runners thanks to these suggestions: + # https://github.com/actions/runner-images/issues/2840#issuecomment-790492173 + # https://github.com/actions/runner-images/issues/2606#issuecomment-772683150 + sudo rm -rf /usr/share/dotnet + sudo rm -rf /usr/local/lib/android + sudo rm -rf /opt/ghc + sudo rm -rf "/usr/local/share/boost" + sudo rm -rf "$AGENT_TOOLSDIRECTORY" - id: build run: | mkdir build @@ -599,6 +609,16 @@ jobs: run: | sudo apt update sudo apt install -y python3-virtualenv + - id: free_disk_space + run: | + # We can gain additional disk space on the Ubuntu runners thanks to these suggestions: + # https://github.com/actions/runner-images/issues/2840#issuecomment-790492173 + # https://github.com/actions/runner-images/issues/2606#issuecomment-772683150 + sudo rm -rf /usr/share/dotnet + sudo rm -rf /usr/local/lib/android + sudo rm -rf /opt/ghc + sudo rm -rf "/usr/local/share/boost" + sudo rm -rf "$AGENT_TOOLSDIRECTORY" - id: test name: Docker Verify working-directory: ./build