diff options
author | Stuart Monteith <stuart.monteith@linaro.org> | 2019-06-13 17:15:03 +0100 |
---|---|---|
committer | Stuart Monteith <stuart.monteith@linaro.org> | 2019-06-14 12:51:24 +0100 |
commit | 25fea7e008e1425a06c356364b59a1b6c2752d2e (patch) | |
tree | 4f0892b8e5cd995c49dc5dc3ad997d8d2a304891 /jdk13-jcstress-test-persist-results.yaml | |
parent | 9c6685bfb4355df68c8b2545ac2c9e4bd278bb92 (diff) |
Create JDK13 jobs
Change-Id: Ic5427c610c621fa1b6f8f3b2484dfc38aa2c8376
Diffstat (limited to 'jdk13-jcstress-test-persist-results.yaml')
-rw-r--r-- | jdk13-jcstress-test-persist-results.yaml | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/jdk13-jcstress-test-persist-results.yaml b/jdk13-jcstress-test-persist-results.yaml new file mode 100644 index 0000000000..98b47051a5 --- /dev/null +++ b/jdk13-jcstress-test-persist-results.yaml @@ -0,0 +1,89 @@ +- job: + name: jdk13-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: j12-qrep-01 + display-name: 'OpenJDK 13 - Write jcstress tests results' + axes: + - axis: + type: user-defined + name: BUILD_TYPE + values: + - release + - axis: + type: slave + name: label + values: + - j12-qrep-01 + execution-strategy: + sequential: true + wrappers: + - workspace-cleanup: + dirmatch: false + - timestamps + - matrix-tie-parent: + node: j12-qrep-01 + builders: + - copyartifact: + project: jdk13-update-src-tree + filter: 'out/build-date.sh' + target: incoming + flatten: true + - copyartifact: + project: jdk13-jcstress-test + filter: 'out/jcstress-results-${BUILD_TYPE}.tar.gz' + target: incoming + flatten: true + - shell: | + #!/bin/bash + + set -exu + + PERSIST=$HOME/srv/openjdk13 + + : ${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},label=${label}/jcstress-results-${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} + |