blob: 7dc387308850900c8c5375d86b6015c97d52c4e2 [file] [log] [blame]
borenet1ed2ae42016-07-26 11:52:17 -07001# Copyright 2016 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5
6# Recipe module for Skia Swarming test.
7
8
9DEPS = [
Eric Boren4c7754c2017-04-10 08:19:10 -040010 'core',
Eric Boren896af752017-04-24 13:22:56 -040011 'env',
12 'flavor',
Robert Iannucci297a7ef2017-05-12 19:09:38 -070013 'recipe_engine/context',
Eric Boren4c7754c2017-04-10 08:19:10 -040014 'recipe_engine/json',
borenet1ed2ae42016-07-26 11:52:17 -070015 'recipe_engine/path',
16 'recipe_engine/platform',
17 'recipe_engine/properties',
Eric Boren4c7754c2017-04-10 08:19:10 -040018 'recipe_engine/python',
borenet1ed2ae42016-07-26 11:52:17 -070019 'recipe_engine/raw_io',
Eric Boren3e2ffd72017-06-16 13:10:22 -040020 'recipe_engine/shutil',
Eric Boren4c7754c2017-04-10 08:19:10 -040021 'recipe_engine/step',
Eric Boren4c7754c2017-04-10 08:19:10 -040022 'run',
23 'vars',
borenet1ed2ae42016-07-26 11:52:17 -070024]
25
26
Eric Boren4c7754c2017-04-10 08:19:10 -040027def dm_flags(bot):
28 args = []
29
30 # This enables non-deterministic random seeding of the GPU FP optimization
Brian Osman7a34dca2017-04-13 13:40:29 -040031 # test.
32 args.append('--randomProcessorTest')
Eric Boren4c7754c2017-04-10 08:19:10 -040033
34 # 32-bit desktop bots tend to run out of memory, because they have relatively
35 # far more cores than RAM (e.g. 32 cores, 3G RAM). Hold them back a bit.
36 if '-x86-' in bot and not 'NexusPlayer' in bot:
37 args.extend('--threads 4'.split(' '))
38
39 # Avoid issues with dynamically exceeding resource cache limits.
40 if 'Test' in bot and 'DISCARDABLE' in bot:
41 args.extend('--threads 0'.split(' '))
42
43 # These are the canonical configs that we would ideally run on all bots. We
44 # may opt out or substitute some below for specific bots
45 configs = ['8888', 'srgb', 'pdf']
46 # Add in either gles or gl configs to the canonical set based on OS
47 sample_count = '8'
48 gl_prefix = 'gl'
49 if 'Android' in bot or 'iOS' in bot:
50 sample_count = '4'
51 # We want to test the OpenGL config not the GLES config on the Shield
52 if 'NVIDIA_Shield' not in bot:
53 gl_prefix = 'gles'
54 elif 'Intel' in bot:
55 sample_count = ''
56 elif 'ChromeOS' in bot:
57 gl_prefix = 'gles'
58
59 configs.extend([gl_prefix, gl_prefix + 'dft', gl_prefix + 'srgb'])
60 if sample_count is not '':
61 configs.append(gl_prefix + 'msaa' + sample_count)
62
63 # The NP produces a long error stream when we run with MSAA. The Tegra3 just
64 # doesn't support it.
65 if ('NexusPlayer' in bot or
66 'Tegra3' in bot or
Stephan Altmueller93787322017-04-25 14:40:10 -040067 # We aren't interested in fixing msaa bugs on current iOS devices.
Eric Boren4c7754c2017-04-10 08:19:10 -040068 'iPad4' in bot or
Stephan Altmueller93787322017-04-25 14:40:10 -040069 'iPadPro' in bot or
70 'iPhone6' in bot or
71 'iPhone7' in bot or
Eric Boren4c7754c2017-04-10 08:19:10 -040072 # skia:5792
Robert Phillips985e1922017-05-25 07:56:01 -040073 'IntelHD530' in bot or
Eric Boren4c7754c2017-04-10 08:19:10 -040074 'IntelIris540' in bot):
75 configs = [x for x in configs if 'msaa' not in x]
76
77 # The NP produces different images for dft on every run.
78 if 'NexusPlayer' in bot:
79 configs = [x for x in configs if 'dft' not in x]
80
81 # Runs out of memory on Android bots. Everyone else seems fine.
82 if 'Android' in bot:
83 configs.remove('pdf')
84
85 if '-GCE-' in bot:
86 configs.extend(['565'])
87 configs.extend(['f16'])
88 configs.extend(['sp-8888', '2ndpic-8888']) # Test niche uses of SkPicture.
89 configs.extend(['lite-8888']) # Experimental display list.
90 configs.extend(['gbr-8888'])
91
92 if '-TSAN' not in bot and sample_count is not '':
93 if ('TegraK1' in bot or
94 'TegraX1' in bot or
95 'GTX550Ti' in bot or
96 'GTX660' in bot or
97 'GT610' in bot):
98 configs.append(gl_prefix + 'nvprdit' + sample_count)
99
100 # We want to test both the OpenGL config and the GLES config on Linux Intel:
101 # GL is used by Chrome, GLES is used by ChromeOS.
102 if 'Intel' in bot and 'Ubuntu' in bot:
103 configs.extend(['gles', 'glesdft', 'glessrgb'])
104
105 # NP is running out of RAM when we run all these modes. skia:3255
106 if 'NexusPlayer' not in bot:
107 configs.extend(mode + '-8888' for mode in
108 ['serialize', 'tiles_rt', 'pic'])
109
110 # Test instanced rendering on a limited number of platforms
111 if 'Nexus6' in bot:
112 configs.append(gl_prefix + 'inst') # inst msaa isn't working yet on Adreno.
113 elif 'NVIDIA_Shield' in bot or 'PixelC' in bot:
114 # Multisampled instanced configs use nvpr so we substitute inst msaa
115 # configs for nvpr msaa configs.
116 old = gl_prefix + 'nvpr'
117 new = gl_prefix + 'inst'
118 configs = [x.replace(old, new) for x in configs]
119 # We also test non-msaa instanced.
120 configs.append(new)
121 elif 'MacMini6.2' in bot and sample_count is not '':
122 configs.extend([gl_prefix + 'inst', gl_prefix + 'inst' + sample_count])
123
124 # CommandBuffer bot *only* runs the command_buffer config.
125 if 'CommandBuffer' in bot:
126 configs = ['commandbuffer']
127
128 # ANGLE bot *only* runs the angle configs
129 if 'ANGLE' in bot:
130 configs = ['angle_d3d11_es2',
131 'angle_d3d9_es2',
Brian Salomon8c865882017-06-22 09:56:24 -0400132 'angle_gl_es2',
133 'angle_d3d11_es3']
Eric Boren4c7754c2017-04-10 08:19:10 -0400134 if sample_count is not '':
135 configs.append('angle_d3d11_es2_msaa' + sample_count)
Brian Salomon8c865882017-06-22 09:56:24 -0400136 configs.append('angle_d3d11_es3_msaa' + sample_count)
Eric Boren4c7754c2017-04-10 08:19:10 -0400137
138 # Vulkan bot *only* runs the vk config.
139 if 'Vulkan' in bot:
140 configs = ['vk']
141
142 if 'ChromeOS' in bot:
143 # Just run GLES for now - maybe add gles_msaa4 in the future
144 configs = ['gles']
145
Kevin Lubickae95db42017-04-10 13:05:49 -0400146 if 'Ci20' in bot:
147 # This bot is really slow, cut it down to just 8888.
148 configs = ['8888']
149
Mike Klein97627d42017-05-11 13:12:48 -0400150 # This bot only differs from vanilla CPU bots in 8888 config.
151 if 'SK_FORCE_RASTER_PIPELINE_BLITTER' in bot:
Mike Kleinf6ca16e2017-05-24 14:08:33 -0400152 configs = ['8888', 'srgb']
Mike Klein97627d42017-05-11 13:12:48 -0400153
Eric Boren4c7754c2017-04-10 08:19:10 -0400154 args.append('--config')
155 args.extend(configs)
156
157 # Run tests, gms, and image decoding tests everywhere.
158 args.extend('--src tests gm image colorImage svg'.split(' '))
159 if 'Vulkan' in bot and 'NexusPlayer' in bot:
160 args.remove('svg')
161 args.remove('image')
162
Mike Klein97627d42017-05-11 13:12:48 -0400163 # Eventually I'd like these to pass, but for now just skip 'em.
164 if 'SK_FORCE_RASTER_PIPELINE_BLITTER' in bot:
165 args.remove('tests')
166
Eric Boren4c7754c2017-04-10 08:19:10 -0400167 blacklisted = []
168 def blacklist(quad):
169 config, src, options, name = quad.split(' ') if type(quad) is str else quad
170 if config == '_' or config in configs:
171 blacklisted.extend([config, src, options, name])
172
173 # TODO: ???
174 blacklist('f16 _ _ dstreadshuffle')
175 blacklist('glsrgb image _ _')
176 blacklist('glessrgb image _ _')
177
Eric Boren4c7754c2017-04-10 08:19:10 -0400178 # Not any point to running these.
179 blacklist('gbr-8888 image _ _')
180 blacklist('gbr-8888 colorImage _ _')
181
182 if 'Valgrind' in bot:
183 # These take 18+ hours to run.
184 blacklist('pdf gm _ fontmgr_iter')
185 blacklist('pdf _ _ PANO_20121023_214540.jpg')
186 blacklist('pdf skp _ worldjournal')
187 blacklist('pdf skp _ desk_baidu.skp')
188 blacklist('pdf skp _ desk_wikipedia.skp')
189 blacklist('_ svg _ _')
190
191 if 'iOS' in bot:
192 blacklist(gl_prefix + ' skp _ _')
193
194 if 'Mac' in bot or 'iOS' in bot:
195 # CG fails on questionable bmps
196 blacklist('_ image gen_platf rgba32abf.bmp')
197 blacklist('_ image gen_platf rgb24prof.bmp')
198 blacklist('_ image gen_platf rgb24lprof.bmp')
199 blacklist('_ image gen_platf 8bpp-pixeldata-cropped.bmp')
200 blacklist('_ image gen_platf 4bpp-pixeldata-cropped.bmp')
201 blacklist('_ image gen_platf 32bpp-pixeldata-cropped.bmp')
202 blacklist('_ image gen_platf 24bpp-pixeldata-cropped.bmp')
203
204 # CG has unpredictable behavior on this questionable gif
205 # It's probably using uninitialized memory
206 blacklist('_ image gen_platf frame_larger_than_image.gif')
207
208 # CG has unpredictable behavior on incomplete pngs
209 # skbug.com/5774
210 blacklist('_ image gen_platf inc0.png')
211 blacklist('_ image gen_platf inc1.png')
212 blacklist('_ image gen_platf inc2.png')
213 blacklist('_ image gen_platf inc3.png')
214 blacklist('_ image gen_platf inc4.png')
215 blacklist('_ image gen_platf inc5.png')
216 blacklist('_ image gen_platf inc6.png')
217 blacklist('_ image gen_platf inc7.png')
218 blacklist('_ image gen_platf inc8.png')
219 blacklist('_ image gen_platf inc9.png')
220 blacklist('_ image gen_platf inc10.png')
221 blacklist('_ image gen_platf inc11.png')
222 blacklist('_ image gen_platf inc12.png')
223 blacklist('_ image gen_platf inc13.png')
224 blacklist('_ image gen_platf inc14.png')
225
Matt Sarett6c50a2e2017-05-01 09:13:05 -0400226 # WIC fails on questionable bmps
Eric Boren4c7754c2017-04-10 08:19:10 -0400227 if 'Win' in bot:
228 blacklist('_ image gen_platf rle8-height-negative.bmp')
229 blacklist('_ image gen_platf rle4-height-negative.bmp')
230 blacklist('_ image gen_platf pal8os2v2.bmp')
231 blacklist('_ image gen_platf pal8os2v2-16.bmp')
232 blacklist('_ image gen_platf rgba32abf.bmp')
233 blacklist('_ image gen_platf rgb24prof.bmp')
234 blacklist('_ image gen_platf rgb24lprof.bmp')
235 blacklist('_ image gen_platf 8bpp-pixeldata-cropped.bmp')
236 blacklist('_ image gen_platf 4bpp-pixeldata-cropped.bmp')
237 blacklist('_ image gen_platf 32bpp-pixeldata-cropped.bmp')
238 blacklist('_ image gen_platf 24bpp-pixeldata-cropped.bmp')
Eric Boren4c7754c2017-04-10 08:19:10 -0400239 if 'x86_64' in bot and 'CPU' in bot:
240 # This GM triggers a SkSmallAllocator assert.
241 blacklist('_ gm _ composeshader_bitmap')
242
Matt Sarett6c50a2e2017-05-01 09:13:05 -0400243 # WIC and CG fail on arithmetic jpegs
244 if 'Win' in bot or 'Mac' in bot:
245 blacklist('_ image gen_platf testimgari.jpg')
246
Eric Boren4c7754c2017-04-10 08:19:10 -0400247 if 'Android' in bot or 'iOS' in bot:
248 # This test crashes the N9 (perhaps because of large malloc/frees). It also
249 # is fairly slow and not platform-specific. So we just disable it on all of
250 # Android and iOS. skia:5438
251 blacklist('_ test _ GrShape')
252
Eric Boren4c7754c2017-04-10 08:19:10 -0400253 # skia:4095
254 bad_serialize_gms = ['bleed_image',
255 'c_gms',
256 'colortype',
257 'colortype_xfermodes',
258 'drawfilter',
259 'fontmgr_bounds_0.75_0',
260 'fontmgr_bounds_1_-0.25',
261 'fontmgr_bounds',
262 'fontmgr_match',
263 'fontmgr_iter',
264 'imagemasksubset']
265
266 # skia:5589
267 bad_serialize_gms.extend(['bitmapfilters',
268 'bitmapshaders',
269 'bleed',
270 'bleed_alpha_bmp',
271 'bleed_alpha_bmp_shader',
272 'convex_poly_clip',
273 'extractalpha',
274 'filterbitmap_checkerboard_32_32_g8',
275 'filterbitmap_image_mandrill_64',
276 'shadows',
277 'simpleaaclip_aaclip'])
278 # skia:5595
279 bad_serialize_gms.extend(['composeshader_bitmap',
280 'scaled_tilemodes_npot',
281 'scaled_tilemodes'])
282
283 # skia:5778
284 bad_serialize_gms.append('typefacerendering_pfaMac')
285 # skia:5942
286 bad_serialize_gms.append('parsedpaths')
287
288 # these use a custom image generator which doesn't serialize
289 bad_serialize_gms.append('ImageGeneratorExternal_rect')
290 bad_serialize_gms.append('ImageGeneratorExternal_shader')
291
292 # skia:6189
293 bad_serialize_gms.append('shadow_utils')
294
Matt Sarett9f3dcb32017-05-04 08:53:32 -0400295 # Not expected to round trip encoding/decoding.
296 bad_serialize_gms.append('makecolorspace')
297
Eric Boren4c7754c2017-04-10 08:19:10 -0400298 for test in bad_serialize_gms:
299 blacklist(['serialize-8888', 'gm', '_', test])
300
301 if 'Mac' not in bot:
302 for test in ['bleed_alpha_image', 'bleed_alpha_image_shader']:
303 blacklist(['serialize-8888', 'gm', '_', test])
304 # It looks like we skip these only for out-of-memory concerns.
305 if 'Win' in bot or 'Android' in bot:
306 for test in ['verylargebitmap', 'verylarge_picture_image']:
307 blacklist(['serialize-8888', 'gm', '_', test])
308
309 # skia:4769
310 for test in ['drawfilter']:
311 blacklist([ 'sp-8888', 'gm', '_', test])
312 blacklist([ 'pic-8888', 'gm', '_', test])
313 blacklist(['2ndpic-8888', 'gm', '_', test])
314 blacklist([ 'lite-8888', 'gm', '_', test])
315 # skia:4703
316 for test in ['image-cacherator-from-picture',
317 'image-cacherator-from-raster',
318 'image-cacherator-from-ctable']:
319 blacklist([ 'sp-8888', 'gm', '_', test])
320 blacklist([ 'pic-8888', 'gm', '_', test])
321 blacklist([ '2ndpic-8888', 'gm', '_', test])
322 blacklist(['serialize-8888', 'gm', '_', test])
323
324 # GM that requires raster-backed canvas
325 for test in ['gamut', 'complexclip4_bw', 'complexclip4_aa']:
326 blacklist([ 'sp-8888', 'gm', '_', test])
327 blacklist([ 'pic-8888', 'gm', '_', test])
328 blacklist([ 'lite-8888', 'gm', '_', test])
329 blacklist([ '2ndpic-8888', 'gm', '_', test])
330 blacklist(['serialize-8888', 'gm', '_', test])
331
332 # GM that not support tiles_rt
333 for test in ['complexclip4_bw', 'complexclip4_aa']:
334 blacklist([ 'tiles_rt-8888', 'gm', '_', test])
335
336 # Extensions for RAW images
337 r = ["arw", "cr2", "dng", "nef", "nrw", "orf", "raf", "rw2", "pef", "srw",
338 "ARW", "CR2", "DNG", "NEF", "NRW", "ORF", "RAF", "RW2", "PEF", "SRW"]
339
340 # skbug.com/4888
341 # Blacklist RAW images (and a few large PNGs) on GPU bots
342 # until we can resolve failures.
Matt Sarett929bfeb2017-05-22 10:34:41 -0400343 if 'GPU' in bot:
344 blacklist('_ image _ interlaced1.png')
345 blacklist('_ image _ interlaced2.png')
346 blacklist('_ image _ interlaced3.png')
347 for raw_ext in r:
348 blacklist('_ image _ .%s' % raw_ext)
349
350 # Blacklist memory intensive tests on 32-bit bots.
351 if ('Win2k8' in bot or 'Win8' in bot) and 'x86-' in bot:
352 blacklist('_ image f16 _')
Matt Sarett112565e2017-05-22 13:45:15 -0400353 blacklist('_ image _ abnormal.wbmp')
Eric Boren4c7754c2017-04-10 08:19:10 -0400354 blacklist('_ image _ interlaced1.png')
355 blacklist('_ image _ interlaced2.png')
356 blacklist('_ image _ interlaced3.png')
357 for raw_ext in r:
358 blacklist('_ image _ .%s' % raw_ext)
359
Eric Boren4c7754c2017-04-10 08:19:10 -0400360 if 'IntelHD405' in bot and 'Ubuntu16' in bot:
361 # skia:6331
362 blacklist(['glmsaa8', 'image', 'gen_codec_gpu', 'abnormal.wbmp'])
363 blacklist(['glesmsaa4', 'image', 'gen_codec_gpu', 'abnormal.wbmp'])
364
365 if 'Nexus5' in bot:
366 # skia:5876
367 blacklist(['_', 'gm', '_', 'encode-platform'])
368
369 if 'AndroidOne-GPU' in bot: # skia:4697, skia:4704, skia:4694, skia:4705
370 blacklist(['_', 'gm', '_', 'bigblurs'])
371 blacklist(['_', 'gm', '_', 'bleed'])
372 blacklist(['_', 'gm', '_', 'bleed_alpha_bmp'])
373 blacklist(['_', 'gm', '_', 'bleed_alpha_bmp_shader'])
374 blacklist(['_', 'gm', '_', 'bleed_alpha_image'])
375 blacklist(['_', 'gm', '_', 'bleed_alpha_image_shader'])
376 blacklist(['_', 'gm', '_', 'bleed_image'])
377 blacklist(['_', 'gm', '_', 'dropshadowimagefilter'])
378 blacklist(['_', 'gm', '_', 'filterfastbounds'])
379 blacklist([gl_prefix, 'gm', '_', 'imageblurtiled'])
380 blacklist(['_', 'gm', '_', 'imagefiltersclipped'])
381 blacklist(['_', 'gm', '_', 'imagefiltersscaled'])
382 blacklist(['_', 'gm', '_', 'imageresizetiled'])
383 blacklist(['_', 'gm', '_', 'matrixconvolution'])
384 blacklist(['_', 'gm', '_', 'strokedlines'])
385 if sample_count is not '':
386 gl_msaa_config = gl_prefix + 'msaa' + sample_count
387 blacklist([gl_msaa_config, 'gm', '_', 'imageblurtiled'])
388 blacklist([gl_msaa_config, 'gm', '_', 'imagefiltersbase'])
389
390 match = []
391 if 'Valgrind' in bot: # skia:3021
392 match.append('~Threaded')
393
Ben Wagner6c126422017-06-19 12:45:54 -0400394 if 'Valgrind' in bot and 'PreAbandonGpuContext' in bot:
395 # skia:6575
396 match.append('~multipicturedraw_')
397
Ben Wagnerbb3e7ff2017-04-28 15:28:32 -0400398 if 'CommandBuffer' in bot:
399 # https://crbug.com/697030
400 match.append('~HalfFloatAlphaTextureTest')
401
Eric Boren4c7754c2017-04-10 08:19:10 -0400402 if 'AndroidOne' in bot: # skia:4711
403 match.append('~WritePixels')
404
405 if 'NexusPlayer' in bot:
406 match.append('~ResourceCache')
407
408 if 'Nexus10' in bot:
409 match.append('~CopySurface') # skia:5509
410 match.append('~SRGBReadWritePixels') # skia:6097
411
Eric Boren4c7754c2017-04-10 08:19:10 -0400412 if 'GalaxyS6' in bot:
413 match.append('~SpecialImage') # skia:6338
Brian Osmaneee3c092017-06-15 13:25:10 -0400414 match.append('~skbug6653') # skia:6653
Eric Boren4c7754c2017-04-10 08:19:10 -0400415
416 if 'GalaxyS7_G930A' in bot:
417 match.append('~WritePixels') # skia:6427
418
Jim Van Verthca626b72017-06-22 12:34:56 -0400419 if 'NVIDIA_Shield' in bot:
420 match.append('~TransferPixels') # skia:6784
421
Eric Boren4c7754c2017-04-10 08:19:10 -0400422 if 'MSAN' in bot:
423 match.extend(['~Once', '~Shared']) # Not sure what's up with these tests.
424
425 if 'TSAN' in bot:
426 match.extend(['~ReadWriteAlpha']) # Flaky on TSAN-covered on nvidia bots.
427 match.extend(['~RGBA4444TextureTest', # Flakier than they are important.
428 '~RGB565TextureTest'])
429
Greg Daniela86385d2017-06-05 11:34:29 -0400430 if 'Vulkan' in bot and 'Adreno530' in bot:
431 # skia:5777
432 match.extend(['~CopySurface'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400433
434 if 'Vulkan' in bot and 'NexusPlayer' in bot:
Greg Daniel98fae702017-06-05 09:22:46 -0400435 match.extend(['~gradients_no_texture$', # skia:6132
Eric Boren4c7754c2017-04-10 08:19:10 -0400436 '~tilemodes', # skia:6132
437 '~shadertext$', # skia:6132
438 '~bitmapfilters', # skia:6132
439 '~GrContextFactory_abandon']) #skia:6209
440
441 if 'Vulkan' in bot and 'IntelIris540' in bot and 'Ubuntu' in bot:
442 match.extend(['~VkHeapTests']) # skia:6245
443
Ben Wagnerf1debdf2017-06-13 13:37:05 -0400444 if 'Vulkan' in bot and 'IntelIris540' in bot and 'Win' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400445 # skia:6398
446 blacklist(['vk', 'gm', '_', 'aarectmodes'])
447 blacklist(['vk', 'gm', '_', 'aaxfermodes'])
448 blacklist(['vk', 'gm', '_', 'arithmode'])
449 blacklist(['vk', 'gm', '_', 'composeshader_bitmap'])
450 blacklist(['vk', 'gm', '_', 'composeshader_bitmap2'])
451 blacklist(['vk', 'gm', '_', 'dftextCOLR'])
452 blacklist(['vk', 'gm', '_', 'drawregionmodes'])
453 blacklist(['vk', 'gm', '_', 'filterfastbounds'])
454 blacklist(['vk', 'gm', '_', 'fontcache'])
455 blacklist(['vk', 'gm', '_', 'fontmgr_iterWin10'])
456 blacklist(['vk', 'gm', '_', 'fontmgr_iter_factoryWin10'])
457 blacklist(['vk', 'gm', '_', 'fontmgr_matchWin10'])
458 blacklist(['vk', 'gm', '_', 'fontscalerWin'])
459 blacklist(['vk', 'gm', '_', 'fontscalerdistortable'])
460 blacklist(['vk', 'gm', '_', 'gammagradienttext'])
461 blacklist(['vk', 'gm', '_', 'gammatextWin'])
462 blacklist(['vk', 'gm', '_', 'gradtext'])
463 blacklist(['vk', 'gm', '_', 'hairmodes'])
464 blacklist(['vk', 'gm', '_', 'imagefilters_xfermodes'])
465 blacklist(['vk', 'gm', '_', 'imagefiltersclipped'])
466 blacklist(['vk', 'gm', '_', 'imagefiltersgraph'])
467 blacklist(['vk', 'gm', '_', 'imagefiltersscaled'])
468 blacklist(['vk', 'gm', '_', 'imagefiltersstroked'])
469 blacklist(['vk', 'gm', '_', 'imagefilterstransformed'])
470 blacklist(['vk', 'gm', '_', 'imageresizetiled'])
471 blacklist(['vk', 'gm', '_', 'lcdblendmodes'])
472 blacklist(['vk', 'gm', '_', 'lcdoverlap'])
473 blacklist(['vk', 'gm', '_', 'lcdtextWin'])
474 blacklist(['vk', 'gm', '_', 'lcdtextsize'])
475 blacklist(['vk', 'gm', '_', 'matriximagefilter'])
476 blacklist(['vk', 'gm', '_', 'mixedtextblobsCOLR'])
Greg Daniel744d3c52017-06-09 13:50:20 -0400477 blacklist(['vk', 'gm', '_', 'mixershader'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400478 blacklist(['vk', 'gm', '_', 'pictureimagefilter'])
479 blacklist(['vk', 'gm', '_', 'resizeimagefilter'])
480 blacklist(['vk', 'gm', '_', 'rotate_imagefilter'])
481 blacklist(['vk', 'gm', '_', 'savelayer_lcdtext'])
482 blacklist(['vk', 'gm', '_', 'srcmode'])
483 blacklist(['vk', 'gm', '_', 'surfaceprops'])
484 blacklist(['vk', 'gm', '_', 'textblobgeometrychange'])
485 blacklist(['vk', 'gm', '_', 'textbloblooper'])
486 blacklist(['vk', 'gm', '_', 'textblobmixedsizes'])
487 blacklist(['vk', 'gm', '_', 'textblobmixedsizes_df'])
488 blacklist(['vk', 'gm', '_', 'textblobrandomfont'])
489 blacklist(['vk', 'gm', '_', 'textfilter_color'])
490 blacklist(['vk', 'gm', '_', 'textfilter_image'])
491 blacklist(['vk', 'gm', '_', 'typefacerenderingWin'])
492 blacklist(['vk', 'gm', '_', 'varied_text_clipped_lcd'])
493 blacklist(['vk', 'gm', '_', 'varied_text_ignorable_clip_lcd'])
494 blacklist(['vk', 'gm', '_', 'xfermodeimagefilter'])
495 match.append('~ApplyGamma')
496 match.append('~ComposedImageFilterBounds_Gpu')
Matt Sarett77443972017-04-11 11:25:37 -0400497 match.append('~DeferredTextureImage')
Chris Dalton114a3c02017-05-26 15:17:19 -0600498 match.append('~GrMeshTest')
Eric Boren4c7754c2017-04-10 08:19:10 -0400499 match.append('~ImageFilterFailAffectsTransparentBlack_Gpu')
500 match.append('~ImageFilterZeroBlurSigma_Gpu')
501 match.append('~ImageNewShader_GPU')
502 match.append('~NewTextureFromPixmap')
503 match.append('~ReadPixels_Gpu')
504 match.append('~ReadPixels_Texture')
505 match.append('~ReadWriteAlpha')
Brian Osmane18ceb12017-06-15 16:04:45 -0400506 match.append('~skbug6653')
Eric Boren4c7754c2017-04-10 08:19:10 -0400507 match.append('~SRGBReadWritePixels')
508 match.append('~SpecialImage_DeferredGpu')
509 match.append('~SpecialImage_Gpu')
510 match.append('~WritePixels_Gpu')
Brian Osman33ea1362017-04-19 10:51:39 -0400511 match.append('~WritePixelsNonTexture_Gpu')
Eric Boren4c7754c2017-04-10 08:19:10 -0400512 match.append('~XfermodeImageFilterCroppedInput_Gpu')
513
514 if 'IntelIris540' in bot and 'ANGLE' in bot:
515 match.append('~IntTexture') # skia:6086
516 blacklist(['_', 'gm', '_', 'discard']) # skia:6141
517 # skia:6103
518 for config in ['angle_d3d9_es2', 'angle_d3d11_es2', 'angle_gl_es2']:
519 blacklist([config, 'gm', '_', 'multipicturedraw_invpathclip_simple'])
520 blacklist([config, 'gm', '_', 'multipicturedraw_noclip_simple'])
521 blacklist([config, 'gm', '_', 'multipicturedraw_pathclip_simple'])
522 blacklist([config, 'gm', '_', 'multipicturedraw_rectclip_simple'])
523 blacklist([config, 'gm', '_', 'multipicturedraw_rrectclip_simple'])
524
525 if 'IntelBayTrail' in bot and 'Ubuntu' in bot:
526 match.append('~ImageStorageLoad') # skia:6358
527
Kevin Lubickae95db42017-04-10 13:05:49 -0400528 if 'Ci20' in bot:
529 match.append('~Codec_Dimensions') # skia:6477
530 match.append('~FontMgrAndroidParser') # skia:6478
531 match.append('~PathOpsSimplify') # skia:6479
532 blacklist(['_', 'gm', '_', 'fast_slow_blurimagefilter']) # skia:6480
533
Leon Scroggins III2005d772017-05-01 13:09:42 -0400534 if ('Win10' in bot and 'Vulkan' in bot
535 and ('GTX1070' in bot or 'GTX660' in bot)):
536 blacklist('_ test _ SkImage_makeTextureImage') # skia:6554
Kevin Lubickae95db42017-04-10 13:05:49 -0400537
Eric Boren4c7754c2017-04-10 08:19:10 -0400538 if blacklisted:
539 args.append('--blacklist')
540 args.extend(blacklisted)
541
542 if match:
543 args.append('--match')
544 args.extend(match)
545
546 # These bots run out of memory running RAW codec tests. Do not run them in
547 # parallel
548 if ('NexusPlayer' in bot or 'Nexus5' in bot or 'Nexus9' in bot
549 or 'Win8-MSVC-ShuttleB' in bot):
550 args.append('--noRAW_threading')
551
Ben Wagner40c0f242017-04-28 15:55:35 -0400552 if 'Valgrind' in bot and 'PreAbandonGpuContext' in bot:
553 args.append('--verbose')
554
Eric Boren4c7754c2017-04-10 08:19:10 -0400555 return args
556
557
558def key_params(api):
559 """Build a unique key from the builder name (as a list).
560
561 E.g. arch x86 gpu GeForce320M mode MacMini4.1 os Mac10.6
562 """
563 # Don't bother to include role, which is always Test.
564 # TryBots are uploaded elsewhere so they can use the same key.
565 blacklist = ['role', 'is_trybot']
566
567 flat = []
568 for k in sorted(api.vars.builder_cfg.keys()):
569 if k not in blacklist:
570 flat.append(k)
571 flat.append(api.vars.builder_cfg[k])
572 return flat
573
574
575def test_steps(api):
576 """Run the DM test."""
577 use_hash_file = False
578 if api.vars.upload_dm_results:
579 # This must run before we write anything into
580 # api.flavor.device_dirs.dm_dir or we may end up deleting our
581 # output on machines where they're the same.
582 api.flavor.create_clean_host_dir(api.vars.dm_dir)
583 host_dm_dir = str(api.vars.dm_dir)
584 device_dm_dir = str(api.flavor.device_dirs.dm_dir)
585 if host_dm_dir != device_dm_dir:
586 api.flavor.create_clean_device_dir(device_dm_dir)
587
588 # Obtain the list of already-generated hashes.
589 hash_filename = 'uninteresting_hashes.txt'
590
591 # Ensure that the tmp_dir exists.
Eric Boren3e2ffd72017-06-16 13:10:22 -0400592 api.run.run_once(api.shutil.makedirs,
593 'tmp_dir',
594 api.vars.tmp_dir,
595 infra_step=True)
Eric Boren4c7754c2017-04-10 08:19:10 -0400596
597 host_hashes_file = api.vars.tmp_dir.join(hash_filename)
598 hashes_file = api.flavor.device_path_join(
599 api.flavor.device_dirs.tmp_dir, hash_filename)
600 api.run(
601 api.python.inline,
602 'get uninteresting hashes',
603 program="""
604 import contextlib
605 import math
606 import socket
607 import sys
608 import time
609 import urllib2
610
Stephan Altmuellerc19ebc52017-05-30 16:39:17 -0400611 HASHES_URL = 'https://storage.googleapis.com/skia-infra-gm/hash_files/gold-prod-hashes.txt'
Eric Boren4c7754c2017-04-10 08:19:10 -0400612 RETRIES = 5
613 TIMEOUT = 60
614 WAIT_BASE = 15
615
616 socket.setdefaulttimeout(TIMEOUT)
617 for retry in range(RETRIES):
618 try:
619 with contextlib.closing(
620 urllib2.urlopen(HASHES_URL, timeout=TIMEOUT)) as w:
621 hashes = w.read()
622 with open(sys.argv[1], 'w') as f:
623 f.write(hashes)
624 break
625 except Exception as e:
626 print 'Failed to get uninteresting hashes from %s:' % HASHES_URL
627 print e
628 if retry == RETRIES:
629 raise
630 waittime = WAIT_BASE * math.pow(2, retry)
631 print 'Retry in %d seconds.' % waittime
632 time.sleep(waittime)
633 """,
634 args=[host_hashes_file],
635 abort_on_failure=False,
636 fail_build_on_failure=False,
637 infra_step=True)
638
639 if api.path.exists(host_hashes_file):
640 api.flavor.copy_file_to_device(host_hashes_file, hashes_file)
641 use_hash_file = True
642
643 # Run DM.
644 properties = [
645 'gitHash', api.vars.got_revision,
Eric Boren4c7754c2017-04-10 08:19:10 -0400646 'builder', api.vars.builder_name,
Eric Boren4c7754c2017-04-10 08:19:10 -0400647 ]
648 if api.vars.is_trybot:
649 properties.extend([
650 'issue', api.vars.issue,
651 'patchset', api.vars.patchset,
652 'patch_storage', api.vars.patch_storage,
653 ])
Eric Borenf9aa9e52017-04-10 09:56:10 -0400654 properties.extend(['swarming_bot_id', api.vars.swarming_bot_id])
655 properties.extend(['swarming_task_id', api.vars.swarming_task_id])
Eric Boren4c7754c2017-04-10 08:19:10 -0400656
657 args = [
658 'dm',
659 '--undefok', # This helps branches that may not know new flags.
660 '--resourcePath', api.flavor.device_dirs.resource_dir,
661 '--skps', api.flavor.device_dirs.skp_dir,
662 '--images', api.flavor.device_path_join(
663 api.flavor.device_dirs.images_dir, 'dm'),
664 '--colorImages', api.flavor.device_path_join(
665 api.flavor.device_dirs.images_dir, 'colorspace'),
666 '--nameByHash',
667 '--properties'
668 ] + properties
669
670 args.extend(['--svgs', api.flavor.device_dirs.svg_dir])
671
672 args.append('--key')
673 args.extend(key_params(api))
674 if use_hash_file:
675 args.extend(['--uninterestingHashesFile', hashes_file])
676 if api.vars.upload_dm_results:
677 args.extend(['--writePath', api.flavor.device_dirs.dm_dir])
678
679 skip_flag = None
680 if api.vars.builder_cfg.get('cpu_or_gpu') == 'CPU':
681 skip_flag = '--nogpu'
682 elif api.vars.builder_cfg.get('cpu_or_gpu') == 'GPU':
683 skip_flag = '--nocpu'
684 if skip_flag:
685 args.append(skip_flag)
686 args.extend(dm_flags(api.vars.builder_name))
687
Eric Boren896af752017-04-24 13:22:56 -0400688 env = {}
Eric Boren4c7754c2017-04-10 08:19:10 -0400689 if 'Ubuntu16' in api.vars.builder_name:
690 # The vulkan in this asset name simply means that the graphics driver
691 # supports Vulkan. It is also the driver used for GL code.
692 dri_path = api.vars.slave_dir.join('linux_vulkan_intel_driver_release')
693 if 'Debug' in api.vars.builder_name:
694 dri_path = api.vars.slave_dir.join('linux_vulkan_intel_driver_debug')
695
696 if 'Vulkan' in api.vars.builder_name:
697 sdk_path = api.vars.slave_dir.join('linux_vulkan_sdk', 'bin')
698 lib_path = api.vars.slave_dir.join('linux_vulkan_sdk', 'lib')
699 env.update({
700 'PATH':'%%(PATH)s:%s' % sdk_path,
701 'LD_LIBRARY_PATH': '%s:%s' % (lib_path, dri_path),
702 'LIBGL_DRIVERS_PATH': dri_path,
703 'VK_ICD_FILENAMES':'%s' % dri_path.join('intel_icd.x86_64.json'),
704 })
705 else:
706 # Even the non-vulkan NUC jobs could benefit from the newer drivers.
707 env.update({
708 'LD_LIBRARY_PATH': dri_path,
709 'LIBGL_DRIVERS_PATH': dri_path,
710 })
711
712 # See skia:2789.
Ben Wagner988d15e2017-04-27 13:08:50 -0400713 extra_config_parts = api.vars.builder_cfg.get('extra_config', '').split('_')
714 if 'AbandonGpuContext' in extra_config_parts:
Eric Boren4c7754c2017-04-10 08:19:10 -0400715 args.append('--abandonGpuContext')
Ben Wagner988d15e2017-04-27 13:08:50 -0400716 if 'PreAbandonGpuContext' in extra_config_parts:
Eric Boren4c7754c2017-04-10 08:19:10 -0400717 args.append('--preAbandonGpuContext')
Ben Wagner988d15e2017-04-27 13:08:50 -0400718 if 'ReleaseAndAbandonGpuContext' in extra_config_parts:
Eric Boren6ec17e32017-04-26 14:25:29 -0400719 args.append('--releaseAndAbandonGpuContext')
Eric Boren4c7754c2017-04-10 08:19:10 -0400720
Eric Boren896af752017-04-24 13:22:56 -0400721 with api.env(env):
Eric Boren4c7754c2017-04-10 08:19:10 -0400722 api.run(api.flavor.step, 'dm', cmd=args, abort_on_failure=False)
723
724 if api.vars.upload_dm_results:
725 # Copy images and JSON to host machine if needed.
726 api.flavor.copy_directory_contents_to_host(
727 api.flavor.device_dirs.dm_dir, api.vars.dm_dir)
728
729
borenet1ed2ae42016-07-26 11:52:17 -0700730def RunSteps(api):
Eric Boren4c7754c2017-04-10 08:19:10 -0400731 api.core.setup()
Robert Iannucci297a7ef2017-05-12 19:09:38 -0700732 env = {}
Eric Boren4c7754c2017-04-10 08:19:10 -0400733 if 'iOS' in api.vars.builder_name:
734 env['IOS_BUNDLE_ID'] = 'com.google.dm'
Stephan Altmueller63e843d2017-04-25 11:38:38 -0400735 env['IOS_MOUNT_POINT'] = api.vars.slave_dir.join('mnt_iosdevice')
Robert Iannucci297a7ef2017-05-12 19:09:38 -0700736 with api.context(env=env):
Eric Boren4c7754c2017-04-10 08:19:10 -0400737 try:
738 api.flavor.install_everything()
739 test_steps(api)
740 finally:
741 api.flavor.cleanup_steps()
742 api.run.check_failure()
743
744
Eric Borenf9aa9e52017-04-10 09:56:10 -0400745TEST_BUILDERS = [
Kevin Lubickfe079d42017-04-12 08:31:48 -0400746 'Test-Android-Clang-AndroidOne-GPU-Mali400MP2-arm-Release-Android',
Kevin Lubickae95db42017-04-10 13:05:49 -0400747 'Test-Android-Clang-Ci20-CPU-IngenicJZ4780-mipsel-Release-Android',
Eric Borenf9aa9e52017-04-10 09:56:10 -0400748 'Test-Android-Clang-GalaxyS6-GPU-MaliT760-arm64-Debug-Android',
749 'Test-Android-Clang-GalaxyS7_G930A-GPU-Adreno530-arm64-Debug-Android',
Kevin Lubickfe079d42017-04-12 08:31:48 -0400750 'Test-Android-Clang-NVIDIA_Shield-GPU-TegraX1-arm64-Debug-Android',
751 'Test-Android-Clang-Nexus10-GPU-MaliT604-arm-Release-Android',
Eric Borenf9aa9e52017-04-10 09:56:10 -0400752 'Test-Android-Clang-Nexus5-GPU-Adreno330-arm-Release-Android',
Kevin Lubickfe079d42017-04-12 08:31:48 -0400753 'Test-Android-Clang-Nexus6p-GPU-Adreno430-arm64-Debug-Android_Vulkan',
Greg Daniela86385d2017-06-05 11:34:29 -0400754 'Test-Android-Clang-PixelXL-GPU-Adreno530-arm64-Debug-Android_Vulkan',
Kevin Lubickfe079d42017-04-12 08:31:48 -0400755 'Test-Android-Clang-Nexus7-GPU-Tegra3-arm-Debug-Android',
756 'Test-Android-Clang-NexusPlayer-CPU-SSE4-x86-Release-Android',
757 'Test-Android-Clang-NexusPlayer-GPU-PowerVR-x86-Release-Android_Vulkan',
758 'Test-Android-Clang-PixelC-CPU-TegraX1-arm64-Debug-Android',
Eric Borenf9aa9e52017-04-10 09:56:10 -0400759 'Test-ChromeOS-Clang-Chromebook_C100p-GPU-MaliT764-arm-Debug',
Eric Borenf9aa9e52017-04-10 09:56:10 -0400760 'Test-Mac-Clang-MacMini6.2-CPU-AVX-x86_64-Debug',
Robert Phillips985e1922017-05-25 07:56:01 -0400761 'Test-Mac-Clang-MacMini6.2-GPU-IntelHD4000-x86_64-Debug-CommandBuffer',
Kevin Lubickfe079d42017-04-12 08:31:48 -0400762 'Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Debug-ASAN',
763 'Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Debug-MSAN',
764 'Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Release-TSAN',
Eric Borenf9aa9e52017-04-10 09:56:10 -0400765 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86-Debug',
766 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug',
Eric Borenf9aa9e52017-04-10 09:56:10 -0400767 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind',
768 ('Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind' +
769 '_AbandonGpuContext'),
770 ('Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind' +
771 '_PreAbandonGpuContext'),
Eric Borenf9aa9e52017-04-10 09:56:10 -0400772 ('Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-SK_USE_DISCARDABLE_' +
773 'SCALEDIMAGECACHE'),
Kevin Lubickfe079d42017-04-12 08:31:48 -0400774 'Test-Ubuntu16-Clang-NUC5PPYH-GPU-IntelHD405-x86_64-Debug',
775 'Test-Ubuntu16-Clang-NUC6i5SYK-GPU-IntelIris540-x86_64-Debug-Vulkan',
776 'Test-Ubuntu16-Clang-NUC6i5SYK-GPU-IntelIris540-x86_64-Release',
777 'Test-Ubuntu16-Clang-NUCDE3815TYKHE-GPU-IntelBayTrail-x86_64-Debug',
Leon Scroggins IIIbb8126d2017-05-02 11:14:31 -0400778 'Test-Win8-MSVC-Golo-CPU-AVX-x86-Debug',
Kevin Lubickfe079d42017-04-12 08:31:48 -0400779 'Test-Win10-MSVC-AlphaR2-GPU-RadeonR9M470X-x86_64-Debug-Vulkan',
Eric Boren6ec17e32017-04-26 14:25:29 -0400780 ('Test-Win10-MSVC-NUC5i7RYH-GPU-IntelIris6100-x86_64-Release-'
781 'ReleaseAndAbandonGpuContext'),
Kevin Lubickfe079d42017-04-12 08:31:48 -0400782 'Test-Win10-MSVC-NUC6i5SYK-GPU-IntelIris540-x86_64-Debug-ANGLE',
783 'Test-Win10-MSVC-NUC6i5SYK-GPU-IntelIris540-x86_64-Debug-Vulkan',
784 'Test-Win10-MSVC-ShuttleA-GPU-GTX660-x86_64-Debug-Vulkan',
785 'Test-Win10-MSVC-ShuttleC-GPU-GTX960-x86_64-Debug-ANGLE',
786 'Test-Win10-MSVC-ZBOX-GPU-GTX1070-x86_64-Debug-Vulkan',
787 'Test-iOS-Clang-iPadMini4-GPU-GX6450-arm-Release',
Mike Klein97627d42017-05-11 13:12:48 -0400788 ('Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Release-'
789 'SK_FORCE_RASTER_PIPELINE_BLITTER'),
Eric Borenf9aa9e52017-04-10 09:56:10 -0400790]
borenet1ed2ae42016-07-26 11:52:17 -0700791
792
793def GenTests(api):
Eric Borenf9aa9e52017-04-10 09:56:10 -0400794 for builder in TEST_BUILDERS:
795 test = (
796 api.test(builder) +
797 api.properties(buildername=builder,
798 revision='abc123',
799 path_config='kitchen',
800 swarm_out_dir='[SWARM_OUT_DIR]') +
801 api.path.exists(
802 api.path['start_dir'].join('skia'),
803 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
804 'skimage', 'VERSION'),
805 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
806 'skp', 'VERSION'),
807 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
808 'svg', 'VERSION'),
809 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
Ben Wagnerf835c222017-04-30 11:14:51 -0400810 ) +
811 api.step_data('get swarming bot id',
812 stdout=api.raw_io.output('skia-bot-123')) +
813 api.step_data('get swarming task id',
814 stdout=api.raw_io.output('123456'))
Eric Borenf9aa9e52017-04-10 09:56:10 -0400815 )
Eric Borenf9aa9e52017-04-10 09:56:10 -0400816 if 'Win' in builder:
817 test += api.platform('win', 64)
Eric Boren4c7754c2017-04-10 08:19:10 -0400818
Eric Borenf9aa9e52017-04-10 09:56:10 -0400819 if 'ChromeOS' in builder:
820 test += api.step_data(
821 'read chromeos ip',
822 stdout=api.raw_io.output('{"user_ip":"foo@127.0.0.1"}'))
Eric Boren4c7754c2017-04-10 08:19:10 -0400823
824
Eric Borenf9aa9e52017-04-10 09:56:10 -0400825 yield test
Eric Boren4c7754c2017-04-10 08:19:10 -0400826
Kevin Lubickfe079d42017-04-12 08:31:48 -0400827 builder = 'Test-Win2k8-MSVC-GCE-CPU-AVX2-x86_64-Release'
828 yield (
829 api.test('trybot') +
830 api.properties(buildername=builder,
831 revision='abc123',
832 path_config='kitchen',
833 swarm_out_dir='[SWARM_OUT_DIR]') +
834 api.properties(patch_storage='gerrit') +
835 api.properties.tryserver(
836 buildername=builder,
837 gerrit_project='skia',
838 gerrit_url='https://skia-review.googlesource.com/',
839 )+
840 api.path.exists(
841 api.path['start_dir'].join('skia'),
842 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
843 'skimage', 'VERSION'),
844 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
845 'skp', 'VERSION'),
846 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
847 'svg', 'VERSION'),
848 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
849 )
850 )
851
Eric Boren4c7754c2017-04-10 08:19:10 -0400852 builder = 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug'
borenet1ed2ae42016-07-26 11:52:17 -0700853 yield (
Eric Boren4c7754c2017-04-10 08:19:10 -0400854 api.test('failed_dm') +
855 api.properties(buildername=builder,
borenet1ed2ae42016-07-26 11:52:17 -0700856 revision='abc123',
857 path_config='kitchen',
858 swarm_out_dir='[SWARM_OUT_DIR]') +
859 api.path.exists(
Ravi Mistry9bcca6a2016-11-21 16:06:19 -0500860 api.path['start_dir'].join('skia'),
861 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
Eric Boren4c7754c2017-04-10 08:19:10 -0400862 'skimage', 'VERSION'),
Ravi Mistry9bcca6a2016-11-21 16:06:19 -0500863 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
Eric Boren4c7754c2017-04-10 08:19:10 -0400864 'skp', 'VERSION'),
Ravi Mistry9bcca6a2016-11-21 16:06:19 -0500865 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
Eric Boren4c7754c2017-04-10 08:19:10 -0400866 'svg', 'VERSION'),
Ravi Mistry9bcca6a2016-11-21 16:06:19 -0500867 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
Eric Boren4c7754c2017-04-10 08:19:10 -0400868 ) +
869 api.step_data('symbolized dm', retcode=1)
870 )
871
Kevin Lubickfe079d42017-04-12 08:31:48 -0400872 builder = 'Test-Android-Clang-Nexus7-GPU-Tegra3-arm-Debug-Android'
Eric Boren4c7754c2017-04-10 08:19:10 -0400873 yield (
874 api.test('failed_get_hashes') +
875 api.properties(buildername=builder,
Eric Boren4c7754c2017-04-10 08:19:10 -0400876 revision='abc123',
877 path_config='kitchen',
878 swarm_out_dir='[SWARM_OUT_DIR]') +
879 api.path.exists(
880 api.path['start_dir'].join('skia'),
881 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
882 'skimage', 'VERSION'),
883 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
884 'skp', 'VERSION'),
885 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
886 'svg', 'VERSION'),
887 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
888 ) +
889 api.step_data('get uninteresting hashes', retcode=1)
890 )
891
Kevin Lubickfe079d42017-04-12 08:31:48 -0400892 builder = 'Test-Android-Clang-NexusPlayer-CPU-SSE4-x86-Debug-Android'
Eric Boren4c7754c2017-04-10 08:19:10 -0400893 yield (
894 api.test('failed_push') +
895 api.properties(buildername=builder,
Eric Boren4c7754c2017-04-10 08:19:10 -0400896 revision='abc123',
897 path_config='kitchen',
898 swarm_out_dir='[SWARM_OUT_DIR]') +
899 api.path.exists(
900 api.path['start_dir'].join('skia'),
901 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
902 'skimage', 'VERSION'),
903 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
904 'skp', 'VERSION'),
905 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
906 'svg', 'VERSION'),
907 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
908 ) +
909 api.step_data('push [START_DIR]/skia/resources/* '+
910 '/sdcard/revenge_of_the_skiabot/resources', retcode=1)
911 )
912
913 builder = 'Test-Android-Clang-Nexus10-GPU-MaliT604-arm-Debug-Android'
914 yield (
915 api.test('failed_pull') +
916 api.properties(buildername=builder,
Eric Boren4c7754c2017-04-10 08:19:10 -0400917 revision='abc123',
918 path_config='kitchen',
919 swarm_out_dir='[SWARM_OUT_DIR]') +
920 api.path.exists(
921 api.path['start_dir'].join('skia'),
922 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
923 'skimage', 'VERSION'),
924 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
925 'skp', 'VERSION'),
926 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
927 'svg', 'VERSION'),
928 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
929 ) +
930 api.step_data('dm', retcode=1) +
931 api.step_data('pull /sdcard/revenge_of_the_skiabot/dm_out '+
932 '[CUSTOM_[SWARM_OUT_DIR]]/dm', retcode=1)
borenetbfa5b452016-10-19 10:13:32 -0700933 )