From cd00b556e4b06263844e6a33723d06d4a95bf1e0 Mon Sep 17 00:00:00 2001 From: Leonardo Fagundes Luz Serrano Date: Tue, 3 Dec 2024 14:56:51 -0300 Subject: [PATCH] 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:bullseye container Partial-Bug: 2090865 Change-Id: I9e8e29241f7091373dfd5c8a1908a42afef1dc5d Signed-off-by: Leonardo Fagundes Luz Serrano --- .zuul.yaml | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/.zuul.yaml b/.zuul.yaml index 1354e6eb0..58f745d61 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -5,14 +5,14 @@ - stx-release-notes-jobs check: jobs: - - openstack-tox-pep8 - - openstack-tox-linters - - stx-integ-pylint + - integ-tox-pep8 + - integ-tox-linters + - integ-tox-pylint gate: jobs: - - openstack-tox-pep8 - - openstack-tox-linters - - stx-integ-pylint + - integ-tox-pep8 + - integ-tox-linters + - integ-tox-pylint post: jobs: - stx-integ-upload-git-mirror @@ -161,10 +161,25 @@ q-metering: false q-svc: false -# Try this as a tox-based job with a minimal functional target in tox.ini - job: - name: stx-integ-pylint + name: integ-tox-linters + parent: openstack-tox-linters + description: | + Run linters + nodeset: debian-bullseye + +- job: + name: integ-tox-pep8 + parent: openstack-tox-pep8 + description: | + Check conformance with pep8 + nodeset: debian-bullseye + +- job: + name: integ-tox-pylint parent: tox + description: | + Tox-based job with a minimal functional target in tox.ini nodeset: debian-bullseye required-projects: - starlingx/config