aboutsummaryrefslogtreecommitdiff
path: root/jdk8-jcstress-test-persist-results.yaml
blob: 2e5d69b37a543b6b28a05999c5c18feaf7cac6da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
- job:
    name: jdk8-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
    logrotate:
        numToKeep: 10
    properties:
        - authorization:
            linaro:
                - job-read
    disabled: false
    node: aarch64-06
    display-name: 'OpenJDK 8 - Write jcstress tests results'
    axes:
        - axis:
            type: user-defined
            name: JVM_VARIANT
            values:
                - server
#                - client
        - axis:
            type: user-defined
            name: BUILD_TYPE
            values:
                - release
    execution-strategy:
#        combination-filter: |
#            JVM_VARIANT=="server"
        sequential: true
    wrappers:
        - workspace-cleanup:
            dirmatch: false
        - timestamps
        - matrix-tie-parent:
            node: aarch64-06
    builders:
        - copyartifact:
            project: jdk8-update-src-tree
            filter: 'out/build-date.sh'
            target: incoming
            flatten: true
        - copyartifact:
            project: jdk8-jcstress-test
            filter: 'out/jcstress-results-${JVM_VARIANT}-${BUILD_TYPE}.tar.gz'
            target: incoming
            flatten: true
        - shell: |
            #!/bin/bash

            set -exu

            : ${YEAR:=$(date +%Y)}
            : ${DAY_OF_YEAR:=$(date +%j)}

            JCSTRESS_RUN_DIR=~openjdk-testing/jcstress-nightly-runs
            JCSTRESS_RESULTS_DIR=~openjdk-testing/jcstress-results
            RESULTS_CSV=${JCSTRESS_RESULTS_DIR}/results.csv
            mkdir -p ${JCSTRESS_RESULTS_DIR} ${JCSTRESS_RUN_DIR}/${YEAR}/${DAY_OF_YEAR}
            tar -C ${JCSTRESS_RUN_DIR}/${YEAR}/${DAY_OF_YEAR} --strip-components=1 -xf incoming/BUILD_TYPE=${BUILD_TYPE},JVM_VARIANT=${JVM_VARIANT}/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}