From 14063349bbcef3613f0f432da70e2765966f2b4a Mon Sep 17 00:00:00 2001 From: Alex Pyrgiotis Date: Fri, 19 May 2023 16:02:54 +0300 Subject: [PATCH] ci: Fix transient errors in Debian Bullseye Fix transient errors in Debian Bullseye CI tests by using a different machine image (Ubuntu 22.04 vs Ubuntu 20.04), and solving some Podman config issues along the way. Fixes #388 --- .circleci/config.yml | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 31b7cf0..208e49d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -299,12 +299,29 @@ jobs: ./dev_scripts/env.py --distro debian --version bookworm run --dev \ bash -c 'cd dangerzone; poetry run make test' + # NOTE: Making CI tests work in Debian Bullseye requires some tip-toeing + # around certain Podman issues, as you'll see below. Read the following for + # more details: + # + # https://github.com/freedomofpress/dangerzone/issues/388 ci-debian-bullseye: machine: - image: ubuntu-2004:202111-01 + image: ubuntu-2204:2023.04.2 steps: - checkout - run: *install-podman + - run: + name: Configure Podman for Ubuntu 22.04 + command: | + # This config circumvents the following issues: + # * https://github.com/containers/podman/issues/6368 + # * https://github.com/containers/podman/issues/10987 + mkdir -p ~/.config/containers + cat > ~/.config/containers/containers.conf \< Dockerfile.bullseye \<