OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 | 5 |
6 # Recipe module for Skia Swarming test. | 6 # Recipe module for Skia Swarming test. |
7 | 7 |
8 | 8 |
9 DEPS = [ | 9 DEPS = [ |
10 'recipe_engine/json', | 10 'recipe_engine/json', |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 api.properties(buildername=builder, | 78 api.properties(buildername=builder, |
79 mastername=mastername, | 79 mastername=mastername, |
80 slavename=slavename, | 80 slavename=slavename, |
81 buildnumber=5, | 81 buildnumber=5, |
82 revision='abc123', | 82 revision='abc123', |
83 swarm_out_dir='[SWARM_OUT_DIR]') + | 83 swarm_out_dir='[SWARM_OUT_DIR]') + |
84 api.path.exists( | 84 api.path.exists( |
85 api.path['slave_build'].join('skia'), | 85 api.path['slave_build'].join('skia'), |
86 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', | 86 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', |
87 'skimage', 'VERSION'), | 87 'skimage', 'VERSION'), |
| 88 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', |
| 89 'skp', 'VERSION'), |
88 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') | 90 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') |
89 ) | 91 ) |
90 ) | 92 ) |
91 if ('Android' in builder and | 93 if ('Android' in builder and |
92 ('Test' in builder or 'Perf' in builder) and | 94 ('Test' in builder or 'Perf' in builder) and |
93 not 'Appurify' in builder): | 95 not 'Appurify' in builder): |
94 test += AndroidTestData(builder) | 96 test += AndroidTestData(builder) |
95 if 'Trybot' in builder: | 97 if 'Trybot' in builder: |
96 test += api.properties(issue=500, | 98 test += api.properties(issue=500, |
97 patchset=1, | 99 patchset=1, |
(...skipping 10 matching lines...) Expand all Loading... |
108 api.properties(buildername=builder, | 110 api.properties(buildername=builder, |
109 mastername='client.skia', | 111 mastername='client.skia', |
110 slavename='skiabot-linux-swarm-000', | 112 slavename='skiabot-linux-swarm-000', |
111 buildnumber=6, | 113 buildnumber=6, |
112 revision='abc123', | 114 revision='abc123', |
113 swarm_out_dir='[SWARM_OUT_DIR]') + | 115 swarm_out_dir='[SWARM_OUT_DIR]') + |
114 api.path.exists( | 116 api.path.exists( |
115 api.path['slave_build'].join('skia'), | 117 api.path['slave_build'].join('skia'), |
116 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', | 118 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', |
117 'skimage', 'VERSION'), | 119 'skimage', 'VERSION'), |
| 120 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', |
| 121 'skp', 'VERSION'), |
118 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') | 122 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') |
119 ) + | 123 ) + |
120 api.step_data('dm', retcode=1) | 124 api.step_data('dm', retcode=1) |
121 ) | 125 ) |
122 | 126 |
123 builder = 'Test-Android-GCC-Nexus7-GPU-Tegra3-Arm7-Debug' | 127 builder = 'Test-Android-GCC-Nexus7-GPU-Tegra3-Arm7-Debug' |
124 yield ( | 128 yield ( |
125 api.test('failed_get_hashes') + | 129 api.test('failed_get_hashes') + |
126 api.properties(buildername=builder, | 130 api.properties(buildername=builder, |
127 mastername='client.skia', | 131 mastername='client.skia', |
128 slavename='skiabot-linux-swarm-000', | 132 slavename='skiabot-linux-swarm-000', |
129 buildnumber=6, | 133 buildnumber=6, |
130 revision='abc123', | 134 revision='abc123', |
131 swarm_out_dir='[SWARM_OUT_DIR]') + | 135 swarm_out_dir='[SWARM_OUT_DIR]') + |
132 api.path.exists( | 136 api.path.exists( |
133 api.path['slave_build'].join('skia'), | 137 api.path['slave_build'].join('skia'), |
134 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', | 138 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', |
135 'skimage', 'VERSION'), | 139 'skimage', 'VERSION'), |
| 140 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', |
| 141 'skp', 'VERSION'), |
136 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') | 142 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') |
137 ) + | 143 ) + |
138 AndroidTestData(builder) + | 144 AndroidTestData(builder) + |
139 api.step_data('read SKP_VERSION', | 145 api.step_data('read SKP_VERSION', |
140 stdout=api.raw_io.output('42')) + | 146 stdout=api.raw_io.output('42')) + |
141 api.step_data('read SK_IMAGE_VERSION', | 147 api.step_data('read SK_IMAGE_VERSION', |
142 stdout=api.raw_io.output('42')) + | 148 stdout=api.raw_io.output('42')) + |
143 api.step_data('get uninteresting hashes', retcode=1) | 149 api.step_data('get uninteresting hashes', retcode=1) |
144 ) | 150 ) |
145 | 151 |
146 yield ( | 152 yield ( |
147 api.test('download_and_push_skps') + | 153 api.test('download_and_push_skps') + |
148 api.properties(buildername=builder, | 154 api.properties(buildername=builder, |
149 mastername='client.skia', | 155 mastername='client.skia', |
150 slavename='skiabot-linux-swarm-000', | 156 slavename='skiabot-linux-swarm-000', |
151 buildnumber=6, | 157 buildnumber=6, |
152 revision='abc123', | 158 revision='abc123', |
153 swarm_out_dir='[SWARM_OUT_DIR]') + | 159 swarm_out_dir='[SWARM_OUT_DIR]') + |
154 api.path.exists( | 160 api.path.exists( |
155 api.path['slave_build'].join('skia'), | 161 api.path['slave_build'].join('skia'), |
156 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', | 162 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', |
157 'skimage', 'VERSION'), | 163 'skimage', 'VERSION'), |
| 164 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', |
| 165 'skp', 'VERSION'), |
158 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') | 166 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') |
159 ) + | 167 ) + |
160 AndroidTestData(builder) + | 168 AndroidTestData(builder) + |
161 api.step_data('read SKP_VERSION', | 169 api.step_data('read SKP_VERSION', |
162 stdout=api.raw_io.output('2')) + | 170 stdout=api.raw_io.output('2')) + |
163 api.step_data('read SK_IMAGE_VERSION', | 171 api.step_data('read SK_IMAGE_VERSION', |
164 stdout=api.raw_io.output('42')) + | 172 stdout=api.raw_io.output('42')) + |
165 api.step_data( | 173 api.step_data( |
166 'exists skps', | 174 'exists skps', |
167 stdout=api.raw_io.output('')) | 175 stdout=api.raw_io.output('')) |
168 ) | 176 ) |
169 | 177 |
170 yield ( | 178 yield ( |
171 api.test('missing_SKP_VERSION_device') + | 179 api.test('missing_SKP_VERSION_device') + |
172 api.properties(buildername=builder, | 180 api.properties(buildername=builder, |
173 mastername='client.skia', | 181 mastername='client.skia', |
174 slavename='skiabot-linux-swarm-000', | 182 slavename='skiabot-linux-swarm-000', |
175 buildnumber=6, | 183 buildnumber=6, |
176 revision='abc123', | 184 revision='abc123', |
177 swarm_out_dir='[SWARM_OUT_DIR]') + | 185 swarm_out_dir='[SWARM_OUT_DIR]') + |
178 api.path.exists( | 186 api.path.exists( |
179 api.path['slave_build'].join('skia'), | 187 api.path['slave_build'].join('skia'), |
180 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', | 188 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', |
181 'skimage', 'VERSION'), | 189 'skimage', 'VERSION'), |
| 190 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', |
| 191 'skp', 'VERSION'), |
182 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') | 192 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') |
183 ) + | 193 ) + |
184 AndroidTestData(builder) + | 194 AndroidTestData(builder) + |
185 api.step_data('read SKP_VERSION', | 195 api.step_data('read SKP_VERSION', |
186 retcode=1) + | 196 retcode=1) + |
187 api.step_data('read SK_IMAGE_VERSION', | 197 api.step_data('read SK_IMAGE_VERSION', |
188 stdout=api.raw_io.output('42')) + | 198 stdout=api.raw_io.output('42')) + |
189 api.step_data( | 199 api.step_data( |
190 'exists skps', | 200 'exists skps', |
191 stdout=api.raw_io.output('')) | 201 stdout=api.raw_io.output('')) |
192 ) | 202 ) |
193 | 203 |
194 yield ( | 204 yield ( |
195 api.test('download_and_push_skimage') + | 205 api.test('download_and_push_skimage') + |
196 api.properties(buildername=builder, | 206 api.properties(buildername=builder, |
197 mastername='client.skia', | 207 mastername='client.skia', |
198 slavename='skiabot-linux-swarm-000', | 208 slavename='skiabot-linux-swarm-000', |
199 buildnumber=6, | 209 buildnumber=6, |
200 revision='abc123', | 210 revision='abc123', |
201 swarm_out_dir='[SWARM_OUT_DIR]') + | 211 swarm_out_dir='[SWARM_OUT_DIR]') + |
202 api.path.exists( | 212 api.path.exists( |
203 api.path['slave_build'].join('skia'), | 213 api.path['slave_build'].join('skia'), |
204 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', | 214 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', |
205 'skimage', 'VERSION'), | 215 'skimage', 'VERSION'), |
| 216 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', |
| 217 'skp', 'VERSION'), |
206 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') | 218 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') |
207 ) + | 219 ) + |
208 AndroidTestData(builder) + | 220 AndroidTestData(builder) + |
209 api.step_data('read SKP_VERSION', | 221 api.step_data('read SKP_VERSION', |
210 stdout=api.raw_io.output('42')) + | 222 stdout=api.raw_io.output('42')) + |
211 api.step_data('read SK_IMAGE_VERSION', | 223 api.step_data('read SK_IMAGE_VERSION', |
212 stdout=api.raw_io.output('2')) + | 224 stdout=api.raw_io.output('2')) + |
213 api.step_data( | 225 api.step_data( |
214 'exists skia_images', | 226 'exists skia_images', |
215 stdout=api.raw_io.output('')) | 227 stdout=api.raw_io.output('')) |
216 ) | 228 ) |
217 | 229 |
218 yield ( | 230 yield ( |
219 api.test('missing_SK_IMAGE_VERSION_device') + | 231 api.test('missing_SK_IMAGE_VERSION_device') + |
220 api.properties(buildername=builder, | 232 api.properties(buildername=builder, |
221 mastername='client.skia', | 233 mastername='client.skia', |
222 slavename='skiabot-linux-swarm-000', | 234 slavename='skiabot-linux-swarm-000', |
223 buildnumber=6, | 235 buildnumber=6, |
224 revision='abc123', | 236 revision='abc123', |
225 swarm_out_dir='[SWARM_OUT_DIR]') + | 237 swarm_out_dir='[SWARM_OUT_DIR]') + |
226 api.path.exists( | 238 api.path.exists( |
227 api.path['slave_build'].join('skia'), | 239 api.path['slave_build'].join('skia'), |
228 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', | 240 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', |
229 'skimage', 'VERSION'), | 241 'skimage', 'VERSION'), |
| 242 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', |
| 243 'skp', 'VERSION'), |
230 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') | 244 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') |
231 ) + | 245 ) + |
232 AndroidTestData(builder) + | 246 AndroidTestData(builder) + |
233 api.step_data('read SKP_VERSION', | 247 api.step_data('read SKP_VERSION', |
234 stdout=api.raw_io.output('42')) + | 248 stdout=api.raw_io.output('42')) + |
235 api.step_data('read SK_IMAGE_VERSION', | 249 api.step_data('read SK_IMAGE_VERSION', |
236 retcode=1) + | 250 retcode=1) + |
237 api.step_data( | 251 api.step_data( |
238 'exists skia_images', | 252 'exists skia_images', |
239 stdout=api.raw_io.output('')) | 253 stdout=api.raw_io.output('')) |
240 ) | 254 ) |
241 | 255 |
242 yield ( | 256 yield ( |
243 api.test('adb_in_path') + | 257 api.test('adb_in_path') + |
244 api.properties(buildername=builder, | 258 api.properties(buildername=builder, |
245 mastername='client.skia', | 259 mastername='client.skia', |
246 slavename='skiabot-linux-swarm-000', | 260 slavename='skiabot-linux-swarm-000', |
247 buildnumber=6, | 261 buildnumber=6, |
248 revision='abc123', | 262 revision='abc123', |
249 swarm_out_dir='[SWARM_OUT_DIR]') + | 263 swarm_out_dir='[SWARM_OUT_DIR]') + |
250 api.path.exists( | 264 api.path.exists( |
251 api.path['slave_build'].join('skia'), | 265 api.path['slave_build'].join('skia'), |
252 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', | 266 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', |
253 'skimage', 'VERSION'), | 267 'skimage', 'VERSION'), |
| 268 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', |
| 269 'skp', 'VERSION'), |
254 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') | 270 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') |
255 ) + | 271 ) + |
256 AndroidTestData(builder, adb='/usr/bin/adb') + | 272 AndroidTestData(builder, adb='/usr/bin/adb') + |
257 api.step_data('read SKP_VERSION', | 273 api.step_data('read SKP_VERSION', |
258 stdout=api.raw_io.output('42')) + | 274 stdout=api.raw_io.output('42')) + |
259 api.step_data('read SK_IMAGE_VERSION', | 275 api.step_data('read SK_IMAGE_VERSION', |
260 stdout=api.raw_io.output('42')) | 276 stdout=api.raw_io.output('42')) |
261 ) | 277 ) |
262 | 278 |
263 builder = 'Test-Win8-MSVC-ShuttleB-CPU-AVX2-x86_64-Release-Trybot' | 279 builder = 'Test-Win8-MSVC-ShuttleB-CPU-AVX2-x86_64-Release-Trybot' |
264 yield ( | 280 yield ( |
265 api.test('big_issue_number') + | 281 api.test('big_issue_number') + |
266 api.properties(buildername=builder, | 282 api.properties(buildername=builder, |
267 mastername='client.skia.compile', | 283 mastername='client.skia.compile', |
268 slavename='skiabot-linux-swarm-000', | 284 slavename='skiabot-linux-swarm-000', |
269 buildnumber=5, | 285 buildnumber=5, |
270 revision='abc123', | 286 revision='abc123', |
271 swarm_out_dir='[SWARM_OUT_DIR]', | 287 swarm_out_dir='[SWARM_OUT_DIR]', |
272 rietveld='https://codereview.chromium.org', | 288 rietveld='https://codereview.chromium.org', |
273 patchset=1, | 289 patchset=1, |
274 issue=2147533002L) + | 290 issue=2147533002L) + |
275 api.path.exists( | 291 api.path.exists( |
276 api.path['slave_build'].join('skia'), | 292 api.path['slave_build'].join('skia'), |
277 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', | 293 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', |
278 'skimage', 'VERSION'), | 294 'skimage', 'VERSION'), |
| 295 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', |
| 296 'skp', 'VERSION'), |
279 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') | 297 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') |
280 ) + | 298 ) + |
281 api.platform('win', 64) | 299 api.platform('win', 64) |
282 ) | 300 ) |
283 | 301 |
284 builder = 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug' | 302 builder = 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug' |
285 yield ( | 303 yield ( |
286 api.test('legacy_skimage_version') + | 304 api.test('legacy_skimage_version') + |
287 api.properties(buildername=builder, | 305 api.properties(buildername=builder, |
288 mastername='client.skia', | 306 mastername='client.skia', |
289 slavename='skiabot-linux-swarm-000', | 307 slavename='skiabot-linux-swarm-000', |
290 buildnumber=6, | 308 buildnumber=6, |
291 revision='abc123', | 309 revision='abc123', |
292 swarm_out_dir='[SWARM_OUT_DIR]') + | 310 swarm_out_dir='[SWARM_OUT_DIR]') + |
293 api.path.exists( | 311 api.path.exists( |
294 api.path['slave_build'].join('skia'), | 312 api.path['slave_build'].join('skia'), |
| 313 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', |
| 314 'skp', 'VERSION'), |
295 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') | 315 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') |
296 ) | 316 ) |
297 ) | 317 ) |
| 318 |
| 319 yield ( |
| 320 api.test('legacy_skp_version') + |
| 321 api.properties(buildername=builder, |
| 322 mastername='client.skia', |
| 323 slavename='skiabot-linux-swarm-000', |
| 324 buildnumber=6, |
| 325 revision='abc123', |
| 326 swarm_out_dir='[SWARM_OUT_DIR]') + |
| 327 api.path.exists( |
| 328 api.path['slave_build'].join('skia'), |
| 329 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', |
| 330 'skimage', 'VERSION'), |
| 331 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') |
| 332 ) |
| 333 ) |
OLD | NEW |