From 2b10a7d41cdba72dbb1921f1d08d7e9ca7a53765 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Doktor?= Date: Mon, 19 Aug 2024 16:31:56 +0200 Subject: [PATCH] ci: Start using the free GH runners for e2e testing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit the free-runners come with pre-installed containerd which sometimes collides with the one we install. We also need to move docker images to /mnt due to limitted root (/) partition. Fixes: #407 Signed-off-by: Lukáš Doktor --- .github/workflows/ccruntime_e2e.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/ccruntime_e2e.yaml b/.github/workflows/ccruntime_e2e.yaml index 672f096a..d1e4a73a 100644 --- a/.github/workflows/ccruntime_e2e.yaml +++ b/.github/workflows/ccruntime_e2e.yaml @@ -24,6 +24,8 @@ jobs: instance: - "az-ubuntu-2004" - "az-ubuntu-2204" + - "ubuntu-2004" + - "ubuntu-2204" - "s390x-large" - "tdx" - "sev" @@ -68,6 +70,13 @@ jobs: args="-u" if [ $RUNNING_INSTANCE = "s390x-large" ]; then args="" + elif [ "$RUNNING_INSTANCE" == "ubuntu-2004" ] || [ ""$RUNNING_INSTANCE" == "ubuntu-2204" ]; then + # Remove the pre-installed docker/containerd + sudo apt-get remove docker* containerd* -y + # Use /mnt to store images + sudo rm -Rf /var/lib/docker || true + sudo mkdir /mnt/docker || true + sudo ln -s /mnt/docker /var/lib/docker || true fi ./run-local.sh -t -r "${{ matrix.runtimeclass }}" "${args}" env: