Skip to content

Commit be52651

Browse files
authored
dl and install new crun to fix flaky tests (#230)
1 parent c694272 commit be52651

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/tests.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,25 @@ jobs:
4949
python3 -m pip install -r molecule/requirements.txt
5050
ansible-galaxy collection install community.general
5151
sudo apt update && sudo apt install -y podman
52+
53+
# we have to patch crun here because Ubuntu fails with the errors similar to the
54+
# github issue below.
55+
# https://github.com/containers/crun/issues/1308
56+
- name: patch crun
57+
run: |
58+
export CRUN_VER='1.14.3'
59+
mkdir -p "${HOME}/.local/bin"
60+
curl -L "https://github.com/containers/crun/releases/download/${CRUN_VER}/crun-${CRUN_VER}-linux-amd64" -o "${HOME}/.local/bin/crun"
61+
chmod +x "${HOME}/.local/bin/crun"
62+
63+
mkdir -p "${HOME}/.config/containers"
64+
cat << EOF > "${HOME}/.config/containers/containers.conf"
65+
[engine.runtimes]
66+
crun = [
67+
"${HOME}/.local/bin/crun",
68+
"/usr/bin/crun"
69+
]
70+
EOF
5271
- name: run tests
5372
run: molecule test --scenario-name=${{ matrix.scenario }}
5473
env:

0 commit comments

Comments
 (0)