Replace testing template with individual jobs

Being on an independent release model, rbd-iscsi-client supports
more pythons than are supported by current openstack development,
so adjust the zuul and tox config to reflect this.

Also temporarily makes the pep8 job non-voting so this change
can be merged.  The pep8 job is fixed and restored to voting by
change Ia4d40a85ac15.

Change-Id: I0042e16d19e133546b0384fec5a6aee1701eda28
This commit is contained in:
Brian Rosmaita 2022-08-10 13:54:59 -04:00
parent f0227095b9
commit fe63f0cc89
3 changed files with 39 additions and 1 deletions

View File

@ -1,14 +1,33 @@
- project: - project:
templates: templates:
- openstack-python3-xena-jobs # NOTE: we don't use the openstack-python3 jobs template here
# because being on an independent release model, we support
# more than the required pythons
- publish-openstack-docs-pti - publish-openstack-docs-pti
- check-requirements - check-requirements
- release-notes-jobs-python3 - release-notes-jobs-python3
check: check:
jobs: jobs:
- openstack-tox-pep8:
# TODO: make voting when pep8 job is fixed
voting: false
- rbd-iscsi-client-py36
- openstack-tox-py38
- openstack-tox-py39
- rbd-iscsi-client-code-coverage: - rbd-iscsi-client-code-coverage:
voting: false voting: false
gate:
jobs:
- openstack-tox-pep8:
# TODO: make voting when pep8 job is fixed
voting: false
- rbd-iscsi-client-py36
- openstack-tox-py38
- openstack-tox-py39
- job: - job:
name: rbd-iscsi-client-code-coverage name: rbd-iscsi-client-code-coverage
parent: openstack-tox-cover parent: openstack-tox-cover
@ -22,3 +41,13 @@
- ^setup.cfg$ - ^setup.cfg$
- ^tools/.*$ - ^tools/.*$
- ^tox.ini$ - ^tox.ini$
- job:
name: rbd-iscsi-client-py36
parent: openstack-tox-py36
# NOTE: zuul ignores TOX_CONSTRAINTS_FILE and uses upper constraints
# directly from the requirements repo, so we need to tell it to use
# the u-c from a branch that still supports py36
required-projects:
- name: openstack/requirements
override-checkout: stable/yoga

View File

@ -22,6 +22,7 @@ classifiers =
Programming Language :: Python :: 3.6 Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
[global] [global]
setup-hooks = setup-hooks =

View File

@ -32,6 +32,14 @@ allowlist_externals = bash
find find
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
[testenv:py36]
# We have to override the tox default py36 testenv because we need to use
# upper constraints from the last openstack release that supports python 3.6
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/yoga}
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
[testenv:pep8] [testenv:pep8]
commands = flake8 {posargs} commands = flake8 {posargs}