From e4d7182d6895aa53557c5ca94d38c342d37f4828 Mon Sep 17 00:00:00 2001 From: Ghanshyam Mann Date: Tue, 8 Mar 2022 19:55:40 -0600 Subject: [PATCH] Use stable constraint in tox to release new tag for Yoga We are going to release Tempest new tag to declare the start of support for stable/yoga. So that new tag use stable/yoga constraint in the tox env. For example: if anyone use Tempest new tag (30.0.0) in future say 1 year later then tox env also should use the yoga contstraint for compatibility instead master. These need to be move back to master constraint once release is done. By using master constraint in tox for all the old tag is problem and we faced the issue of constraint incompatibility due to that and we have to work around it all over the devstack, tempest role, grenade to set the stable constraint cia env var. Change-Id: Ie3159da1b9b73652f52cf22d87ab1dd0ae6411d9 --- tox.ini | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tox.ini b/tox.ini index b07fdaf837..f8ee633762 100644 --- a/tox.ini +++ b/tox.ini @@ -12,7 +12,7 @@ setenv = OS_TEST_PATH=./tempest/test_discover OS_TEST_TIMEOUT={env:OS_TEST_TIMEOUT:1200} deps = - -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} + -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/yoga} -r{toxinidir}/requirements.txt [testenv] @@ -29,7 +29,7 @@ usedevelop = True install_command = pip install {opts} {packages} allowlist_externals = * deps = - -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} + -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/yoga} -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt commands = @@ -273,7 +273,7 @@ commands = [testenv:venv] deps = - -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} + -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/yoga} -r{toxinidir}/requirements.txt -r{toxinidir}/doc/requirements.txt commands = {posargs} @@ -288,7 +288,7 @@ commands = {posargs} [testenv:docs] deps = - -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} + -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/yoga} -r{toxinidir}/doc/requirements.txt commands = sphinx-apidoc -f -o doc/source/tests/compute tempest/api/compute @@ -375,7 +375,7 @@ paths = [testenv:releasenotes] deps = - -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} + -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/yoga} -r{toxinidir}/doc/requirements.txt commands = rm -rf releasenotes/build