blob: 0bce6f4e0ec6ecbacb2bcc24b06e2751dc1371e6 (
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
|
- job:
name: jdkX-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: false
node: j12-qrep-01
display-name: 'OpenJDK JDK - Write terasort 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: jdkX-terasort-benchmark
filter: 'out/terasort-results-${BUILD_TYPE}.csv'
target: incoming
flatten: true
- shell: |
#!/bin/bash
set -exu
PERSIST=$HOME/srv/openjdkX
export BENCHMARK_RESULTS_DIR=$PERSIST/hadoop-terasort-benchmark-results
new_results=incoming/BUILD_TYPE=${BUILD_TYPE},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
|