aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Duraj <julien.duraj@linaro.org>2017-01-31 13:28:11 +0000
committerVishal Bhoj <vishal.bhoj@linaro.org>2017-02-07 09:28:11 +0000
commit11091b70007a02ffcd48c02a833cd8fa918a9b1d (patch)
tree967a1161e21d0e775781f53cc41c77822decca96
parentfc6ca599404187747e9c362ec57a270db982fd8a (diff)
downloadconfigs-11091b70007a02ffcd48c02a833cd8fa918a9b1d.tar.gz
ART: Update postbuild groovy scripts
- Cleanup the out of date inline groovy code in some of the jjb's. - Rename the postbuild.groovy script to tests.groovy as it relates particularly to host and target tests. - Add another groovy file: global.groovy that applies to all linaro-art builds. Change-Id: Icb624357f5b26a8fc999e00b71fe061297650097
-rw-r--r--linaro-art-stable-build-ARTHostTest.yaml5
-rw-r--r--linaro-art-stable-build-ARTTargetTest.yaml5
-rw-r--r--linaro-art-stable-build-ARTVixlTest.yaml22
-rw-r--r--linaro-art-stable-build-MicroBenchmarks.yaml35
-rw-r--r--linaro-art-testing-presubmit-test.yaml4
-rw-r--r--linaro-art-tip-build-ARTHostTest.yaml5
-rw-r--r--linaro-art-tip-build-ARTTargetTest.yaml5
-rw-r--r--linaro-art-tip-build-ARTVIXL32HostTest.yaml5
-rw-r--r--linaro-art-tip-build-ARTVIXL32TargetTest.yaml5
-rw-r--r--linaro-art-tip-build-ARTVixlTest.yaml22
-rw-r--r--linaro-art-tip-build-MicroBenchmarks-Baseline-intel.yaml35
-rw-r--r--linaro-art-tip-build-MicroBenchmarks-Baseline.yaml35
-rw-r--r--linaro-art-tip-build-MicroBenchmarks.yaml35
-rw-r--r--linaro-art-vixl-art-host-test.yaml5
-rw-r--r--linaro-art-vixl-art-target-test.yaml5
-rw-r--r--linaro-art-vixl-test.yaml4
-rw-r--r--linaro-art-vixlpresubmit-macos.yaml4
-rw-r--r--linaro-art-vixlpresubmit-native-armv8.yaml4
-rw-r--r--linaro-art-vixlpresubmit.yaml4
-rw-r--r--linaro-art/global.groovy4
-rw-r--r--linaro-art/tests.groovy (renamed from linaro-art/postbuild.groovy)0
21 files changed, 74 insertions, 174 deletions
diff --git a/linaro-art-stable-build-ARTHostTest.yaml b/linaro-art-stable-build-ARTHostTest.yaml
index cc06224fd..08abaa372 100644
--- a/linaro-art-stable-build-ARTHostTest.yaml
+++ b/linaro-art-stable-build-ARTHostTest.yaml
@@ -152,4 +152,7 @@
unstable-on-warning: false
fail-on-error: false
- groovy-postbuild:
- script: !include-raw: linaro-art/postbuild.groovy
+ script:
+ !include-raw:
+ - linaro-art/tests.groovy
+ - linaro-art/global.groovy
diff --git a/linaro-art-stable-build-ARTTargetTest.yaml b/linaro-art-stable-build-ARTTargetTest.yaml
index bcccffcd8..945f62aa1 100644
--- a/linaro-art-stable-build-ARTTargetTest.yaml
+++ b/linaro-art-stable-build-ARTTargetTest.yaml
@@ -159,4 +159,7 @@
unstable-on-warning: false
fail-on-error: false
- groovy-postbuild:
- script: !include-raw: linaro-art/postbuild.groovy
+ script:
+ !include-raw:
+ - linaro-art/tests.groovy
+ - linaro-art/global.groovy
diff --git a/linaro-art-stable-build-ARTVixlTest.yaml b/linaro-art-stable-build-ARTVixlTest.yaml
index aee0a9170..e41253125 100644
--- a/linaro-art-stable-build-ARTVixlTest.yaml
+++ b/linaro-art-stable-build-ARTVixlTest.yaml
@@ -159,25 +159,9 @@
unstable-on-warning: false
fail-on-error: false
- groovy-postbuild:
- script: |
- import hudson.model.*
-
- def matcher = manager.getLogMatcher(".*repo sync failed.*")
- if ( matcher?.matches()) {
- manager.addShortText("repo sync failed")
- }
- matcher = manager.getLogMatcher(".*patch merge failed.*")
- if ( matcher?.matches()) {
- manager.addShortText("merge failed")
- }
- matcher = manager.getLogMatcher(".*make failed.*")
- if ( matcher?.matches()) {
- manager.addShortText("make failed")
- }
- matcher = manager.getLogMatcher(".*images failed to boot.*")
- if ( matcher?.matches()) {
- manager.addShortText("Boot test failed")
- }
+ script:
+ !include-raw:
+ - linaro-art/global.groovy
- plot:
- title: 'Sync Time'
group: 'Time Measurements'
diff --git a/linaro-art-stable-build-MicroBenchmarks.yaml b/linaro-art-stable-build-MicroBenchmarks.yaml
index 156e6fee1..1a81717f7 100644
--- a/linaro-art-stable-build-MicroBenchmarks.yaml
+++ b/linaro-art-stable-build-MicroBenchmarks.yaml
@@ -165,38 +165,9 @@
unstable-on-warning: false
fail-on-error: false
- groovy-postbuild:
- script: |
- import hudson.model.*
- def currentBuild = Thread.currentThread().executable
- def description = ""
- def matcher = manager.getLogMatcher(".*repo sync failed.*")
- if ( matcher?.matches()) {
- manager.addShortText("repo sync failed")
- }
- matcher = manager.getLogMatcher(".*patch merge failed.*")
- if ( matcher?.matches()) {
- manager.addShortText("merge failed")
- }
- matcher = manager.getLogMatcher(".*error: no devices/emulators found.*")
- if ( matcher?.matches()) {
- manager.addShortText("No Device Found")
- }
- matcher = manager.getLogMatcher(".*buildbot-build setup failed.*")
- if ( matcher?.matches()) {
- manager.addShortText("buildbot-build setup failed.")
- }
- matcher = manager.getLogMatcher(".* tests have failed")
- if (matcher?.matches()) {
- def test = matcher.group(0).split(" ")
- manager.listener.logger.println test.length
- i=0
- while( i<test.length-3) {
- description+="${test[i]} failed<br>"
- i++;
- }
- currentBuild.setDescription(description)
- manager.addShortText("Tests failed")
- }
+ script:
+ !include-raw:
+ - linaro-art/global.groovy
- trigger-parameterized-builds:
- project: 'post-build-reports'
property-file: post_build_reports_parameters
diff --git a/linaro-art-testing-presubmit-test.yaml b/linaro-art-testing-presubmit-test.yaml
index 5a4223f33..c236ff7b8 100644
--- a/linaro-art-testing-presubmit-test.yaml
+++ b/linaro-art-testing-presubmit-test.yaml
@@ -59,3 +59,7 @@
publishers:
- email:
recipients: 'daniel.diaz@linaro.org'
+ - groovy-postbuild:
+ script:
+ !include-raw:
+ - linaro-art/global.groovy
diff --git a/linaro-art-tip-build-ARTHostTest.yaml b/linaro-art-tip-build-ARTHostTest.yaml
index addf2b7d2..c0b8a4399 100644
--- a/linaro-art-tip-build-ARTHostTest.yaml
+++ b/linaro-art-tip-build-ARTHostTest.yaml
@@ -120,7 +120,10 @@
unstable-on-warning: false
fail-on-error: false
- groovy-postbuild:
- script: !include-raw: linaro-art/postbuild.groovy
+ script:
+ !include-raw:
+ - linaro-art/tests.groovy
+ - linaro-art/global.groovy
- plot:
- title: 'Sync Time'
group: 'Time Measurements'
diff --git a/linaro-art-tip-build-ARTTargetTest.yaml b/linaro-art-tip-build-ARTTargetTest.yaml
index e31024fee..db26ce18a 100644
--- a/linaro-art-tip-build-ARTTargetTest.yaml
+++ b/linaro-art-tip-build-ARTTargetTest.yaml
@@ -131,4 +131,7 @@
unstable-on-warning: false
fail-on-error: false
- groovy-postbuild:
- script: !include-raw: linaro-art/postbuild.groovy
+ script:
+ !include-raw:
+ - linaro-art/tests.groovy
+ - linaro-art/global.groovy
diff --git a/linaro-art-tip-build-ARTVIXL32HostTest.yaml b/linaro-art-tip-build-ARTVIXL32HostTest.yaml
index 575570246..583569183 100644
--- a/linaro-art-tip-build-ARTVIXL32HostTest.yaml
+++ b/linaro-art-tip-build-ARTVIXL32HostTest.yaml
@@ -123,7 +123,10 @@
unstable-on-warning: false
fail-on-error: false
- groovy-postbuild:
- script: !include-raw: linaro-art/postbuild.groovy
+ script:
+ !include-raw:
+ - linaro-art/tests.groovy
+ - linaro-art/global.groovy
- plot:
- title: 'Sync Time'
group: 'Time Measurements'
diff --git a/linaro-art-tip-build-ARTVIXL32TargetTest.yaml b/linaro-art-tip-build-ARTVIXL32TargetTest.yaml
index 465f2fdf9..ea48264d8 100644
--- a/linaro-art-tip-build-ARTVIXL32TargetTest.yaml
+++ b/linaro-art-tip-build-ARTVIXL32TargetTest.yaml
@@ -134,4 +134,7 @@
unstable-on-warning: false
fail-on-error: false
- groovy-postbuild:
- script: !include-raw: linaro-art/postbuild.groovy
+ script:
+ !include-raw:
+ - linaro-art/tests.groovy
+ - linaro-art/global.groovy
diff --git a/linaro-art-tip-build-ARTVixlTest.yaml b/linaro-art-tip-build-ARTVixlTest.yaml
index 3eadd4b46..a0ac442d4 100644
--- a/linaro-art-tip-build-ARTVixlTest.yaml
+++ b/linaro-art-tip-build-ARTVixlTest.yaml
@@ -115,25 +115,9 @@
unstable-on-warning: false
fail-on-error: false
- groovy-postbuild:
- script: |
- import hudson.model.*
-
- def matcher = manager.getLogMatcher(".*repo sync failed.*")
- if ( matcher?.matches()) {
- manager.addShortText("repo sync failed")
- }
- matcher = manager.getLogMatcher(".*patch merge failed.*")
- if ( matcher?.matches()) {
- manager.addShortText("merge failed")
- }
- matcher = manager.getLogMatcher(".*make failed.*")
- if ( matcher?.matches()) {
- manager.addShortText("make failed")
- }
- matcher = manager.getLogMatcher(".*images failed to boot.*")
- if ( matcher?.matches()) {
- manager.addShortText("Boot test failed")
- }
+ script:
+ !include-raw:
+ - linaro-art/global.groovy
- plot:
- title: 'Sync Time'
group: 'Time Measurements'
diff --git a/linaro-art-tip-build-MicroBenchmarks-Baseline-intel.yaml b/linaro-art-tip-build-MicroBenchmarks-Baseline-intel.yaml
index b17f4a980..f6094f403 100644
--- a/linaro-art-tip-build-MicroBenchmarks-Baseline-intel.yaml
+++ b/linaro-art-tip-build-MicroBenchmarks-Baseline-intel.yaml
@@ -128,38 +128,9 @@
unstable-on-warning: false
fail-on-error: false
- groovy-postbuild:
- script: |
- import hudson.model.*
- def currentBuild = Thread.currentThread().executable
- def description = ""
- def matcher = manager.getLogMatcher(".*repo sync failed.*")
- if ( matcher?.matches()) {
- manager.addShortText("repo sync failed")
- }
- matcher = manager.getLogMatcher(".*patch merge failed.*")
- if ( matcher?.matches()) {
- manager.addShortText("merge failed")
- }
- matcher = manager.getLogMatcher(".*error: no devices/emulators found.*")
- if ( matcher?.matches()) {
- manager.addShortText("No Device Found")
- }
- matcher = manager.getLogMatcher(".*buildbot-build setup failed.*")
- if ( matcher?.matches()) {
- manager.addShortText("buildbot-build setup failed.")
- }
- matcher = manager.getLogMatcher(".* tests have failed")
- if (matcher?.matches()) {
- def test = matcher.group(0).split(" ")
- manager.listener.logger.println test.length
- i=0
- while( i<test.length-3) {
- description+="${test[i]} failed<br>"
- i++;
- }
- currentBuild.setDescription(description)
- manager.addShortText("Tests failed")
- }
+ script:
+ !include-raw:
+ - linaro-art/global.groovy
- trigger-parameterized-builds:
- project: 'post-build-reports'
property-file: post_build_reports_parameters
diff --git a/linaro-art-tip-build-MicroBenchmarks-Baseline.yaml b/linaro-art-tip-build-MicroBenchmarks-Baseline.yaml
index 1aca57ac2..2be546bc3 100644
--- a/linaro-art-tip-build-MicroBenchmarks-Baseline.yaml
+++ b/linaro-art-tip-build-MicroBenchmarks-Baseline.yaml
@@ -146,38 +146,9 @@
unstable-on-warning: false
fail-on-error: false
- groovy-postbuild:
- script: |
- import hudson.model.*
- def currentBuild = Thread.currentThread().executable
- def description = ""
- def matcher = manager.getLogMatcher(".*repo sync failed.*")
- if ( matcher?.matches()) {
- manager.addShortText("repo sync failed")
- }
- matcher = manager.getLogMatcher(".*patch merge failed.*")
- if ( matcher?.matches()) {
- manager.addShortText("merge failed")
- }
- matcher = manager.getLogMatcher(".*error: no devices/emulators found.*")
- if ( matcher?.matches()) {
- manager.addShortText("No Device Found")
- }
- matcher = manager.getLogMatcher(".*buildbot-build setup failed.*")
- if ( matcher?.matches()) {
- manager.addShortText("buildbot-build setup failed.")
- }
- matcher = manager.getLogMatcher(".* tests have failed")
- if (matcher?.matches()) {
- def test = matcher.group(0).split(" ")
- manager.listener.logger.println test.length
- i=0
- while( i<test.length-3) {
- description+="${test[i]} failed<br>"
- i++;
- }
- currentBuild.setDescription(description)
- manager.addShortText("Tests failed")
- }
+ script:
+ !include-raw:
+ - linaro-art/global.groovy
- trigger-parameterized-builds:
- project: 'post-build-reports'
property-file: post_build_reports_parameters
diff --git a/linaro-art-tip-build-MicroBenchmarks.yaml b/linaro-art-tip-build-MicroBenchmarks.yaml
index deadb0db3..cb6af4b93 100644
--- a/linaro-art-tip-build-MicroBenchmarks.yaml
+++ b/linaro-art-tip-build-MicroBenchmarks.yaml
@@ -118,38 +118,9 @@
unstable-on-warning: false
fail-on-error: false
- groovy-postbuild:
- script: |
- import hudson.model.*
- def currentBuild = Thread.currentThread().executable
- def description = ""
- def matcher = manager.getLogMatcher(".*repo sync failed.*")
- if ( matcher?.matches()) {
- manager.addShortText("repo sync failed")
- }
- matcher = manager.getLogMatcher(".*patch merge failed.*")
- if ( matcher?.matches()) {
- manager.addShortText("merge failed")
- }
- matcher = manager.getLogMatcher(".*error: no devices/emulators found.*")
- if ( matcher?.matches()) {
- manager.addShortText("No Device Found")
- }
- matcher = manager.getLogMatcher(".*buildbot-build setup failed.*")
- if ( matcher?.matches()) {
- manager.addShortText("buildbot-build setup failed.")
- }
- matcher = manager.getLogMatcher(".* tests have failed")
- if (matcher?.matches()) {
- def test = matcher.group(0).split(" ")
- manager.listener.logger.println test.length
- i=0
- while( i<test.length-3) {
- description+="${test[i]} failed<br>"
- i++;
- }
- currentBuild.setDescription(description)
- manager.addShortText("Tests failed")
- }
+ script:
+ !include-raw:
+ - linaro-art/global.groovy
- trigger-parameterized-builds:
- project: 'post-build-reports'
property-file: post_build_reports_parameters
diff --git a/linaro-art-vixl-art-host-test.yaml b/linaro-art-vixl-art-host-test.yaml
index a37b36ff6..5e9d29713 100644
--- a/linaro-art-vixl-art-host-test.yaml
+++ b/linaro-art-vixl-art-host-test.yaml
@@ -120,7 +120,10 @@
unstable-on-warning: false
fail-on-error: false
- groovy-postbuild:
- script: !include-raw: linaro-art/postbuild.groovy
+ script:
+ !include-raw:
+ - linaro-art/tests.groovy
+ - linaro-art/global.groovy
- plot:
- title: 'Sync Time'
group: 'Time Measurements'
diff --git a/linaro-art-vixl-art-target-test.yaml b/linaro-art-vixl-art-target-test.yaml
index 77553a51e..9a5b02bfe 100644
--- a/linaro-art-vixl-art-target-test.yaml
+++ b/linaro-art-vixl-art-target-test.yaml
@@ -129,4 +129,7 @@
unstable-on-warning: false
fail-on-error: false
- groovy-postbuild:
- script: !include-raw: linaro-art/postbuild.groovy
+ script:
+ !include-raw:
+ - linaro-art/tests.groovy
+ - linaro-art/global.groovy
diff --git a/linaro-art-vixl-test.yaml b/linaro-art-vixl-test.yaml
index a40269544..c211761d5 100644
--- a/linaro-art-vixl-test.yaml
+++ b/linaro-art-vixl-test.yaml
@@ -118,6 +118,10 @@
${BUILD_LOG_REGEX, regex=".*ERROR:.* ", linesBefore=0, linesAfter=0, showTruncatedLines=false}
- archive:
artifacts: '*.txt, *.xml'
+ - groovy-postbuild:
+ script:
+ !include-raw:
+ - linaro-art/global.groovy
- logparser:
parse-rules: '/var/lib/jenkins/userContent/android-art.parse'
unstable-on-warning: false
diff --git a/linaro-art-vixlpresubmit-macos.yaml b/linaro-art-vixlpresubmit-macos.yaml
index 75a0eb986..b247768c5 100644
--- a/linaro-art-vixlpresubmit-macos.yaml
+++ b/linaro-art-vixlpresubmit-macos.yaml
@@ -61,3 +61,7 @@
publishers:
- email:
recipients: 'vishal.bhoj@linaro.org daniel.diaz@linaro.org julien.duraj@linaro.org'
+ - groovy-postbuild:
+ script:
+ !include-raw:
+ - linaro-art/global.groovy
diff --git a/linaro-art-vixlpresubmit-native-armv8.yaml b/linaro-art-vixlpresubmit-native-armv8.yaml
index 81086f9cb..87bea1e12 100644
--- a/linaro-art-vixlpresubmit-native-armv8.yaml
+++ b/linaro-art-vixlpresubmit-native-armv8.yaml
@@ -67,3 +67,7 @@
publishers:
- email:
recipients: 'vishal.bhoj@linaro.org daniel.diaz@linaro.org julien.duraj@linaro.org'
+ - groovy-postbuild:
+ script:
+ !include-raw:
+ - linaro-art/global.groovy
diff --git a/linaro-art-vixlpresubmit.yaml b/linaro-art-vixlpresubmit.yaml
index b535d68c2..e9475aa4d 100644
--- a/linaro-art-vixlpresubmit.yaml
+++ b/linaro-art-vixlpresubmit.yaml
@@ -67,3 +67,7 @@
publishers:
- email:
recipients: 'vishal.bhoj@linaro.org daniel.diaz@linaro.org julien.duraj@linaro.org'
+ - groovy-postbuild:
+ script:
+ !include-raw:
+ - linaro-art/global.groovy
diff --git a/linaro-art/global.groovy b/linaro-art/global.groovy
new file mode 100644
index 000000000..500f5ee5d
--- /dev/null
+++ b/linaro-art/global.groovy
@@ -0,0 +1,4 @@
+// Issues that relate to all tests:
+if (manager.logContains(".*Unexpected termination of the channel.*")) {
+ manager.addShortText("Infrastructure problem", "black", "orange", "1px", "red")
+}
diff --git a/linaro-art/postbuild.groovy b/linaro-art/tests.groovy
index d0e0613db..d0e0613db 100644
--- a/linaro-art/postbuild.groovy
+++ b/linaro-art/tests.groovy