Merge "Run all scenario in parallel"

This commit is contained in:
Zuul 2018-03-29 11:27:06 +00:00 committed by Gerrit Code Review
commit b8b6b051ff
2 changed files with 33 additions and 0 deletions

View File

@ -44,6 +44,19 @@
devstack_localrc: devstack_localrc:
ENABLE_FILE_INJECTION: true ENABLE_FILE_INJECTION: true
- job:
name: tempest-full-parallel
parent: tempest-full
voting: false
branches:
- master
description: |
Base integration test with Neutron networking and py27.
It includes all scenarios as it was in the past.
This job runs all scenario tests in parallel!
vars:
tox_envlist: full-parallel
- job: - job:
name: tempest-full-py3 name: tempest-full-py3
parent: devstack-tempest parent: devstack-tempest
@ -175,6 +188,16 @@
- ^roles/ - ^roles/
- ^.zuul.yaml$ - ^.zuul.yaml$
- nova-multiattach - nova-multiattach
- tempest-full-parallel:
irrelevant-files:
- ^(test-|)requirements.txt$
- ^.*\.rst$
- ^doc/.*$
- ^etc/.*$
- ^releasenotes/.*$
- ^setup.cfg$
- ^tempest/hacking/.*$
- ^tempest/tests/.*$
- tempest-full-queens: - tempest-full-queens:
irrelevant-files: irrelevant-files:
- ^(test-|)requirements.txt$ - ^(test-|)requirements.txt$

10
tox.ini
View File

@ -83,6 +83,16 @@ commands =
tempest run --regex '(?!.*\[.*\bslow\b.*\])(^tempest\.api)' {posargs} tempest run --regex '(?!.*\[.*\bslow\b.*\])(^tempest\.api)' {posargs}
tempest run --combine --serial --regex '(?!.*\[.*\bslow\b.*\])(^tempest\.scenario)' {posargs} tempest run --combine --serial --regex '(?!.*\[.*\bslow\b.*\])(^tempest\.scenario)' {posargs}
[testenv:full-parallel]
envdir = .tox/tempest
sitepackages = {[tempestenv]sitepackages}
setenv = {[tempestenv]setenv}
deps = {[tempestenv]deps}
# The regex below is used to select all tempest scenario and including the non slow api tests
commands =
find . -type f -name "*.pyc" -delete
tempest run --regex '(^tempest\.scenario.*)|(?!.*\[.*\bslow\b.*\])(^tempest\.api)' {posargs}
[testenv:full-serial] [testenv:full-serial]
envdir = .tox/tempest envdir = .tox/tempest
sitepackages = {[tempestenv]sitepackages} sitepackages = {[tempestenv]sitepackages}