aboutsummaryrefslogtreecommitdiff
path: root/jdkX-jcstress-test-persist-results.yaml
diff options
context:
space:
mode:
authorStuart Monteith <stuart.monteith@linaro.org>2017-11-02 11:00:29 +0000
committerStuart Monteith <stuart.monteith@linaro.org>2017-11-07 11:10:36 +0000
commit3bc3d18f6e8818f2d34c79e57efda98422f5b6ca (patch)
tree0a2aee928ac02d651e252f254725dbd25d784728 /jdkX-jcstress-test-persist-results.yaml
parent117c1bb250bb9eff295003ce60cfba72386c867b (diff)
jdk: Create OpenJDK JDK build projects.
Creates jdkX builds. These track the jdk/hs branch rather than jdk10/hs. These will be the development tree for every version of OpenJDK from now on. Change-Id: I6e2d93e7a830b22386e563dfcebf790e37f1d960
Diffstat (limited to 'jdkX-jcstress-test-persist-results.yaml')
-rw-r--r--jdkX-jcstress-test-persist-results.yaml97
1 files changed, 97 insertions, 0 deletions
diff --git a/jdkX-jcstress-test-persist-results.yaml b/jdkX-jcstress-test-persist-results.yaml
new file mode 100644
index 00000000..27260f0b
--- /dev/null
+++ b/jdkX-jcstress-test-persist-results.yaml
@@ -0,0 +1,97 @@
+- job:
+ name: jdkX-jcstress-test-persist-results
+ project-type: matrix
+ defaults: global
+ description: |
+ * Writes results to:<br>
+ * /work/openjdk-testing/jcstress-nightly-runs<br>
+ * /work/openjdk-testing/jcstress-results
+ 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
+ parameters:
+ - string:
+ name: YEAR
+ default: 'default'
+ - string:
+ name: DAY_OF_YEAR
+ default: 'default'
+ disabled: false
+ node: aarch64-06
+ display-name: 'OpenJDK JDK - Write jcstress tests results'
+ 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:
+# combination-filter: |
+# JVM_VARIANT=="server"
+ sequential: true
+ wrappers:
+ - workspace-cleanup:
+ dirmatch: false
+ - timestamps
+ - matrix-tie-parent:
+ node: aarch64-06
+ builders:
+ - copyartifact:
+ project: jdkX-update-src-tree
+ filter: 'out/build-date.sh'
+ target: incoming
+ flatten: true
+ - copyartifact:
+ project: jdkX-jcstress-test
+ filter: 'out/jcstress-results-${JVM_VARIANT}-${BUILD_TYPE}.tar.gz'
+ target: incoming
+ flatten: true
+ - shell: |
+ #!/bin/bash
+
+ set -exu
+
+ PERSIST=$HOME/srv/openjdkX
+
+ : ${YEAR:=$(date +%Y)}
+ : ${DAY_OF_YEAR:=$(date +%j)}
+
+ JCSTRESS_RUN_DIR=$PERSIST/jcstress-nightly-runs
+ JCSTRESS_RESULTS_DIR=$PERSIST/jcstress-results
+ RESULTS_CSV=${JCSTRESS_RESULTS_DIR}/results.csv
+
+ mkdir -p $JCSTRESS_RESULTS_DIR
+
+ # Tolerate missing results.csv file.
+ if [ ! -f $RESULTS_CSV ]; then
+ touch $RESULTS_CSV
+ fi
+
+ mkdir -p ${JCSTRESS_RESULTS_DIR} ${JCSTRESS_RUN_DIR}/${YEAR}/${DAY_OF_YEAR}
+ tar -C ${JCSTRESS_RUN_DIR}/${YEAR}/${DAY_OF_YEAR} --strip-components=1 -xzf incoming/BUILD_TYPE=${BUILD_TYPE},JVM_VARIANT=${JVM_VARIANT},label=${label}/jcstress-results-${JVM_VARIANT}-${BUILD_TYPE}.tar.gz
+ numeric_date=$(date +'%s' --date=$(date +'%Y-%m-%d'))
+ echo "Previous Results"
+ cat ${RESULTS_CSV}
+ echo "${numeric_date},${JCSTRESS_RUN_DIR}/${YEAR}/${DAY_OF_YEAR},success" >> ${RESULTS_CSV}
+ sort --unique --field-separator=',' --numeric-sort -o ${RESULTS_CSV} ${RESULTS_CSV}
+