aboutsummaryrefslogtreecommitdiff
path: root/jdk10-jcstress-test.yaml
diff options
context:
space:
mode:
authorStuart Monteith <stuart.monteith@linaro.org>2017-05-08 10:28:10 +0100
committerStuart Monteith <stuart.monteith@linaro.org>2017-09-06 10:24:17 +0000
commitd0501ec27f31f2e820ad95ac877fd8e64fe2a586 (patch)
tree0ab454fa85e509fe36d4d09c1757874eb7e04e98 /jdk10-jcstress-test.yaml
parenta287a054b9ce0cb0805c3ce08a7ab33010a013c5 (diff)
jdk: Add jdk10 jobs
There is a JDK10 tree that needs built and tested - add the jobs. The jdk10-update-src-tree job is triggered manually until we have enough machine capacity. Change-Id: I5c72d9a80c3be1560bb1a891b47a4f3a03d8a83b
Diffstat (limited to 'jdk10-jcstress-test.yaml')
-rw-r--r--jdk10-jcstress-test.yaml112
1 files changed, 112 insertions, 0 deletions
diff --git a/jdk10-jcstress-test.yaml b/jdk10-jcstress-test.yaml
new file mode 100644
index 0000000000..7ef224b9a7
--- /dev/null
+++ b/jdk10-jcstress-test.yaml
@@ -0,0 +1,112 @@
+- job:
+ name: jdk10-jcstress-test
+ project-type: matrix
+ defaults: global
+ description: |
+ This job runs the http://openjdk.java.net/projects/code-tools/jcstress/ tests.<br>
+ <b>Note:</b> this test currently takes around <b>10 hours</b> to complete<br>
+ This project currently runs the "server" variant only due to the amount of time both tests would take to complete.
+ properties:
+ - authorization:
+ linaro:
+ - job-read
+ openjdk-members:
+ - job-extended-read
+ - job-build
+ - job-cancel
+ - build-discarder:
+ days-to-keep: 30
+ num-to-keep: 10
+ artifact-num-to-keep: 5
+ disabled: false
+ node: aarch64-06
+ display-name: 'OpenJDK 10 - Run jcstress tests'
+ parameters:
+ - string:
+ name: JCSTRESS_MODE
+ default: 'quick'
+ axes:
+ - axis:
+ type: user-defined
+ name: JVM_VARIANT
+ values:
+ - server
+ - client
+ - axis:
+ type: user-defined
+ name: BUILD_TYPE
+ values:
+ - release
+ - axis:
+ type: slave
+ name: label
+ values:
+ - aarch64-06
+ execution-strategy:
+ sequential: true
+ wrappers:
+ - workspace-cleanup:
+ dirmatch: false
+ - timestamps
+ - matrix-tie-parent:
+ node: aarch64-06
+ - timeout:
+ timeout: 900
+ builders:
+ - copyartifact:
+ project: jcstress-build
+ filter: 'tests-custom/target/jcstress.jar, tests-all/target/jcstress.jar'
+ target: incoming
+ flatten: false
+# copyartifact is slow and the file is local
+# copy instead of going back and forth between master <-> slave
+# - copyartifact:
+# project: jdk10-build-image
+# filter: 'out/jdk10-${JVM_VARIANT}-${BUILD_TYPE}.tar.gz'
+# target: incoming
+# flatten: true
+ - shell: |
+ #!/bin/bash
+
+ set -eu
+
+ TEST_TYPE=all
+
+ # client variant uses server with -XX:TieredStopAtLevel=1
+ # zero is a third possible value.
+ REAL_VARIANT=${JVM_VARIANT/client/server}
+
+ JCSTRESS_JAR=${WORKSPACE}/incoming/tests-${TEST_TYPE}/target/jcstress.jar
+ rm -rf jdk10*
+ tar xf ~/workspace/jdk10-build-image/BUILD_TYPE/${BUILD_TYPE}/JVM_VARIANT/${REAL_VARIANT}/label/${NODE_NAME}/out/jdk10-${REAL_VARIANT}-${BUILD_TYPE}.tar.gz
+ export JAVA_HOME=${WORKSPACE}/jdk10-${REAL_VARIANT}-${BUILD_TYPE}
+ export PATH=${JAVA_HOME}/bin:${PATH}
+ which java
+ java -version
+
+ # XXX Don't fail the job if jcstress itself fails.
+ set +e
+ java -jar ${JCSTRESS_JAR} -m ${JCSTRESS_MODE}
+
+ test_result=$?
+ set -e
+
+ rm -rf out
+ mkdir out
+
+ out_dirname=jcstress-results-${JVM_VARIANT}-${BUILD_TYPE}
+
+ rm -rf ${out_dirname}
+ mkdir -p ${out_dirname}
+ cp jcstress-results*.bin.gz ${out_dirname}
+ cp -a results ${out_dirname}
+
+ tar czvf out/${out_dirname}.tar.gz ${out_dirname}
+ publishers:
+ - archive:
+ artifacts: 'out/jcstress-results-*.tar.gz'
+ - html-publisher:
+ name: 'HTML Report'
+ dir: 'results'
+ files: 'index.html'
+ keep-all: true