From 2b2fbfb5f6dea187989dcfa2c6a7b9fe92eec06b Mon Sep 17 00:00:00 2001 From: Webb Scales <7795764+webbnh@users.noreply.github.com> Date: Fri, 2 Jun 2023 15:42:23 -0400 Subject: [PATCH] Update CI container to Fedora-38 (#3433) Update the default container image used by `jenkins/run` to F38 Add constraints to the Py36 legacy test environment for `python-daemon` and `setuptools`. PBENCH-1161 --- agent/test-constraints-3.6.txt | 3 +++ jenkins/Makefile | 5 ++--- tox.ini | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 agent/test-constraints-3.6.txt diff --git a/agent/test-constraints-3.6.txt b/agent/test-constraints-3.6.txt new file mode 100644 index 0000000000..7614eac603 --- /dev/null +++ b/agent/test-constraints-3.6.txt @@ -0,0 +1,3 @@ +# Python version constraints for P3.6 testing +python-daemon<3.0.0 +setuptools<60.0.0 diff --git a/jenkins/Makefile b/jenkins/Makefile index 1e08295466..71f40807af 100644 --- a/jenkins/Makefile +++ b/jenkins/Makefile @@ -22,8 +22,7 @@ RPMBUILD_BASEIMAGE_DEFAULTS = \ fedora-38 fedora-37 \ centos-9 centos-8 centos-7 -# All Fedora images are based on Fedora 36 -FEDORA_BASE_IMAGE_REF = quay.io/fedora/fedora:36 +CI_BASE_IMAGE = quay.io/fedora/fedora:38 # Templates for the various distributions' base images. For the moment, for a # given distribution, all of the versions can be found by tweaking the image @@ -87,7 +86,7 @@ ${_DISTROS:%=image-rpmbuild-%}: image-rpmbuild-%: ci.fedora.Dockerfile: ci.Dockerfile.j2 jinja2 ci.Dockerfile.j2 \ - -D base_image_ref="${FEDORA_BASE_IMAGE_REF}" \ + -D base_image_ref="${CI_BASE_IMAGE}" \ -D fedora=True \ > $@ diff --git a/tox.ini b/tox.ini index c3ee690892..301ea97cd7 100644 --- a/tox.ini +++ b/tox.ini @@ -42,6 +42,7 @@ allowlist_externals = description = Runs all agent unit tests under Python 3.6 basepython = python3.6 deps = + -c{toxinidir}/agent/test-constraints-3.6.txt -r{toxinidir}/agent/requirements.txt -r{toxinidir}/agent/test-requirements.txt