diff --git a/.gitreview b/.gitreview index 9b9acbf3..8be9bfd0 100644 --- a/.gitreview +++ b/.gitreview @@ -2,3 +2,4 @@ host=review.opendev.org port=29418 project=openstack/python-cinderclient.git +defaultbranch=unmaintained/yoga diff --git a/.zuul.yaml b/.zuul.yaml index c9e5b508..26e9e4bb 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -24,7 +24,7 @@ name: python-cinderclient-functional-py36 parent: python-cinderclient-functional-base # need to specify a platform that has python 3.6 available - nodeset: devstack-single-node-centos-8-stream + nodeset: ubuntu-bionic vars: python_version: 3.6 tox_envlist: functional-py36 @@ -38,6 +38,8 @@ tox_envlist: functional-py39 - project: + vars: + ensure_tox_version: '<4' templates: - check-requirements - lib-forward-testing-python3 @@ -47,11 +49,15 @@ - release-notes-jobs-python3 check: jobs: - - python-cinderclient-functional-py36 - - python-cinderclient-functional-py39 + - python-cinderclient-functional-py36: + voting: false + - python-cinderclient-functional-py39: + voting: false - openstack-tox-pylint: voting: false - gate: - jobs: - - python-cinderclient-functional-py36 - - python-cinderclient-functional-py39 + # NOTE(elod.illes): these two functional jobs should be set back to + # voting and added back to gate queue as soon as they are fixed. + # gate: + # jobs: + # - python-cinderclient-functional-py36 + # - python-cinderclient-functional-py39 diff --git a/cinderclient/tests/functional/test_cli.py b/cinderclient/tests/functional/test_cli.py index 5f4a64a7..2d54d312 100644 --- a/cinderclient/tests/functional/test_cli.py +++ b/cinderclient/tests/functional/test_cli.py @@ -11,6 +11,9 @@ # under the License. +import sys +import unittest + from cinderclient.tests.functional import base @@ -93,6 +96,8 @@ class CinderBackupTests(base.ClientTestBase): BACKUP_PROPERTY = ('id', 'name', 'volume_id') + @unittest.skipIf((sys.version_info[0] == 3 and sys.version_info[1] == 9), + "This test is failing because of bug#2008010") def test_backup_create_and_delete(self): """Create a volume backup and then delete.""" volume = self.object_create('volume', params='1') diff --git a/tox.ini b/tox.ini index 63af1445..feae70b6 100644 --- a/tox.ini +++ b/tox.ini @@ -6,6 +6,11 @@ skipsdist = True # this allows tox to infer the base python from the environment name # and override any basepython configured in this file ignore_basepython_conflict=true +# Cap setuptools via virtualenv to prevent compatibility issue with yoga +# branch's upper constraint of 'packaging' package (21.3). +requires = + virtualenv<20.26.4 + tox<4 [testenv] basepython = python3 @@ -19,7 +24,7 @@ setenv = passenv = *_proxy *_PROXY deps = - -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} + -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/yoga} -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt commands = find . -type f -name "*.pyc" -delete @@ -34,7 +39,7 @@ commands = [testenv:pylint] deps = - -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} + -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/yoga} -r{toxinidir}/requirements.txt pylint==2.6.0 commands = bash tools/lintstack.sh @@ -55,7 +60,7 @@ commands = [testenv:docs] deps = - -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} + -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/yoga} -r{toxinidir}/doc/requirements.txt commands = sphinx-build -W -b html doc/source doc/build/html @@ -72,7 +77,7 @@ allowlist_externals = [testenv:releasenotes] deps = - -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} + -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/yoga} -r{toxinidir}/doc/requirements.txt commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html @@ -92,6 +97,7 @@ setenv = # tempest.lib.base.BaseTestCase that our ClientTestBase class # inherits from. OS_TEST_TIMEOUT=0 + export FORCE=yes # The OS_CACERT environment variable should be passed to the test # environments to specify a CA bundle file to use in verifying a