diff options
author | 2016-03-31 11:37:14 +0200 | |
---|---|---|
committer | 2016-03-31 16:38:33 +0200 | |
commit | 1f2e0803475f7118dff1a15f1f43c406d2edeab6 (patch) | |
tree | f49afc8c03bee3d69b7ae17676dddece6a7cf78d | |
parent | 5acae471b6369b93fec3c755937ed1225df7b330 (diff) |
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 <pmikus@cisco.com>
-rw-r--r-- | jjb/vpp/include-raw-vpp-verify-performance.sh | 21 | ||||
-rw-r--r-- | jjb/vpp/vpp.yaml | 49 |
2 files changed, 70 insertions, 0 deletions
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' |