Fix zuul pylint setup failures

The pylint zuul target will now be setup the same as the
py39 target.

The pip legacy resolver is still needed because not all
of the other STX dependencies being installed by tox
are aligned properly for python 3.9

Enforce the nodeset for pylint to be the same as py39

Tox 4 was enabled by:
https://review.opendev.org/c/zuul/zuul-jobs/+/866943

Tox 4 deprecated whitelist_externals.
Replace whitelist_externals with allowlist_externals

Partial-Bug: #1997255
Partial-Bug: #2000399
Signed-off-by: Al Bailey <al.bailey@windriver.com>
Change-Id: I7d7ca4531600bd863a045d3daeb0be82fec34377
This commit is contained in:
Al Bailey 2022-12-21 15:17:53 +00:00
parent 2e5d4d9ee3
commit f33032c1d0
4 changed files with 10 additions and 3 deletions

View File

@ -49,6 +49,7 @@
parent: tox
description: |
Run pylint test for k8sapp_istio
nodeset: debian-bullseye
required-projects:
- starlingx/config
- starlingx/fault

View File

@ -1,2 +1,2 @@
pbr>=0.5
PyYAML==3.10
PyYAML>=3.10.0

View File

@ -17,7 +17,7 @@ distshare={toxworkdir}/.tox/distshare
sitepackages = False
# tox is silly... these need to be separated by a newline....
whitelist_externals = bash
allowlist_externals = bash
find
install_command = pip install \
@ -112,6 +112,12 @@ commands = bandit --ini tox.ini -n 5 -r k8sapp_istio
basepython = python3
sitepackages = False
install_command = pip install \
-v -v -v --use-deprecated legacy-resolver \
-c{toxinidir}/upper-constraints.txt \
-c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/starlingx/root/raw/branch/master/build-tools/requirements/debian/upper-constraints.txt} \
{opts} {packages}
deps = {[testenv]deps}
pylint
commands =

View File

@ -15,7 +15,7 @@ setenv =
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
whitelist_externals =
allowlist_externals =
bash
passenv =