Merge "Run the db migration tests in the same test worker"
This commit is contained in:
commit
b0f241e542
14
tox.ini
14
tox.ini
|
@ -32,7 +32,11 @@ passenv =
|
|||
# there is also secret magic in subunit-trace which lets you run in a fail only
|
||||
# mode. To do this define the TRACE_FAILONLY environmental variable.
|
||||
commands =
|
||||
stestr run {posargs}
|
||||
# NOTE(gibi): The group-regex runs the matching tests in the same executor.
|
||||
# These tests runs against a real mysql instance and in an IO deprived CI VM they tend to time out.
|
||||
# See bug https://launchpad.net/bugs/1823251 for details.
|
||||
# By running them in the same executor we can spread the IO load of these tests in time.
|
||||
stestr --group-regex=nova\.tests\.unit\.db\.test_migrations\.TestNovaMigrationsMySQL run {posargs}
|
||||
env TEST_OSPROFILER=1 stestr run --combine --no-discover 'nova.tests.unit.test_profiler'
|
||||
stestr slowest
|
||||
|
||||
|
@ -84,7 +88,13 @@ deps =
|
|||
{[testenv]deps}
|
||||
openstack-placement>=1.0.0
|
||||
commands =
|
||||
stestr --test-path=./nova/tests/functional run {posargs}
|
||||
# NOTE(gibi): The group-regex runs the matching tests in the same executor.
|
||||
# These tests runs against a real db instance and in an IO deprived CI VM they tend to time out.
|
||||
# See bug https://launchpad.net/bugs/1823251 for details.
|
||||
# By running them in the same executor we can spread the IO load of these tests in time.
|
||||
# NOTE(gibi): I was not able to group only the mysql tests this way as regex
|
||||
# TestNovaAPIMigrations.*MySQL does not do what I expect
|
||||
stestr --group-regex=nova\.tests\.functional\.db\.api\.test_migrations\.TestNovaAPIMigrations --test-path=./nova/tests/functional run {posargs}
|
||||
stestr slowest
|
||||
|
||||
[testenv:functional-py36]
|
||||
|
|
Loading…
Reference in New Issue