blob: 9b709f0f55cd57c2eb23ab3f35ec0ef5a671a962 [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 'build/file',
11 'core',
Eric Boren896af752017-04-24 13:22:56 -040012 'env',
13 'flavor',
Robert Iannucci297a7ef2017-05-12 19:09:38 -070014 'recipe_engine/context',
Eric Boren4c7754c2017-04-10 08:19:10 -040015 'recipe_engine/json',
borenet1ed2ae42016-07-26 11:52:17 -070016 'recipe_engine/path',
17 'recipe_engine/platform',
18 'recipe_engine/properties',
Eric Boren4c7754c2017-04-10 08:19:10 -040019 'recipe_engine/python',
borenet1ed2ae42016-07-26 11:52:17 -070020 'recipe_engine/raw_io',
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
73 'iHD530' in bot or
74 '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',
132 'angle_gl_es2']
133 if sample_count is not '':
134 configs.append('angle_d3d11_es2_msaa' + sample_count)
135
136 # Vulkan bot *only* runs the vk config.
137 if 'Vulkan' in bot:
138 configs = ['vk']
139
140 if 'ChromeOS' in bot:
141 # Just run GLES for now - maybe add gles_msaa4 in the future
142 configs = ['gles']
143
Kevin Lubickae95db42017-04-10 13:05:49 -0400144 if 'Ci20' in bot:
145 # This bot is really slow, cut it down to just 8888.
146 configs = ['8888']
147
Mike Klein97627d42017-05-11 13:12:48 -0400148 # This bot only differs from vanilla CPU bots in 8888 config.
149 if 'SK_FORCE_RASTER_PIPELINE_BLITTER' in bot:
150 configs = ['8888']
151
Eric Boren4c7754c2017-04-10 08:19:10 -0400152 args.append('--config')
153 args.extend(configs)
154
155 # Run tests, gms, and image decoding tests everywhere.
156 args.extend('--src tests gm image colorImage svg'.split(' '))
157 if 'Vulkan' in bot and 'NexusPlayer' in bot:
158 args.remove('svg')
159 args.remove('image')
160
Mike Klein97627d42017-05-11 13:12:48 -0400161 # Eventually I'd like these to pass, but for now just skip 'em.
162 if 'SK_FORCE_RASTER_PIPELINE_BLITTER' in bot:
163 args.remove('tests')
164
Eric Boren4c7754c2017-04-10 08:19:10 -0400165 blacklisted = []
166 def blacklist(quad):
167 config, src, options, name = quad.split(' ') if type(quad) is str else quad
168 if config == '_' or config in configs:
169 blacklisted.extend([config, src, options, name])
170
171 # TODO: ???
172 blacklist('f16 _ _ dstreadshuffle')
173 blacklist('glsrgb image _ _')
174 blacklist('glessrgb image _ _')
175
176 # Decoder tests are now performing gamma correct decodes. This means
177 # that, when viewing the results, we need to perform a gamma correct
178 # encode to PNG. Therefore, we run the image tests in srgb mode instead
179 # of 8888.
180 blacklist('8888 image _ _')
181
182 # 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
258 bad_serialize_gms = ['bleed_image',
259 '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.
347 # Also blacklisted on 32-bit Win2k8 for F16 OOM errors.
Leon Scroggins IIIbb8126d2017-05-02 11:14:31 -0400348 # Test-Win8-MSVC-Golo-CPU-AVX-x86-Debug is running out of memory on the
349 # interlaced images, so blacklist those. For simplicity, blacklist the
350 # RAW images which also use lots of memory.
351 if ('GPU' in bot or ('Win2k8' in bot and 'x86-' in bot)
352 or 'Test-Win8-MSVC-Golo-CPU-AVX-x86-Debug' in bot):
Eric Boren4c7754c2017-04-10 08:19:10 -0400353 blacklist('_ image _ interlaced1.png')
354 blacklist('_ image _ interlaced2.png')
355 blacklist('_ image _ interlaced3.png')
356 for raw_ext in r:
357 blacklist('_ image _ .%s' % raw_ext)
358
Eric Boren4c7754c2017-04-10 08:19:10 -0400359 if 'IntelHD405' in bot and 'Ubuntu16' in bot:
360 # skia:6331
361 blacklist(['glmsaa8', 'image', 'gen_codec_gpu', 'abnormal.wbmp'])
362 blacklist(['glesmsaa4', 'image', 'gen_codec_gpu', 'abnormal.wbmp'])
363
364 if 'Nexus5' in bot:
365 # skia:5876
366 blacklist(['_', 'gm', '_', 'encode-platform'])
367
368 if 'AndroidOne-GPU' in bot: # skia:4697, skia:4704, skia:4694, skia:4705
369 blacklist(['_', 'gm', '_', 'bigblurs'])
370 blacklist(['_', 'gm', '_', 'bleed'])
371 blacklist(['_', 'gm', '_', 'bleed_alpha_bmp'])
372 blacklist(['_', 'gm', '_', 'bleed_alpha_bmp_shader'])
373 blacklist(['_', 'gm', '_', 'bleed_alpha_image'])
374 blacklist(['_', 'gm', '_', 'bleed_alpha_image_shader'])
375 blacklist(['_', 'gm', '_', 'bleed_image'])
376 blacklist(['_', 'gm', '_', 'dropshadowimagefilter'])
377 blacklist(['_', 'gm', '_', 'filterfastbounds'])
378 blacklist([gl_prefix, 'gm', '_', 'imageblurtiled'])
379 blacklist(['_', 'gm', '_', 'imagefiltersclipped'])
380 blacklist(['_', 'gm', '_', 'imagefiltersscaled'])
381 blacklist(['_', 'gm', '_', 'imageresizetiled'])
382 blacklist(['_', 'gm', '_', 'matrixconvolution'])
383 blacklist(['_', 'gm', '_', 'strokedlines'])
384 if sample_count is not '':
385 gl_msaa_config = gl_prefix + 'msaa' + sample_count
386 blacklist([gl_msaa_config, 'gm', '_', 'imageblurtiled'])
387 blacklist([gl_msaa_config, 'gm', '_', 'imagefiltersbase'])
388
389 match = []
390 if 'Valgrind' in bot: # skia:3021
391 match.append('~Threaded')
392
Ben Wagnerbb3e7ff2017-04-28 15:28:32 -0400393 if 'CommandBuffer' in bot:
394 # https://crbug.com/697030
395 match.append('~HalfFloatAlphaTextureTest')
396
Eric Boren4c7754c2017-04-10 08:19:10 -0400397 if 'AndroidOne' in bot: # skia:4711
398 match.append('~WritePixels')
399
400 if 'NexusPlayer' in bot:
401 match.append('~ResourceCache')
402
403 if 'Nexus10' in bot:
404 match.append('~CopySurface') # skia:5509
405 match.append('~SRGBReadWritePixels') # skia:6097
406
Eric Boren4c7754c2017-04-10 08:19:10 -0400407 if 'GalaxyS6' in bot:
408 match.append('~SpecialImage') # skia:6338
409
410 if 'GalaxyS7_G930A' in bot:
411 match.append('~WritePixels') # skia:6427
412
413 if 'ANGLE' in bot and 'Debug' in bot:
414 match.append('~GLPrograms') # skia:4717
415
416 if 'MSAN' in bot:
417 match.extend(['~Once', '~Shared']) # Not sure what's up with these tests.
418
419 if 'TSAN' in bot:
420 match.extend(['~ReadWriteAlpha']) # Flaky on TSAN-covered on nvidia bots.
421 match.extend(['~RGBA4444TextureTest', # Flakier than they are important.
422 '~RGB565TextureTest'])
423
424 if 'Vulkan' in bot and 'Adreno' in bot:
425 # skia:5777
426 match.extend(['~XfermodeImageFilterCroppedInput',
427 '~GrTextureStripAtlasFlush',
428 '~CopySurface'])
429
430 if 'Vulkan' in bot and 'NexusPlayer' in bot:
431 match.extend(['~hardstop_gradient', # skia:6037
432 '~gradients_dup_color_stops', # skia:6037
433 '~gradients_no_texture$', # skia:6132
434 '~tilemodes', # skia:6132
435 '~shadertext$', # skia:6132
436 '~bitmapfilters', # skia:6132
437 '~GrContextFactory_abandon']) #skia:6209
438
439 if 'Vulkan' in bot and 'IntelIris540' in bot and 'Ubuntu' in bot:
440 match.extend(['~VkHeapTests']) # skia:6245
441
442 if 'Vulkan' in bot and 'IntelIris540' in bot and 'Win' in bot:
443 # skia:6398
444 blacklist(['vk', 'gm', '_', 'aarectmodes'])
445 blacklist(['vk', 'gm', '_', 'aaxfermodes'])
446 blacklist(['vk', 'gm', '_', 'arithmode'])
447 blacklist(['vk', 'gm', '_', 'composeshader_bitmap'])
448 blacklist(['vk', 'gm', '_', 'composeshader_bitmap2'])
449 blacklist(['vk', 'gm', '_', 'dftextCOLR'])
450 blacklist(['vk', 'gm', '_', 'drawregionmodes'])
451 blacklist(['vk', 'gm', '_', 'filterfastbounds'])
452 blacklist(['vk', 'gm', '_', 'fontcache'])
453 blacklist(['vk', 'gm', '_', 'fontmgr_iterWin10'])
454 blacklist(['vk', 'gm', '_', 'fontmgr_iter_factoryWin10'])
455 blacklist(['vk', 'gm', '_', 'fontmgr_matchWin10'])
456 blacklist(['vk', 'gm', '_', 'fontscalerWin'])
457 blacklist(['vk', 'gm', '_', 'fontscalerdistortable'])
458 blacklist(['vk', 'gm', '_', 'gammagradienttext'])
459 blacklist(['vk', 'gm', '_', 'gammatextWin'])
460 blacklist(['vk', 'gm', '_', 'gradtext'])
461 blacklist(['vk', 'gm', '_', 'hairmodes'])
462 blacklist(['vk', 'gm', '_', 'imagefilters_xfermodes'])
463 blacklist(['vk', 'gm', '_', 'imagefiltersclipped'])
464 blacklist(['vk', 'gm', '_', 'imagefiltersgraph'])
465 blacklist(['vk', 'gm', '_', 'imagefiltersscaled'])
466 blacklist(['vk', 'gm', '_', 'imagefiltersstroked'])
467 blacklist(['vk', 'gm', '_', 'imagefilterstransformed'])
468 blacklist(['vk', 'gm', '_', 'imageresizetiled'])
469 blacklist(['vk', 'gm', '_', 'lcdblendmodes'])
470 blacklist(['vk', 'gm', '_', 'lcdoverlap'])
471 blacklist(['vk', 'gm', '_', 'lcdtextWin'])
472 blacklist(['vk', 'gm', '_', 'lcdtextsize'])
473 blacklist(['vk', 'gm', '_', 'matriximagefilter'])
474 blacklist(['vk', 'gm', '_', 'mixedtextblobsCOLR'])
475 blacklist(['vk', 'gm', '_', 'pictureimagefilter'])
476 blacklist(['vk', 'gm', '_', 'resizeimagefilter'])
477 blacklist(['vk', 'gm', '_', 'rotate_imagefilter'])
478 blacklist(['vk', 'gm', '_', 'savelayer_lcdtext'])
479 blacklist(['vk', 'gm', '_', 'srcmode'])
480 blacklist(['vk', 'gm', '_', 'surfaceprops'])
481 blacklist(['vk', 'gm', '_', 'textblobgeometrychange'])
482 blacklist(['vk', 'gm', '_', 'textbloblooper'])
483 blacklist(['vk', 'gm', '_', 'textblobmixedsizes'])
484 blacklist(['vk', 'gm', '_', 'textblobmixedsizes_df'])
485 blacklist(['vk', 'gm', '_', 'textblobrandomfont'])
486 blacklist(['vk', 'gm', '_', 'textfilter_color'])
487 blacklist(['vk', 'gm', '_', 'textfilter_image'])
488 blacklist(['vk', 'gm', '_', 'typefacerenderingWin'])
489 blacklist(['vk', 'gm', '_', 'varied_text_clipped_lcd'])
490 blacklist(['vk', 'gm', '_', 'varied_text_ignorable_clip_lcd'])
491 blacklist(['vk', 'gm', '_', 'xfermodeimagefilter'])
492 match.append('~ApplyGamma')
493 match.append('~ComposedImageFilterBounds_Gpu')
Matt Sarett77443972017-04-11 11:25:37 -0400494 match.append('~DeferredTextureImage')
Eric Boren4c7754c2017-04-10 08:19:10 -0400495 match.append('~ImageFilterFailAffectsTransparentBlack_Gpu')
496 match.append('~ImageFilterZeroBlurSigma_Gpu')
497 match.append('~ImageNewShader_GPU')
498 match.append('~NewTextureFromPixmap')
499 match.append('~ReadPixels_Gpu')
500 match.append('~ReadPixels_Texture')
501 match.append('~ReadWriteAlpha')
502 match.append('~SRGBReadWritePixels')
503 match.append('~SpecialImage_DeferredGpu')
504 match.append('~SpecialImage_Gpu')
505 match.append('~WritePixels_Gpu')
Brian Osman33ea1362017-04-19 10:51:39 -0400506 match.append('~WritePixelsNonTexture_Gpu')
Eric Boren4c7754c2017-04-10 08:19:10 -0400507 match.append('~XfermodeImageFilterCroppedInput_Gpu')
508
509 if 'IntelIris540' in bot and 'ANGLE' in bot:
510 match.append('~IntTexture') # skia:6086
511 blacklist(['_', 'gm', '_', 'discard']) # skia:6141
512 # skia:6103
513 for config in ['angle_d3d9_es2', 'angle_d3d11_es2', 'angle_gl_es2']:
514 blacklist([config, 'gm', '_', 'multipicturedraw_invpathclip_simple'])
515 blacklist([config, 'gm', '_', 'multipicturedraw_noclip_simple'])
516 blacklist([config, 'gm', '_', 'multipicturedraw_pathclip_simple'])
517 blacklist([config, 'gm', '_', 'multipicturedraw_rectclip_simple'])
518 blacklist([config, 'gm', '_', 'multipicturedraw_rrectclip_simple'])
519
520 if 'IntelBayTrail' in bot and 'Ubuntu' in bot:
521 match.append('~ImageStorageLoad') # skia:6358
522
Kevin Lubickae95db42017-04-10 13:05:49 -0400523 if 'Ci20' in bot:
524 match.append('~Codec_Dimensions') # skia:6477
525 match.append('~FontMgrAndroidParser') # skia:6478
526 match.append('~PathOpsSimplify') # skia:6479
527 blacklist(['_', 'gm', '_', 'fast_slow_blurimagefilter']) # skia:6480
528
Leon Scroggins III2005d772017-05-01 13:09:42 -0400529 if ('Win10' in bot and 'Vulkan' in bot
530 and ('GTX1070' in bot or 'GTX660' in bot)):
531 blacklist('_ test _ SkImage_makeTextureImage') # skia:6554
Kevin Lubickae95db42017-04-10 13:05:49 -0400532
Eric Boren4c7754c2017-04-10 08:19:10 -0400533 if blacklisted:
534 args.append('--blacklist')
535 args.extend(blacklisted)
536
537 if match:
538 args.append('--match')
539 args.extend(match)
540
541 # These bots run out of memory running RAW codec tests. Do not run them in
542 # parallel
543 if ('NexusPlayer' in bot or 'Nexus5' in bot or 'Nexus9' in bot
544 or 'Win8-MSVC-ShuttleB' in bot):
545 args.append('--noRAW_threading')
546
Ben Wagner40c0f242017-04-28 15:55:35 -0400547 if 'Valgrind' in bot and 'PreAbandonGpuContext' in bot:
548 args.append('--verbose')
549
Eric Boren4c7754c2017-04-10 08:19:10 -0400550 return args
551
552
553def key_params(api):
554 """Build a unique key from the builder name (as a list).
555
556 E.g. arch x86 gpu GeForce320M mode MacMini4.1 os Mac10.6
557 """
558 # Don't bother to include role, which is always Test.
559 # TryBots are uploaded elsewhere so they can use the same key.
560 blacklist = ['role', 'is_trybot']
561
562 flat = []
563 for k in sorted(api.vars.builder_cfg.keys()):
564 if k not in blacklist:
565 flat.append(k)
566 flat.append(api.vars.builder_cfg[k])
567 return flat
568
569
570def test_steps(api):
571 """Run the DM test."""
572 use_hash_file = False
573 if api.vars.upload_dm_results:
574 # This must run before we write anything into
575 # api.flavor.device_dirs.dm_dir or we may end up deleting our
576 # output on machines where they're the same.
577 api.flavor.create_clean_host_dir(api.vars.dm_dir)
578 host_dm_dir = str(api.vars.dm_dir)
579 device_dm_dir = str(api.flavor.device_dirs.dm_dir)
580 if host_dm_dir != device_dm_dir:
581 api.flavor.create_clean_device_dir(device_dm_dir)
582
583 # Obtain the list of already-generated hashes.
584 hash_filename = 'uninteresting_hashes.txt'
585
586 # Ensure that the tmp_dir exists.
587 api.run.run_once(api.file.makedirs,
588 'tmp_dir',
589 api.vars.tmp_dir,
590 infra_step=True)
591
592 host_hashes_file = api.vars.tmp_dir.join(hash_filename)
593 hashes_file = api.flavor.device_path_join(
594 api.flavor.device_dirs.tmp_dir, hash_filename)
595 api.run(
596 api.python.inline,
597 'get uninteresting hashes',
598 program="""
599 import contextlib
600 import math
601 import socket
602 import sys
603 import time
604 import urllib2
605
606 HASHES_URL = 'https://gold.skia.org/_/hashes'
607 RETRIES = 5
608 TIMEOUT = 60
609 WAIT_BASE = 15
610
611 socket.setdefaulttimeout(TIMEOUT)
612 for retry in range(RETRIES):
613 try:
614 with contextlib.closing(
615 urllib2.urlopen(HASHES_URL, timeout=TIMEOUT)) as w:
616 hashes = w.read()
617 with open(sys.argv[1], 'w') as f:
618 f.write(hashes)
619 break
620 except Exception as e:
621 print 'Failed to get uninteresting hashes from %s:' % HASHES_URL
622 print e
623 if retry == RETRIES:
624 raise
625 waittime = WAIT_BASE * math.pow(2, retry)
626 print 'Retry in %d seconds.' % waittime
627 time.sleep(waittime)
628 """,
629 args=[host_hashes_file],
630 abort_on_failure=False,
631 fail_build_on_failure=False,
632 infra_step=True)
633
634 if api.path.exists(host_hashes_file):
635 api.flavor.copy_file_to_device(host_hashes_file, hashes_file)
636 use_hash_file = True
637
638 # Run DM.
639 properties = [
640 'gitHash', api.vars.got_revision,
Eric Boren4c7754c2017-04-10 08:19:10 -0400641 'builder', api.vars.builder_name,
Eric Boren4c7754c2017-04-10 08:19:10 -0400642 ]
643 if api.vars.is_trybot:
644 properties.extend([
645 'issue', api.vars.issue,
646 'patchset', api.vars.patchset,
647 'patch_storage', api.vars.patch_storage,
648 ])
Eric Borenf9aa9e52017-04-10 09:56:10 -0400649 properties.extend(['swarming_bot_id', api.vars.swarming_bot_id])
650 properties.extend(['swarming_task_id', api.vars.swarming_task_id])
Eric Boren4c7754c2017-04-10 08:19:10 -0400651
652 args = [
653 'dm',
654 '--undefok', # This helps branches that may not know new flags.
655 '--resourcePath', api.flavor.device_dirs.resource_dir,
656 '--skps', api.flavor.device_dirs.skp_dir,
657 '--images', api.flavor.device_path_join(
658 api.flavor.device_dirs.images_dir, 'dm'),
659 '--colorImages', api.flavor.device_path_join(
660 api.flavor.device_dirs.images_dir, 'colorspace'),
661 '--nameByHash',
662 '--properties'
663 ] + properties
664
665 args.extend(['--svgs', api.flavor.device_dirs.svg_dir])
666
667 args.append('--key')
668 args.extend(key_params(api))
669 if use_hash_file:
670 args.extend(['--uninterestingHashesFile', hashes_file])
671 if api.vars.upload_dm_results:
672 args.extend(['--writePath', api.flavor.device_dirs.dm_dir])
673
674 skip_flag = None
675 if api.vars.builder_cfg.get('cpu_or_gpu') == 'CPU':
676 skip_flag = '--nogpu'
677 elif api.vars.builder_cfg.get('cpu_or_gpu') == 'GPU':
678 skip_flag = '--nocpu'
679 if skip_flag:
680 args.append(skip_flag)
681 args.extend(dm_flags(api.vars.builder_name))
682
Eric Boren896af752017-04-24 13:22:56 -0400683 env = {}
Eric Boren4c7754c2017-04-10 08:19:10 -0400684 if 'Ubuntu16' in api.vars.builder_name:
685 # The vulkan in this asset name simply means that the graphics driver
686 # supports Vulkan. It is also the driver used for GL code.
687 dri_path = api.vars.slave_dir.join('linux_vulkan_intel_driver_release')
688 if 'Debug' in api.vars.builder_name:
689 dri_path = api.vars.slave_dir.join('linux_vulkan_intel_driver_debug')
690
691 if 'Vulkan' in api.vars.builder_name:
692 sdk_path = api.vars.slave_dir.join('linux_vulkan_sdk', 'bin')
693 lib_path = api.vars.slave_dir.join('linux_vulkan_sdk', 'lib')
694 env.update({
695 'PATH':'%%(PATH)s:%s' % sdk_path,
696 'LD_LIBRARY_PATH': '%s:%s' % (lib_path, dri_path),
697 'LIBGL_DRIVERS_PATH': dri_path,
698 'VK_ICD_FILENAMES':'%s' % dri_path.join('intel_icd.x86_64.json'),
699 })
700 else:
701 # Even the non-vulkan NUC jobs could benefit from the newer drivers.
702 env.update({
703 'LD_LIBRARY_PATH': dri_path,
704 'LIBGL_DRIVERS_PATH': dri_path,
705 })
706
707 # See skia:2789.
Ben Wagner988d15e2017-04-27 13:08:50 -0400708 extra_config_parts = api.vars.builder_cfg.get('extra_config', '').split('_')
709 if 'AbandonGpuContext' in extra_config_parts:
Eric Boren4c7754c2017-04-10 08:19:10 -0400710 args.append('--abandonGpuContext')
Ben Wagner988d15e2017-04-27 13:08:50 -0400711 if 'PreAbandonGpuContext' in extra_config_parts:
Eric Boren4c7754c2017-04-10 08:19:10 -0400712 args.append('--preAbandonGpuContext')
Ben Wagner988d15e2017-04-27 13:08:50 -0400713 if 'ReleaseAndAbandonGpuContext' in extra_config_parts:
Eric Boren6ec17e32017-04-26 14:25:29 -0400714 args.append('--releaseAndAbandonGpuContext')
Eric Boren4c7754c2017-04-10 08:19:10 -0400715
Eric Boren896af752017-04-24 13:22:56 -0400716 with api.env(env):
Eric Boren4c7754c2017-04-10 08:19:10 -0400717 api.run(api.flavor.step, 'dm', cmd=args, abort_on_failure=False)
718
719 if api.vars.upload_dm_results:
720 # Copy images and JSON to host machine if needed.
721 api.flavor.copy_directory_contents_to_host(
722 api.flavor.device_dirs.dm_dir, api.vars.dm_dir)
723
724
borenet1ed2ae42016-07-26 11:52:17 -0700725def RunSteps(api):
Eric Boren4c7754c2017-04-10 08:19:10 -0400726 api.core.setup()
Robert Iannucci297a7ef2017-05-12 19:09:38 -0700727 env = {}
Eric Boren4c7754c2017-04-10 08:19:10 -0400728 if 'iOS' in api.vars.builder_name:
729 env['IOS_BUNDLE_ID'] = 'com.google.dm'
Stephan Altmueller63e843d2017-04-25 11:38:38 -0400730 env['IOS_MOUNT_POINT'] = api.vars.slave_dir.join('mnt_iosdevice')
Robert Iannucci297a7ef2017-05-12 19:09:38 -0700731 with api.context(env=env):
Eric Boren4c7754c2017-04-10 08:19:10 -0400732 try:
733 api.flavor.install_everything()
734 test_steps(api)
735 finally:
736 api.flavor.cleanup_steps()
737 api.run.check_failure()
738
739
Eric Borenf9aa9e52017-04-10 09:56:10 -0400740TEST_BUILDERS = [
Kevin Lubickfe079d42017-04-12 08:31:48 -0400741 'Test-Android-Clang-AndroidOne-GPU-Mali400MP2-arm-Release-Android',
Kevin Lubickae95db42017-04-10 13:05:49 -0400742 'Test-Android-Clang-Ci20-CPU-IngenicJZ4780-mipsel-Release-Android',
Eric Borenf9aa9e52017-04-10 09:56:10 -0400743 'Test-Android-Clang-GalaxyS6-GPU-MaliT760-arm64-Debug-Android',
744 'Test-Android-Clang-GalaxyS7_G930A-GPU-Adreno530-arm64-Debug-Android',
Kevin Lubickfe079d42017-04-12 08:31:48 -0400745 'Test-Android-Clang-NVIDIA_Shield-GPU-TegraX1-arm64-Debug-Android',
746 'Test-Android-Clang-Nexus10-GPU-MaliT604-arm-Release-Android',
Eric Borenf9aa9e52017-04-10 09:56:10 -0400747 'Test-Android-Clang-Nexus5-GPU-Adreno330-arm-Release-Android',
Kevin Lubickfe079d42017-04-12 08:31:48 -0400748 'Test-Android-Clang-Nexus6p-GPU-Adreno430-arm64-Debug-Android_Vulkan',
749 'Test-Android-Clang-Nexus7-GPU-Tegra3-arm-Debug-Android',
750 'Test-Android-Clang-NexusPlayer-CPU-SSE4-x86-Release-Android',
751 'Test-Android-Clang-NexusPlayer-GPU-PowerVR-x86-Release-Android_Vulkan',
752 'Test-Android-Clang-PixelC-CPU-TegraX1-arm64-Debug-Android',
Eric Borenf9aa9e52017-04-10 09:56:10 -0400753 'Test-ChromeOS-Clang-Chromebook_C100p-GPU-MaliT764-arm-Debug',
Eric Borenf9aa9e52017-04-10 09:56:10 -0400754 'Test-Mac-Clang-MacMini6.2-CPU-AVX-x86_64-Debug',
755 'Test-Mac-Clang-MacMini6.2-GPU-HD4000-x86_64-Debug-CommandBuffer',
Kevin Lubickfe079d42017-04-12 08:31:48 -0400756 'Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Debug-ASAN',
757 'Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Debug-MSAN',
758 'Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Release-TSAN',
Eric Borenf9aa9e52017-04-10 09:56:10 -0400759 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86-Debug',
760 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug',
Eric Borenf9aa9e52017-04-10 09:56:10 -0400761 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind',
762 ('Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind' +
763 '_AbandonGpuContext'),
764 ('Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind' +
765 '_PreAbandonGpuContext'),
Eric Borenf9aa9e52017-04-10 09:56:10 -0400766 ('Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-SK_USE_DISCARDABLE_' +
767 'SCALEDIMAGECACHE'),
Kevin Lubickfe079d42017-04-12 08:31:48 -0400768 'Test-Ubuntu16-Clang-NUC5PPYH-GPU-IntelHD405-x86_64-Debug',
769 'Test-Ubuntu16-Clang-NUC6i5SYK-GPU-IntelIris540-x86_64-Debug-Vulkan',
770 'Test-Ubuntu16-Clang-NUC6i5SYK-GPU-IntelIris540-x86_64-Release',
771 'Test-Ubuntu16-Clang-NUCDE3815TYKHE-GPU-IntelBayTrail-x86_64-Debug',
Leon Scroggins IIIbb8126d2017-05-02 11:14:31 -0400772 'Test-Win8-MSVC-Golo-CPU-AVX-x86-Debug',
Kevin Lubickfe079d42017-04-12 08:31:48 -0400773 'Test-Win10-MSVC-AlphaR2-GPU-RadeonR9M470X-x86_64-Debug-Vulkan',
Eric Boren6ec17e32017-04-26 14:25:29 -0400774 ('Test-Win10-MSVC-NUC5i7RYH-GPU-IntelIris6100-x86_64-Release-'
775 'ReleaseAndAbandonGpuContext'),
Kevin Lubickfe079d42017-04-12 08:31:48 -0400776 'Test-Win10-MSVC-NUC6i5SYK-GPU-IntelIris540-x86_64-Debug-ANGLE',
777 'Test-Win10-MSVC-NUC6i5SYK-GPU-IntelIris540-x86_64-Debug-Vulkan',
778 'Test-Win10-MSVC-ShuttleA-GPU-GTX660-x86_64-Debug-Vulkan',
779 'Test-Win10-MSVC-ShuttleC-GPU-GTX960-x86_64-Debug-ANGLE',
780 'Test-Win10-MSVC-ZBOX-GPU-GTX1070-x86_64-Debug-Vulkan',
781 'Test-iOS-Clang-iPadMini4-GPU-GX6450-arm-Release',
Mike Klein97627d42017-05-11 13:12:48 -0400782 ('Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Release-'
783 'SK_FORCE_RASTER_PIPELINE_BLITTER'),
Eric Borenf9aa9e52017-04-10 09:56:10 -0400784]
borenet1ed2ae42016-07-26 11:52:17 -0700785
786
787def GenTests(api):
Eric Borenf9aa9e52017-04-10 09:56:10 -0400788 for builder in TEST_BUILDERS:
789 test = (
790 api.test(builder) +
791 api.properties(buildername=builder,
792 revision='abc123',
793 path_config='kitchen',
794 swarm_out_dir='[SWARM_OUT_DIR]') +
795 api.path.exists(
796 api.path['start_dir'].join('skia'),
797 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
798 'skimage', 'VERSION'),
799 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
800 'skp', 'VERSION'),
801 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
802 'svg', 'VERSION'),
803 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
Ben Wagnerf835c222017-04-30 11:14:51 -0400804 ) +
805 api.step_data('get swarming bot id',
806 stdout=api.raw_io.output('skia-bot-123')) +
807 api.step_data('get swarming task id',
808 stdout=api.raw_io.output('123456'))
Eric Borenf9aa9e52017-04-10 09:56:10 -0400809 )
Eric Borenf9aa9e52017-04-10 09:56:10 -0400810 if 'Win' in builder:
811 test += api.platform('win', 64)
Eric Boren4c7754c2017-04-10 08:19:10 -0400812
Eric Borenf9aa9e52017-04-10 09:56:10 -0400813 if 'ChromeOS' in builder:
814 test += api.step_data(
815 'read chromeos ip',
816 stdout=api.raw_io.output('{"user_ip":"foo@127.0.0.1"}'))
Eric Boren4c7754c2017-04-10 08:19:10 -0400817
818
Eric Borenf9aa9e52017-04-10 09:56:10 -0400819 yield test
Eric Boren4c7754c2017-04-10 08:19:10 -0400820
Kevin Lubickfe079d42017-04-12 08:31:48 -0400821 builder = 'Test-Win2k8-MSVC-GCE-CPU-AVX2-x86_64-Release'
822 yield (
823 api.test('trybot') +
824 api.properties(buildername=builder,
825 revision='abc123',
826 path_config='kitchen',
827 swarm_out_dir='[SWARM_OUT_DIR]') +
828 api.properties(patch_storage='gerrit') +
829 api.properties.tryserver(
830 buildername=builder,
831 gerrit_project='skia',
832 gerrit_url='https://skia-review.googlesource.com/',
833 )+
834 api.path.exists(
835 api.path['start_dir'].join('skia'),
836 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
837 'skimage', 'VERSION'),
838 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
839 'skp', 'VERSION'),
840 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
841 'svg', 'VERSION'),
842 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
843 )
844 )
845
Eric Boren4c7754c2017-04-10 08:19:10 -0400846 builder = 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug'
borenet1ed2ae42016-07-26 11:52:17 -0700847 yield (
Eric Boren4c7754c2017-04-10 08:19:10 -0400848 api.test('failed_dm') +
849 api.properties(buildername=builder,
borenet1ed2ae42016-07-26 11:52:17 -0700850 revision='abc123',
851 path_config='kitchen',
852 swarm_out_dir='[SWARM_OUT_DIR]') +
853 api.path.exists(
Ravi Mistry9bcca6a2016-11-21 16:06:19 -0500854 api.path['start_dir'].join('skia'),
855 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
Eric Boren4c7754c2017-04-10 08:19:10 -0400856 'skimage', 'VERSION'),
Ravi Mistry9bcca6a2016-11-21 16:06:19 -0500857 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
Eric Boren4c7754c2017-04-10 08:19:10 -0400858 'skp', 'VERSION'),
Ravi Mistry9bcca6a2016-11-21 16:06:19 -0500859 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
Eric Boren4c7754c2017-04-10 08:19:10 -0400860 'svg', 'VERSION'),
Ravi Mistry9bcca6a2016-11-21 16:06:19 -0500861 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
Eric Boren4c7754c2017-04-10 08:19:10 -0400862 ) +
863 api.step_data('symbolized dm', retcode=1)
864 )
865
Kevin Lubickfe079d42017-04-12 08:31:48 -0400866 builder = 'Test-Android-Clang-Nexus7-GPU-Tegra3-arm-Debug-Android'
Eric Boren4c7754c2017-04-10 08:19:10 -0400867 yield (
868 api.test('failed_get_hashes') +
869 api.properties(buildername=builder,
Eric Boren4c7754c2017-04-10 08:19:10 -0400870 revision='abc123',
871 path_config='kitchen',
872 swarm_out_dir='[SWARM_OUT_DIR]') +
873 api.path.exists(
874 api.path['start_dir'].join('skia'),
875 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
876 'skimage', 'VERSION'),
877 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
878 'skp', 'VERSION'),
879 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
880 'svg', 'VERSION'),
881 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
882 ) +
883 api.step_data('get uninteresting hashes', retcode=1)
884 )
885
Kevin Lubickfe079d42017-04-12 08:31:48 -0400886 builder = 'Test-Android-Clang-NexusPlayer-CPU-SSE4-x86-Debug-Android'
Eric Boren4c7754c2017-04-10 08:19:10 -0400887 yield (
888 api.test('failed_push') +
889 api.properties(buildername=builder,
Eric Boren4c7754c2017-04-10 08:19:10 -0400890 revision='abc123',
891 path_config='kitchen',
892 swarm_out_dir='[SWARM_OUT_DIR]') +
893 api.path.exists(
894 api.path['start_dir'].join('skia'),
895 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
896 'skimage', 'VERSION'),
897 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
898 'skp', 'VERSION'),
899 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
900 'svg', 'VERSION'),
901 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
902 ) +
903 api.step_data('push [START_DIR]/skia/resources/* '+
904 '/sdcard/revenge_of_the_skiabot/resources', retcode=1)
905 )
906
907 builder = 'Test-Android-Clang-Nexus10-GPU-MaliT604-arm-Debug-Android'
908 yield (
909 api.test('failed_pull') +
910 api.properties(buildername=builder,
Eric Boren4c7754c2017-04-10 08:19:10 -0400911 revision='abc123',
912 path_config='kitchen',
913 swarm_out_dir='[SWARM_OUT_DIR]') +
914 api.path.exists(
915 api.path['start_dir'].join('skia'),
916 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
917 'skimage', 'VERSION'),
918 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
919 'skp', 'VERSION'),
920 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
921 'svg', 'VERSION'),
922 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
923 ) +
924 api.step_data('dm', retcode=1) +
925 api.step_data('pull /sdcard/revenge_of_the_skiabot/dm_out '+
926 '[CUSTOM_[SWARM_OUT_DIR]]/dm', retcode=1)
borenetbfa5b452016-10-19 10:13:32 -0700927 )