blob: 5d05363a9868209f54c74c21b53843619925b1a5 [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',
Robert Iannucci8cd50412017-07-07 14:36:58 -070014 'recipe_engine/file',
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 Boren89cd3572017-06-28 13:50:22 -040027def dm_flags(api, bot):
Eric Boren4c7754c2017-04-10 08:19:10 -040028 args = []
Brian Osmanf9810662017-08-30 10:02:10 -040029 configs = []
30 blacklisted = []
31
32 def blacklist(quad):
33 config, src, options, name = quad.split(' ') if type(quad) is str else quad
34 if (config == '_' or
35 config in configs or
36 (config[0] == '~' and config[1:] in configs)):
37 blacklisted.extend([config, src, options, name])
Eric Boren4c7754c2017-04-10 08:19:10 -040038
Mike Klein97d6a7a2017-07-24 10:37:19 -040039 # We've been spending lots of time writing out and especially uploading
40 # .pdfs, but not doing anything further with them. skia:6821
41 args.extend(['--dont_write', 'pdf'])
42
Eric Boren4c7754c2017-04-10 08:19:10 -040043 # This enables non-deterministic random seeding of the GPU FP optimization
Brian Osman7a34dca2017-04-13 13:40:29 -040044 # test.
Ben Wagner6da8f792017-08-10 12:22:56 -040045 # Not Android due to:
Ben Wagner11ab43c2017-08-09 18:05:59 -040046 # - https://skia.googlesource.com/skia/+/
47 # 5910ed347a638ded8cd4c06dbfda086695df1112/BUILD.gn#160
48 # - https://skia.googlesource.com/skia/+/
49 # ce06e261e68848ae21cac1052abc16bc07b961bf/tests/ProcessorTest.cpp#307
Ben Wagner6da8f792017-08-10 12:22:56 -040050 # Not MSAN due to:
51 # - https://skia.googlesource.com/skia/+/
52 # 0ac06e47269a40c177747310a613d213c95d1d6d/infra/bots/recipe_modules/
53 # flavor/gn_flavor.py#80
54 if 'Android' not in bot and 'MSAN' not in bot:
Ben Wagner11ab43c2017-08-09 18:05:59 -040055 args.append('--randomProcessorTest')
Eric Boren4c7754c2017-04-10 08:19:10 -040056
57 # 32-bit desktop bots tend to run out of memory, because they have relatively
58 # far more cores than RAM (e.g. 32 cores, 3G RAM). Hold them back a bit.
59 if '-x86-' in bot and not 'NexusPlayer' in bot:
Mike Kleindf669812017-06-23 13:30:17 -040060 args.extend(['--threads', '4'])
Eric Boren4c7754c2017-04-10 08:19:10 -040061
Ben Wagner5cf6d322017-12-07 10:23:07 -050062 # Nexus7 runs out of memory due to having 4 cores and only 1G RAM.
63 if 'CPU' in bot and 'Nexus7' in bot:
Ben Wagner1cfb6bc2017-12-07 12:19:30 -050064 args.extend(['--threads', '2'])
Ben Wagner5cf6d322017-12-07 10:23:07 -050065
Kevin Lubick2dafbd72017-08-31 10:39:05 -040066 if 'Chromecast' in bot:
67 args.extend(['--threads', '0'])
68
Eric Boren4c7754c2017-04-10 08:19:10 -040069 # Avoid issues with dynamically exceeding resource cache limits.
70 if 'Test' in bot and 'DISCARDABLE' in bot:
Mike Kleindf669812017-06-23 13:30:17 -040071 args.extend(['--threads', '0'])
72
73 # See if staying on the main thread helps skia:6748.
74 if 'Test-iOS' in bot:
75 args.extend(['--threads', '0'])
Eric Boren4c7754c2017-04-10 08:19:10 -040076
Derek Sollenbergeredfe3df2017-07-19 15:25:24 -040077 # Android's kernel will occasionally attempt to kill our process, using
78 # SIGINT, in an effort to free up resources. If requested, that signal
79 # is ignored and dm will keep attempting to proceed until we actually
80 # exhaust the available resources.
81 if ('NexusPlayer' in bot or
Kevin Lubick608c35a2018-01-16 16:15:57 -050082 'PixelC' in bot or
83 'Chromecast' in bot):
Derek Sollenbergeredfe3df2017-07-19 15:25:24 -040084 args.append('--ignoreSigInt')
85
Ben Wagner32fa5102017-08-10 21:25:55 -040086 if api.vars.builder_cfg.get('cpu_or_gpu') == 'CPU':
87 args.append('--nogpu')
88
89 # These are the canonical configs that we would ideally run on all bots. We
90 # may opt out or substitute some below for specific bots
91 configs.extend(['8888', 'srgb', 'pdf'])
92
93 # Runs out of memory on Android bots. Everyone else seems fine.
94 if 'Android' in bot:
95 configs.remove('pdf')
96
97 if '-GCE-' in bot:
Mike Klein515bda62018-01-09 11:21:58 -050098 configs.extend(['g8'])
Ben Wagner32fa5102017-08-10 21:25:55 -040099 configs.extend(['565'])
100 configs.extend(['f16'])
Ben Wagner32fa5102017-08-10 21:25:55 -0400101 configs.extend(['lite-8888']) # Experimental display list.
Mike Kleinb7ea3da2017-10-31 17:42:08 +0000102 configs.extend(['gbr-8888'])
Ben Wagner32fa5102017-08-10 21:25:55 -0400103
Ben Wagner0ecc2b7e2017-11-09 22:10:44 -0500104 configs.extend(mode + '-8888' for mode in ['serialize', 'tiles_rt', 'pic'])
Ben Wagner32fa5102017-08-10 21:25:55 -0400105
Ben Wagner32fa5102017-08-10 21:25:55 -0400106 # This bot only differs from vanilla CPU bots in 8888 config.
107 if 'SK_FORCE_RASTER_PIPELINE_BLITTER' in bot:
108 configs = ['8888', 'srgb']
109
Ben Wagner077710b2017-10-26 13:12:39 -0400110 if 'FSAA' in bot or 'FAAA' in bot or 'FDAA' in bot:
111 # Scan converters shouldn't really be sensitive to different color
112 # configurations.
113 configs = ['8888', 'tiles_rt-8888']
114
Mike Klein9a01a212017-11-03 12:19:54 -0400115 if 'NativeFonts' in bot:
116 configs = ['8888']
117
Kevin Lubick608c35a2018-01-16 16:15:57 -0500118 # Just do the basic config on Chromecast to avoid OOM.
119 if 'Chromecast' in bot:
Kevin Lubick8baaef92018-01-17 10:02:17 -0500120 configs = ['8888']
Kevin Lubick608c35a2018-01-16 16:15:57 -0500121
Ben Wagner32fa5102017-08-10 21:25:55 -0400122 elif api.vars.builder_cfg.get('cpu_or_gpu') == 'GPU':
123 args.append('--nocpu')
124
125 # Add in either gles or gl configs to the canonical set based on OS
126 sample_count = '8'
127 gl_prefix = 'gl'
128 if 'Android' in bot or 'iOS' in bot:
129 sample_count = '4'
130 # We want to test the OpenGL config not the GLES config on the Shield
131 if 'NVIDIA_Shield' not in bot:
132 gl_prefix = 'gles'
133 elif 'Intel' in bot:
134 sample_count = ''
135 elif 'ChromeOS' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400136 gl_prefix = 'gles'
Eric Boren4c7754c2017-04-10 08:19:10 -0400137
Jim Van Verth1b6c75c2018-02-16 09:49:08 -0500138 if 'NativeFonts' in bot:
139 configs.append(gl_prefix)
140 else:
Jim Van Verth240516f2018-02-15 09:55:24 -0500141 configs.extend([gl_prefix, gl_prefix + 'dft', gl_prefix + 'srgb'])
142 if sample_count is not '':
143 configs.append(gl_prefix + 'msaa' + sample_count)
Eric Boren4c7754c2017-04-10 08:19:10 -0400144
Ben Wagner32fa5102017-08-10 21:25:55 -0400145 # The NP produces a long error stream when we run with MSAA. The Tegra3 just
146 # doesn't support it.
147 if ('NexusPlayer' in bot or
148 'Tegra3' in bot or
149 # We aren't interested in fixing msaa bugs on current iOS devices.
150 'iPad4' in bot or
151 'iPadPro' in bot or
152 'iPhone6' in bot or
153 'iPhone7' in bot or
154 # skia:5792
155 'IntelHD530' in bot or
156 'IntelIris540' in bot):
157 configs = [x for x in configs if 'msaa' not in x]
Eric Boren4c7754c2017-04-10 08:19:10 -0400158
Ben Wagner32fa5102017-08-10 21:25:55 -0400159 # The NP produces different images for dft on every run.
160 if 'NexusPlayer' in bot:
161 configs = [x for x in configs if 'dft' not in x]
Eric Boren4c7754c2017-04-10 08:19:10 -0400162
Ben Wagner32fa5102017-08-10 21:25:55 -0400163 # We want to test both the OpenGL config and the GLES config on Linux Intel:
164 # GL is used by Chrome, GLES is used by ChromeOS.
Brian Osmanf9810662017-08-30 10:02:10 -0400165 # Also do the Ganesh threading verification test (render with and without
166 # worker threads, using only the SW path renderer, and compare the results).
Ben Wagner32fa5102017-08-10 21:25:55 -0400167 if 'Intel' in bot and api.vars.is_linux:
Brian Osmanf9810662017-08-30 10:02:10 -0400168 configs.extend(['gles', 'glesdft', 'glessrgb', 'gltestthreading'])
169 # skbug.com/6333, skbug.com/6419, skbug.com/6702
170 blacklist('gltestthreading gm _ lcdblendmodes')
171 blacklist('gltestthreading gm _ lcdoverlap')
Brian Osmanbef21ba2017-08-31 13:49:05 -0400172 blacklist('gltestthreading gm _ textbloblooper')
Brian Osman1e75f2a2017-09-07 09:30:44 -0400173 # All of these GMs are flaky, too:
174 blacklist('gltestthreading gm _ bleed_alpha_bmp')
175 blacklist('gltestthreading gm _ bleed_alpha_bmp_shader')
176 blacklist('gltestthreading gm _ bleed_alpha_image')
177 blacklist('gltestthreading gm _ bleed_alpha_image_shader')
178 blacklist('gltestthreading gm _ savelayer_with_backdrop')
179 blacklist('gltestthreading gm _ persp_shaders_bw')
Brian Salomon5c6ac642017-12-19 11:09:32 -0500180 blacklist('gltestthreading gm _ dftext_blob_persp')
Mike Klein97627d42017-05-11 13:12:48 -0400181
Ben Wagner32fa5102017-08-10 21:25:55 -0400182 # The following devices do not support glessrgb.
183 if 'glessrgb' in configs:
184 if ('IntelHD405' in bot or
Ben Wagnerab10c822017-12-19 15:14:12 -0500185 'IntelIris640' in bot or
Ben Wagner32fa5102017-08-10 21:25:55 -0400186 'IntelBayTrail' in bot or
187 'IntelHD2000' in bot or
188 'AndroidOne' in bot or
189 'Nexus7' in bot or
190 'NexusPlayer' in bot):
191 configs.remove('glessrgb')
192
Brian Osman09eba3c2017-11-06 14:39:18 -0500193 # Test SkColorSpaceXformCanvas on a few bots
194 if 'GTX1070' in bot:
195 configs.append('gbr-gl')
196
Ben Wagner32fa5102017-08-10 21:25:55 -0400197 # CommandBuffer bot *only* runs the command_buffer config.
198 if 'CommandBuffer' in bot:
199 configs = ['commandbuffer']
200
201 # ANGLE bot *only* runs the angle configs
202 if 'ANGLE' in bot:
203 configs = ['angle_d3d11_es2',
204 'angle_d3d9_es2',
205 'angle_gl_es2',
206 'angle_d3d11_es3']
207 if sample_count is not '':
208 configs.append('angle_d3d11_es2_msaa' + sample_count)
209 configs.append('angle_d3d11_es3_msaa' + sample_count)
210
211 # Vulkan bot *only* runs the vk config.
212 if 'Vulkan' in bot:
213 configs = ['vk']
214
215 if 'ChromeOS' in bot:
216 # Just run GLES for now - maybe add gles_msaa4 in the future
217 configs = ['gles']
218
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400219 if 'Chromecast' in bot:
Kevin Lubick608c35a2018-01-16 16:15:57 -0500220 configs = ['gles']
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400221
Ben Wagner32fa5102017-08-10 21:25:55 -0400222 # Test coverage counting path renderer.
223 if 'CCPR' in bot:
224 configs = [c for c in configs if c == 'gl' or c == 'gles']
Chris Dalton7a0ebfc2017-10-13 12:35:50 -0600225 args.extend(['--pr', 'ccpr', '--cachePathMasks', 'false'])
Chris Dalton97598a52017-07-18 10:49:07 -0600226
Kevin Lubick32f318b2017-10-17 13:40:52 -0400227 tf = api.vars.builder_cfg.get('test_filter')
228 if 'All' != tf:
229 # Expected format: shard_XX_YY
230 parts = tf.split('_')
231 if len(parts) == 3:
232 args.extend(['--shard', parts[1]])
233 args.extend(['--shards', parts[2]])
234 else:
235 raise Exception('Invalid task name - bad shards') #pragma: nocover
236
Chris Dalton80ace822017-07-20 10:54:04 -0600237 args.append('--config')
238 args.extend(configs)
239
Eric Boren4c7754c2017-04-10 08:19:10 -0400240 # Run tests, gms, and image decoding tests everywhere.
241 args.extend('--src tests gm image colorImage svg'.split(' '))
Ben Wagner0ecc2b7e2017-11-09 22:10:44 -0500242 if api.vars.builder_cfg.get('cpu_or_gpu') == 'GPU':
Chris Dalton7c304ba2017-09-07 11:57:16 -0600243 # Don't run the 'svgparse_*' svgs on GPU.
244 blacklist('_ svg _ svgparse_')
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400245 elif bot == 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All-ASAN':
Chris Dalton7c304ba2017-09-07 11:57:16 -0600246 # Only run the CPU SVGs on 8888.
247 blacklist('~8888 svg _ _')
248 else:
249 # On CPU SVGs we only care about parsing. Only run them on the above bot.
250 args.remove('svg')
Eric Boren4c7754c2017-04-10 08:19:10 -0400251
Mike Klein97627d42017-05-11 13:12:48 -0400252 # Eventually I'd like these to pass, but for now just skip 'em.
253 if 'SK_FORCE_RASTER_PIPELINE_BLITTER' in bot:
254 args.remove('tests')
255
Mike Klein9a01a212017-11-03 12:19:54 -0400256 if 'NativeFonts' in bot: # images won't exercise native font integration :)
257 args.remove('image')
258 args.remove('colorImage')
259
Eric Boren4c7754c2017-04-10 08:19:10 -0400260 # TODO: ???
261 blacklist('f16 _ _ dstreadshuffle')
262 blacklist('glsrgb image _ _')
263 blacklist('glessrgb image _ _')
264
Eric Boren4c7754c2017-04-10 08:19:10 -0400265 # Not any point to running these.
Mike Kleinb7ea3da2017-10-31 17:42:08 +0000266 blacklist('gbr-8888 image _ _')
267 blacklist('gbr-8888 colorImage _ _')
Eric Boren4c7754c2017-04-10 08:19:10 -0400268
Mike Klein515bda62018-01-09 11:21:58 -0500269 # --src image --config g8 means "decode into Gray8", which isn't supported.
270 blacklist('g8 image _ _')
271 blacklist('g8 colorImage _ _')
272
Eric Boren4c7754c2017-04-10 08:19:10 -0400273 if 'Valgrind' in bot:
274 # These take 18+ hours to run.
275 blacklist('pdf gm _ fontmgr_iter')
276 blacklist('pdf _ _ PANO_20121023_214540.jpg')
277 blacklist('pdf skp _ worldjournal')
278 blacklist('pdf skp _ desk_baidu.skp')
279 blacklist('pdf skp _ desk_wikipedia.skp')
280 blacklist('_ svg _ _')
281
282 if 'iOS' in bot:
283 blacklist(gl_prefix + ' skp _ _')
284
285 if 'Mac' in bot or 'iOS' in bot:
286 # CG fails on questionable bmps
287 blacklist('_ image gen_platf rgba32abf.bmp')
288 blacklist('_ image gen_platf rgb24prof.bmp')
289 blacklist('_ image gen_platf rgb24lprof.bmp')
290 blacklist('_ image gen_platf 8bpp-pixeldata-cropped.bmp')
291 blacklist('_ image gen_platf 4bpp-pixeldata-cropped.bmp')
292 blacklist('_ image gen_platf 32bpp-pixeldata-cropped.bmp')
293 blacklist('_ image gen_platf 24bpp-pixeldata-cropped.bmp')
294
295 # CG has unpredictable behavior on this questionable gif
296 # It's probably using uninitialized memory
297 blacklist('_ image gen_platf frame_larger_than_image.gif')
298
299 # CG has unpredictable behavior on incomplete pngs
300 # skbug.com/5774
301 blacklist('_ image gen_platf inc0.png')
302 blacklist('_ image gen_platf inc1.png')
303 blacklist('_ image gen_platf inc2.png')
304 blacklist('_ image gen_platf inc3.png')
305 blacklist('_ image gen_platf inc4.png')
306 blacklist('_ image gen_platf inc5.png')
307 blacklist('_ image gen_platf inc6.png')
308 blacklist('_ image gen_platf inc7.png')
309 blacklist('_ image gen_platf inc8.png')
310 blacklist('_ image gen_platf inc9.png')
311 blacklist('_ image gen_platf inc10.png')
312 blacklist('_ image gen_platf inc11.png')
313 blacklist('_ image gen_platf inc12.png')
314 blacklist('_ image gen_platf inc13.png')
315 blacklist('_ image gen_platf inc14.png')
316
Ben Wagner3f679142017-11-27 13:02:25 -0500317 # These images fail after Mac 10.13.1 upgrade.
318 blacklist('_ image gen_platf incInterlaced.gif')
319 blacklist('_ image gen_platf inc1.gif')
320 blacklist('_ image gen_platf inc0.gif')
321 blacklist('_ image gen_platf butterfly.gif')
322
Matt Sarett6c50a2e2017-05-01 09:13:05 -0400323 # WIC fails on questionable bmps
Eric Boren4c7754c2017-04-10 08:19:10 -0400324 if 'Win' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400325 blacklist('_ image gen_platf pal8os2v2.bmp')
326 blacklist('_ image gen_platf pal8os2v2-16.bmp')
327 blacklist('_ image gen_platf rgba32abf.bmp')
328 blacklist('_ image gen_platf rgb24prof.bmp')
329 blacklist('_ image gen_platf rgb24lprof.bmp')
330 blacklist('_ image gen_platf 8bpp-pixeldata-cropped.bmp')
331 blacklist('_ image gen_platf 4bpp-pixeldata-cropped.bmp')
332 blacklist('_ image gen_platf 32bpp-pixeldata-cropped.bmp')
333 blacklist('_ image gen_platf 24bpp-pixeldata-cropped.bmp')
Eric Boren4c7754c2017-04-10 08:19:10 -0400334 if 'x86_64' in bot and 'CPU' in bot:
335 # This GM triggers a SkSmallAllocator assert.
336 blacklist('_ gm _ composeshader_bitmap')
337
Matt Sarett6c50a2e2017-05-01 09:13:05 -0400338 if 'Win' in bot or 'Mac' in bot:
Leon Scroggins III3a3cf432017-08-18 13:08:16 -0400339 # WIC and CG fail on arithmetic jpegs
Matt Sarett6c50a2e2017-05-01 09:13:05 -0400340 blacklist('_ image gen_platf testimgari.jpg')
Leon Scroggins III3a3cf432017-08-18 13:08:16 -0400341 # More questionable bmps that fail on Mac, too. skbug.com/6984
342 blacklist('_ image gen_platf rle8-height-negative.bmp')
343 blacklist('_ image gen_platf rle4-height-negative.bmp')
Matt Sarett6c50a2e2017-05-01 09:13:05 -0400344
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400345 if 'Android' in bot or 'iOS' in bot or 'Chromecast' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400346 # This test crashes the N9 (perhaps because of large malloc/frees). It also
347 # is fairly slow and not platform-specific. So we just disable it on all of
348 # Android and iOS. skia:5438
349 blacklist('_ test _ GrShape')
350
Kevin Lubick451b7432017-09-15 14:44:12 -0400351 if api.vars.internal_hardware_label == 1:
352 # skia:7046
353 blacklist('_ test _ WritePixelsNonTexture_Gpu')
Brian Salomon3d86a192018-02-27 16:46:11 -0500354 blacklist('_ test _ WritePixelsNonTextureMSAA_Gpu')
Kevin Lubick451b7432017-09-15 14:44:12 -0400355 blacklist('_ test _ WritePixels_Gpu')
Brian Salomon3d86a192018-02-27 16:46:11 -0500356 blacklist('_ test _ WritePixelsMSAA_Gpu')
Kevin Lubick451b7432017-09-15 14:44:12 -0400357 blacklist('_ test _ GrSurfaceRenderability')
358 blacklist('_ test _ ES2BlendWithNoTexture')
359
Kevin Lubickbd27d1d2017-10-13 08:01:49 -0400360 if api.vars.internal_hardware_label == 2:
361 # skia:7160
362 blacklist('_ test _ SRGBReadWritePixels')
363 blacklist('_ test _ SRGBMipMap')
364
Kevin Lubick451b7432017-09-15 14:44:12 -0400365
Eric Boren4c7754c2017-04-10 08:19:10 -0400366 # skia:4095
Mike Reedfb499092017-06-26 13:53:32 +0000367 bad_serialize_gms = ['bleed_image',
Eric Boren4c7754c2017-04-10 08:19:10 -0400368 'c_gms',
369 'colortype',
370 'colortype_xfermodes',
371 'drawfilter',
372 'fontmgr_bounds_0.75_0',
373 'fontmgr_bounds_1_-0.25',
374 'fontmgr_bounds',
375 'fontmgr_match',
376 'fontmgr_iter',
377 'imagemasksubset']
378
379 # skia:5589
380 bad_serialize_gms.extend(['bitmapfilters',
381 'bitmapshaders',
382 'bleed',
383 'bleed_alpha_bmp',
384 'bleed_alpha_bmp_shader',
385 'convex_poly_clip',
386 'extractalpha',
387 'filterbitmap_checkerboard_32_32_g8',
388 'filterbitmap_image_mandrill_64',
389 'shadows',
390 'simpleaaclip_aaclip'])
391 # skia:5595
392 bad_serialize_gms.extend(['composeshader_bitmap',
393 'scaled_tilemodes_npot',
394 'scaled_tilemodes'])
395
396 # skia:5778
397 bad_serialize_gms.append('typefacerendering_pfaMac')
398 # skia:5942
399 bad_serialize_gms.append('parsedpaths')
400
401 # these use a custom image generator which doesn't serialize
402 bad_serialize_gms.append('ImageGeneratorExternal_rect')
403 bad_serialize_gms.append('ImageGeneratorExternal_shader')
404
405 # skia:6189
406 bad_serialize_gms.append('shadow_utils')
407
Matt Sarett9f3dcb32017-05-04 08:53:32 -0400408 # Not expected to round trip encoding/decoding.
Mike Klein0b78a692017-10-31 17:31:17 -0400409 bad_serialize_gms.append('all_bitmap_configs')
Matt Sarett9f3dcb32017-05-04 08:53:32 -0400410 bad_serialize_gms.append('makecolorspace')
411
Brian Salomon7072e222017-11-29 15:12:45 -0500412 # This GM forces a path to be convex. That property doesn't survive
413 # serialization.
414 bad_serialize_gms.append('analytic_antialias_convex')
415
Eric Boren4c7754c2017-04-10 08:19:10 -0400416 for test in bad_serialize_gms:
417 blacklist(['serialize-8888', 'gm', '_', test])
418
419 if 'Mac' not in bot:
420 for test in ['bleed_alpha_image', 'bleed_alpha_image_shader']:
421 blacklist(['serialize-8888', 'gm', '_', test])
422 # It looks like we skip these only for out-of-memory concerns.
Kevin Lubick608c35a2018-01-16 16:15:57 -0500423 if 'Win' in bot or 'Android' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400424 for test in ['verylargebitmap', 'verylarge_picture_image']:
425 blacklist(['serialize-8888', 'gm', '_', test])
Ben Wagner2e4e73f2017-09-08 15:21:44 -0400426 if 'Mac' in bot and 'CPU' in bot:
Ben Wagner38db79f2017-08-23 15:05:50 -0400427 # skia:6992
Ben Wagner6f98bc62017-09-05 16:02:28 -0400428 blacklist(['pic-8888', 'gm', '_', 'encode-platform'])
Ben Wagner38db79f2017-08-23 15:05:50 -0400429 blacklist(['serialize-8888', 'gm', '_', 'encode-platform'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400430
431 # skia:4769
432 for test in ['drawfilter']:
Eric Boren4c7754c2017-04-10 08:19:10 -0400433 blacklist([ 'pic-8888', 'gm', '_', test])
Eric Boren4c7754c2017-04-10 08:19:10 -0400434 blacklist([ 'lite-8888', 'gm', '_', test])
435 # skia:4703
436 for test in ['image-cacherator-from-picture',
437 'image-cacherator-from-raster',
438 'image-cacherator-from-ctable']:
Eric Boren4c7754c2017-04-10 08:19:10 -0400439 blacklist([ 'pic-8888', 'gm', '_', test])
Eric Boren4c7754c2017-04-10 08:19:10 -0400440 blacklist(['serialize-8888', 'gm', '_', test])
441
442 # GM that requires raster-backed canvas
443 for test in ['gamut', 'complexclip4_bw', 'complexclip4_aa']:
Eric Boren4c7754c2017-04-10 08:19:10 -0400444 blacklist([ 'pic-8888', 'gm', '_', test])
445 blacklist([ 'lite-8888', 'gm', '_', test])
Eric Boren4c7754c2017-04-10 08:19:10 -0400446 blacklist(['serialize-8888', 'gm', '_', test])
447
448 # GM that not support tiles_rt
449 for test in ['complexclip4_bw', 'complexclip4_aa']:
450 blacklist([ 'tiles_rt-8888', 'gm', '_', test])
451
452 # Extensions for RAW images
Ben Wagner6e0a6b32017-09-26 14:11:15 -0400453 r = ['arw', 'cr2', 'dng', 'nef', 'nrw', 'orf', 'raf', 'rw2', 'pef', 'srw',
454 'ARW', 'CR2', 'DNG', 'NEF', 'NRW', 'ORF', 'RAF', 'RW2', 'PEF', 'SRW']
Eric Boren4c7754c2017-04-10 08:19:10 -0400455
456 # skbug.com/4888
457 # Blacklist RAW images (and a few large PNGs) on GPU bots
458 # until we can resolve failures.
Matt Sarett929bfeb2017-05-22 10:34:41 -0400459 if 'GPU' in bot:
460 blacklist('_ image _ interlaced1.png')
461 blacklist('_ image _ interlaced2.png')
462 blacklist('_ image _ interlaced3.png')
463 for raw_ext in r:
464 blacklist('_ image _ .%s' % raw_ext)
465
466 # Blacklist memory intensive tests on 32-bit bots.
Ben Wagnerfd66b5f2017-11-15 15:16:27 -0500467 if ('Win8' in bot or 'Win2016' in bot) and 'x86-' in bot:
Matt Sarett929bfeb2017-05-22 10:34:41 -0400468 blacklist('_ image f16 _')
Matt Sarett112565e2017-05-22 13:45:15 -0400469 blacklist('_ image _ abnormal.wbmp')
Eric Boren4c7754c2017-04-10 08:19:10 -0400470 blacklist('_ image _ interlaced1.png')
471 blacklist('_ image _ interlaced2.png')
472 blacklist('_ image _ interlaced3.png')
473 for raw_ext in r:
474 blacklist('_ image _ .%s' % raw_ext)
475
Eric Boren4c7754c2017-04-10 08:19:10 -0400476 if 'IntelHD405' in bot and 'Ubuntu16' in bot:
477 # skia:6331
478 blacklist(['glmsaa8', 'image', 'gen_codec_gpu', 'abnormal.wbmp'])
479 blacklist(['glesmsaa4', 'image', 'gen_codec_gpu', 'abnormal.wbmp'])
480
Ben Wagner3f330692017-12-07 15:14:54 -0500481 if 'Nexus5' in bot and 'GPU' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400482 # skia:5876
483 blacklist(['_', 'gm', '_', 'encode-platform'])
484
485 if 'AndroidOne-GPU' in bot: # skia:4697, skia:4704, skia:4694, skia:4705
486 blacklist(['_', 'gm', '_', 'bigblurs'])
487 blacklist(['_', 'gm', '_', 'bleed'])
488 blacklist(['_', 'gm', '_', 'bleed_alpha_bmp'])
489 blacklist(['_', 'gm', '_', 'bleed_alpha_bmp_shader'])
490 blacklist(['_', 'gm', '_', 'bleed_alpha_image'])
491 blacklist(['_', 'gm', '_', 'bleed_alpha_image_shader'])
492 blacklist(['_', 'gm', '_', 'bleed_image'])
493 blacklist(['_', 'gm', '_', 'dropshadowimagefilter'])
494 blacklist(['_', 'gm', '_', 'filterfastbounds'])
495 blacklist([gl_prefix, 'gm', '_', 'imageblurtiled'])
496 blacklist(['_', 'gm', '_', 'imagefiltersclipped'])
497 blacklist(['_', 'gm', '_', 'imagefiltersscaled'])
498 blacklist(['_', 'gm', '_', 'imageresizetiled'])
499 blacklist(['_', 'gm', '_', 'matrixconvolution'])
500 blacklist(['_', 'gm', '_', 'strokedlines'])
501 if sample_count is not '':
502 gl_msaa_config = gl_prefix + 'msaa' + sample_count
503 blacklist([gl_msaa_config, 'gm', '_', 'imageblurtiled'])
504 blacklist([gl_msaa_config, 'gm', '_', 'imagefiltersbase'])
505
506 match = []
507 if 'Valgrind' in bot: # skia:3021
508 match.append('~Threaded')
509
Ben Wagner6c126422017-06-19 12:45:54 -0400510 if 'Valgrind' in bot and 'PreAbandonGpuContext' in bot:
511 # skia:6575
512 match.append('~multipicturedraw_')
513
Ben Wagnerbb3e7ff2017-04-28 15:28:32 -0400514 if 'CommandBuffer' in bot:
515 # https://crbug.com/697030
516 match.append('~HalfFloatAlphaTextureTest')
517
Cary Clarka7c569d2018-02-14 11:31:25 -0500518 if 'AndroidOne' in bot:
519 match.append('~WritePixels') # skia:4711
520 match.append('~PremulAlphaRoundTrip_Gpu') # skia:7501
Eric Boren4c7754c2017-04-10 08:19:10 -0400521
Kevin Lubick608c35a2018-01-16 16:15:57 -0500522 if 'Chromecast' in bot:
Kevin Lubick6ea9fdf2018-01-17 08:54:21 -0500523 if 'GPU' in bot:
524 # skia:6687
525 match.append('~matrixconvolution')
526 match.append('~blur_image_filter')
527 match.append('~blur_0.01')
528 match.append('~lighting')
529 match.append('~imageblur2')
530 match.append('~animated-image-blurs')
Ben Wagnerdabef9d2018-02-27 16:36:12 -0500531 match.append('~textblobmixedsizes_df')
Ben Wagner98c3c612018-02-26 14:53:30 -0500532 match.append('~textblobrandomfont')
Kevin Lubick608c35a2018-01-16 16:15:57 -0500533 # Blacklisted to avoid OOM (we see DM just end with "broken pipe")
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400534 match.append('~GM_animated-image-blurs')
Kevin Lubick608c35a2018-01-16 16:15:57 -0500535 match.append('~verylarge')
536 match.append('~ImageFilterBlurLargeImage')
537 match.append('~TextBlobCache')
538 match.append('~bigbitmaprect_')
539 match.append('~savelayer_clipmask')
540 match.append('~DrawBitmapRect')
Kevin Lubick8684c712018-02-12 15:55:57 -0500541 match.append('~drawbitmaprect')
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400542
Eric Boren4c7754c2017-04-10 08:19:10 -0400543 if 'GalaxyS6' in bot:
544 match.append('~SpecialImage') # skia:6338
Brian Osmaneee3c092017-06-15 13:25:10 -0400545 match.append('~skbug6653') # skia:6653
Eric Boren4c7754c2017-04-10 08:19:10 -0400546
547 if 'GalaxyS7_G930A' in bot:
548 match.append('~WritePixels') # skia:6427
549
Eric Boren4c7754c2017-04-10 08:19:10 -0400550 if 'MSAN' in bot:
551 match.extend(['~Once', '~Shared']) # Not sure what's up with these tests.
552
553 if 'TSAN' in bot:
554 match.extend(['~ReadWriteAlpha']) # Flaky on TSAN-covered on nvidia bots.
555 match.extend(['~RGBA4444TextureTest', # Flakier than they are important.
556 '~RGB565TextureTest'])
557
Ben Wagnerdba0bc82017-12-11 13:27:27 -0500558 # By default, we test with GPU threading enabled, unless specifically
559 # disabled.
560 if 'NoGPUThreads' in bot:
561 args.extend(['--gpuThreads', '0'])
562
Greg Daniela86385d2017-06-05 11:34:29 -0400563 if 'Vulkan' in bot and 'Adreno530' in bot:
564 # skia:5777
565 match.extend(['~CopySurface'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400566
Brian Salomon3d86a192018-02-27 16:46:11 -0500567 if 'Vulkan' in bot and 'Adreno' in bot:
568 # skia:7663
569 match.extend(['~WritePixelsNonTextureMSAA_Gpu'])
570 match.extend(['~WritePixelsMSAA_Gpu'])
571
Eric Boren4c7754c2017-04-10 08:19:10 -0400572 if 'Vulkan' in bot and 'NexusPlayer' in bot:
Ben Wagner407a3b72017-09-07 22:14:07 -0400573 # skia:6132
Ben Wagner0ecc2b7e2017-11-09 22:10:44 -0500574 match.append('~^tilemodes$')
Greg Daniel4c723832017-11-13 12:59:08 -0500575 match.append('~tilemodes_npot$')
Greg Daniel41886c82017-11-15 09:20:13 -0500576 match.append('~scaled_tilemodes$')
577 match.append('~emboss')
Ben Wagner0ecc2b7e2017-11-09 22:10:44 -0500578 match.append('~^bitmapfilters$')
579 match.append('~^shadertext$')
580 match.append('~^FullScreenClearWithLayers$') #skia:7191
581 match.append('~^GrDefaultPathRendererTest$') #skia:7244
582 match.append('~^GrMSAAPathRendererTest$') #skia:7244
Ben Wagner407a3b72017-09-07 22:14:07 -0400583 # skia:7018
Ben Wagner0ecc2b7e2017-11-09 22:10:44 -0500584 match.extend(['~^ClearOp$',
585 '~^ComposedImageFilterBounds_Gpu$',
586 '~^ImageEncode_Gpu$',
587 '~^ImageFilterFailAffectsTransparentBlack_Gpu$',
588 '~^ImageFilterZeroBlurSigma_Gpu$',
589 '~^ImageNewShader_GPU$',
590 '~^ImageReadPixels_Gpu$',
591 '~^ImageScalePixels_Gpu$',
592 '~^ReadWriteAlpha$',
593 '~^SpecialImage_DeferredGpu$',
594 '~^SpecialImage_Gpu$',
595 '~^SurfaceSemaphores$'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400596
Ben Wagner63457572017-12-21 10:49:58 -0500597 if 'Vulkan' in bot and api.vars.is_linux and 'IntelIris640' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400598 match.extend(['~VkHeapTests']) # skia:6245
599
Ben Wagnerb8427032017-11-18 19:04:25 -0500600 if 'Vulkan' in bot and api.vars.is_linux and 'IntelHD405' in bot:
Ben Wagner32eb5ba2017-11-20 13:46:20 -0500601 # skia:7322
Ben Wagnerb8427032017-11-18 19:04:25 -0500602 blacklist(['vk', 'gm', '_', 'skbug_257'])
603 match.append('~^ClearOp$')
Greg Danielec34a712017-12-06 12:06:26 -0500604 match.append('~^CopySurface$')
605 match.append('~^ImageNewShader_GPU$')
Ben Wagnerb8427032017-11-18 19:04:25 -0500606 match.append('~^InitialTextureClear$')
Greg Danielec34a712017-12-06 12:06:26 -0500607 match.append('~^PinnedImageTest$')
Ben Wagnerb8427032017-11-18 19:04:25 -0500608 match.append('~^ReadPixels_Gpu$')
609 match.append('~^ReadPixels_Texture$')
Greg Danielec34a712017-12-06 12:06:26 -0500610 match.append('~^SRGBReadWritePixels$')
Ben Wagnerb8427032017-11-18 19:04:25 -0500611 match.append('~^VkUploadPixelsTests$')
612 match.append('~^WritePixelsNonTexture_Gpu$')
Brian Salomon3d86a192018-02-27 16:46:11 -0500613 match.append('~^WritePixelsNonTextureMSAA_Gpu$')
Ben Wagnerb8427032017-11-18 19:04:25 -0500614 match.append('~^WritePixels_Gpu$')
Brian Salomon3d86a192018-02-27 16:46:11 -0500615 match.append('~^WritePixelsMSAA_Gpu$')
Ben Wagnerb8427032017-11-18 19:04:25 -0500616 match.append('~^skbug6653$')
617
Ben Wagnerf1debdf2017-06-13 13:37:05 -0400618 if 'Vulkan' in bot and 'IntelIris540' in bot and 'Win' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400619 # skia:6398
620 blacklist(['vk', 'gm', '_', 'aarectmodes'])
621 blacklist(['vk', 'gm', '_', 'aaxfermodes'])
622 blacklist(['vk', 'gm', '_', 'arithmode'])
Brian Osmand52c6c22017-10-25 15:43:22 -0400623 blacklist(['vk', 'gm', '_', 'composeshader'])
624 blacklist(['vk', 'gm', '_', 'composeshader_alpha'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400625 blacklist(['vk', 'gm', '_', 'composeshader_bitmap'])
626 blacklist(['vk', 'gm', '_', 'composeshader_bitmap2'])
Greg Daniel0eef6742017-11-20 16:05:04 -0500627 blacklist(['vk', 'gm', '_', 'dont_clip_to_layer'])
Mike Klein78932122017-11-15 13:21:40 -0500628 blacklist(['vk', 'gm', '_', 'dftext'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400629 blacklist(['vk', 'gm', '_', 'drawregionmodes'])
630 blacklist(['vk', 'gm', '_', 'filterfastbounds'])
631 blacklist(['vk', 'gm', '_', 'fontcache'])
Mike Klein0030c5e2017-11-13 13:27:48 -0500632 blacklist(['vk', 'gm', '_', 'fontmgr_iter'])
633 blacklist(['vk', 'gm', '_', 'fontmgr_iter_factory'])
634 blacklist(['vk', 'gm', '_', 'fontmgr_match'])
635 blacklist(['vk', 'gm', '_', 'fontscaler'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400636 blacklist(['vk', 'gm', '_', 'fontscalerdistortable'])
637 blacklist(['vk', 'gm', '_', 'gammagradienttext'])
Mike Klein0030c5e2017-11-13 13:27:48 -0500638 blacklist(['vk', 'gm', '_', 'gammatext'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400639 blacklist(['vk', 'gm', '_', 'gradtext'])
640 blacklist(['vk', 'gm', '_', 'hairmodes'])
641 blacklist(['vk', 'gm', '_', 'imagefilters_xfermodes'])
642 blacklist(['vk', 'gm', '_', 'imagefiltersclipped'])
643 blacklist(['vk', 'gm', '_', 'imagefiltersgraph'])
644 blacklist(['vk', 'gm', '_', 'imagefiltersscaled'])
645 blacklist(['vk', 'gm', '_', 'imagefiltersstroked'])
646 blacklist(['vk', 'gm', '_', 'imagefilterstransformed'])
647 blacklist(['vk', 'gm', '_', 'imageresizetiled'])
648 blacklist(['vk', 'gm', '_', 'lcdblendmodes'])
649 blacklist(['vk', 'gm', '_', 'lcdoverlap'])
Mike Klein0030c5e2017-11-13 13:27:48 -0500650 blacklist(['vk', 'gm', '_', 'lcdtext'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400651 blacklist(['vk', 'gm', '_', 'lcdtextsize'])
652 blacklist(['vk', 'gm', '_', 'matriximagefilter'])
Mike Klein78932122017-11-15 13:21:40 -0500653 blacklist(['vk', 'gm', '_', 'mixedtextblobs'])
Greg Daniel744d3c52017-06-09 13:50:20 -0400654 blacklist(['vk', 'gm', '_', 'mixershader'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400655 blacklist(['vk', 'gm', '_', 'pictureimagefilter'])
656 blacklist(['vk', 'gm', '_', 'resizeimagefilter'])
657 blacklist(['vk', 'gm', '_', 'rotate_imagefilter'])
658 blacklist(['vk', 'gm', '_', 'savelayer_lcdtext'])
Greg Daniel0c269d02018-02-08 15:26:49 -0500659 blacklist(['vk', 'gm', '_', 'shadermaskfilter_image'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400660 blacklist(['vk', 'gm', '_', 'srcmode'])
661 blacklist(['vk', 'gm', '_', 'surfaceprops'])
662 blacklist(['vk', 'gm', '_', 'textblobgeometrychange'])
663 blacklist(['vk', 'gm', '_', 'textbloblooper'])
664 blacklist(['vk', 'gm', '_', 'textblobmixedsizes'])
665 blacklist(['vk', 'gm', '_', 'textblobmixedsizes_df'])
666 blacklist(['vk', 'gm', '_', 'textblobrandomfont'])
667 blacklist(['vk', 'gm', '_', 'textfilter_color'])
668 blacklist(['vk', 'gm', '_', 'textfilter_image'])
Mike Klein0030c5e2017-11-13 13:27:48 -0500669 blacklist(['vk', 'gm', '_', 'typefacerendering'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400670 blacklist(['vk', 'gm', '_', 'varied_text_clipped_lcd'])
671 blacklist(['vk', 'gm', '_', 'varied_text_ignorable_clip_lcd'])
672 blacklist(['vk', 'gm', '_', 'xfermodeimagefilter'])
673 match.append('~ApplyGamma')
674 match.append('~ComposedImageFilterBounds_Gpu')
Chris Dalton114a3c02017-05-26 15:17:19 -0600675 match.append('~GrMeshTest')
Eric Boren4c7754c2017-04-10 08:19:10 -0400676 match.append('~ImageFilterFailAffectsTransparentBlack_Gpu')
677 match.append('~ImageFilterZeroBlurSigma_Gpu')
678 match.append('~ImageNewShader_GPU')
679 match.append('~NewTextureFromPixmap')
680 match.append('~ReadPixels_Gpu')
681 match.append('~ReadPixels_Texture')
682 match.append('~ReadWriteAlpha')
Brian Osmane18ceb12017-06-15 16:04:45 -0400683 match.append('~skbug6653')
Eric Boren4c7754c2017-04-10 08:19:10 -0400684 match.append('~SRGBReadWritePixels')
685 match.append('~SpecialImage_DeferredGpu')
686 match.append('~SpecialImage_Gpu')
687 match.append('~WritePixels_Gpu')
Brian Salomon3d86a192018-02-27 16:46:11 -0500688 match.append('~WritePixelsMSAA_Gpu')
Brian Osman33ea1362017-04-19 10:51:39 -0400689 match.append('~WritePixelsNonTexture_Gpu')
Brian Salomon3d86a192018-02-27 16:46:11 -0500690 match.append('~WritePixelsNonTextureMSAA_Gpu')
Eric Boren4c7754c2017-04-10 08:19:10 -0400691 match.append('~XfermodeImageFilterCroppedInput_Gpu')
Robert Phillips4c390b92017-10-30 13:23:38 -0400692 match.append('~GrDefaultPathRendererTest') #skia:7244
693 match.append('~GrMSAAPathRendererTest') #skia:7244
Chris Dalton4ff1a6b2018-01-12 09:51:51 -0500694 match.append('~SkImage_makeNonTextureImage')
Eric Boren4c7754c2017-04-10 08:19:10 -0400695
Ben Wagner2040ed22017-11-22 11:22:22 -0500696 if (('RadeonR9M470X' in bot or 'RadeonHD7770' in bot) and 'ANGLE' in bot):
Robert Phillips435db422017-10-04 09:38:11 -0400697 # skia:7096
698 match.append('~PinnedImageTest')
699
Eric Boren4c7754c2017-04-10 08:19:10 -0400700 if 'IntelIris540' in bot and 'ANGLE' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400701 for config in ['angle_d3d9_es2', 'angle_d3d11_es2', 'angle_gl_es2']:
Brian Salomon6e554e32017-06-23 12:08:10 -0400702 # skia:6103
Eric Boren4c7754c2017-04-10 08:19:10 -0400703 blacklist([config, 'gm', '_', 'multipicturedraw_invpathclip_simple'])
704 blacklist([config, 'gm', '_', 'multipicturedraw_noclip_simple'])
705 blacklist([config, 'gm', '_', 'multipicturedraw_pathclip_simple'])
706 blacklist([config, 'gm', '_', 'multipicturedraw_rectclip_simple'])
707 blacklist([config, 'gm', '_', 'multipicturedraw_rrectclip_simple'])
Brian Salomon6e554e32017-06-23 12:08:10 -0400708 # skia:6141
709 blacklist([config, 'gm', '_', 'discard'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400710
Ben Wagnerc6b2e6b2017-10-07 18:57:25 -0400711 if ('IntelIris6100' in bot or 'IntelHD4400' in bot) and 'ANGLE' in bot:
712 # skia:6857
713 blacklist(['angle_d3d9_es2', 'gm', '_', 'lighting'])
714
Kevin Lubickc14e5a72017-08-15 13:22:19 -0400715 if 'PowerVRGX6250' in bot:
716 match.append('~gradients_view_perspective_nodither') #skia:6972
717
Mike Klein3a3fbf12018-01-30 08:08:49 -0500718 if '-arm-' in bot and 'ASAN' in bot:
719 # TODO: can we run with env allocator_may_return_null=1 instead?
720 match.append('~BadImage')
721
Ben Wagner1d8726f2018-02-02 14:47:31 -0500722 if 'Mac' in bot and 'IntelHD6000' in bot:
Ben Wagnerdf430052018-02-08 16:57:04 -0500723 # skia:7574
Ben Wagner1d8726f2018-02-02 14:47:31 -0500724 match.append('~^ProcessorCloneTest$')
725 match.append('~^GrMeshTest$')
726
Ben Wagnerdf430052018-02-08 16:57:04 -0500727 if 'Mac' in bot and 'IntelHD615' in bot:
728 # skia:7603
729 match.append('~^GrMeshTest$')
730
Eric Boren4c7754c2017-04-10 08:19:10 -0400731 if blacklisted:
732 args.append('--blacklist')
733 args.extend(blacklisted)
734
735 if match:
736 args.append('--match')
737 args.extend(match)
738
739 # These bots run out of memory running RAW codec tests. Do not run them in
740 # parallel
Ben Wagner2040ed22017-11-22 11:22:22 -0500741 if 'NexusPlayer' in bot or 'Nexus5' in bot or 'Nexus9' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400742 args.append('--noRAW_threading')
743
Yuqian Li84be3ad2017-10-17 10:11:21 -0400744 if 'FSAA' in bot:
745 args.extend(['--analyticAA', 'false', '--deltaAA', 'false'])
746 if 'FAAA' in bot:
747 args.extend(['--deltaAA', 'false', '--forceAnalyticAA'])
748 if 'FDAA' in bot:
749 args.extend(['--deltaAA', '--forceDeltaAA'])
750
Mike Kleinc207da82017-11-10 14:24:34 -0500751 if 'NativeFonts' not in bot:
752 args.append('--nonativeFonts')
753
Mike Klein0c5fdcb2017-11-13 12:40:46 -0500754 if 'GDI' in bot:
755 args.append('--gdi')
756
Stephan Altmueller74dac542017-09-11 15:32:21 -0400757 # Let's make all bots produce verbose output by default.
758 args.append('--verbose')
Mike Kleinc9089062017-06-26 09:09:32 -0400759
Eric Boren4c7754c2017-04-10 08:19:10 -0400760 return args
761
762
763def key_params(api):
764 """Build a unique key from the builder name (as a list).
765
766 E.g. arch x86 gpu GeForce320M mode MacMini4.1 os Mac10.6
767 """
768 # Don't bother to include role, which is always Test.
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400769 blacklist = ['role', 'test_filter']
Eric Boren4c7754c2017-04-10 08:19:10 -0400770
771 flat = []
772 for k in sorted(api.vars.builder_cfg.keys()):
773 if k not in blacklist:
774 flat.append(k)
775 flat.append(api.vars.builder_cfg[k])
776 return flat
777
778
779def test_steps(api):
780 """Run the DM test."""
781 use_hash_file = False
782 if api.vars.upload_dm_results:
Eric Boren4c7754c2017-04-10 08:19:10 -0400783 host_dm_dir = str(api.vars.dm_dir)
784 device_dm_dir = str(api.flavor.device_dirs.dm_dir)
785 if host_dm_dir != device_dm_dir:
786 api.flavor.create_clean_device_dir(device_dm_dir)
787
788 # Obtain the list of already-generated hashes.
789 hash_filename = 'uninteresting_hashes.txt'
790
791 # Ensure that the tmp_dir exists.
Robert Iannucci8cd50412017-07-07 14:36:58 -0700792 api.run.run_once(api.file.ensure_directory,
793 'makedirs tmp_dir',
794 api.vars.tmp_dir)
Eric Boren4c7754c2017-04-10 08:19:10 -0400795
796 host_hashes_file = api.vars.tmp_dir.join(hash_filename)
797 hashes_file = api.flavor.device_path_join(
798 api.flavor.device_dirs.tmp_dir, hash_filename)
799 api.run(
800 api.python.inline,
801 'get uninteresting hashes',
802 program="""
803 import contextlib
804 import math
805 import socket
806 import sys
807 import time
808 import urllib2
809
Stephan Altmuellerc19ebc52017-05-30 16:39:17 -0400810 HASHES_URL = 'https://storage.googleapis.com/skia-infra-gm/hash_files/gold-prod-hashes.txt'
Eric Boren4c7754c2017-04-10 08:19:10 -0400811 RETRIES = 5
812 TIMEOUT = 60
813 WAIT_BASE = 15
814
815 socket.setdefaulttimeout(TIMEOUT)
816 for retry in range(RETRIES):
817 try:
818 with contextlib.closing(
819 urllib2.urlopen(HASHES_URL, timeout=TIMEOUT)) as w:
820 hashes = w.read()
821 with open(sys.argv[1], 'w') as f:
822 f.write(hashes)
823 break
824 except Exception as e:
825 print 'Failed to get uninteresting hashes from %s:' % HASHES_URL
826 print e
827 if retry == RETRIES:
828 raise
829 waittime = WAIT_BASE * math.pow(2, retry)
830 print 'Retry in %d seconds.' % waittime
831 time.sleep(waittime)
832 """,
833 args=[host_hashes_file],
834 abort_on_failure=False,
835 fail_build_on_failure=False,
836 infra_step=True)
837
838 if api.path.exists(host_hashes_file):
839 api.flavor.copy_file_to_device(host_hashes_file, hashes_file)
840 use_hash_file = True
841
842 # Run DM.
843 properties = [
Eric Boren9a9e3872017-11-29 12:33:22 -0500844 'gitHash', api.vars.got_revision,
845 'builder', api.vars.builder_name,
846 'buildbucket_build_id', api.properties.get('buildbucket_build_id', ''),
Eric Boren4c7754c2017-04-10 08:19:10 -0400847 ]
848 if api.vars.is_trybot:
849 properties.extend([
850 'issue', api.vars.issue,
851 'patchset', api.vars.patchset,
852 'patch_storage', api.vars.patch_storage,
853 ])
Eric Borenf9aa9e52017-04-10 09:56:10 -0400854 properties.extend(['swarming_bot_id', api.vars.swarming_bot_id])
855 properties.extend(['swarming_task_id', api.vars.swarming_task_id])
Eric Boren4c7754c2017-04-10 08:19:10 -0400856
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400857 if 'Chromecast' in api.vars.builder_cfg.get('os', ''):
858 # Due to limited disk space, we only deal with skps and one image.
859 args = [
860 'dm',
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400861 '--resourcePath', api.flavor.device_dirs.resource_dir,
862 '--skps', api.flavor.device_dirs.skp_dir,
863 '--images', api.flavor.device_path_join(
Kevin Lubickc2f3e8d2018-01-24 15:48:26 -0500864 api.flavor.device_dirs.resource_dir, 'images', 'color_wheel.jpg'),
Kevin Lubick608c35a2018-01-16 16:15:57 -0500865 '--nameByHash',
866 '--properties'
867 ] + properties
Kevin Lubick95379eb2018-01-17 11:20:19 -0500868 else:
869 args = [
870 'dm',
871 '--resourcePath', api.flavor.device_dirs.resource_dir,
872 '--skps', api.flavor.device_dirs.skp_dir,
873 '--images', api.flavor.device_path_join(
874 api.flavor.device_dirs.images_dir, 'dm'),
875 '--colorImages', api.flavor.device_path_join(
876 api.flavor.device_dirs.images_dir, 'colorspace'),
877 '--nameByHash',
878 '--properties'
879 ] + properties
880
881 args.extend(['--svgs', api.flavor.device_dirs.svg_dir])
882
883 args.append('--key')
884 args.extend(key_params(api))
Kevin Lubick608c35a2018-01-16 16:15:57 -0500885
886 if use_hash_file:
887 args.extend(['--uninterestingHashesFile', hashes_file])
888 if api.vars.upload_dm_results:
889 args.extend(['--writePath', api.flavor.device_dirs.dm_dir])
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400890
Eric Boren89cd3572017-06-28 13:50:22 -0400891 args.extend(dm_flags(api, api.vars.builder_name))
Eric Boren4c7754c2017-04-10 08:19:10 -0400892
Eric Boren4c7754c2017-04-10 08:19:10 -0400893 # See skia:2789.
Ben Wagner37491d22017-12-13 13:00:47 -0500894 if 'AbandonGpuContext' in api.vars.extra_tokens:
Eric Boren4c7754c2017-04-10 08:19:10 -0400895 args.append('--abandonGpuContext')
Ben Wagner37491d22017-12-13 13:00:47 -0500896 if 'PreAbandonGpuContext' in api.vars.extra_tokens:
Eric Boren4c7754c2017-04-10 08:19:10 -0400897 args.append('--preAbandonGpuContext')
Ben Wagner37491d22017-12-13 13:00:47 -0500898 if 'ReleaseAndAbandonGpuContext' in api.vars.extra_tokens:
Eric Boren6ec17e32017-04-26 14:25:29 -0400899 args.append('--releaseAndAbandonGpuContext')
Eric Boren4c7754c2017-04-10 08:19:10 -0400900
Ben Wagner5655ba42017-10-02 10:48:32 -0400901 api.run(api.flavor.step, 'dm', cmd=args, abort_on_failure=False)
Eric Boren4c7754c2017-04-10 08:19:10 -0400902
903 if api.vars.upload_dm_results:
904 # Copy images and JSON to host machine if needed.
905 api.flavor.copy_directory_contents_to_host(
906 api.flavor.device_dirs.dm_dir, api.vars.dm_dir)
907
908
borenet1ed2ae42016-07-26 11:52:17 -0700909def RunSteps(api):
Eric Boren4c7754c2017-04-10 08:19:10 -0400910 api.core.setup()
Robert Iannucci297a7ef2017-05-12 19:09:38 -0700911 env = {}
Eric Boren4c7754c2017-04-10 08:19:10 -0400912 if 'iOS' in api.vars.builder_name:
913 env['IOS_BUNDLE_ID'] = 'com.google.dm'
Stephan Altmueller63e843d2017-04-25 11:38:38 -0400914 env['IOS_MOUNT_POINT'] = api.vars.slave_dir.join('mnt_iosdevice')
Robert Iannucci297a7ef2017-05-12 19:09:38 -0700915 with api.context(env=env):
Eric Boren4c7754c2017-04-10 08:19:10 -0400916 try:
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400917 if 'Chromecast' in api.vars.builder_name:
918 api.flavor.install(resources=True, skps=True)
919 else:
920 api.flavor.install_everything()
Eric Boren4c7754c2017-04-10 08:19:10 -0400921 test_steps(api)
922 finally:
923 api.flavor.cleanup_steps()
924 api.run.check_failure()
925
926
Eric Borenf9aa9e52017-04-10 09:56:10 -0400927TEST_BUILDERS = [
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400928 'Test-Android-Clang-AndroidOne-GPU-Mali400MP2-arm-Release-All-Android',
929 'Test-Android-Clang-GalaxyS6-GPU-MaliT760-arm64-Debug-All-Android',
930 'Test-Android-Clang-GalaxyS7_G930A-GPU-Adreno530-arm64-Debug-All-Android',
931 'Test-Android-Clang-NVIDIA_Shield-GPU-TegraX1-arm64-Debug-All-Android',
932 'Test-Android-Clang-NVIDIA_Shield-GPU-TegraX1-arm64-Debug-All-Android_CCPR',
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400933 'Test-Android-Clang-Nexus5-GPU-Adreno330-arm-Release-All-Android',
Mike Klein3a3fbf12018-01-30 08:08:49 -0500934 'Test-Android-Clang-Nexus5x-GPU-Adreno418-arm-Debug-All-Android_ASAN',
935 'Test-Android-Clang-Nexus5x-GPU-Adreno418-arm64-Debug-All-Android_ASAN',
Kevin Lubick4f0f9332018-01-12 14:31:48 -0500936 ('Test-Android-Clang-Nexus5x-GPU-Adreno418-arm64-Debug-All'
Ben Wagnerdba0bc82017-12-11 13:27:27 -0500937 '-Android_NoGPUThreads'),
Ben Wagner5cf6d322017-12-07 10:23:07 -0500938 'Test-Android-Clang-Nexus7-CPU-Tegra3-arm-Release-All-Android',
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400939 'Test-Android-Clang-Nexus7-GPU-Tegra3-arm-Debug-All-Android',
940 'Test-Android-Clang-NexusPlayer-CPU-Moorefield-x86-Release-All-Android',
941 'Test-Android-Clang-NexusPlayer-GPU-PowerVR-x86-Release-All-Android_Vulkan',
Ben Wagner52423f32017-12-07 10:17:13 -0500942 'Test-Android-Clang-Pixel-GPU-Adreno530-arm64-Debug-All-Android_CCPR',
943 'Test-Android-Clang-Pixel-GPU-Adreno530-arm64-Debug-All-Android_Vulkan',
Kevin Lubickd7af1db2017-11-02 12:03:22 -0400944 'Test-ChromeOS-Clang-ASUSChromebookFlipC100-GPU-MaliT764-arm-Debug-All',
945 ('Test-ChromeOS-Clang-AcerChromebookR13Convertible-GPU-PowerVRGX6250-'
946 'arm-Debug-All'),
Kevin Lubick608c35a2018-01-16 16:15:57 -0500947 'Test-Chromecast-GCC-Chorizo-CPU-Cortex_A7-arm-Release-All',
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400948 'Test-Chromecast-GCC-Chorizo-GPU-Cortex_A7-arm-Release-All',
949 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All-ASAN',
Kevin Lubick32f318b2017-10-17 13:40:52 -0400950 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-shard_00_10-Coverage',
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400951 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All-MSAN',
952 ('Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All'
Ben Wagner9fb285e2017-10-02 16:53:07 -0400953 '-SK_USE_DISCARDABLE_SCALEDIMAGECACHE'),
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400954 ('Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Release-All'
Ben Wagner6e0a6b32017-09-26 14:11:15 -0400955 '-SK_FORCE_RASTER_PIPELINE_BLITTER'),
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400956 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Release-All-TSAN',
957 'Test-Debian9-GCC-GCE-CPU-AVX2-x86-Debug-All',
958 'Test-Debian9-GCC-GCE-CPU-AVX2-x86_64-Debug-All',
Ben Wagnerdf430052018-02-08 16:57:04 -0500959 'Test-Mac-Clang-MacBook10.1-GPU-IntelHD615-x86_64-Debug-All',
Ben Wagner1d8726f2018-02-02 14:47:31 -0500960 'Test-Mac-Clang-MacBookAir7.2-GPU-IntelHD6000-x86_64-Debug-All',
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400961 'Test-Mac-Clang-MacMini7.1-CPU-AVX-x86_64-Release-All',
962 'Test-Mac-Clang-MacMini7.1-GPU-IntelIris5100-x86_64-Debug-All-CommandBuffer',
Jim Van Verth1b6c75c2018-02-16 09:49:08 -0500963 'Test-Mac-Clang-MacBook10.1-GPU-IntelHD615-x86_64-Release-All-NativeFonts',
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400964 'Test-Ubuntu16-Clang-NUC5PPYH-GPU-IntelHD405-x86_64-Debug-All',
Ben Wagnerb8427032017-11-18 19:04:25 -0500965 'Test-Ubuntu16-Clang-NUC5PPYH-GPU-IntelHD405-x86_64-Release-All-Vulkan',
Ben Wagner63457572017-12-21 10:49:58 -0500966 'Test-Ubuntu16-Clang-NUC7i5BNK-GPU-IntelIris640-x86_64-Debug-All-Vulkan',
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400967 'Test-Ubuntu16-Clang-NUCDE3815TYKHE-GPU-IntelBayTrail-x86_64-Debug-All',
Ben Wagner9f553932017-11-27 22:18:12 -0500968 'Test-Ubuntu17-Clang-Golo-GPU-QuadroP400-x86_64-Debug-All-Vulkan_Coverage',
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400969 ('Test-Ubuntu17-GCC-Golo-GPU-QuadroP400-x86_64-Release-All'
Ben Wagner6e0a6b32017-09-26 14:11:15 -0400970 '-Valgrind_AbandonGpuContext_SK_CPU_LIMIT_SSE41'),
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400971 ('Test-Ubuntu17-GCC-Golo-GPU-QuadroP400-x86_64-Release-All'
Ben Wagner6e0a6b32017-09-26 14:11:15 -0400972 '-Valgrind_PreAbandonGpuContext_SK_CPU_LIMIT_SSE41'),
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400973 ('Test-Ubuntu17-GCC-Golo-GPU-QuadroP400-x86_64-Release-All'
Ben Wagner6e0a6b32017-09-26 14:11:15 -0400974 '-Valgrind_SK_CPU_LIMIT_SSE41'),
Ben Wagnerb2fd61a2017-10-23 16:01:44 -0400975 'Test-Win10-Clang-AlphaR2-GPU-RadeonR9M470X-x86_64-Debug-All-ANGLE',
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400976 'Test-Win10-Clang-AlphaR2-GPU-RadeonR9M470X-x86_64-Debug-All-Vulkan',
977 ('Test-Win10-Clang-Golo-GPU-QuadroP400-x86_64-Release-All'
Ben Wagner6e0a6b32017-09-26 14:11:15 -0400978 '-ReleaseAndAbandonGpuContext'),
Ben Wagnerfd66b5f2017-11-15 15:16:27 -0500979 'Test-Win10-Clang-NUC5i7RYH-CPU-AVX2-x86_64-Debug-All-NativeFonts',
980 'Test-Win10-Clang-NUC5i7RYH-CPU-AVX2-x86_64-Debug-All-NativeFonts_GDI',
Ben Wagnerb2fd61a2017-10-23 16:01:44 -0400981 'Test-Win10-Clang-NUC6i5SYK-GPU-IntelIris540-x86_64-Debug-All-ANGLE',
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400982 'Test-Win10-Clang-NUC6i5SYK-GPU-IntelIris540-x86_64-Debug-All-Vulkan',
Ben Wagnerb2fd61a2017-10-23 16:01:44 -0400983 'Test-Win10-Clang-NUCD34010WYKH-GPU-IntelHD4400-x86_64-Release-All-ANGLE',
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400984 'Test-Win10-Clang-ShuttleA-GPU-GTX660-x86_64-Debug-All-Vulkan',
Ben Wagnerb2fd61a2017-10-23 16:01:44 -0400985 'Test-Win10-Clang-ShuttleC-GPU-GTX960-x86_64-Debug-All-ANGLE',
Brian Osmanf4a95bc2017-11-06 14:08:54 -0500986 'Test-Win10-Clang-ZBOX-GPU-GTX1070-x86_64-Debug-All',
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400987 'Test-Win10-Clang-ZBOX-GPU-GTX1070-x86_64-Debug-All-Vulkan',
Ben Wagner78935c22017-11-15 13:21:03 -0500988 'Test-Win2016-Clang-GCE-CPU-AVX2-x86_64-Debug-All-FAAA',
989 'Test-Win2016-Clang-GCE-CPU-AVX2-x86_64-Debug-All-FDAA',
990 'Test-Win2016-Clang-GCE-CPU-AVX2-x86_64-Debug-All-FSAA',
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400991 'Test-Win8-MSVC-Golo-CPU-AVX-x86-Debug-All',
992 'Test-iOS-Clang-iPadPro-GPU-GT7800-arm64-Release-All',
Eric Borenf9aa9e52017-04-10 09:56:10 -0400993]
borenet1ed2ae42016-07-26 11:52:17 -0700994
995
996def GenTests(api):
Eric Borenf9aa9e52017-04-10 09:56:10 -0400997 for builder in TEST_BUILDERS:
998 test = (
999 api.test(builder) +
1000 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001001 buildbucket_build_id='123454321',
Eric Borenf9aa9e52017-04-10 09:56:10 -04001002 revision='abc123',
1003 path_config='kitchen',
1004 swarm_out_dir='[SWARM_OUT_DIR]') +
1005 api.path.exists(
1006 api.path['start_dir'].join('skia'),
1007 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1008 'skimage', 'VERSION'),
1009 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1010 'skp', 'VERSION'),
1011 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1012 'svg', 'VERSION'),
1013 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
Ben Wagnerf835c222017-04-30 11:14:51 -04001014 ) +
1015 api.step_data('get swarming bot id',
1016 stdout=api.raw_io.output('skia-bot-123')) +
1017 api.step_data('get swarming task id',
1018 stdout=api.raw_io.output('123456'))
Eric Borenf9aa9e52017-04-10 09:56:10 -04001019 )
Eric Borenf9aa9e52017-04-10 09:56:10 -04001020 if 'Win' in builder:
1021 test += api.platform('win', 64)
Eric Boren4c7754c2017-04-10 08:19:10 -04001022
Kevin Lubick2dafbd72017-08-31 10:39:05 -04001023 if 'Chromecast' in builder:
1024 test += api.step_data(
1025 'read chromecast ip',
1026 stdout=api.raw_io.output('192.168.1.2:5555'))
1027
Eric Borenf9aa9e52017-04-10 09:56:10 -04001028 if 'ChromeOS' in builder:
1029 test += api.step_data(
1030 'read chromeos ip',
1031 stdout=api.raw_io.output('{"user_ip":"foo@127.0.0.1"}'))
Eric Boren4c7754c2017-04-10 08:19:10 -04001032
Eric Borenf9aa9e52017-04-10 09:56:10 -04001033 yield test
Eric Boren4c7754c2017-04-10 08:19:10 -04001034
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001035 builder = 'Test-Win2k8-MSVC-GCE-CPU-AVX2-x86_64-Release-All'
Kevin Lubickfe079d42017-04-12 08:31:48 -04001036 yield (
1037 api.test('trybot') +
1038 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001039 buildbucket_build_id='123454321',
Kevin Lubickfe079d42017-04-12 08:31:48 -04001040 revision='abc123',
1041 path_config='kitchen',
1042 swarm_out_dir='[SWARM_OUT_DIR]') +
1043 api.properties(patch_storage='gerrit') +
1044 api.properties.tryserver(
1045 buildername=builder,
1046 gerrit_project='skia',
1047 gerrit_url='https://skia-review.googlesource.com/',
1048 )+
1049 api.path.exists(
1050 api.path['start_dir'].join('skia'),
1051 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1052 'skimage', 'VERSION'),
1053 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1054 'skp', 'VERSION'),
1055 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1056 'svg', 'VERSION'),
1057 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
1058 )
1059 )
1060
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001061 builder = 'Test-Debian9-GCC-GCE-CPU-AVX2-x86_64-Debug-All'
borenet1ed2ae42016-07-26 11:52:17 -07001062 yield (
Eric Boren4c7754c2017-04-10 08:19:10 -04001063 api.test('failed_dm') +
1064 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001065 buildbucket_build_id='123454321',
borenet1ed2ae42016-07-26 11:52:17 -07001066 revision='abc123',
1067 path_config='kitchen',
1068 swarm_out_dir='[SWARM_OUT_DIR]') +
1069 api.path.exists(
Ravi Mistry9bcca6a2016-11-21 16:06:19 -05001070 api.path['start_dir'].join('skia'),
1071 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
Eric Boren4c7754c2017-04-10 08:19:10 -04001072 'skimage', 'VERSION'),
Ravi Mistry9bcca6a2016-11-21 16:06:19 -05001073 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
Eric Boren4c7754c2017-04-10 08:19:10 -04001074 'skp', 'VERSION'),
Ravi Mistry9bcca6a2016-11-21 16:06:19 -05001075 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
Eric Boren4c7754c2017-04-10 08:19:10 -04001076 'svg', 'VERSION'),
Ravi Mistry9bcca6a2016-11-21 16:06:19 -05001077 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
Eric Boren4c7754c2017-04-10 08:19:10 -04001078 ) +
1079 api.step_data('symbolized dm', retcode=1)
1080 )
1081
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001082 builder = 'Test-Android-Clang-Nexus7-GPU-Tegra3-arm-Release-All-Android'
Eric Boren4c7754c2017-04-10 08:19:10 -04001083 yield (
1084 api.test('failed_get_hashes') +
1085 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001086 buildbucket_build_id='123454321',
Eric Boren4c7754c2017-04-10 08:19:10 -04001087 revision='abc123',
1088 path_config='kitchen',
1089 swarm_out_dir='[SWARM_OUT_DIR]') +
1090 api.path.exists(
1091 api.path['start_dir'].join('skia'),
1092 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1093 'skimage', 'VERSION'),
1094 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1095 'skp', 'VERSION'),
1096 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1097 'svg', 'VERSION'),
1098 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
1099 ) +
1100 api.step_data('get uninteresting hashes', retcode=1)
1101 )
1102
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001103 builder = ('Test-Android-Clang-NexusPlayer-CPU-Moorefield-x86-'
1104 'Debug-All-Android')
Eric Boren4c7754c2017-04-10 08:19:10 -04001105 yield (
1106 api.test('failed_push') +
1107 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001108 buildbucket_build_id='123454321',
Eric Boren4c7754c2017-04-10 08:19:10 -04001109 revision='abc123',
1110 path_config='kitchen',
1111 swarm_out_dir='[SWARM_OUT_DIR]') +
1112 api.path.exists(
1113 api.path['start_dir'].join('skia'),
1114 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1115 'skimage', 'VERSION'),
1116 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1117 'skp', 'VERSION'),
1118 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1119 'svg', 'VERSION'),
1120 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
1121 ) +
Kevin Lubickc6f74ca2018-03-01 09:21:38 -05001122 api.step_data('get swarming bot id',
1123 stdout=api.raw_io.output('build123-m2--device5')) +
Eric Boren4c7754c2017-04-10 08:19:10 -04001124 api.step_data('push [START_DIR]/skia/resources/* '+
1125 '/sdcard/revenge_of_the_skiabot/resources', retcode=1)
1126 )
1127
Ben Wagner1a2b3f02017-10-26 15:13:38 -04001128 builder = 'Test-Android-Clang-Nexus7-GPU-Tegra3-arm-Debug-All-Android'
Eric Boren4c7754c2017-04-10 08:19:10 -04001129 yield (
1130 api.test('failed_pull') +
1131 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001132 buildbucket_build_id='123454321',
Eric Boren4c7754c2017-04-10 08:19:10 -04001133 revision='abc123',
1134 path_config='kitchen',
1135 swarm_out_dir='[SWARM_OUT_DIR]') +
1136 api.path.exists(
1137 api.path['start_dir'].join('skia'),
1138 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1139 'skimage', 'VERSION'),
1140 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1141 'skp', 'VERSION'),
1142 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1143 'svg', 'VERSION'),
1144 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
1145 ) +
1146 api.step_data('dm', retcode=1) +
1147 api.step_data('pull /sdcard/revenge_of_the_skiabot/dm_out '+
1148 '[CUSTOM_[SWARM_OUT_DIR]]/dm', retcode=1)
borenetbfa5b452016-10-19 10:13:32 -07001149 )
Eric Boren053d7a42017-09-15 08:35:31 -04001150
1151 yield (
Kevin Lubick451b7432017-09-15 14:44:12 -04001152 api.test('internal_bot_1') +
Eric Boren053d7a42017-09-15 08:35:31 -04001153 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001154 buildbucket_build_id='123454321',
Eric Boren053d7a42017-09-15 08:35:31 -04001155 revision='abc123',
1156 path_config='kitchen',
1157 swarm_out_dir='[SWARM_OUT_DIR]',
Kevin Lubick451b7432017-09-15 14:44:12 -04001158 internal_hardware_label=1) +
Eric Boren053d7a42017-09-15 08:35:31 -04001159 api.path.exists(
1160 api.path['start_dir'].join('skia'),
1161 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1162 'skimage', 'VERSION'),
1163 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1164 'skp', 'VERSION'),
1165 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1166 'svg', 'VERSION'),
1167 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
1168 )
1169 )
Kevin Lubickbd27d1d2017-10-13 08:01:49 -04001170
1171 yield (
1172 api.test('internal_bot_2') +
1173 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001174 buildbucket_build_id='123454321',
Kevin Lubickbd27d1d2017-10-13 08:01:49 -04001175 revision='abc123',
1176 path_config='kitchen',
1177 swarm_out_dir='[SWARM_OUT_DIR]',
1178 internal_hardware_label=2) +
1179 api.path.exists(
1180 api.path['start_dir'].join('skia'),
1181 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1182 'skimage', 'VERSION'),
1183 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1184 'skp', 'VERSION'),
1185 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1186 'svg', 'VERSION'),
1187 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
Kevin Lubickd1bbd5f2017-11-21 16:47:16 -05001188 )
Kevin Lubickbd27d1d2017-10-13 08:01:49 -04001189 )