Merge "Add a job to run full Tempest with enabled profiler"
This commit is contained in:
commit
a195df7af8
18
.zuul.yaml
18
.zuul.yaml
@ -15,7 +15,25 @@
|
||||
jobs:
|
||||
- openstack-tox-functional
|
||||
- openstack-tox-functional-py35
|
||||
- tempest-full-py3-profiler-enabled
|
||||
gate:
|
||||
jobs:
|
||||
- openstack-tox-functional
|
||||
- openstack-tox-functional-py35
|
||||
- tempest-full-py3-profiler-enabled
|
||||
|
||||
- job:
|
||||
name: tempest-full-py3-profiler-enabled
|
||||
parent: tempest-full-py3
|
||||
voting: false
|
||||
description: |
|
||||
Run full tempest on py3 with profiling enabled
|
||||
required-projects:
|
||||
- openstack/osprofiler
|
||||
vars:
|
||||
tox_envlist: full
|
||||
devstack_localrc:
|
||||
OSPROFILER_COLLECTOR: redis
|
||||
OSPROFILER_HMAC_KEYS: SECRET_KEY
|
||||
devstack_plugins:
|
||||
osprofiler: https://git.openstack.org/openstack/osprofiler
|
||||
|
@ -133,6 +133,11 @@ function configure_osprofiler() {
|
||||
reload_service devstack@keystone
|
||||
}
|
||||
|
||||
function configure_osprofiler_in_tempest() {
|
||||
|
||||
iniset $TEMPEST_CONFIG profiler key $OSPROFILER_HMAC_KEYS
|
||||
}
|
||||
|
||||
|
||||
# Restore xtrace
|
||||
$XTRACE
|
||||
|
@ -14,6 +14,11 @@ if [[ "$1" == "stack" && "$2" == "install" ]]; then
|
||||
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
|
||||
echo_summary "Configuring OSProfiler"
|
||||
configure_osprofiler
|
||||
|
||||
elif [[ "$1" == "stack" && "$2" == "test-config" ]]; then
|
||||
echo_summary "Configuring Tempest"
|
||||
configure_osprofiler_in_tempest
|
||||
|
||||
fi
|
||||
|
||||
# Restore xtrace
|
||||
|
Loading…
x
Reference in New Issue
Block a user