aboutsummaryrefslogtreecommitdiff
path: root/jdk9-terasort-benchmark-persist-results.yaml
blob: 630b26c80f8ea4b89177e5b6920c0053dd252ed1 (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
- job:
    name: jdk9-terasort-benchmark-persist-results
    project-type: matrix
    defaults: global
    description: |
        * Writes results to /work/openjdk-testing/hadoop-terasort-benchmark-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
    disabled: true
    node: aarch64-06
    display-name: 'OpenJDK 9u - Write terasort 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:
        sequential: true
    wrappers:
        - workspace-cleanup:
            dirmatch: false
        - timestamps
        - matrix-tie-parent:
            node: aarch64-06
    builders:
        - copyartifact:
            project: jdk9-terasort-benchmark
            filter: 'out/terasort-results-${JVM_VARIANT}-${BUILD_TYPE}.csv'
            target: incoming
            flatten: true
        - shell: |
            #!/bin/bash

            set -exu

            PERSIST=$HOME/srv/openjdk9u
            export BENCHMARK_RESULTS_DIR=$PERSIST/hadoop-terasort-benchmark-results
            new_results=incoming/BUILD_TYPE=${BUILD_TYPE},JVM_VARIANT=${JVM_VARIANT},label=${label}/*.csv
            prev_results=$BENCHMARK_RESULTS_DIR/results.csv

            # Ensure persistent directory exists.
            mkdir -p $BENCHMARK_RESULTS_DIR

            # Tolerate missing results.csv file.
            if [ ! -f $prev_results ]; then
                touch $prev_results
            fi

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

            echo "Previous Results"
            echo "----------------"
            cat ${prev_results}
            echo

            cat ${new_results} >> ${prev_results}

            $SCRIPT_DIR/update-results-db