OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 builders. | 6 # Recipe module for Skia builders. |
7 | 7 |
8 | 8 |
9 DEPS = [ | 9 DEPS = [ |
10 'depot_tools/infra_paths', | |
11 'recipe_engine/json', | 10 'recipe_engine/json', |
12 'recipe_engine/path', | 11 'recipe_engine/path', |
13 'recipe_engine/platform', | 12 'recipe_engine/platform', |
14 'recipe_engine/properties', | 13 'recipe_engine/properties', |
15 'recipe_engine/raw_io', | 14 'recipe_engine/raw_io', |
16 'skia', | 15 'skia', |
17 ] | 16 ] |
18 | 17 |
19 | 18 |
20 TEST_BUILDERS = { | 19 TEST_BUILDERS = { |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 for mastername, slaves in TEST_BUILDERS.iteritems(): | 103 for mastername, slaves in TEST_BUILDERS.iteritems(): |
105 for slavename, builders_by_slave in slaves.iteritems(): | 104 for slavename, builders_by_slave in slaves.iteritems(): |
106 for builder in builders_by_slave: | 105 for builder in builders_by_slave: |
107 test = ( | 106 test = ( |
108 api.test(builder) + | 107 api.test(builder) + |
109 api.properties(buildername=builder, | 108 api.properties(buildername=builder, |
110 mastername=mastername, | 109 mastername=mastername, |
111 slavename=slavename, | 110 slavename=slavename, |
112 buildnumber=5, | 111 buildnumber=5, |
113 revision='abc123') + | 112 revision='abc123') + |
114 api.infra_paths.exists( | 113 api.path.exists( |
115 api.infra_paths['slave_build'].join('skia'), | 114 api.path['slave_build'].join('skia'), |
116 api.infra_paths['slave_build'].join('tmp', 'uninteresting_hashes.t
xt') | 115 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') |
117 ) | 116 ) |
118 ) | 117 ) |
119 if 'Android' in builder: | 118 if 'Android' in builder: |
120 ccache = '/usr/bin/ccache' if 'Appurify' in builder else None | 119 ccache = '/usr/bin/ccache' if 'Appurify' in builder else None |
121 test += api.step_data('has ccache?', | 120 test += api.step_data('has ccache?', |
122 stdout=api.json.output({'ccache':ccache})) | 121 stdout=api.json.output({'ccache':ccache})) |
123 if ('Android' in builder and | 122 if ('Android' in builder and |
124 ('Test' in builder or 'Perf' in builder) and | 123 ('Test' in builder or 'Perf' in builder) and |
125 not 'Appurify' in builder): | 124 not 'Appurify' in builder): |
126 test += AndroidTestData(builder) | 125 test += AndroidTestData(builder) |
127 if 'ChromeOS' in builder: | 126 if 'ChromeOS' in builder: |
128 test += api.step_data('read SKP_VERSION', | 127 test += api.step_data('read SKP_VERSION', |
129 stdout=api.raw_io.output('42')) | 128 stdout=api.raw_io.output('42')) |
130 test += api.step_data('read SK_IMAGE_VERSION', | 129 test += api.step_data('read SK_IMAGE_VERSION', |
131 stdout=api.raw_io.output('42')) | 130 stdout=api.raw_io.output('42')) |
132 if 'Trybot' in builder: | 131 if 'Trybot' in builder: |
133 test += api.properties(issue=500, | 132 test += api.properties(issue=500, |
134 patchset=1, | 133 patchset=1, |
135 rietveld='https://codereview.chromium.org') | 134 rietveld='https://codereview.chromium.org') |
136 if 'Win' in builder and 'Swarming' not in builder: | 135 if 'Win' in builder and 'Swarming' not in builder: |
137 test += api.platform('win', 64) | 136 test += api.platform('win', 64) |
138 if builder == 'Build-Win-MSVC-x86-Debug-VS2015': | 137 if builder == 'Build-Win-MSVC-x86-Debug-VS2015': |
139 test += api.infra_paths.exists( | 138 test += api.path.exists( |
140 api.infra_paths['slave_build'].join('skia', 'infra', 'bots', | 139 api.path['slave_build'].join('skia', 'infra', 'bots', |
141 'win_toolchain_hash.json')) | 140 'win_toolchain_hash.json')) |
142 test += api.step_data('Get downloaded WIN_TOOLCHAIN_HASH', | 141 test += api.step_data('Get downloaded WIN_TOOLCHAIN_HASH', |
143 retcode=1) | 142 retcode=1) |
144 | 143 |
145 yield test | 144 yield test |
146 | 145 |
147 builder = 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug' | 146 builder = 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug' |
148 yield ( | 147 yield ( |
149 api.test('failed_dm') + | 148 api.test('failed_dm') + |
150 api.properties(buildername=builder, | 149 api.properties(buildername=builder, |
(...skipping 25 matching lines...) Expand all Loading... |
176 revision='abc123') + | 175 revision='abc123') + |
177 api.step_data( | 176 api.step_data( |
178 'has ccache?', | 177 'has ccache?', |
179 stdout=api.json.output({'ccache':None})) + | 178 stdout=api.json.output({'ccache':None})) + |
180 AndroidTestData(builder) + | 179 AndroidTestData(builder) + |
181 api.step_data('read SKP_VERSION', | 180 api.step_data('read SKP_VERSION', |
182 stdout=api.raw_io.output('42')) + | 181 stdout=api.raw_io.output('42')) + |
183 api.step_data('read SK_IMAGE_VERSION', | 182 api.step_data('read SK_IMAGE_VERSION', |
184 stdout=api.raw_io.output('42')) + | 183 stdout=api.raw_io.output('42')) + |
185 api.step_data('get uninteresting hashes', retcode=1) + | 184 api.step_data('get uninteresting hashes', retcode=1) + |
186 api.infra_paths.exists( | 185 api.path.exists( |
187 api.infra_paths['slave_build'].join('skia'), | 186 api.path['slave_build'].join('skia'), |
188 api.infra_paths['slave_build'].join('tmp', 'uninteresting_hashes.txt') | 187 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') |
189 ) | 188 ) |
190 ) | 189 ) |
191 | 190 |
192 yield ( | 191 yield ( |
193 api.test('download_and_push_skps') + | 192 api.test('download_and_push_skps') + |
194 api.properties(buildername=builder, | 193 api.properties(buildername=builder, |
195 mastername=master, | 194 mastername=master, |
196 slavename=slave, | 195 slavename=slave, |
197 buildnumber=6, | 196 buildnumber=6, |
198 revision='abc123', | 197 revision='abc123', |
199 test_downloaded_skp_version='2') + | 198 test_downloaded_skp_version='2') + |
200 api.step_data( | 199 api.step_data( |
201 'has ccache?', | 200 'has ccache?', |
202 stdout=api.json.output({'ccache':None})) + | 201 stdout=api.json.output({'ccache':None})) + |
203 AndroidTestData(builder) + | 202 AndroidTestData(builder) + |
204 api.step_data('read SKP_VERSION', | 203 api.step_data('read SKP_VERSION', |
205 stdout=api.raw_io.output('2')) + | 204 stdout=api.raw_io.output('2')) + |
206 api.step_data('read SK_IMAGE_VERSION', | 205 api.step_data('read SK_IMAGE_VERSION', |
207 stdout=api.raw_io.output('42')) + | 206 stdout=api.raw_io.output('42')) + |
208 api.step_data( | 207 api.step_data( |
209 'exists skps', | 208 'exists skps', |
210 stdout=api.raw_io.output('')) + | 209 stdout=api.raw_io.output('')) + |
211 api.infra_paths.exists( | 210 api.path.exists( |
212 api.infra_paths['slave_build'].join('skia'), | 211 api.path['slave_build'].join('skia'), |
213 api.infra_paths['slave_build'].join('tmp', 'uninteresting_hashes.txt') | 212 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') |
214 ) | 213 ) |
215 ) | 214 ) |
216 | 215 |
217 yield ( | 216 yield ( |
218 api.test('missing_SKP_VERSION_device') + | 217 api.test('missing_SKP_VERSION_device') + |
219 api.properties(buildername=builder, | 218 api.properties(buildername=builder, |
220 mastername=master, | 219 mastername=master, |
221 slavename=slave, | 220 slavename=slave, |
222 buildnumber=6, | 221 buildnumber=6, |
223 revision='abc123') + | 222 revision='abc123') + |
224 api.step_data( | 223 api.step_data( |
225 'has ccache?', | 224 'has ccache?', |
226 stdout=api.json.output({'ccache':None})) + | 225 stdout=api.json.output({'ccache':None})) + |
227 AndroidTestData(builder) + | 226 AndroidTestData(builder) + |
228 api.step_data('read SKP_VERSION', | 227 api.step_data('read SKP_VERSION', |
229 retcode=1) + | 228 retcode=1) + |
230 api.step_data('read SK_IMAGE_VERSION', | 229 api.step_data('read SK_IMAGE_VERSION', |
231 stdout=api.raw_io.output('42')) + | 230 stdout=api.raw_io.output('42')) + |
232 api.step_data( | 231 api.step_data( |
233 'exists skps', | 232 'exists skps', |
234 stdout=api.raw_io.output('')) + | 233 stdout=api.raw_io.output('')) + |
235 api.infra_paths.exists( | 234 api.path.exists( |
236 api.infra_paths['slave_build'].join('skia'), | 235 api.path['slave_build'].join('skia'), |
237 api.infra_paths['slave_build'].join('tmp', 'uninteresting_hashes.txt') | 236 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') |
238 ) | 237 ) |
239 ) | 238 ) |
240 | 239 |
241 yield ( | 240 yield ( |
242 api.test('download_and_push_skimage') + | 241 api.test('download_and_push_skimage') + |
243 api.properties(buildername=builder, | 242 api.properties(buildername=builder, |
244 mastername=master, | 243 mastername=master, |
245 slavename=slave, | 244 slavename=slave, |
246 buildnumber=6, | 245 buildnumber=6, |
247 revision='abc123', | 246 revision='abc123', |
248 test_downloaded_sk_image_version='2') + | 247 test_downloaded_sk_image_version='2') + |
249 api.step_data( | 248 api.step_data( |
250 'has ccache?', | 249 'has ccache?', |
251 stdout=api.json.output({'ccache':None})) + | 250 stdout=api.json.output({'ccache':None})) + |
252 AndroidTestData(builder) + | 251 AndroidTestData(builder) + |
253 api.step_data('read SKP_VERSION', | 252 api.step_data('read SKP_VERSION', |
254 stdout=api.raw_io.output('42')) + | 253 stdout=api.raw_io.output('42')) + |
255 api.step_data('read SK_IMAGE_VERSION', | 254 api.step_data('read SK_IMAGE_VERSION', |
256 stdout=api.raw_io.output('2')) + | 255 stdout=api.raw_io.output('2')) + |
257 api.step_data( | 256 api.step_data( |
258 'exists skia_images', | 257 'exists skia_images', |
259 stdout=api.raw_io.output('')) + | 258 stdout=api.raw_io.output('')) + |
260 api.infra_paths.exists( | 259 api.path.exists( |
261 api.infra_paths['slave_build'].join('skia'), | 260 api.path['slave_build'].join('skia'), |
262 api.infra_paths['slave_build'].join('tmp', 'uninteresting_hashes.txt') | 261 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') |
263 ) | 262 ) |
264 ) | 263 ) |
265 | 264 |
266 yield ( | 265 yield ( |
267 api.test('missing_SK_IMAGE_VERSION_device') + | 266 api.test('missing_SK_IMAGE_VERSION_device') + |
268 api.properties(buildername=builder, | 267 api.properties(buildername=builder, |
269 mastername=master, | 268 mastername=master, |
270 slavename=slave, | 269 slavename=slave, |
271 buildnumber=6, | 270 buildnumber=6, |
272 revision='abc123') + | 271 revision='abc123') + |
273 api.step_data( | 272 api.step_data( |
274 'has ccache?', | 273 'has ccache?', |
275 stdout=api.json.output({'ccache':None})) + | 274 stdout=api.json.output({'ccache':None})) + |
276 AndroidTestData(builder) + | 275 AndroidTestData(builder) + |
277 api.step_data('read SKP_VERSION', | 276 api.step_data('read SKP_VERSION', |
278 stdout=api.raw_io.output('42')) + | 277 stdout=api.raw_io.output('42')) + |
279 api.step_data('read SK_IMAGE_VERSION', | 278 api.step_data('read SK_IMAGE_VERSION', |
280 retcode=1) + | 279 retcode=1) + |
281 api.step_data( | 280 api.step_data( |
282 'exists skia_images', | 281 'exists skia_images', |
283 stdout=api.raw_io.output('')) + | 282 stdout=api.raw_io.output('')) + |
284 api.infra_paths.exists( | 283 api.path.exists( |
285 api.infra_paths['slave_build'].join('skia'), | 284 api.path['slave_build'].join('skia'), |
286 api.infra_paths['slave_build'].join('tmp', 'uninteresting_hashes.txt') | 285 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') |
287 ) | 286 ) |
288 ) | 287 ) |
289 | 288 |
290 builder = 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug' | 289 builder = 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug' |
291 master = 'client.skia' | 290 master = 'client.skia' |
292 slave = 'skiabot-linux-test-000' | 291 slave = 'skiabot-linux-test-000' |
293 yield ( | 292 yield ( |
294 api.test('missing_SKP_VERSION_host') + | 293 api.test('missing_SKP_VERSION_host') + |
295 api.properties(buildername=builder, | 294 api.properties(buildername=builder, |
296 mastername=master, | 295 mastername=master, |
297 slavename=slave, | 296 slavename=slave, |
298 buildnumber=6, | 297 buildnumber=6, |
299 revision='abc123') + | 298 revision='abc123') + |
300 api.step_data('Get downloaded SKP_VERSION', retcode=1) + | 299 api.step_data('Get downloaded SKP_VERSION', retcode=1) + |
301 api.infra_paths.exists( | 300 api.path.exists( |
302 api.infra_paths['slave_build'].join('skia'), | 301 api.path['slave_build'].join('skia'), |
303 api.infra_paths['slave_build'].join('tmp', 'uninteresting_hashes.txt') | 302 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') |
304 ) | 303 ) |
305 ) | 304 ) |
306 | 305 |
307 yield ( | 306 yield ( |
308 api.test('missing_SK_IMAGE_VERSION_host') + | 307 api.test('missing_SK_IMAGE_VERSION_host') + |
309 api.properties(buildername=builder, | 308 api.properties(buildername=builder, |
310 mastername=master, | 309 mastername=master, |
311 slavename=slave, | 310 slavename=slave, |
312 buildnumber=6, | 311 buildnumber=6, |
313 revision='abc123') + | 312 revision='abc123') + |
314 api.step_data('Get downloaded SK_IMAGE_VERSION', retcode=1) + | 313 api.step_data('Get downloaded SK_IMAGE_VERSION', retcode=1) + |
315 api.infra_paths.exists( | 314 api.path.exists( |
316 api.infra_paths['slave_build'].join('skia'), | 315 api.path['slave_build'].join('skia'), |
317 api.infra_paths['slave_build'].join('tmp', 'uninteresting_hashes.txt') | 316 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') |
318 ) | 317 ) |
319 ) | 318 ) |
OLD | NEW |