Merge "Use stable constraint for Tempest pinned stable branches" into stable/queens

This commit is contained in:
Zuul 2020-02-12 16:16:40 +00:00 committed by Gerrit Code Review
commit 57ac269937
2 changed files with 22 additions and 1 deletions

View File

@ -101,6 +101,21 @@
parent: nova-dsvm-multinode-base parent: nova-dsvm-multinode-base
run: playbooks/legacy/nova-live-migration/run.yaml run: playbooks/legacy/nova-live-migration/run.yaml
post-run: playbooks/legacy/nova-live-migration/post.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$
- job: - job:
name: nova-lvm name: nova-lvm

View File

@ -3,7 +3,13 @@
function run_tempest { function run_tempest {
local message=$1 local message=$1
local tempest_regex=$2 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=$? exitcode=$?
if [[ $exitcode -ne 0 ]]; then if [[ $exitcode -ne 0 ]]; then
die $LINENO "$message failure" die $LINENO "$message failure"