Zuul: Move jobs to debian-bullseye node

importlib_metadata, a dependency for building python pkgs,
received changes where some of its API is deprecated [1],
causing the error:

AttributeError: 'EntryPoints' object has no attribute 'get'

A possible fix is to clip the version to below 5.0,
but the debian-bullseye Zuul node already provides a compatible
version, with the added advantage of being the base OS
used for STX, increasing reliability for the tests.

Refs:
[1] https://importlib-metadata.readthedocs.io/en/latest/history.html#v5-0-0

Test Plan:
pass - Run tox tests in a debian container

Partial-Bug: 2090865

Change-Id: I2e635c33c28bfde1b3fcd9236aa14ca36383941a
Signed-off-by: Leonardo Fagundes Luz Serrano <Leonardo.FagundesLuzSerrano@windriver.com>
This commit is contained in:
Leonardo Fagundes Luz Serrano 2024-12-03 14:40:51 -03:00
parent 4460446787
commit 3be90abfb0

@ -6,23 +6,36 @@
- stx-bandit-jobs
check:
jobs:
- openstack-tox-pep8
- openstack-tox-linters
- stx-gui-pylint
- gui-tox-linters
- gui-tox-pep8
- gui-tox-pylint
gate:
jobs:
- openstack-tox-pep8
- openstack-tox-linters
- stx-gui-pylint
- gui-tox-linters
- gui-tox-pep8
- gui-tox-pylint
post:
jobs:
- stx-gui-upload-git-mirror
- job:
name: gui-tox-linters
parent: openstack-tox-linters
description: |
Run linters
nodeset: debian-bullseye
- job:
name: stx-gui-pylint
name: gui-tox-pep8
parent: openstack-tox-pep8
description: |
Check conformance with pep8
nodeset: debian-bullseye
- job:
name: gui-tox-pylint
parent: openstack-tox-pylint
description: Run pylint for stx-gui
description: Run pylint for gui repo
nodeset: debian-bullseye
vars:
tox_envlist: pylint