aboutsummaryrefslogtreecommitdiff
path: root/jdkX-specjbb2015-benchmark-persist-results.yaml
blob: bcff5f07d60ab56f14ce3acf1bb7c72e0ff5393a (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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
- job:
    name: jdkX-specjbb2015-benchmark-persist-results
    project-type: matrix
    defaults: global
    description: |
        * Writes the results to $HOME/srv/openjdkX/SPECjbb2015-nightly-runs.<br>
        * This job has the client axis <b>disabled</b> until there is enough build/test time available.<br>
          * If the client axis is enabled the heap size for the VM will need to be adjusted using -Xmxm
    properties:
        - authorization:
            linaro:
                - job-read
            openjdk-members:
                - 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 X - Write SPECjbb2015 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-specjbb2015-benchmark
            filter: 'out/specjbb*.gz'
            target: incoming
            flatten: true
        - shell: |
            #!/bin/bash

            tree -f .

            PERSIST=$HOME/srv/openjdkX
            TOP_DIR=$PERSIST
            export SPECJBB_PRODUCT_HOME=$PERSIST/SPECjbb2015
            mkdir -p $TOP_DIR

            SCRIPT_DIR=$PERSIST/specjbb-test-scripts
            if [ -d $SCRIPT_DIR ]; then
                (cd $SCRIPT_DIR; git pull)
            else
                git clone https://git.linaro.org/leg/openjdk/specjbb-test-scripts.git $SCRIPT_DIR
            fi

            source $SCRIPT_DIR/common.sh

            # Ensure nightly results dir exists.
            mkdir -p $SPECJBB_EXPANDED_RESULTS_DIR

            echo "Previous Results"
            cat ${RESULTS_CSV}
            set -eux
            result_tarball=${WORKSPACE}/incoming/BUILD_TYPE=${BUILD_TYPE},JVM_VARIANT=${JVM_VARIANT},label=${label}/specjbb-result-${JVM_VARIANT}-${BUILD_TYPE}.tar.gz
            [ -e $result_tarball ] || exit 1
            tar -C ${SPECJBB_EXPANDED_RESULTS_DIR} -xf $result_tarball
            cp incoming/BUILD_TYPE=${BUILD_TYPE},JVM_VARIANT=${JVM_VARIANT},label=${label}/*.data.gz ${SPECJBB_EXPANDED_RESULTS_DIR}
            pushd ${SPECJBB_EXPANDED_RESULTS_DIR}
            echo "Updating ${RESULTS_CSV}"
            $SCRIPT_DIR/update-results-csv -- --verbose --output=${RESULTS_CSV}