Updating python testing as per Yoga testing runtime

Yoga testing runtime[1] has been updated to add py39
testing as voting. Unit tests update are
handled by the job template change in openstack-zuul-job

- https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/820286

this commit updates the functional and tips jobs to test
on py39, also update the classifier in setup.cfg file.

[1] https://governance.openstack.org/tc/reference/runtimes/yoga.html

Change-Id: I6e1c64961f0feb920e45ef6a6ed29f2e32265768
This commit is contained in:
Ghanshyam Mann 2021-12-13 20:57:28 -06:00
parent 4ee7799aa7
commit ed1183919a
3 changed files with 57 additions and 46 deletions

View File

@ -48,23 +48,23 @@
- name: openstack/taskflow
- job:
name: glance-tox-functional-py38-rbac-defaults
parent: openstack-tox-functional-py38
name: glance-tox-functional-py39-rbac-defaults
parent: openstack-tox-functional-py39
voting: false
description: |
Glance py38 functional tests with enforce_secure_rbac=True
Glance py39 functional tests with enforce_secure_rbac=True
vars:
python_version: 3.8
tox_envlist: functional-py38-rbac
python_version: 3.9
tox_envlist: functional-py39-rbac
- job:
name: glance-tox-functional-py38-oslo-tips
name: glance-tox-functional-py39-oslo-tips
parent: glance-tox-oslo-tips-base
description: |
Glance py38 functional tests vs. oslo libraries masters
Glance py39 functional tests vs. oslo libraries masters
vars:
python_version: 3.8
tox_envlist: functional-py38
python_version: 3.9
tox_envlist: functional-py39
- job:
name: glance-tox-functional-py36-oslo-tips
@ -89,13 +89,13 @@
- name: openstack/python-keystoneclient
- job:
name: glance-tox-py38-keystone-tips
name: glance-tox-py39-keystone-tips
parent: glance-tox-keystone-tips-base
description: |
Glance py38 unit tests vs. keystone masters
Glance py39 unit tests vs. keystone masters
vars:
python_version: 3.8
tox_envlist: py38
python_version: 3.9
tox_envlist: py39
- job:
name: glance-tox-py36-keystone-tips
@ -108,13 +108,13 @@
tox_envlist: py36
- job:
name: glance-tox-functional-py38-keystone-tips
name: glance-tox-functional-py39-keystone-tips
parent: glance-tox-keystone-tips-base
description: |
Glance py38 functional tests vs. keystone masters
Glance py39 functional tests vs. keystone masters
vars:
python_version: 3.8
tox_envlist: functional-py38
python_version: 3.9
tox_envlist: functional-py39
- job:
name: glance-tox-functional-py36-keystone-tips
@ -137,13 +137,13 @@
- name: openstack/glance_store
- job:
name: glance-tox-py38-glance_store-tips
name: glance-tox-py39-glance_store-tips
parent: glance-tox-glance_store-tips-base
description: |
Glance py38 unit tests vs. glance_store master
Glance py39 unit tests vs. glance_store master
vars:
python_version: 3.8
tox_envlist: py38
python_version: 3.9
tox_envlist: py39
- job:
name: glance-tox-py36-glance_store-tips
@ -156,13 +156,13 @@
tox_envlist: py36
- job:
name: glance-tox-functional-py38-glance_store-tips
name: glance-tox-functional-py39-glance_store-tips
parent: glance-tox-glance_store-tips-base
description: |
Glance py38 functional tests vs. glance_store master
Glance py39 functional tests vs. glance_store master
vars:
python_version: 3.8
tox_envlist: functional-py38
python_version: 3.9
tox_envlist: functional-py39
- job:
name: glance-tox-functional-py36-glance_store-tips
@ -187,13 +187,13 @@
- name: openstack/castellan
- job:
name: glance-tox-py38-cursive-tips
name: glance-tox-py39-cursive-tips
parent: glance-tox-cursive-tips-base
description: |
Glance py38 unit tests vs. cursive (and related libs) master
Glance py39 unit tests vs. cursive (and related libs) master
vars:
python_version: 3.8
tox_envlist: py38
python_version: 3.9
tox_envlist: py39
- job:
name: glance-tox-py36-cursive-tips
@ -206,13 +206,13 @@
tox_envlist: py36
- job:
name: glance-tox-functional-py38-cursive-tips
name: glance-tox-functional-py39-cursive-tips
parent: glance-tox-cursive-tips-base
description: |
Glance py38 functional tests vs. cursive (and related libs) master
Glance py39 functional tests vs. cursive (and related libs) master
vars:
python_version: 3.8
tox_envlist: functional-py38
python_version: 3.9
tox_envlist: functional-py39
- job:
name: glance-tox-functional-py36-cursive-tips
@ -304,8 +304,8 @@
check:
jobs:
- openstack-tox-functional-py36
- openstack-tox-functional-py38
- glance-tox-functional-py38-rbac-defaults
- openstack-tox-functional-py39
- glance-tox-functional-py39-rbac-defaults
- glance-code-constants-check
- glance-ceph-thin-provisioning:
voting: false
@ -340,7 +340,7 @@
gate:
jobs:
- openstack-tox-functional-py36
- openstack-tox-functional-py38
- openstack-tox-functional-py39
- tempest-integrated-storage:
irrelevant-files: *tempest-irrelevant-files
- tempest-integrated-storage-import:
@ -356,9 +356,9 @@
- glance-secure-rbac-protection-functional
experimental:
jobs:
- glance-tox-py38-glance_store-tips
- glance-tox-py39-glance_store-tips
- glance-tox-py36-glance_store-tips
- glance-tox-functional-py38-glance_store-tips
- glance-tox-functional-py39-glance_store-tips
- glance-tox-functional-py36-glance_store-tips
- barbican-tempest-plugin-simple-crypto
- grenade-multinode
@ -378,31 +378,31 @@
# to define these jobs in the openstack/project-config repo.
# That would make us less agile in adjusting these tests, so we
# aren't doing that either.
- glance-tox-functional-py38-oslo-tips:
- glance-tox-functional-py39-oslo-tips:
branches: master
- glance-tox-functional-py36-oslo-tips:
branches: master
- glance-tox-py38-keystone-tips:
- glance-tox-py39-keystone-tips:
branches: master
- glance-tox-py36-keystone-tips:
branches: master
- glance-tox-functional-py38-keystone-tips:
- glance-tox-functional-py39-keystone-tips:
branches: master
- glance-tox-functional-py36-keystone-tips:
branches: master
- glance-tox-py38-glance_store-tips:
- glance-tox-py39-glance_store-tips:
branches: master
- glance-tox-py36-glance_store-tips:
branches: master
- glance-tox-functional-py38-glance_store-tips:
- glance-tox-functional-py39-glance_store-tips:
branches: master
- glance-tox-functional-py36-glance_store-tips:
branches: master
- glance-tox-py38-cursive-tips:
- glance-tox-py39-cursive-tips:
branches: master
- glance-tox-py36-cursive-tips:
branches: master
- glance-tox-functional-py38-cursive-tips:
- glance-tox-functional-py39-cursive-tips:
branches: master
- glance-tox-functional-py36-cursive-tips:
branches: master

View File

@ -18,6 +18,7 @@ classifier =
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
[files]
data_files =

12
tox.ini
View File

@ -1,7 +1,7 @@
[tox]
minversion = 3.18.0
# python runtimes: https://governance.openstack.org/tc/reference/runtimes/ussuri.html
envlist = functional-py38,py38,py36,pep8
envlist = functional-py39,py39,py36,pep8
skipsdist = True
skip_missing_interpreters = true
# this allows tox to infer the base python from the environment name
@ -64,6 +64,12 @@ setenv =
OS_GLANCE_TEST_RBAC_DEFAULTS = True
commands = {[testenv:functional]commands}
[testenv:functional-py39-rbac]
setenv =
{[testenv:functional]setenv}
OS_GLANCE_TEST_RBAC_DEFAULTS = True
commands = {[testenv:functional]commands}
[testenv:genpolicy]
basepython = python3
commands =
@ -194,3 +200,7 @@ commands =
[testenv:debug-py38]
commands =
oslo_debug_helper {posargs}
[testenv:debug-py39]
commands =
oslo_debug_helper {posargs}