From 1f2e0803475f7118dff1a15f1f43c406d2edeab6 Mon Sep 17 00:00:00 2001 From: pmikus Date: Thu, 31 Mar 2016 11:37:14 +0200 Subject: [PATCH] VPP performance check job - vpp-csit-hw-perf job to check performance of proposed patch - build, copy, install, start perf tests Change-Id: I2ae4cee916532c4d57715e2bd739d3109ab7ccf6 Signed-off-by: pmikus --- jjb/vpp/include-raw-vpp-verify-performance.sh | 21 ++++++++++++ jjb/vpp/vpp.yaml | 49 +++++++++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 jjb/vpp/include-raw-vpp-verify-performance.sh diff --git a/jjb/vpp/include-raw-vpp-verify-performance.sh b/jjb/vpp/include-raw-vpp-verify-performance.sh new file mode 100644 index 000000000..64b8b502d --- /dev/null +++ b/jjb/vpp/include-raw-vpp-verify-performance.sh @@ -0,0 +1,21 @@ +#!/bin/bash +set -xeu -o pipefail + +# Clone csit and start tests +git clone --depth 1 https://gerrit.fd.io/r/csit --branch csit-verified + +cp build-root/*.deb csit/ +cd csit +# execute csit bootstrap script if it exists +if [ ! -e bootstrap-verify-perf.sh ] +then + echo 'ERROR: No bootstrap-verify-perf.sh found' + exit 1 +fi + +# make sure that bootstrap-verify-perf.sh is executable +chmod +x bootstrap-verify-perf.sh +# run the script +./bootstrap-verify-perf.sh *.deb + +# vim: ts=4 ts=4 sts=4 et : diff --git a/jjb/vpp/vpp.yaml b/jjb/vpp/vpp.yaml index 103c72d16..cfd2b2bf2 100644 --- a/jjb/vpp/vpp.yaml +++ b/jjb/vpp/vpp.yaml @@ -149,3 +149,52 @@ - robot-report: output-path: 'csit' +- job-template: + name: 'vpp-verify-performance' + + project-type: freestyle + node: verify + concurrent: false + + logrotate: + daysToKeep: '{build-days-to-keep}' + numToKeep: '{build-num-to-keep}' + artifactDaysToKeep: '{build-artifact-days-to-keep}' + artifactNumToKeep: '{build-artifact-num-to-keep}' + + parameters: + - project-parameter: + project: '{project}' + - gerrit-parameter: + branch: '{branch}' + + scm: + - gerrit-trigger-scm: + credentials-id: '{ssh-credentials}' + refspec: '$GERRIT_REFSPEC' + choosing-strategy: 'gerrit' + + wrappers: + - ssh-agent-credentials: + users: + - '{ssh-credentials}' + + triggers: + - gerrit-trigger-manually-triggered: + comment-trigger-value: 'verify-perf' + name: '{project}' + branch: '{branch}' + + builders: + - shell: + !include-raw-escape include-raw-vpp-build.sh + - shell: + !include-raw-escape include-raw-vpp-verify-performance.sh + + publishers: + - archive-artifacts: + artifacts: 'csit/report.html, csit/log.html, csit/output.xml' + latest-only: false + + - robot-report: + output-path: 'csit' -- 2.16.6