Add Python 3.11 testing

This adds python 3.11 testing and drops python3.10 in order to keep
testing only the bounds of what Nodepool supports. Note that currently the
python 3.11 available for jammy is based on an RC release. This should
be fine as we do functional testing with a released python 3.11 and that
is what people will consume via the docker images.

Change-Id: Ia3e1c4976e35b254497e60d811f61a5531c69f1a
This commit is contained in:
Clark Boylan 2022-10-25 10:09:35 -07:00
parent 741c545896
commit 38c25fb5dd
3 changed files with 13 additions and 12 deletions

View File

@ -52,8 +52,8 @@
dependencies:
- opendev-buildset-registry
requires:
- python-builder-3.10-bullseye-container-image
- python-base-3.10-bullseye-container-image
- python-builder-3.11-bullseye-container-image
- python-base-3.11-bullseye-container-image
provides: nodepool-container-image
vars: &nodepool_image_vars
docker_images:
@ -88,8 +88,8 @@
description: Build Docker images and upload to Docker Hub.
timeout: *image_build_timeout
requires:
- python-builder-3.10-bullseye-container-image
- python-base-3.10-bullseye-container-image
- python-builder-3.11-bullseye-container-image
- python-base-3.11-bullseye-container-image
provides: nodepool-container-image
vars: *nodepool_image_vars
secrets:
@ -118,8 +118,8 @@
- zuul/nodepool
- openstack/diskimage-builder
requires:
- python-builder-3.10-bullseye-container-image
- python-base-3.10-bullseye-container-image
- python-builder-3.11-bullseye-container-image
- python-base-3.11-bullseye-container-image
provides: nodepool-siblings-container-image
vars:
zuul_work_dir: "{{ zuul.projects['opendev.org/zuul/nodepool'].src_dir }}"
@ -245,10 +245,10 @@
NODEPOOL_ZK_KEY: /opt/zookeeper/ca/keys/clientkey.pem
- job:
name: nodepool-tox-py310
name: nodepool-tox-py311
description: |
Nodepool unit tests with ZooKeeper running
parent: tox-py310
parent: tox-py311
pre-run: playbooks/nodepool-tox/pre.yaml
vars: *nodepool_tox_vars
nodeset: ubuntu-jammy
@ -264,7 +264,7 @@
- tox-pep8
- nodepool-tox-py38:
nodeset: ubuntu-focal
- nodepool-tox-py310
- nodepool-tox-py311
- nodepool-functional-container-openstack-release
- nodepool-functional-k8s
- nodepool-functional-openshift
@ -279,7 +279,7 @@
- tox-pep8
- nodepool-tox-py38:
nodeset: ubuntu-focal
- nodepool-tox-py310
- nodepool-tox-py311
- nodepool-functional-k8s
- nodepool-functional-openshift
- zuul-quick-start:

View File

@ -13,14 +13,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.
FROM docker.io/opendevorg/python-builder:3.10-bullseye as builder
FROM docker.io/opendevorg/python-builder:3.11-bullseye as builder
# ============================================================================
ARG ZUUL_SIBLINGS=""
COPY . /tmp/src
RUN assemble
FROM docker.io/opendevorg/python-base:3.10-bullseye as nodepool-base
FROM docker.io/opendevorg/python-base:3.11-bullseye as nodepool-base
# ============================================================================
COPY --from=builder /output/ /output

View File

@ -17,6 +17,7 @@ classifier =
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
[pbr]
warnerrors = True