Fix deprecated zuul queue syntax and other gate issues

There are multiple issues with the gate. This patch combines the fixes
to unblock the gate.

1. Zuul deprecated (and removed) declaring shared queues at a pipeline
level [1]. This patch fixes the syntax to make the gate work again for
freezer.

2. Zuul CI jobs default nodeset is now Ubuntu 22.04 Jammy Jellyfish,
that does not provide anymore python2 binary, so python-dev needs to be
removed from bindep.txt

3. Latest tox does not allow to list the passed environment variables
in one line separated by space. One option is to list them in separate
lines. Also, external command allowing variable name changed.
basepython as python3 is also conflicts now and it is not necessary.
It looks like tox requires now to install now explicitly all the
requirements listed in requirements.txt.
tox.ini is updated accordingly to the above listed problems.

[1] https://lists.openstack.org/pipermail/openstack-discuss/2022-May/028603.html

Change-Id: I3c95bb48c7fdd0c752db121f1745f64a53b5a0e5
This commit is contained in:
Elod Illes 2023-02-23 13:53:10 +01:00
parent 0d47828fa9
commit f6a5996092
3 changed files with 12 additions and 8 deletions

View File

@ -1,4 +1,5 @@
- project:
queue: freezer
templates:
- check-requirements
- openstack-python3-zed-jobs
@ -11,7 +12,6 @@
- freezer-tempest-agent
- freezer-tempest-scheduler
gate:
queue: freezer
jobs:
- openstack-tox-pylint
- freezer-tempest-agent

View File

@ -4,7 +4,6 @@ libffi-devel [platform:rpm test]
libssl-dev [platform:dpkg test]
openssl-devel [platform:rpm test]
# these are needed to compile Python dependencies from sources
python-dev [platform:dpkg test]
python3-all-dev [platform:dpkg !platform:ubuntu-precise test]
python-devel [platform:rpm test]
python3-devel [platform:rpm test]

17
tox.ini
View File

@ -3,10 +3,10 @@ envlist = py3,pep8,pylint,docs
skipsdist = True
[testenv]
basepython = python3
usedevelop = True
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
passenv =
@ -20,7 +20,12 @@ passenv =
FREEZER_TEST_OS_PASSWORD
FREEZER_TEST_OS_AUTH_URL
FREEZER_TEST_NO_LVM
http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
http_proxy
HTTP_PROXY
https_proxy
HTTPS_PROXY
no_proxy
NO_PROXY
install_command = pip install {opts} {packages}
setenv =
@ -37,7 +42,7 @@ commands =
rm -f .coverage
rm -rf .testrepository
whitelist_externals =
allowlist_externals =
find
coverage
rm
@ -58,7 +63,7 @@ basepython = python3.8
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/doc/requirements.txt
whitelist_externals = rm
allowlist_externals = rm
commands =
rm -rf doc/build/
sphinx-build --keep-going -b html doc/source doc/build/html
@ -89,7 +94,7 @@ ignore-path = .venv,.git,.tox,.tmp,*freezer/locale*,*lib/python*,freezer.egg*,do
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/doc/requirements.txt
whitelist_externals = rm
allowlist_externals = rm
commands =
rm -rf releasenotes/build
sphinx-build -a -E -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html
sphinx-build -a -E -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html