Add gate hooks to run scale test job

Currently the Rally framework and tests are pulled from an
external repository. Once the job starts running stably, we
will move the tests to in-tree.

Change-Id: If3729941212511443b86d3f9e5b36f25eccdc6a3
This commit is contained in:
Sumit Naiksatam 2015-07-28 13:01:32 -07:00
parent 9041390efb
commit c763b6524d
2 changed files with 30 additions and 0 deletions

View File

@ -25,6 +25,21 @@ function prepare_gbp_devstack {
pip_install -e $GBP_DIR
}
function run_gbp_rally {
cd $NEW_BASE
git clone http://github.com/group-policy/rally.git -b dev
cd rally
sed -i 's/\"times\"\: 1/\"times\"\: 10/g' samples/tasks/scenarios/gbp/gbp.json
sed -i 's/\"concurrency\"\: 1/\"concurrency\"\: 10,/g' samples/tasks/scenarios/gbp/gbp.json
./install_rally.sh -f
. /home/jenkins/rally/bin/activate
source $TOP_DIR/openrc admin admin
rally deployment create --fromenv --name=gbp
rally -v task start samples/tasks/scenarios/gbp/gbp.json
rally task results > $LOGS_DIR/rally-task-results.log.20
deactivate
}
# Prepare the log files for Jenkins to upload
function prepare_logs {
cd $LOGS_DIR

View File

@ -0,0 +1,15 @@
#!/bin/bash
source ../functions-gbp
set -x
trap prepare_logs ERR
run_gbp_rally
exit_code=$?
# Prepare the log files for Jenkins to upload
prepare_logs
exit $exit_code