From f0582723619e77bf895e6b3a211dd3a8095feab9 Mon Sep 17 00:00:00 2001 From: jkilpatr Date: Wed, 10 Aug 2016 07:47:04 -0400 Subject: [PATCH] Enable checks in CI Will need to be updated once https://review.openstack.org/#/c/354885/ is merged. The check playbook was integrated into the CI script several versions ago but was removed when checks where declared depricated. That effort fell though and checks are now un-depricated, so adding them to CI is prudent. Change-Id: I93d4b9fa6ad3e5e8fd98898886da42e7bd8266ea --- ci-scripts/tripleo/install-and-check.sh | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/ci-scripts/tripleo/install-and-check.sh b/ci-scripts/tripleo/install-and-check.sh index e89fe406d..24c1de0b9 100755 --- a/ci-scripts/tripleo/install-and-check.sh +++ b/ci-scripts/tripleo/install-and-check.sh @@ -56,7 +56,7 @@ deployCloud() deployBrowbeat() { - #The vitrualenv script is delicate to enviromental changes + #The vitrualenv script is delicate to environmental changes #this restores the default terminal mode temporarily (jkilpatr) set +eux . $WORKSPACE/bin/activate @@ -94,6 +94,21 @@ runGather() popd } +runCheck() +{ + pushd $WORKSPACE/browbeat/ansible + + ansible-playbook --ssh-common-args="-F $WORKSPACE/ssh.config.ansible" -i $WORKSPACE/hosts check/site.yml + + if [[ $($SSH_CMD "cat /home/stack/ansible/bug_report.log") == "" ]] + then + #checks failed to create the bug_report.log + exit 1 + fi + + popd +} + runBrowbeat() { $SSH_CMD ". /home/stack/browbeat-venv/bin/activate; cd /home/stack/browbeat; python browbeat.py $1" @@ -112,9 +127,16 @@ popd pushd $WORKSPACE/browbeat +if [[ $($DIFF_CMD | grep -i check) != "" ]] +then + time runCheck +fi +popd + #variable to determine if an execution test has already happened HASRUN=false +pushd $WORKSPACE/browbeat #re-add shaker to tools list when fixed upstream #re-add perfkit to this list after investigation for tool in rally; do