From ac0968e3d1fc0c0c6e217c0a954eb8f08a5bc965 Mon Sep 17 00:00:00 2001 From: Ramkumar Chinchani Date: Mon, 30 Sep 2024 20:15:06 +0000 Subject: [PATCH] ci: free up disk space in cluster tests Signed-off-by: Ramkumar Chinchani --- .github/workflows/cluster.yaml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cluster.yaml b/.github/workflows/cluster.yaml index a66dc040b..d0ef442f9 100644 --- a/.github/workflows/cluster.yaml +++ b/.github/workflows/cluster.yaml @@ -45,6 +45,12 @@ jobs: # install haproxy sudo apt-get install haproxy + - name: Build binaries + run: | + cd $GITHUB_WORKSPACE + make binary + make bench + - name: Setup minio service run: | docker run -d -p 9000:9000 --name minio \ @@ -101,9 +107,20 @@ jobs: sed -i 's/8081/8083/g' test/cluster/config-minio3.json sed -i 's/\/tmp\/zot/\/tmp\/zot3/g' test/cluster/config-minio3.json + - name: Free up disk space + uses: jlumbroso/free-disk-space@main + with: + # This might remove tools that are actually needed, if set to "true" but frees about 6 GB + tool-cache: true + # All of these default to true, but feel free to set to "false" if necessary for your workflow + android: true + dotnet: true + haskell: true + large-packages: true + swap-storage: true + - name: Run push-pull tests run: | - make binary ./bin/zot-linux-amd64 serve test/cluster/config-minio1.json & ./bin/zot-linux-amd64 serve test/cluster/config-minio2.json & ./bin/zot-linux-amd64 serve test/cluster/config-minio3.json & @@ -131,7 +148,6 @@ jobs: - name: Run benchmark with --src-cidr arg run: | - make bench ./bin/zot-linux-amd64 serve test/cluster/config-minio1.json & ./bin/zot-linux-amd64 serve test/cluster/config-minio2.json & ./bin/zot-linux-amd64 serve test/cluster/config-minio3.json & @@ -149,7 +165,6 @@ jobs: - name: Run benchmark with --src-ips arg run: | - make bench ./bin/zot-linux-amd64 serve test/cluster/config-minio1.json & ./bin/zot-linux-amd64 serve test/cluster/config-minio2.json & ./bin/zot-linux-amd64 serve test/cluster/config-minio3.json &