blob: 3b8ecc21c4632eb805981b65765d8817094b07f9 (
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
|
- job:
name: art-tip-build-nexus5x-microbenchmarks
project-type: freestyle
defaults: global
properties:
- authorization:
anonymous:
- job-discover
linaro-android-builders:
- job-read
- job-extended-read
- job-workspace
linaro-art:
- job-build
- job-read
- job-extended-read
- job-workspace
- build-discarder:
days-to-keep: 60
num-to-keep: 60
parameters:
- string:
name: BUILD_CONFIG_REPO
default: 'git://android.git.linaro.org/android-build-configs.git'
- string:
name: BUILD_CONFIG_BRANCH
default: 'master'
- string:
name: BUILD_CONFIG_FILENAME
default: 'linaro-art-tip-nexus5x'
- string:
name: ART_URL
default: 'https://art-reports.linaro.org/api/'
- password:
name: ART_TOKEN
default: ${ART_TOKEN}
- password:
name: PRIVATE_KEY
default: ${PRIVATE_KEY}
disabled: false
node: docker-utopic-art
display-name: 'ART - Tip - Nexus 5X Microbenchmarks'
concurrent: true
triggers:
- gerrit:
server-name: dev-private-review.linaro.org
trigger-on:
- comment-added-contains-event:
comment-contains-value: '.*IncludeAllTests.*'
projects:
- project-compare-type: 'PLAIN'
project-pattern: 'linaro-art/platform/build'
branches:
- branch-pattern: 'master'
- project-compare-type: 'PLAIN'
project-pattern: 'linaro-art/platform/art'
branches:
- branch-pattern: 'master'
- project-compare-type: 'PLAIN'
project-pattern: 'linaro-art/platform/external/vixl'
branches:
- branch-pattern: 'master'
- gerrit:
server-name: 'dev-private-review.linaro.org'
trigger-on:
- change-merged-event
projects:
- project-compare-type: 'PLAIN'
project-pattern: 'linaro-art/platform/art'
branches:
- branch-pattern: 'master'
wrappers:
- timestamps
- timeout:
timeout: 500
builders:
- linaro-publish-token
- shell: |
#!/bin/bash
rm -rf art-build-tests build-configs android
git clone git://git.linaro.org/people/daniel.diaz/art-build-tests.sh.git art-build-tests
git clone http://android.git.linaro.org/git/android-build-configs.git build-configs
git clone https://github.com/mwasilew/art-db-client.git pba
cd art-build-tests
. ./setup-host.sh
. ./build.sh
PUB_DEST=/android/$JOB_NAME/$BUILD_NUMBER
cat > out/target/product/bullhead/BUILD-INFO.txt << EOF
Format-Version: 0.5
Files-Pattern: *
License-Type: protected
Auth-Groups: linaro-art
EOF
time linaro-cp.py \
--manifest \
--no-build-info \
--split-job-owner \
out/target/product/*/ $PUB_DEST \
--include "^[^/]+[._](img[^/]*|tar[^/]*|xml|sh|config)$" \
--include "^[BHi][^/]+txt$" \
--include "^(MANIFEST|MD5SUMS)$"
# Construct post-build-lava parameters
if [ -f build-configs/${BUILD_CONFIG_FILENAME} ]; then
source build-configs/${BUILD_CONFIG_FILENAME}
else
echo "No config file named ${BUILD_CONFIG_FILENAME} exists"
echo "in android-build-configs.git"
exit 1
fi
cat << EOF > ${WORKSPACE}/post_build_lava_parameters
CUSTOM_JSON_URL=https://git.linaro.org/qa/test-plans.git/blob_plain/refs/heads/master:/android/nexus5x/nexus5x-ubenchmarks-32bit-a53.json
DEVICE_TYPE=${LAVA_DEVICE_TYPE:-${TARGET_PRODUCT}}
TARGET_PRODUCT=${TARGET_PRODUCT}
MAKE_TARGETS=droidcore
JOB_NAME=${JOB_NAME}
BUILD_NUMBER=${BUILD_NUMBER}
BUILD_URL=${BUILD_URL}
LAVA_SERVER=validation.linaro.org/RPC2/
LAVA_STREAM=${BUNDLE_STREAM_NAME}
BUNDLE_STREAM_NAME=${BUNDLE_STREAM_NAME}
FRONTEND_JOB_NAME=${JOB_NAME}
EOF
- trigger-builds:
- project: 'post-build-lava'
property-file: post_build_lava_parameters
block: true
- shell: |
sed -i "s#CUSTOM_JSON_URL=.*#CUSTOM_JSON_URL=https://git.linaro.org/qa/test-plans.git/blob_plain/refs/heads/master:/android/nexus5x/nexus5x-ubenchmarks-32bit-a57.json#g" ${WORKSPACE}/post_build_lava_parameters
- trigger-builds:
- project: 'post-build-lava'
property-file: post_build_lava_parameters
block: true
- shell: |
sed -i "s#CUSTOM_JSON_URL=.*#CUSTOM_JSON_URL=https://git.linaro.org/qa/test-plans.git/blob_plain/refs/heads/master:/android/nexus5x/nexus5x-ubenchmarks-64bit-a53.json#g" ${WORKSPACE}/post_build_lava_parameters
- trigger-builds:
- project: 'post-build-lava'
property-file: post_build_lava_parameters
block: true
- shell: |
sed -i "s#CUSTOM_JSON_URL=.*#CUSTOM_JSON_URL=https://git.linaro.org/qa/test-plans.git/blob_plain/refs/heads/master:/android/nexus5x/nexus5x-ubenchmarks-64bit-a57.json#g" ${WORKSPACE}/post_build_lava_parameters
- trigger-builds:
- project: 'post-build-lava'
property-file: post_build_lava_parameters
block: true
- shell: |
python ./pba/jenkins.py
echo "Build finished"
publishers:
- archive:
artifacts: '*.txt, *.xml'
- logparser:
parse-rules: '/var/lib/jenkins/userContent/android-art.parse'
unstable-on-warning: false
fail-on-error: false
- groovy-postbuild:
script: |
import hudson.model.*
def matcher = manager.getLogMatcher(".*repo sync failed.*")
if ( matcher?.matches()) {
manager.addShortText("repo sync failed")
}
matcher = manager.getLogMatcher(".*patch merge failed.*")
if ( matcher?.matches()) {
manager.addShortText("merge failed")
}
matcher = manager.getLogMatcher(".*make failed.*")
if ( matcher?.matches()) {
manager.addShortText("make failed")
}
matcher = manager.getLogMatcher(".*images failed to boot.*")
if ( matcher?.matches()) {
manager.addShortText("Boot test failed")
}
- plot:
- title: 'Sync Time'
group: 'Time Measurements'
yaxis: 'Seconds'
style: line
series:
- file: repo_time.txt
format: properties
- title: 'Build Time'
group: 'Time Measurements'
yaxis: 'Seconds'
style: line
series:
- file: make_time.txt
format: properties
|