summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGhanshyam Mann <gmann@ghanshyammann.com>2020-02-09 11:43:26 -0600
committerGhanshyam Mann <gmann@ghanshyammann.com>2020-02-10 09:05:19 -0600
commit551def45f2a425a13b575850afcb15e5a0c6e9ea (patch)
tree95e75bedcfe90eee16fbbd45d3788b6acd852d62
parent586d721dab2867d6b8db37026b063be29bacf754 (diff)
downloadnova-551def45f2a425a13b575850afcb15e5a0c6e9ea.tar.gz
Use stable constraint for Tempest pinned stable branches
Stable branches till stable/rocky is using python version <py3.6. Tempest test those branch in venv but Tempest tox use the master upper-constraint[1] which block installation due to dependencies require >=py3.6. For exmaple, oslo.concurrency 4.0.0 is not compatible for <py3.6. As we pin Tempest for EM stable brach, we should be able to use stable constraint for Tempest installation as well as while running during run-tempest playbook. tox.ini is hard coded to use master constraint[1] which force run-tempest to recreate the tox env and use the master constraint. Fix for that- https://review.opendev.org/#/c/705870/ nova-live-migration test hook run_test.sh needs to use the stable u-c so that Tempest installation in venv will use stable branch constraint. Modify the irrelevant-files for nova-live-migration job to run for run_test.sh script. [1] https://opendev.org/openstack/tempest/src/commit/bc9fe8eca801f54915ff3eafa418e6e18ac2df63/tox.ini#L14 Change-Id: I8190f93e0a754fa59ed848a3a230d1ef63a06abc (cherry picked from commit 48a66c56441861a206f9369b8c242cfd4dffd80d)
-rw-r--r--.zuul.yaml15
-rwxr-xr-xnova/tests/live_migration/hooks/utils.sh8
2 files changed, 22 insertions, 1 deletions
diff --git a/.zuul.yaml b/.zuul.yaml
index 74e1cd033d..35d00fd848 100644
--- a/.zuul.yaml
+++ b/.zuul.yaml
@@ -49,6 +49,21 @@
parent: nova-dsvm-multinode-base
run: playbooks/legacy/nova-live-migration/run.yaml
post-run: playbooks/legacy/nova-live-migration/post.yaml
+ irrelevant-files:
+ - ^(placement-)?api-.*$
+ - ^(test-|)requirements.txt$
+ - ^.*\.rst$
+ - ^.git.*$
+ - ^doc/.*$
+ - ^nova/hacking/.*$
+ - ^nova/locale/.*$
+ - ^nova/tests/unit/.*$
+ - ^nova/tests/functional/.*$
+ - ^releasenotes/.*$
+ - ^setup.cfg$
+ - ^tests-py3.txt$
+ - ^tools/.*$
+ - ^tox.ini$
- project:
templates:
diff --git a/nova/tests/live_migration/hooks/utils.sh b/nova/tests/live_migration/hooks/utils.sh
index 2542521503..8639f7e25c 100755
--- a/nova/tests/live_migration/hooks/utils.sh
+++ b/nova/tests/live_migration/hooks/utils.sh
@@ -3,7 +3,13 @@
function run_tempest {
local message=$1
local tempest_regex=$2
- sudo -H -u tempest tox -eall -- $tempest_regex --concurrency=$TEMPEST_CONCURRENCY
+ # NOTE(gmann): Use branch constraint because Tempest is pinned to the branch release
+ # instead of using master. We need to export it via env var UPPER_CONSTRAINTS_FILE
+ # so that initial creation of tempest tox use stable branch constraint
+ # instead of master constraint which is hard coded in tempest/tox.ini
+ export UPPER_CONSTRAINTS_FILE=$BASE/new/requirements/upper-constraints.txt
+
+ sudo -H -u tempest UPPER_CONSTRAINTS_FILE=$UPPER_CONSTRAINTS_FILE tox -eall -- $tempest_regex --concurrency=$TEMPEST_CONCURRENCY
exitcode=$?
if [[ $exitcode -ne 0 ]]; then
die $LINENO "$message failure"