From b516b0ff313627ec9551555dda8136f4297b01cf Mon Sep 17 00:00:00 2001 From: Jeff Ohrstrom Date: Wed, 28 Feb 2024 11:45:44 -0500 Subject: [PATCH] dl and install new crun to fix flaky tests --- .github/workflows/tests.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 52ff929..fd33e3b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -49,6 +49,25 @@ jobs: python3 -m pip install -r molecule/requirements.txt ansible-galaxy collection install community.general sudo apt update && sudo apt install -y podman + + # we have to patch crun here because Ubuntu fails with the errors similar to the + # github issue below. + # https://github.com/containers/crun/issues/1308 + - name: patch crun + run: | + export CRUN_VER='1.14.3' + mkdir -p "${HOME}/.local/bin" + curl -L "https://github.com/containers/crun/releases/download/${CRUN_VER}/crun-${CRUN_VER}-linux-amd64" -o "${HOME}/.local/bin/crun" + chmod +x "${HOME}/.local/bin/crun" + + mkdir -p "${HOME}/.config/containers" + cat << EOF > "${HOME}/.config/containers/containers.conf" + [engine.runtimes] + crun = [ + "${HOME}/.local/bin/crun", + "/usr/bin/crun" + ] + EOF - name: run tests run: molecule test --scenario-name=${{ matrix.scenario }} env: