From 01a72ade2ec0194d45427b72197fbc4563628475 Mon Sep 17 00:00:00 2001 From: Mike DePaulo Date: Tue, 27 Jun 2023 14:48:19 -0400 Subject: [PATCH] Merge pull request #508 from mikedep333/fix_ci_nightly_failure Fix CI failing to compose-up for 2 reasons Also workaround a collectstatic failure by installing pulp-file 1.12 (cherry picked from commit 7c05605595d8221d2744658f648d39dafad2fbc8) --- .github/workflows/pulp_images.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pulp_images.yml b/.github/workflows/pulp_images.yml index b5b028f2..3aa0c53a 100644 --- a/.github/workflows/pulp_images.yml +++ b/.github/workflows/pulp_images.yml @@ -12,6 +12,7 @@ env: COLORTERM: 'yes' TERM: 'xterm-256color' PYTEST_ADDOPTS: '--color=yes' + PULP_FILE_VERSION: '~=1.12.0' # Forces to use the latest compatible version with pulpcore 3.22 jobs: lint: @@ -186,16 +187,22 @@ jobs: echo ::endgroup:: echo "HTTPIE_CONFIG_DIR=$GITHUB_WORKSPACE/.ci/assets/httpie/" >> $GITHUB_ENV pip install podman-compose + if [[ $(dpkg-query --showformat='${Version}' --show podman) == "3.4.4+ds1-1ubuntu1.22.04.1" && $(dpkg-query --showformat='${Version}' --show containernetworking-plugins) == "0.9.1+ds1-1" ]] + then + echo "Working around https://bugs.launchpad.net/ubuntu/+source/libpod/+bug/2024394" + curl -O http://archive.ubuntu.com/ubuntu/pool/universe/g/golang-github-containernetworking-plugins/containernetworking-plugins_1.1.1+ds1-1_amd64.deb + sudo dpkg -i containernetworking-plugins_1.1.1+ds1-1_amd64.deb + fi shell: bash - name: Build images run: | podman version buildah version if [ "${{ matrix.app.s6 }}" == "false" ]; then - podman build --format docker --pull=false --file images/${{ matrix.app.image_name }}/${{ matrix.image_variant }}/Containerfile.core --tag pulp/${{ matrix.app.image_name }}:${TEMP_APP_TAG} --build-arg FROM_TAG=${TEMP_BASE_TAG} . + podman build --format docker --pull=false --file images/${{ matrix.app.image_name }}/${{ matrix.image_variant }}/Containerfile.core --tag pulp/${{ matrix.app.image_name }}:${TEMP_APP_TAG} --build-arg FROM_TAG=${TEMP_BASE_TAG} --build-arg PULP_FILE_VERSION=${PULP_FILE_VERSION} . podman build --format docker --pull=false --file images/${{ matrix.app.image_name }}/${{ matrix.image_variant }}/Containerfile.webserver --tag pulp/${{ matrix.app.web_image }}:${TEMP_APP_TAG} --build-arg FROM_TAG=${TEMP_APP_TAG} . else - podman build --format docker --pull=false --file images/${{ matrix.app.image_name }}/${{ matrix.image_variant }}/Containerfile --tag pulp/${{ matrix.app.image_name }}:${TEMP_APP_TAG} --build-arg FROM_TAG=${TEMP_BASE_TAG} . + podman build --format docker --pull=false --file images/${{ matrix.app.image_name }}/${{ matrix.image_variant }}/Containerfile --tag pulp/${{ matrix.app.image_name }}:${TEMP_APP_TAG} --build-arg FROM_TAG=${TEMP_BASE_TAG} --build-arg PULP_FILE_VERSION=${PULP_FILE_VERSION} . fi podman images -a - name: Set version and branch image tags @@ -242,7 +249,11 @@ jobs: # Reuse the folders from the s6 mode tests FILE="docker-compose.folders.yml" # We'll pull the web image from a registry since we didn't build it. - WEB_TAG="${APP_BRANCH}" + if [ "${{ matrix.image_variant }}" == "nightly" ]; then + WEB_TAG="nightly" + else + WEB_TAG="${APP_BRANCH}" + fi else FILE="docker-compose.yml" WEB_TAG="${TEMP_APP_TAG}"