From 75f90f9aeb7ca1a0cdf02f523e662925144ee63e Mon Sep 17 00:00:00 2001 From: Leonardo Fagundes Luz Serrano Date: Mon, 2 Dec 2024 17:40:49 -0300 Subject: [PATCH] Zuul: Set all nodesets to debian-bullseye The default nodeset used by the openstack-tox-linters job has recently changed to Ubuntu Noble, which runs python 3.12 Meanwhile, the current Ansible version set on the repo, 2.10.7, is not supported on it [1]. To fix this, set all Zuul jobs to run on debian-bullseye nodes, matching the runtime OS, which uses a compatible python version. Ref: [1] https://docs.ansible.com/ansible/latest/reference_appendices/release_and_maintenance.html#ansible-core-support-matrix Test Plan: pass - Run tox tests in a debian:bullseye container pass - Zuul vote Closes-Bug: 2090875 Change-Id: Id87c8fb3e2d7eff3e5220df5ddab720561e3db1a Signed-off-by: Leonardo Fagundes Luz Serrano --- .zuul.yaml | 46 ++++++++++++++++++++++++++++++---------------- 1 file changed, 30 insertions(+), 16 deletions(-) diff --git a/.zuul.yaml b/.zuul.yaml index e80a4eb37..25d687047 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -1,18 +1,44 @@ - project: check: jobs: - - openstack-tox-linters - - openstack-tox-pep8 + - ansible-playbooks-tox-linters + - ansible-playbooks-tox-pep8 - ansible-playbooks-tox-bandit gate: jobs: - - openstack-tox-linters - - openstack-tox-pep8 + - ansible-playbooks-tox-linters + - ansible-playbooks-tox-pep8 - ansible-playbooks-tox-bandit post: jobs: - stx-ansible-playbooks-upload-git-mirror +- job: + name: ansible-playbooks-tox-linters + parent: openstack-tox-linters + description: | + Run linters + nodeset: debian-bullseye + +- job: + name: ansible-playbooks-tox-pep8 + parent: openstack-tox-pep8 + description: | + Check conformance with pep8 + nodeset: debian-bullseye + +- job: + name: ansible-playbooks-tox-bandit + parent: tox + description: | + Run bandit test for ansible-playbooks + nodeset: debian-bullseye + files: + - ./* + vars: + tox_envlist: bandit + tox_extra_args: -c ./tox.ini + - job: name: stx-ansible-playbooks-upload-git-mirror parent: upload-git-mirror @@ -26,18 +52,6 @@ secret: stx-ansible-playbooks-github-secret2 pass-to-parent: true -- job: - name: ansible-playbooks-tox-bandit - parent: tox - description: | - Run bandit test for ansible-playbooks - nodeset: ubuntu-bionic - files: - - ./* - vars: - tox_envlist: bandit - tox_extra_args: -c ./tox.ini - - secret: name: stx-ansible-playbooks-github-secret2 data: