Uncap concurrency in tests
This is 2 changes: * Run dstat in unit test jobs so that we can get an idea of system performance/utilization. * Remove the stestr concurrency cap. With 8 cores, we have enough headroom to run the test dependencies (sql/zk) while the tests are running too. Use all the CPU that's available. Change-Id: I9f250865f7043fdbb1fa8a01f1bc9508490accc1
This commit is contained in:
parent
b3b0c213a7
commit
df338db03b
|
@ -1,5 +1,6 @@
|
||||||
- hosts: all
|
- hosts: all
|
||||||
|
roles:
|
||||||
|
- dstat-graph
|
||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
- name: Collect zookeeper logs
|
- name: Collect zookeeper logs
|
||||||
shell: "cp /opt/zookeeper/logs/* {{ zuul_output_dir }}/logs/"
|
shell: "cp /opt/zookeeper/logs/* {{ zuul_output_dir }}/logs/"
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
- hosts: all
|
- hosts: all
|
||||||
roles:
|
roles:
|
||||||
|
- ensure-dstat-graph
|
||||||
|
- run-dstat
|
||||||
- role: ensure-zookeeper
|
- role: ensure-zookeeper
|
||||||
zookeeper_use_tls: true
|
zookeeper_use_tls: true
|
||||||
|
|
2
tox.ini
2
tox.ini
|
@ -41,7 +41,7 @@ deps =
|
||||||
docker =
|
docker =
|
||||||
docker: zookeeper:3.4
|
docker: zookeeper:3.4
|
||||||
commands =
|
commands =
|
||||||
bash -c 'stestr run --slowest --concurrency=`python -c "import multiprocessing; print(int(multiprocessing.cpu_count()/2))"` {posargs}'
|
bash -c 'stestr run --slowest {posargs}'
|
||||||
|
|
||||||
[testenv:bindep]
|
[testenv:bindep]
|
||||||
# Do not install any requirements. We want this to be fast and work even if
|
# Do not install any requirements. We want this to be fast and work even if
|
||||||
|
|
Loading…
Reference in New Issue