Rework golang-dsvm job
* Check for existence of files before creating the hooks
(Improvement suggested by sdague in previous review)
* Run a minimum of services to reduce time of job to
start
* Skip tempest and exercises to reduce time
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
- export DEVSTACK_LOCAL_CONFIG="enable_plugin {name} git://git.openstack.org/openstack/{name}"
+ # Disable tempest and exercises
+ export DEVSTACK_GATE_TEMPEST=0
+ export DEVSTACK_GATE_TEMPEST_NOTESTS=1
+ export DEVSTACK_GATE_EXERCISES=0
+ export PROJECTS="openstack/{name} $PROJECTS"
+ export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin {name} git://git.openstack.org/openstack/{name}"
+
+ # Keep localrc to be able to set some vars in post_test_hook
+ export KEEP_LOCALRC=1
+
+ # Run a minimum set of services
+ services=rabbit,mysql,dstat,key
+ services+=,n-api,n-cpu,n-cond,n-sch,n-crt
+ services+=,g-api,g-reg
+ services+=,c-sch,c-api,c-vol,c-bak
+ services+=,q-svc,q-dhcp,q-meta,q-agt,q-l3
+ export OVERRIDE_ENABLED_SERVICES=$services
+
+ if [[ -f "$BASE/new/{name}/contrib/pre_test_hook.sh" ]]; then
function pre_test_hook {{
source $BASE/new/{name}/contrib/pre_test_hook.sh
}}
export -f pre_test_hook
+ fi
+ if [[ -f "$BASE/new/{name}/contrib/gate_hook.sh" ]]; then
function gate_hook {{
source $BASE/new/{name}/contrib/gate_hook.sh
}}
export -f gate_hook
+ fi
+ if [[ -f "$BASE/new/{name}/contrib/post_test_hook.sh" ]]; then
function post_test_hook {{
source $BASE/new/{name}/contrib/post_test_hook.sh '{suite}'
}}
export -f post_test_hook
+ fi
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
./safe-devstack-vm-gate-wrap.sh
