From 6440c5a36081d16792b9892c7064f20807a477be Mon Sep 17 00:00:00 2001 From: Corey Bryant Date: Mon, 23 Oct 2023 11:41:03 -0400 Subject: [PATCH] Update openstack-python3-charm-jobs py3 branches Enable py311 unit tests for master branch only and run py38/py310 for stable/2023.1 and stable/2023.2 branches. We found that we have an issue running py311 tests on debian, and have decided to fix it in master branches only. Change-Id: I52801caecab3db55b80e041b778a5a6cbaea9af8 --- zuul.d/project-templates.yaml | 33 ++++++++++++++++++++++++++++----- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/zuul.d/project-templates.yaml b/zuul.d/project-templates.yaml index f1462ba0..fa93e8cd 100644 --- a/zuul.d/project-templates.yaml +++ b/zuul.d/project-templates.yaml @@ -632,20 +632,43 @@ # 2. Make sure the previous cycle applicable jobs continue to run for # the new stable branch. Use the 'branches' variant to run the # applicable python version jobs. + # + # NOTE(coreycb): This template is used in openstack charms since + # stable/2023.1. While the stable/2023.1 and stable/2023.2 charm branches + # should support py311 unit tests, they do not. They need to continue + # supporting py310. description: | Runs unit tests for an OpenStack Charm project under the CPython version 3 releases designated for testing the latest release. - This is supposed to be used in master gate. check: jobs: - openstack-tox-pep8 - - openstack-tox-py38 - - openstack-tox-py311 + - openstack-tox-py38: + branches: + - stable/2023.1 + - stable/2023.2 + - master + - openstack-tox-py310: + branches: + - stable/2023.1 + - stable/2023.2 + - openstack-tox-py311: + branches: + - master gate: jobs: - openstack-tox-pep8 - - openstack-tox-py38 - - openstack-tox-py311 + - openstack-tox-py38: + branches: + - stable/2023.1 + - stable/2023.2 + - openstack-tox-py310: + branches: + - stable/2023.1 + - stable/2023.2 + - openstack-tox-py311: + branches: + - master - project-template: name: openstack-python3-jobs