blob: 640cfcaef8f498909660e5658d7b98ffc73ce15a [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:
Mike Kleindf669812017-06-23 13:30:17 -040037 args.extend(['--threads', '4'])
Eric Boren4c7754c2017-04-10 08:19:10 -040038
39 # Avoid issues with dynamically exceeding resource cache limits.
40 if 'Test' in bot and 'DISCARDABLE' in bot:
Mike Kleindf669812017-06-23 13:30:17 -040041 args.extend(['--threads', '0'])
42
43 # See if staying on the main thread helps skia:6748.
44 if 'Test-iOS' in bot:
45 args.extend(['--threads', '0'])
Eric Boren4c7754c2017-04-10 08:19:10 -040046
47 # These are the canonical configs that we would ideally run on all bots. We
48 # may opt out or substitute some below for specific bots
49 configs = ['8888', 'srgb', 'pdf']
50 # Add in either gles or gl configs to the canonical set based on OS
51 sample_count = '8'
52 gl_prefix = 'gl'
53 if 'Android' in bot or 'iOS' in bot:
54 sample_count = '4'
55 # We want to test the OpenGL config not the GLES config on the Shield
56 if 'NVIDIA_Shield' not in bot:
57 gl_prefix = 'gles'
58 elif 'Intel' in bot:
59 sample_count = ''
60 elif 'ChromeOS' in bot:
61 gl_prefix = 'gles'
62
63 configs.extend([gl_prefix, gl_prefix + 'dft', gl_prefix + 'srgb'])
64 if sample_count is not '':
65 configs.append(gl_prefix + 'msaa' + sample_count)
66
67 # The NP produces a long error stream when we run with MSAA. The Tegra3 just
68 # doesn't support it.
69 if ('NexusPlayer' in bot or
70 'Tegra3' in bot or
Stephan Altmueller93787322017-04-25 14:40:10 -040071 # We aren't interested in fixing msaa bugs on current iOS devices.
Eric Boren4c7754c2017-04-10 08:19:10 -040072 'iPad4' in bot or
Stephan Altmueller93787322017-04-25 14:40:10 -040073 'iPadPro' in bot or
74 'iPhone6' in bot or
75 'iPhone7' in bot or
Eric Boren4c7754c2017-04-10 08:19:10 -040076 # skia:5792
Robert Phillips985e1922017-05-25 07:56:01 -040077 'IntelHD530' in bot or
Eric Boren4c7754c2017-04-10 08:19:10 -040078 'IntelIris540' in bot):
79 configs = [x for x in configs if 'msaa' not in x]
80
81 # The NP produces different images for dft on every run.
82 if 'NexusPlayer' in bot:
83 configs = [x for x in configs if 'dft' not in x]
84
85 # Runs out of memory on Android bots. Everyone else seems fine.
86 if 'Android' in bot:
87 configs.remove('pdf')
88
89 if '-GCE-' in bot:
90 configs.extend(['565'])
91 configs.extend(['f16'])
92 configs.extend(['sp-8888', '2ndpic-8888']) # Test niche uses of SkPicture.
93 configs.extend(['lite-8888']) # Experimental display list.
94 configs.extend(['gbr-8888'])
95
96 if '-TSAN' not in bot and sample_count is not '':
97 if ('TegraK1' in bot or
98 'TegraX1' in bot or
99 'GTX550Ti' in bot or
100 'GTX660' in bot or
101 'GT610' in bot):
102 configs.append(gl_prefix + 'nvprdit' + sample_count)
103
104 # We want to test both the OpenGL config and the GLES config on Linux Intel:
105 # GL is used by Chrome, GLES is used by ChromeOS.
106 if 'Intel' in bot and 'Ubuntu' in bot:
107 configs.extend(['gles', 'glesdft', 'glessrgb'])
108
109 # NP is running out of RAM when we run all these modes. skia:3255
110 if 'NexusPlayer' not in bot:
111 configs.extend(mode + '-8888' for mode in
112 ['serialize', 'tiles_rt', 'pic'])
113
114 # Test instanced rendering on a limited number of platforms
115 if 'Nexus6' in bot:
116 configs.append(gl_prefix + 'inst') # inst msaa isn't working yet on Adreno.
117 elif 'NVIDIA_Shield' in bot or 'PixelC' in bot:
118 # Multisampled instanced configs use nvpr so we substitute inst msaa
119 # configs for nvpr msaa configs.
120 old = gl_prefix + 'nvpr'
121 new = gl_prefix + 'inst'
122 configs = [x.replace(old, new) for x in configs]
123 # We also test non-msaa instanced.
124 configs.append(new)
125 elif 'MacMini6.2' in bot and sample_count is not '':
126 configs.extend([gl_prefix + 'inst', gl_prefix + 'inst' + sample_count])
127
128 # CommandBuffer bot *only* runs the command_buffer config.
129 if 'CommandBuffer' in bot:
130 configs = ['commandbuffer']
131
132 # ANGLE bot *only* runs the angle configs
133 if 'ANGLE' in bot:
134 configs = ['angle_d3d11_es2',
135 'angle_d3d9_es2',
Brian Salomon8c865882017-06-22 09:56:24 -0400136 'angle_gl_es2',
137 'angle_d3d11_es3']
Eric Boren4c7754c2017-04-10 08:19:10 -0400138 if sample_count is not '':
139 configs.append('angle_d3d11_es2_msaa' + sample_count)
Brian Salomon8c865882017-06-22 09:56:24 -0400140 configs.append('angle_d3d11_es3_msaa' + sample_count)
Eric Boren4c7754c2017-04-10 08:19:10 -0400141
142 # Vulkan bot *only* runs the vk config.
143 if 'Vulkan' in bot:
144 configs = ['vk']
145
146 if 'ChromeOS' in bot:
147 # Just run GLES for now - maybe add gles_msaa4 in the future
148 configs = ['gles']
149
Kevin Lubickae95db42017-04-10 13:05:49 -0400150 if 'Ci20' in bot:
151 # This bot is really slow, cut it down to just 8888.
152 configs = ['8888']
153
Mike Klein97627d42017-05-11 13:12:48 -0400154 # This bot only differs from vanilla CPU bots in 8888 config.
155 if 'SK_FORCE_RASTER_PIPELINE_BLITTER' in bot:
Mike Kleinf6ca16e2017-05-24 14:08:33 -0400156 configs = ['8888', 'srgb']
Mike Klein97627d42017-05-11 13:12:48 -0400157
Eric Boren4c7754c2017-04-10 08:19:10 -0400158 args.append('--config')
159 args.extend(configs)
160
161 # Run tests, gms, and image decoding tests everywhere.
162 args.extend('--src tests gm image colorImage svg'.split(' '))
163 if 'Vulkan' in bot and 'NexusPlayer' in bot:
164 args.remove('svg')
165 args.remove('image')
166
Mike Klein97627d42017-05-11 13:12:48 -0400167 # Eventually I'd like these to pass, but for now just skip 'em.
168 if 'SK_FORCE_RASTER_PIPELINE_BLITTER' in bot:
169 args.remove('tests')
170
Eric Boren4c7754c2017-04-10 08:19:10 -0400171 blacklisted = []
172 def blacklist(quad):
173 config, src, options, name = quad.split(' ') if type(quad) is str else quad
174 if config == '_' or config in configs:
175 blacklisted.extend([config, src, options, name])
176
177 # TODO: ???
178 blacklist('f16 _ _ dstreadshuffle')
179 blacklist('glsrgb image _ _')
180 blacklist('glessrgb image _ _')
181
Eric Boren4c7754c2017-04-10 08:19:10 -0400182 # Not any point to running these.
183 blacklist('gbr-8888 image _ _')
184 blacklist('gbr-8888 colorImage _ _')
185
186 if 'Valgrind' in bot:
187 # These take 18+ hours to run.
188 blacklist('pdf gm _ fontmgr_iter')
189 blacklist('pdf _ _ PANO_20121023_214540.jpg')
190 blacklist('pdf skp _ worldjournal')
191 blacklist('pdf skp _ desk_baidu.skp')
192 blacklist('pdf skp _ desk_wikipedia.skp')
193 blacklist('_ svg _ _')
194
195 if 'iOS' in bot:
196 blacklist(gl_prefix + ' skp _ _')
197
198 if 'Mac' in bot or 'iOS' in bot:
199 # CG fails on questionable bmps
200 blacklist('_ image gen_platf rgba32abf.bmp')
201 blacklist('_ image gen_platf rgb24prof.bmp')
202 blacklist('_ image gen_platf rgb24lprof.bmp')
203 blacklist('_ image gen_platf 8bpp-pixeldata-cropped.bmp')
204 blacklist('_ image gen_platf 4bpp-pixeldata-cropped.bmp')
205 blacklist('_ image gen_platf 32bpp-pixeldata-cropped.bmp')
206 blacklist('_ image gen_platf 24bpp-pixeldata-cropped.bmp')
207
208 # CG has unpredictable behavior on this questionable gif
209 # It's probably using uninitialized memory
210 blacklist('_ image gen_platf frame_larger_than_image.gif')
211
212 # CG has unpredictable behavior on incomplete pngs
213 # skbug.com/5774
214 blacklist('_ image gen_platf inc0.png')
215 blacklist('_ image gen_platf inc1.png')
216 blacklist('_ image gen_platf inc2.png')
217 blacklist('_ image gen_platf inc3.png')
218 blacklist('_ image gen_platf inc4.png')
219 blacklist('_ image gen_platf inc5.png')
220 blacklist('_ image gen_platf inc6.png')
221 blacklist('_ image gen_platf inc7.png')
222 blacklist('_ image gen_platf inc8.png')
223 blacklist('_ image gen_platf inc9.png')
224 blacklist('_ image gen_platf inc10.png')
225 blacklist('_ image gen_platf inc11.png')
226 blacklist('_ image gen_platf inc12.png')
227 blacklist('_ image gen_platf inc13.png')
228 blacklist('_ image gen_platf inc14.png')
229
Matt Sarett6c50a2e2017-05-01 09:13:05 -0400230 # WIC fails on questionable bmps
Eric Boren4c7754c2017-04-10 08:19:10 -0400231 if 'Win' in bot:
232 blacklist('_ image gen_platf rle8-height-negative.bmp')
233 blacklist('_ image gen_platf rle4-height-negative.bmp')
234 blacklist('_ image gen_platf pal8os2v2.bmp')
235 blacklist('_ image gen_platf pal8os2v2-16.bmp')
236 blacklist('_ image gen_platf rgba32abf.bmp')
237 blacklist('_ image gen_platf rgb24prof.bmp')
238 blacklist('_ image gen_platf rgb24lprof.bmp')
239 blacklist('_ image gen_platf 8bpp-pixeldata-cropped.bmp')
240 blacklist('_ image gen_platf 4bpp-pixeldata-cropped.bmp')
241 blacklist('_ image gen_platf 32bpp-pixeldata-cropped.bmp')
242 blacklist('_ image gen_platf 24bpp-pixeldata-cropped.bmp')
Eric Boren4c7754c2017-04-10 08:19:10 -0400243 if 'x86_64' in bot and 'CPU' in bot:
244 # This GM triggers a SkSmallAllocator assert.
245 blacklist('_ gm _ composeshader_bitmap')
246
Matt Sarett6c50a2e2017-05-01 09:13:05 -0400247 # WIC and CG fail on arithmetic jpegs
248 if 'Win' in bot or 'Mac' in bot:
249 blacklist('_ image gen_platf testimgari.jpg')
250
Eric Boren4c7754c2017-04-10 08:19:10 -0400251 if 'Android' in bot or 'iOS' in bot:
252 # This test crashes the N9 (perhaps because of large malloc/frees). It also
253 # is fairly slow and not platform-specific. So we just disable it on all of
254 # Android and iOS. skia:5438
255 blacklist('_ test _ GrShape')
256
Eric Boren4c7754c2017-04-10 08:19:10 -0400257 # skia:4095
Mike Reedfb499092017-06-26 13:53:32 +0000258 bad_serialize_gms = ['bleed_image',
Eric Boren4c7754c2017-04-10 08:19:10 -0400259 'c_gms',
260 'colortype',
261 'colortype_xfermodes',
262 'drawfilter',
263 'fontmgr_bounds_0.75_0',
264 'fontmgr_bounds_1_-0.25',
265 'fontmgr_bounds',
266 'fontmgr_match',
267 'fontmgr_iter',
268 'imagemasksubset']
269
270 # skia:5589
271 bad_serialize_gms.extend(['bitmapfilters',
272 'bitmapshaders',
273 'bleed',
274 'bleed_alpha_bmp',
275 'bleed_alpha_bmp_shader',
276 'convex_poly_clip',
277 'extractalpha',
278 'filterbitmap_checkerboard_32_32_g8',
279 'filterbitmap_image_mandrill_64',
280 'shadows',
281 'simpleaaclip_aaclip'])
282 # skia:5595
283 bad_serialize_gms.extend(['composeshader_bitmap',
284 'scaled_tilemodes_npot',
285 'scaled_tilemodes'])
286
287 # skia:5778
288 bad_serialize_gms.append('typefacerendering_pfaMac')
289 # skia:5942
290 bad_serialize_gms.append('parsedpaths')
291
292 # these use a custom image generator which doesn't serialize
293 bad_serialize_gms.append('ImageGeneratorExternal_rect')
294 bad_serialize_gms.append('ImageGeneratorExternal_shader')
295
296 # skia:6189
297 bad_serialize_gms.append('shadow_utils')
298
Matt Sarett9f3dcb32017-05-04 08:53:32 -0400299 # Not expected to round trip encoding/decoding.
300 bad_serialize_gms.append('makecolorspace')
301
Eric Boren4c7754c2017-04-10 08:19:10 -0400302 for test in bad_serialize_gms:
303 blacklist(['serialize-8888', 'gm', '_', test])
304
305 if 'Mac' not in bot:
306 for test in ['bleed_alpha_image', 'bleed_alpha_image_shader']:
307 blacklist(['serialize-8888', 'gm', '_', test])
308 # It looks like we skip these only for out-of-memory concerns.
309 if 'Win' in bot or 'Android' in bot:
310 for test in ['verylargebitmap', 'verylarge_picture_image']:
311 blacklist(['serialize-8888', 'gm', '_', test])
312
313 # skia:4769
314 for test in ['drawfilter']:
315 blacklist([ 'sp-8888', 'gm', '_', test])
316 blacklist([ 'pic-8888', 'gm', '_', test])
317 blacklist(['2ndpic-8888', 'gm', '_', test])
318 blacklist([ 'lite-8888', 'gm', '_', test])
319 # skia:4703
320 for test in ['image-cacherator-from-picture',
321 'image-cacherator-from-raster',
322 'image-cacherator-from-ctable']:
323 blacklist([ 'sp-8888', 'gm', '_', test])
324 blacklist([ 'pic-8888', 'gm', '_', test])
325 blacklist([ '2ndpic-8888', 'gm', '_', test])
326 blacklist(['serialize-8888', 'gm', '_', test])
327
328 # GM that requires raster-backed canvas
329 for test in ['gamut', 'complexclip4_bw', 'complexclip4_aa']:
330 blacklist([ 'sp-8888', 'gm', '_', test])
331 blacklist([ 'pic-8888', 'gm', '_', test])
332 blacklist([ 'lite-8888', 'gm', '_', test])
333 blacklist([ '2ndpic-8888', 'gm', '_', test])
334 blacklist(['serialize-8888', 'gm', '_', test])
335
336 # GM that not support tiles_rt
337 for test in ['complexclip4_bw', 'complexclip4_aa']:
338 blacklist([ 'tiles_rt-8888', 'gm', '_', test])
339
340 # Extensions for RAW images
341 r = ["arw", "cr2", "dng", "nef", "nrw", "orf", "raf", "rw2", "pef", "srw",
342 "ARW", "CR2", "DNG", "NEF", "NRW", "ORF", "RAF", "RW2", "PEF", "SRW"]
343
344 # skbug.com/4888
345 # Blacklist RAW images (and a few large PNGs) on GPU bots
346 # until we can resolve failures.
Matt Sarett929bfeb2017-05-22 10:34:41 -0400347 if 'GPU' in bot:
348 blacklist('_ image _ interlaced1.png')
349 blacklist('_ image _ interlaced2.png')
350 blacklist('_ image _ interlaced3.png')
351 for raw_ext in r:
352 blacklist('_ image _ .%s' % raw_ext)
353
354 # Blacklist memory intensive tests on 32-bit bots.
355 if ('Win2k8' in bot or 'Win8' in bot) and 'x86-' in bot:
356 blacklist('_ image f16 _')
Matt Sarett112565e2017-05-22 13:45:15 -0400357 blacklist('_ image _ abnormal.wbmp')
Eric Boren4c7754c2017-04-10 08:19:10 -0400358 blacklist('_ image _ interlaced1.png')
359 blacklist('_ image _ interlaced2.png')
360 blacklist('_ image _ interlaced3.png')
361 for raw_ext in r:
362 blacklist('_ image _ .%s' % raw_ext)
363
Eric Boren4c7754c2017-04-10 08:19:10 -0400364 if 'IntelHD405' in bot and 'Ubuntu16' in bot:
365 # skia:6331
366 blacklist(['glmsaa8', 'image', 'gen_codec_gpu', 'abnormal.wbmp'])
367 blacklist(['glesmsaa4', 'image', 'gen_codec_gpu', 'abnormal.wbmp'])
368
369 if 'Nexus5' in bot:
370 # skia:5876
371 blacklist(['_', 'gm', '_', 'encode-platform'])
372
373 if 'AndroidOne-GPU' in bot: # skia:4697, skia:4704, skia:4694, skia:4705
374 blacklist(['_', 'gm', '_', 'bigblurs'])
375 blacklist(['_', 'gm', '_', 'bleed'])
376 blacklist(['_', 'gm', '_', 'bleed_alpha_bmp'])
377 blacklist(['_', 'gm', '_', 'bleed_alpha_bmp_shader'])
378 blacklist(['_', 'gm', '_', 'bleed_alpha_image'])
379 blacklist(['_', 'gm', '_', 'bleed_alpha_image_shader'])
380 blacklist(['_', 'gm', '_', 'bleed_image'])
381 blacklist(['_', 'gm', '_', 'dropshadowimagefilter'])
382 blacklist(['_', 'gm', '_', 'filterfastbounds'])
383 blacklist([gl_prefix, 'gm', '_', 'imageblurtiled'])
384 blacklist(['_', 'gm', '_', 'imagefiltersclipped'])
385 blacklist(['_', 'gm', '_', 'imagefiltersscaled'])
386 blacklist(['_', 'gm', '_', 'imageresizetiled'])
387 blacklist(['_', 'gm', '_', 'matrixconvolution'])
388 blacklist(['_', 'gm', '_', 'strokedlines'])
389 if sample_count is not '':
390 gl_msaa_config = gl_prefix + 'msaa' + sample_count
391 blacklist([gl_msaa_config, 'gm', '_', 'imageblurtiled'])
392 blacklist([gl_msaa_config, 'gm', '_', 'imagefiltersbase'])
393
394 match = []
395 if 'Valgrind' in bot: # skia:3021
396 match.append('~Threaded')
397
Ben Wagner6c126422017-06-19 12:45:54 -0400398 if 'Valgrind' in bot and 'PreAbandonGpuContext' in bot:
399 # skia:6575
400 match.append('~multipicturedraw_')
401
Ben Wagnerbb3e7ff2017-04-28 15:28:32 -0400402 if 'CommandBuffer' in bot:
403 # https://crbug.com/697030
404 match.append('~HalfFloatAlphaTextureTest')
405
Eric Boren4c7754c2017-04-10 08:19:10 -0400406 if 'AndroidOne' in bot: # skia:4711
407 match.append('~WritePixels')
408
409 if 'NexusPlayer' in bot:
410 match.append('~ResourceCache')
411
412 if 'Nexus10' in bot:
413 match.append('~CopySurface') # skia:5509
414 match.append('~SRGBReadWritePixels') # skia:6097
415
Eric Boren4c7754c2017-04-10 08:19:10 -0400416 if 'GalaxyS6' in bot:
417 match.append('~SpecialImage') # skia:6338
Brian Osmaneee3c092017-06-15 13:25:10 -0400418 match.append('~skbug6653') # skia:6653
Eric Boren4c7754c2017-04-10 08:19:10 -0400419
420 if 'GalaxyS7_G930A' in bot:
421 match.append('~WritePixels') # skia:6427
422
Jim Van Verthca626b72017-06-22 12:34:56 -0400423 if 'NVIDIA_Shield' in bot:
424 match.append('~TransferPixels') # skia:6784
425
Eric Boren4c7754c2017-04-10 08:19:10 -0400426 if 'MSAN' in bot:
427 match.extend(['~Once', '~Shared']) # Not sure what's up with these tests.
428
429 if 'TSAN' in bot:
430 match.extend(['~ReadWriteAlpha']) # Flaky on TSAN-covered on nvidia bots.
431 match.extend(['~RGBA4444TextureTest', # Flakier than they are important.
432 '~RGB565TextureTest'])
433
Greg Daniela86385d2017-06-05 11:34:29 -0400434 if 'Vulkan' in bot and 'Adreno530' in bot:
435 # skia:5777
436 match.extend(['~CopySurface'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400437
438 if 'Vulkan' in bot and 'NexusPlayer' in bot:
Greg Daniel98fae702017-06-05 09:22:46 -0400439 match.extend(['~gradients_no_texture$', # skia:6132
Eric Boren4c7754c2017-04-10 08:19:10 -0400440 '~tilemodes', # skia:6132
441 '~shadertext$', # skia:6132
442 '~bitmapfilters', # skia:6132
443 '~GrContextFactory_abandon']) #skia:6209
444
445 if 'Vulkan' in bot and 'IntelIris540' in bot and 'Ubuntu' in bot:
446 match.extend(['~VkHeapTests']) # skia:6245
447
Ben Wagnerf1debdf2017-06-13 13:37:05 -0400448 if 'Vulkan' in bot and 'IntelIris540' in bot and 'Win' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400449 # skia:6398
450 blacklist(['vk', 'gm', '_', 'aarectmodes'])
451 blacklist(['vk', 'gm', '_', 'aaxfermodes'])
452 blacklist(['vk', 'gm', '_', 'arithmode'])
453 blacklist(['vk', 'gm', '_', 'composeshader_bitmap'])
454 blacklist(['vk', 'gm', '_', 'composeshader_bitmap2'])
455 blacklist(['vk', 'gm', '_', 'dftextCOLR'])
456 blacklist(['vk', 'gm', '_', 'drawregionmodes'])
457 blacklist(['vk', 'gm', '_', 'filterfastbounds'])
458 blacklist(['vk', 'gm', '_', 'fontcache'])
459 blacklist(['vk', 'gm', '_', 'fontmgr_iterWin10'])
460 blacklist(['vk', 'gm', '_', 'fontmgr_iter_factoryWin10'])
461 blacklist(['vk', 'gm', '_', 'fontmgr_matchWin10'])
462 blacklist(['vk', 'gm', '_', 'fontscalerWin'])
463 blacklist(['vk', 'gm', '_', 'fontscalerdistortable'])
464 blacklist(['vk', 'gm', '_', 'gammagradienttext'])
465 blacklist(['vk', 'gm', '_', 'gammatextWin'])
466 blacklist(['vk', 'gm', '_', 'gradtext'])
467 blacklist(['vk', 'gm', '_', 'hairmodes'])
468 blacklist(['vk', 'gm', '_', 'imagefilters_xfermodes'])
469 blacklist(['vk', 'gm', '_', 'imagefiltersclipped'])
470 blacklist(['vk', 'gm', '_', 'imagefiltersgraph'])
471 blacklist(['vk', 'gm', '_', 'imagefiltersscaled'])
472 blacklist(['vk', 'gm', '_', 'imagefiltersstroked'])
473 blacklist(['vk', 'gm', '_', 'imagefilterstransformed'])
474 blacklist(['vk', 'gm', '_', 'imageresizetiled'])
475 blacklist(['vk', 'gm', '_', 'lcdblendmodes'])
476 blacklist(['vk', 'gm', '_', 'lcdoverlap'])
477 blacklist(['vk', 'gm', '_', 'lcdtextWin'])
478 blacklist(['vk', 'gm', '_', 'lcdtextsize'])
479 blacklist(['vk', 'gm', '_', 'matriximagefilter'])
480 blacklist(['vk', 'gm', '_', 'mixedtextblobsCOLR'])
Greg Daniel744d3c52017-06-09 13:50:20 -0400481 blacklist(['vk', 'gm', '_', 'mixershader'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400482 blacklist(['vk', 'gm', '_', 'pictureimagefilter'])
483 blacklist(['vk', 'gm', '_', 'resizeimagefilter'])
484 blacklist(['vk', 'gm', '_', 'rotate_imagefilter'])
485 blacklist(['vk', 'gm', '_', 'savelayer_lcdtext'])
486 blacklist(['vk', 'gm', '_', 'srcmode'])
487 blacklist(['vk', 'gm', '_', 'surfaceprops'])
488 blacklist(['vk', 'gm', '_', 'textblobgeometrychange'])
489 blacklist(['vk', 'gm', '_', 'textbloblooper'])
490 blacklist(['vk', 'gm', '_', 'textblobmixedsizes'])
491 blacklist(['vk', 'gm', '_', 'textblobmixedsizes_df'])
492 blacklist(['vk', 'gm', '_', 'textblobrandomfont'])
493 blacklist(['vk', 'gm', '_', 'textfilter_color'])
494 blacklist(['vk', 'gm', '_', 'textfilter_image'])
495 blacklist(['vk', 'gm', '_', 'typefacerenderingWin'])
496 blacklist(['vk', 'gm', '_', 'varied_text_clipped_lcd'])
497 blacklist(['vk', 'gm', '_', 'varied_text_ignorable_clip_lcd'])
498 blacklist(['vk', 'gm', '_', 'xfermodeimagefilter'])
499 match.append('~ApplyGamma')
500 match.append('~ComposedImageFilterBounds_Gpu')
Matt Sarett77443972017-04-11 11:25:37 -0400501 match.append('~DeferredTextureImage')
Chris Dalton114a3c02017-05-26 15:17:19 -0600502 match.append('~GrMeshTest')
Eric Boren4c7754c2017-04-10 08:19:10 -0400503 match.append('~ImageFilterFailAffectsTransparentBlack_Gpu')
504 match.append('~ImageFilterZeroBlurSigma_Gpu')
505 match.append('~ImageNewShader_GPU')
506 match.append('~NewTextureFromPixmap')
507 match.append('~ReadPixels_Gpu')
508 match.append('~ReadPixels_Texture')
509 match.append('~ReadWriteAlpha')
Brian Osmane18ceb12017-06-15 16:04:45 -0400510 match.append('~skbug6653')
Eric Boren4c7754c2017-04-10 08:19:10 -0400511 match.append('~SRGBReadWritePixels')
512 match.append('~SpecialImage_DeferredGpu')
513 match.append('~SpecialImage_Gpu')
514 match.append('~WritePixels_Gpu')
Brian Osman33ea1362017-04-19 10:51:39 -0400515 match.append('~WritePixelsNonTexture_Gpu')
Eric Boren4c7754c2017-04-10 08:19:10 -0400516 match.append('~XfermodeImageFilterCroppedInput_Gpu')
517
518 if 'IntelIris540' in bot and 'ANGLE' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400519 for config in ['angle_d3d9_es2', 'angle_d3d11_es2', 'angle_gl_es2']:
Brian Salomon6e554e32017-06-23 12:08:10 -0400520 # skia:6103
Eric Boren4c7754c2017-04-10 08:19:10 -0400521 blacklist([config, 'gm', '_', 'multipicturedraw_invpathclip_simple'])
522 blacklist([config, 'gm', '_', 'multipicturedraw_noclip_simple'])
523 blacklist([config, 'gm', '_', 'multipicturedraw_pathclip_simple'])
524 blacklist([config, 'gm', '_', 'multipicturedraw_rectclip_simple'])
525 blacklist([config, 'gm', '_', 'multipicturedraw_rrectclip_simple'])
Brian Salomon6e554e32017-06-23 12:08:10 -0400526 # skia:6141
527 blacklist([config, 'gm', '_', 'discard'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400528
529 if 'IntelBayTrail' in bot and 'Ubuntu' in bot:
530 match.append('~ImageStorageLoad') # skia:6358
531
Kevin Lubickae95db42017-04-10 13:05:49 -0400532 if 'Ci20' in bot:
533 match.append('~Codec_Dimensions') # skia:6477
534 match.append('~FontMgrAndroidParser') # skia:6478
535 match.append('~PathOpsSimplify') # skia:6479
536 blacklist(['_', 'gm', '_', 'fast_slow_blurimagefilter']) # skia:6480
537
Leon Scroggins III2005d772017-05-01 13:09:42 -0400538 if ('Win10' in bot and 'Vulkan' in bot
539 and ('GTX1070' in bot or 'GTX660' in bot)):
540 blacklist('_ test _ SkImage_makeTextureImage') # skia:6554
Kevin Lubickae95db42017-04-10 13:05:49 -0400541
Eric Boren4c7754c2017-04-10 08:19:10 -0400542 if blacklisted:
543 args.append('--blacklist')
544 args.extend(blacklisted)
545
546 if match:
547 args.append('--match')
548 args.extend(match)
549
550 # These bots run out of memory running RAW codec tests. Do not run them in
551 # parallel
552 if ('NexusPlayer' in bot or 'Nexus5' in bot or 'Nexus9' in bot
553 or 'Win8-MSVC-ShuttleB' in bot):
554 args.append('--noRAW_threading')
555
Ben Wagner40c0f242017-04-28 15:55:35 -0400556 if 'Valgrind' in bot and 'PreAbandonGpuContext' in bot:
557 args.append('--verbose')
558
Mike Kleinc9089062017-06-26 09:09:32 -0400559 if 'NexusPlayer' in bot and 'CPU' in bot:
560 # The Nexus Player's image decoding tests are slow enough that swarming
561 # times it out for not printing anything frequently enough. --verbose
562 # makes dm print something every time we start or complete a task.
563 args.append('--verbose')
564
Eric Boren4c7754c2017-04-10 08:19:10 -0400565 return args
566
567
568def key_params(api):
569 """Build a unique key from the builder name (as a list).
570
571 E.g. arch x86 gpu GeForce320M mode MacMini4.1 os Mac10.6
572 """
573 # Don't bother to include role, which is always Test.
574 # TryBots are uploaded elsewhere so they can use the same key.
575 blacklist = ['role', 'is_trybot']
576
577 flat = []
578 for k in sorted(api.vars.builder_cfg.keys()):
579 if k not in blacklist:
580 flat.append(k)
581 flat.append(api.vars.builder_cfg[k])
582 return flat
583
584
585def test_steps(api):
586 """Run the DM test."""
587 use_hash_file = False
588 if api.vars.upload_dm_results:
589 # This must run before we write anything into
590 # api.flavor.device_dirs.dm_dir or we may end up deleting our
591 # output on machines where they're the same.
592 api.flavor.create_clean_host_dir(api.vars.dm_dir)
593 host_dm_dir = str(api.vars.dm_dir)
594 device_dm_dir = str(api.flavor.device_dirs.dm_dir)
595 if host_dm_dir != device_dm_dir:
596 api.flavor.create_clean_device_dir(device_dm_dir)
597
598 # Obtain the list of already-generated hashes.
599 hash_filename = 'uninteresting_hashes.txt'
600
601 # Ensure that the tmp_dir exists.
Eric Boren3e2ffd72017-06-16 13:10:22 -0400602 api.run.run_once(api.shutil.makedirs,
603 'tmp_dir',
604 api.vars.tmp_dir,
605 infra_step=True)
Eric Boren4c7754c2017-04-10 08:19:10 -0400606
607 host_hashes_file = api.vars.tmp_dir.join(hash_filename)
608 hashes_file = api.flavor.device_path_join(
609 api.flavor.device_dirs.tmp_dir, hash_filename)
610 api.run(
611 api.python.inline,
612 'get uninteresting hashes',
613 program="""
614 import contextlib
615 import math
616 import socket
617 import sys
618 import time
619 import urllib2
620
Stephan Altmuellerc19ebc52017-05-30 16:39:17 -0400621 HASHES_URL = 'https://storage.googleapis.com/skia-infra-gm/hash_files/gold-prod-hashes.txt'
Eric Boren4c7754c2017-04-10 08:19:10 -0400622 RETRIES = 5
623 TIMEOUT = 60
624 WAIT_BASE = 15
625
626 socket.setdefaulttimeout(TIMEOUT)
627 for retry in range(RETRIES):
628 try:
629 with contextlib.closing(
630 urllib2.urlopen(HASHES_URL, timeout=TIMEOUT)) as w:
631 hashes = w.read()
632 with open(sys.argv[1], 'w') as f:
633 f.write(hashes)
634 break
635 except Exception as e:
636 print 'Failed to get uninteresting hashes from %s:' % HASHES_URL
637 print e
638 if retry == RETRIES:
639 raise
640 waittime = WAIT_BASE * math.pow(2, retry)
641 print 'Retry in %d seconds.' % waittime
642 time.sleep(waittime)
643 """,
644 args=[host_hashes_file],
645 abort_on_failure=False,
646 fail_build_on_failure=False,
647 infra_step=True)
648
649 if api.path.exists(host_hashes_file):
650 api.flavor.copy_file_to_device(host_hashes_file, hashes_file)
651 use_hash_file = True
652
653 # Run DM.
654 properties = [
655 'gitHash', api.vars.got_revision,
Eric Boren4c7754c2017-04-10 08:19:10 -0400656 'builder', api.vars.builder_name,
Eric Boren4c7754c2017-04-10 08:19:10 -0400657 ]
658 if api.vars.is_trybot:
659 properties.extend([
660 'issue', api.vars.issue,
661 'patchset', api.vars.patchset,
662 'patch_storage', api.vars.patch_storage,
663 ])
Eric Borenf9aa9e52017-04-10 09:56:10 -0400664 properties.extend(['swarming_bot_id', api.vars.swarming_bot_id])
665 properties.extend(['swarming_task_id', api.vars.swarming_task_id])
Eric Boren4c7754c2017-04-10 08:19:10 -0400666
667 args = [
668 'dm',
669 '--undefok', # This helps branches that may not know new flags.
670 '--resourcePath', api.flavor.device_dirs.resource_dir,
671 '--skps', api.flavor.device_dirs.skp_dir,
672 '--images', api.flavor.device_path_join(
673 api.flavor.device_dirs.images_dir, 'dm'),
674 '--colorImages', api.flavor.device_path_join(
675 api.flavor.device_dirs.images_dir, 'colorspace'),
676 '--nameByHash',
677 '--properties'
678 ] + properties
679
680 args.extend(['--svgs', api.flavor.device_dirs.svg_dir])
681
682 args.append('--key')
683 args.extend(key_params(api))
684 if use_hash_file:
685 args.extend(['--uninterestingHashesFile', hashes_file])
686 if api.vars.upload_dm_results:
687 args.extend(['--writePath', api.flavor.device_dirs.dm_dir])
688
689 skip_flag = None
690 if api.vars.builder_cfg.get('cpu_or_gpu') == 'CPU':
691 skip_flag = '--nogpu'
692 elif api.vars.builder_cfg.get('cpu_or_gpu') == 'GPU':
693 skip_flag = '--nocpu'
694 if skip_flag:
695 args.append(skip_flag)
696 args.extend(dm_flags(api.vars.builder_name))
697
Eric Boren896af752017-04-24 13:22:56 -0400698 env = {}
Eric Boren4c7754c2017-04-10 08:19:10 -0400699 if 'Ubuntu16' in api.vars.builder_name:
700 # The vulkan in this asset name simply means that the graphics driver
701 # supports Vulkan. It is also the driver used for GL code.
702 dri_path = api.vars.slave_dir.join('linux_vulkan_intel_driver_release')
703 if 'Debug' in api.vars.builder_name:
704 dri_path = api.vars.slave_dir.join('linux_vulkan_intel_driver_debug')
705
706 if 'Vulkan' in api.vars.builder_name:
707 sdk_path = api.vars.slave_dir.join('linux_vulkan_sdk', 'bin')
708 lib_path = api.vars.slave_dir.join('linux_vulkan_sdk', 'lib')
709 env.update({
710 'PATH':'%%(PATH)s:%s' % sdk_path,
711 'LD_LIBRARY_PATH': '%s:%s' % (lib_path, dri_path),
712 'LIBGL_DRIVERS_PATH': dri_path,
713 'VK_ICD_FILENAMES':'%s' % dri_path.join('intel_icd.x86_64.json'),
714 })
715 else:
716 # Even the non-vulkan NUC jobs could benefit from the newer drivers.
717 env.update({
718 'LD_LIBRARY_PATH': dri_path,
719 'LIBGL_DRIVERS_PATH': dri_path,
720 })
721
722 # See skia:2789.
Ben Wagner988d15e2017-04-27 13:08:50 -0400723 extra_config_parts = api.vars.builder_cfg.get('extra_config', '').split('_')
724 if 'AbandonGpuContext' in extra_config_parts:
Eric Boren4c7754c2017-04-10 08:19:10 -0400725 args.append('--abandonGpuContext')
Ben Wagner988d15e2017-04-27 13:08:50 -0400726 if 'PreAbandonGpuContext' in extra_config_parts:
Eric Boren4c7754c2017-04-10 08:19:10 -0400727 args.append('--preAbandonGpuContext')
Ben Wagner988d15e2017-04-27 13:08:50 -0400728 if 'ReleaseAndAbandonGpuContext' in extra_config_parts:
Eric Boren6ec17e32017-04-26 14:25:29 -0400729 args.append('--releaseAndAbandonGpuContext')
Eric Boren4c7754c2017-04-10 08:19:10 -0400730
Eric Boren896af752017-04-24 13:22:56 -0400731 with api.env(env):
Eric Boren4c7754c2017-04-10 08:19:10 -0400732 api.run(api.flavor.step, 'dm', cmd=args, abort_on_failure=False)
733
734 if api.vars.upload_dm_results:
735 # Copy images and JSON to host machine if needed.
736 api.flavor.copy_directory_contents_to_host(
737 api.flavor.device_dirs.dm_dir, api.vars.dm_dir)
738
739
borenet1ed2ae42016-07-26 11:52:17 -0700740def RunSteps(api):
Eric Boren4c7754c2017-04-10 08:19:10 -0400741 api.core.setup()
Robert Iannucci297a7ef2017-05-12 19:09:38 -0700742 env = {}
Eric Boren4c7754c2017-04-10 08:19:10 -0400743 if 'iOS' in api.vars.builder_name:
744 env['IOS_BUNDLE_ID'] = 'com.google.dm'
Stephan Altmueller63e843d2017-04-25 11:38:38 -0400745 env['IOS_MOUNT_POINT'] = api.vars.slave_dir.join('mnt_iosdevice')
Robert Iannucci297a7ef2017-05-12 19:09:38 -0700746 with api.context(env=env):
Eric Boren4c7754c2017-04-10 08:19:10 -0400747 try:
748 api.flavor.install_everything()
749 test_steps(api)
750 finally:
751 api.flavor.cleanup_steps()
752 api.run.check_failure()
753
754
Eric Borenf9aa9e52017-04-10 09:56:10 -0400755TEST_BUILDERS = [
Kevin Lubickfe079d42017-04-12 08:31:48 -0400756 'Test-Android-Clang-AndroidOne-GPU-Mali400MP2-arm-Release-Android',
Kevin Lubickae95db42017-04-10 13:05:49 -0400757 'Test-Android-Clang-Ci20-CPU-IngenicJZ4780-mipsel-Release-Android',
Eric Borenf9aa9e52017-04-10 09:56:10 -0400758 'Test-Android-Clang-GalaxyS6-GPU-MaliT760-arm64-Debug-Android',
759 'Test-Android-Clang-GalaxyS7_G930A-GPU-Adreno530-arm64-Debug-Android',
Kevin Lubickfe079d42017-04-12 08:31:48 -0400760 'Test-Android-Clang-NVIDIA_Shield-GPU-TegraX1-arm64-Debug-Android',
761 'Test-Android-Clang-Nexus10-GPU-MaliT604-arm-Release-Android',
Eric Borenf9aa9e52017-04-10 09:56:10 -0400762 'Test-Android-Clang-Nexus5-GPU-Adreno330-arm-Release-Android',
Kevin Lubickfe079d42017-04-12 08:31:48 -0400763 'Test-Android-Clang-Nexus6p-GPU-Adreno430-arm64-Debug-Android_Vulkan',
Greg Daniela86385d2017-06-05 11:34:29 -0400764 'Test-Android-Clang-PixelXL-GPU-Adreno530-arm64-Debug-Android_Vulkan',
Kevin Lubickfe079d42017-04-12 08:31:48 -0400765 'Test-Android-Clang-Nexus7-GPU-Tegra3-arm-Debug-Android',
766 'Test-Android-Clang-NexusPlayer-CPU-SSE4-x86-Release-Android',
767 'Test-Android-Clang-NexusPlayer-GPU-PowerVR-x86-Release-Android_Vulkan',
768 'Test-Android-Clang-PixelC-CPU-TegraX1-arm64-Debug-Android',
Eric Borenf9aa9e52017-04-10 09:56:10 -0400769 'Test-ChromeOS-Clang-Chromebook_C100p-GPU-MaliT764-arm-Debug',
Eric Borenf9aa9e52017-04-10 09:56:10 -0400770 'Test-Mac-Clang-MacMini6.2-CPU-AVX-x86_64-Debug',
Robert Phillips985e1922017-05-25 07:56:01 -0400771 'Test-Mac-Clang-MacMini6.2-GPU-IntelHD4000-x86_64-Debug-CommandBuffer',
Kevin Lubickfe079d42017-04-12 08:31:48 -0400772 'Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Debug-ASAN',
773 'Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Debug-MSAN',
774 'Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Release-TSAN',
Eric Borenf9aa9e52017-04-10 09:56:10 -0400775 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86-Debug',
776 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug',
Eric Borenf9aa9e52017-04-10 09:56:10 -0400777 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind',
778 ('Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind' +
779 '_AbandonGpuContext'),
780 ('Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind' +
781 '_PreAbandonGpuContext'),
Eric Borenf9aa9e52017-04-10 09:56:10 -0400782 ('Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-SK_USE_DISCARDABLE_' +
783 'SCALEDIMAGECACHE'),
Kevin Lubickfe079d42017-04-12 08:31:48 -0400784 'Test-Ubuntu16-Clang-NUC5PPYH-GPU-IntelHD405-x86_64-Debug',
785 'Test-Ubuntu16-Clang-NUC6i5SYK-GPU-IntelIris540-x86_64-Debug-Vulkan',
786 'Test-Ubuntu16-Clang-NUC6i5SYK-GPU-IntelIris540-x86_64-Release',
787 'Test-Ubuntu16-Clang-NUCDE3815TYKHE-GPU-IntelBayTrail-x86_64-Debug',
Leon Scroggins IIIbb8126d2017-05-02 11:14:31 -0400788 'Test-Win8-MSVC-Golo-CPU-AVX-x86-Debug',
Kevin Lubickfe079d42017-04-12 08:31:48 -0400789 'Test-Win10-MSVC-AlphaR2-GPU-RadeonR9M470X-x86_64-Debug-Vulkan',
Eric Boren6ec17e32017-04-26 14:25:29 -0400790 ('Test-Win10-MSVC-NUC5i7RYH-GPU-IntelIris6100-x86_64-Release-'
791 'ReleaseAndAbandonGpuContext'),
Kevin Lubickfe079d42017-04-12 08:31:48 -0400792 'Test-Win10-MSVC-NUC6i5SYK-GPU-IntelIris540-x86_64-Debug-ANGLE',
793 'Test-Win10-MSVC-NUC6i5SYK-GPU-IntelIris540-x86_64-Debug-Vulkan',
794 'Test-Win10-MSVC-ShuttleA-GPU-GTX660-x86_64-Debug-Vulkan',
795 'Test-Win10-MSVC-ShuttleC-GPU-GTX960-x86_64-Debug-ANGLE',
796 'Test-Win10-MSVC-ZBOX-GPU-GTX1070-x86_64-Debug-Vulkan',
797 'Test-iOS-Clang-iPadMini4-GPU-GX6450-arm-Release',
Mike Klein97627d42017-05-11 13:12:48 -0400798 ('Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Release-'
799 'SK_FORCE_RASTER_PIPELINE_BLITTER'),
Eric Borenf9aa9e52017-04-10 09:56:10 -0400800]
borenet1ed2ae42016-07-26 11:52:17 -0700801
802
803def GenTests(api):
Eric Borenf9aa9e52017-04-10 09:56:10 -0400804 for builder in TEST_BUILDERS:
805 test = (
806 api.test(builder) +
807 api.properties(buildername=builder,
808 revision='abc123',
809 path_config='kitchen',
810 swarm_out_dir='[SWARM_OUT_DIR]') +
811 api.path.exists(
812 api.path['start_dir'].join('skia'),
813 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
814 'skimage', 'VERSION'),
815 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
816 'skp', 'VERSION'),
817 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
818 'svg', 'VERSION'),
819 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
Ben Wagnerf835c222017-04-30 11:14:51 -0400820 ) +
821 api.step_data('get swarming bot id',
822 stdout=api.raw_io.output('skia-bot-123')) +
823 api.step_data('get swarming task id',
824 stdout=api.raw_io.output('123456'))
Eric Borenf9aa9e52017-04-10 09:56:10 -0400825 )
Eric Borenf9aa9e52017-04-10 09:56:10 -0400826 if 'Win' in builder:
827 test += api.platform('win', 64)
Eric Boren4c7754c2017-04-10 08:19:10 -0400828
Eric Borenf9aa9e52017-04-10 09:56:10 -0400829 if 'ChromeOS' in builder:
830 test += api.step_data(
831 'read chromeos ip',
832 stdout=api.raw_io.output('{"user_ip":"foo@127.0.0.1"}'))
Eric Boren4c7754c2017-04-10 08:19:10 -0400833
834
Eric Borenf9aa9e52017-04-10 09:56:10 -0400835 yield test
Eric Boren4c7754c2017-04-10 08:19:10 -0400836
Kevin Lubickfe079d42017-04-12 08:31:48 -0400837 builder = 'Test-Win2k8-MSVC-GCE-CPU-AVX2-x86_64-Release'
838 yield (
839 api.test('trybot') +
840 api.properties(buildername=builder,
841 revision='abc123',
842 path_config='kitchen',
843 swarm_out_dir='[SWARM_OUT_DIR]') +
844 api.properties(patch_storage='gerrit') +
845 api.properties.tryserver(
846 buildername=builder,
847 gerrit_project='skia',
848 gerrit_url='https://skia-review.googlesource.com/',
849 )+
850 api.path.exists(
851 api.path['start_dir'].join('skia'),
852 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
853 'skimage', 'VERSION'),
854 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
855 'skp', 'VERSION'),
856 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
857 'svg', 'VERSION'),
858 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
859 )
860 )
861
Eric Boren4c7754c2017-04-10 08:19:10 -0400862 builder = 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug'
borenet1ed2ae42016-07-26 11:52:17 -0700863 yield (
Eric Boren4c7754c2017-04-10 08:19:10 -0400864 api.test('failed_dm') +
865 api.properties(buildername=builder,
borenet1ed2ae42016-07-26 11:52:17 -0700866 revision='abc123',
867 path_config='kitchen',
868 swarm_out_dir='[SWARM_OUT_DIR]') +
869 api.path.exists(
Ravi Mistry9bcca6a2016-11-21 16:06:19 -0500870 api.path['start_dir'].join('skia'),
871 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
Eric Boren4c7754c2017-04-10 08:19:10 -0400872 'skimage', 'VERSION'),
Ravi Mistry9bcca6a2016-11-21 16:06:19 -0500873 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
Eric Boren4c7754c2017-04-10 08:19:10 -0400874 'skp', 'VERSION'),
Ravi Mistry9bcca6a2016-11-21 16:06:19 -0500875 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
Eric Boren4c7754c2017-04-10 08:19:10 -0400876 'svg', 'VERSION'),
Ravi Mistry9bcca6a2016-11-21 16:06:19 -0500877 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
Eric Boren4c7754c2017-04-10 08:19:10 -0400878 ) +
879 api.step_data('symbolized dm', retcode=1)
880 )
881
Kevin Lubickfe079d42017-04-12 08:31:48 -0400882 builder = 'Test-Android-Clang-Nexus7-GPU-Tegra3-arm-Debug-Android'
Eric Boren4c7754c2017-04-10 08:19:10 -0400883 yield (
884 api.test('failed_get_hashes') +
885 api.properties(buildername=builder,
Eric Boren4c7754c2017-04-10 08:19:10 -0400886 revision='abc123',
887 path_config='kitchen',
888 swarm_out_dir='[SWARM_OUT_DIR]') +
889 api.path.exists(
890 api.path['start_dir'].join('skia'),
891 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
892 'skimage', 'VERSION'),
893 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
894 'skp', 'VERSION'),
895 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
896 'svg', 'VERSION'),
897 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
898 ) +
899 api.step_data('get uninteresting hashes', retcode=1)
900 )
901
Kevin Lubickfe079d42017-04-12 08:31:48 -0400902 builder = 'Test-Android-Clang-NexusPlayer-CPU-SSE4-x86-Debug-Android'
Eric Boren4c7754c2017-04-10 08:19:10 -0400903 yield (
904 api.test('failed_push') +
905 api.properties(buildername=builder,
Eric Boren4c7754c2017-04-10 08:19:10 -0400906 revision='abc123',
907 path_config='kitchen',
908 swarm_out_dir='[SWARM_OUT_DIR]') +
909 api.path.exists(
910 api.path['start_dir'].join('skia'),
911 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
912 'skimage', 'VERSION'),
913 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
914 'skp', 'VERSION'),
915 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
916 'svg', 'VERSION'),
917 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
918 ) +
919 api.step_data('push [START_DIR]/skia/resources/* '+
920 '/sdcard/revenge_of_the_skiabot/resources', retcode=1)
921 )
922
923 builder = 'Test-Android-Clang-Nexus10-GPU-MaliT604-arm-Debug-Android'
924 yield (
925 api.test('failed_pull') +
926 api.properties(buildername=builder,
Eric Boren4c7754c2017-04-10 08:19:10 -0400927 revision='abc123',
928 path_config='kitchen',
929 swarm_out_dir='[SWARM_OUT_DIR]') +
930 api.path.exists(
931 api.path['start_dir'].join('skia'),
932 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
933 'skimage', 'VERSION'),
934 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
935 'skp', 'VERSION'),
936 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
937 'svg', 'VERSION'),
938 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
939 ) +
940 api.step_data('dm', retcode=1) +
941 api.step_data('pull /sdcard/revenge_of_the_skiabot/dm_out '+
942 '[CUSTOM_[SWARM_OUT_DIR]]/dm', retcode=1)
borenetbfa5b452016-10-19 10:13:32 -0700943 )