From e7bd446c41d15413509f2d3ef81f747ae079ee49 Mon Sep 17 00:00:00 2001 From: Martin Kopec Date: Fri, 26 Mar 2021 15:00:24 +0000 Subject: [PATCH] Use stable constraint in tox to release new tag for Wallaby We are going to release Tempest a new tag to declare the start of support for stable/wallaby so the new tag should use stable/wallaby constraint in the tox env. For example: if anyone uses Tempest 27.0.0 in the future, say 1 year later, then tox env also should use the wallaby contstraint instead master for the compatibility. These changes need to be moved back to master constraint once the release is done. Using master constraint in tox.ini for all the older tags is a problem and we faced the issue of constraint incompatibility. Therefore, we have to work around it all over the devstack, tempest, grenade and set the stable constraints via the env var. Change-Id: Id028b825519e9446e585503dddd39069c05c2867 --- tox.ini | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tox.ini b/tox.ini index 2315163a1d..d4789a5375 100644 --- a/tox.ini +++ b/tox.ini @@ -11,7 +11,7 @@ setenv = VIRTUAL_ENV={envdir} OS_TEST_PATH=./tempest/test_discover deps = - -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} + -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/wallaby} -r{toxinidir}/requirements.txt [testenv] @@ -28,7 +28,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/wallaby} -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt commands = @@ -263,7 +263,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/wallaby} -r{toxinidir}/requirements.txt -r{toxinidir}/doc/requirements.txt commands = {posargs} @@ -278,7 +278,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/wallaby} -r{toxinidir}/doc/requirements.txt commands = sphinx-apidoc -f -o doc/source/tests/compute tempest/api/compute @@ -363,7 +363,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/wallaby} -r{toxinidir}/doc/requirements.txt commands = rm -rf releasenotes/build