blob: 2ccf78c166b5d16d58a7f120b5c8667d4357b9ff [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 Boren896af752017-04-24 13:22:56 -040010 'env',
11 'flavor',
Robert Iannucci297a7ef2017-05-12 19:09:38 -070012 'recipe_engine/context',
Robert Iannucci8cd50412017-07-07 14:36:58 -070013 'recipe_engine/file',
borenet1ed2ae42016-07-26 11:52:17 -070014 'recipe_engine/path',
15 'recipe_engine/platform',
16 'recipe_engine/properties',
Eric Boren4c7754c2017-04-10 08:19:10 -040017 'recipe_engine/python',
borenet1ed2ae42016-07-26 11:52:17 -070018 'recipe_engine/raw_io',
Eric Boren4c7754c2017-04-10 08:19:10 -040019 'recipe_engine/step',
Eric Boren4c7754c2017-04-10 08:19:10 -040020 'run',
21 'vars',
borenet1ed2ae42016-07-26 11:52:17 -070022]
23
24
Eric Boren72f66682018-05-18 07:36:55 -040025def upload_dm_results(buildername):
26 skip_upload_bots = [
27 'ASAN',
28 'Coverage',
29 'MSAN',
30 'TSAN',
31 'UBSAN',
32 'Valgrind',
33 ]
34 for s in skip_upload_bots:
35 if s in buildername:
36 return False
37 return True
38
39
Eric Boren89cd3572017-06-28 13:50:22 -040040def dm_flags(api, bot):
Eric Boren4c7754c2017-04-10 08:19:10 -040041 args = []
Brian Osmanf9810662017-08-30 10:02:10 -040042 configs = []
43 blacklisted = []
44
45 def blacklist(quad):
Eric Borencd0a98c2018-06-20 13:23:16 -040046 config, src, options, name = (
47 quad.split(' ') if isinstance(quad, str) else quad)
Brian Osmanf9810662017-08-30 10:02:10 -040048 if (config == '_' or
49 config in configs or
50 (config[0] == '~' and config[1:] in configs)):
51 blacklisted.extend([config, src, options, name])
Eric Boren4c7754c2017-04-10 08:19:10 -040052
Mike Klein97d6a7a2017-07-24 10:37:19 -040053 # We've been spending lots of time writing out and especially uploading
54 # .pdfs, but not doing anything further with them. skia:6821
55 args.extend(['--dont_write', 'pdf'])
56
Eric Boren4c7754c2017-04-10 08:19:10 -040057 # This enables non-deterministic random seeding of the GPU FP optimization
Brian Osman7a34dca2017-04-13 13:40:29 -040058 # test.
Ben Wagner6da8f792017-08-10 12:22:56 -040059 # Not Android due to:
Ben Wagner11ab43c2017-08-09 18:05:59 -040060 # - https://skia.googlesource.com/skia/+/
61 # 5910ed347a638ded8cd4c06dbfda086695df1112/BUILD.gn#160
62 # - https://skia.googlesource.com/skia/+/
63 # ce06e261e68848ae21cac1052abc16bc07b961bf/tests/ProcessorTest.cpp#307
Ben Wagner6da8f792017-08-10 12:22:56 -040064 # Not MSAN due to:
65 # - https://skia.googlesource.com/skia/+/
66 # 0ac06e47269a40c177747310a613d213c95d1d6d/infra/bots/recipe_modules/
67 # flavor/gn_flavor.py#80
68 if 'Android' not in bot and 'MSAN' not in bot:
Ben Wagner11ab43c2017-08-09 18:05:59 -040069 args.append('--randomProcessorTest')
Eric Boren4c7754c2017-04-10 08:19:10 -040070
71 # 32-bit desktop bots tend to run out of memory, because they have relatively
72 # far more cores than RAM (e.g. 32 cores, 3G RAM). Hold them back a bit.
73 if '-x86-' in bot and not 'NexusPlayer' in bot:
Mike Kleindf669812017-06-23 13:30:17 -040074 args.extend(['--threads', '4'])
Eric Boren4c7754c2017-04-10 08:19:10 -040075
Ben Wagner5cf6d322017-12-07 10:23:07 -050076 # Nexus7 runs out of memory due to having 4 cores and only 1G RAM.
77 if 'CPU' in bot and 'Nexus7' in bot:
Ben Wagner1cfb6bc2017-12-07 12:19:30 -050078 args.extend(['--threads', '2'])
Ben Wagner5cf6d322017-12-07 10:23:07 -050079
Ben Wagner12e69e72018-07-15 15:12:01 -040080 # MotoG4 occasionally fails when multiple threads read the same image file.
81 if 'CPU' in bot and 'MotoG4' in bot:
82 args.extend(['--threads', '0'])
83
Kevin Lubick2dafbd72017-08-31 10:39:05 -040084 if 'Chromecast' in bot:
85 args.extend(['--threads', '0'])
86
Eric Boren4c7754c2017-04-10 08:19:10 -040087 # Avoid issues with dynamically exceeding resource cache limits.
88 if 'Test' in bot and 'DISCARDABLE' in bot:
Mike Kleindf669812017-06-23 13:30:17 -040089 args.extend(['--threads', '0'])
90
91 # See if staying on the main thread helps skia:6748.
92 if 'Test-iOS' in bot:
93 args.extend(['--threads', '0'])
Eric Boren4c7754c2017-04-10 08:19:10 -040094
Derek Sollenbergeredfe3df2017-07-19 15:25:24 -040095 # Android's kernel will occasionally attempt to kill our process, using
96 # SIGINT, in an effort to free up resources. If requested, that signal
97 # is ignored and dm will keep attempting to proceed until we actually
98 # exhaust the available resources.
99 if ('NexusPlayer' in bot or
Kevin Lubick608c35a2018-01-16 16:15:57 -0500100 'Chromecast' in bot):
Derek Sollenbergeredfe3df2017-07-19 15:25:24 -0400101 args.append('--ignoreSigInt')
102
Ben Wagner122b3852018-04-20 13:43:23 -0400103 if 'SwiftShader' in api.vars.extra_tokens:
104 configs.extend(['gles', 'glesdft'])
105 args.append('--disableDriverCorrectnessWorkarounds')
106
107 elif api.vars.builder_cfg.get('cpu_or_gpu') == 'CPU':
Ben Wagner32fa5102017-08-10 21:25:55 -0400108 args.append('--nogpu')
109
Mike Kleinc24e0c12018-08-17 13:24:51 -0400110 configs.append('8888')
Ben Wagner32fa5102017-08-10 21:25:55 -0400111
Mike Klein7adfd2f2018-08-21 13:42:53 +0000112 if 'BonusConfigs' in bot or ('SAN' in bot and 'GCE' in bot):
Mike Kleinc24e0c12018-08-17 13:24:51 -0400113 configs.extend([
114 'pdf',
115 'g8', '565',
116 'pic-8888', 'tiles_rt-8888', 'lite-8888', 'serialize-8888',
117 'gbr-8888',
118 'f16', 'srgb', 'esrgb', 'narrow', 'enarrow',
119 'p3', 'ep3', 'rec2020', 'erec2020'])
Eric Boren9f4efd32018-07-20 08:25:42 -0400120
Ben Wagner32fa5102017-08-10 21:25:55 -0400121 elif api.vars.builder_cfg.get('cpu_or_gpu') == 'GPU':
122 args.append('--nocpu')
123
124 # Add in either gles or gl configs to the canonical set based on OS
125 sample_count = '8'
126 gl_prefix = 'gl'
127 if 'Android' in bot or 'iOS' in bot:
128 sample_count = '4'
129 # We want to test the OpenGL config not the GLES config on the Shield
130 if 'NVIDIA_Shield' not in bot:
131 gl_prefix = 'gles'
132 elif 'Intel' in bot:
133 sample_count = ''
134 elif 'ChromeOS' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400135 gl_prefix = 'gles'
Eric Boren4c7754c2017-04-10 08:19:10 -0400136
Jim Van Verth1b6c75c2018-02-16 09:49:08 -0500137 if 'NativeFonts' in bot:
138 configs.append(gl_prefix)
139 else:
Brian Osmana66f4da2018-06-28 17:52:02 +0000140 configs.extend([gl_prefix,
141 gl_prefix + 'dft',
142 gl_prefix + 'srgb'])
Jim Van Verth240516f2018-02-15 09:55:24 -0500143 if sample_count is not '':
144 configs.append(gl_prefix + 'msaa' + sample_count)
Eric Boren4c7754c2017-04-10 08:19:10 -0400145
Ben Wagner32fa5102017-08-10 21:25:55 -0400146 # The NP produces a long error stream when we run with MSAA. The Tegra3 just
147 # doesn't support it.
148 if ('NexusPlayer' in bot or
149 'Tegra3' in bot or
150 # We aren't interested in fixing msaa bugs on current iOS devices.
151 'iPad4' in bot or
152 'iPadPro' in bot or
153 'iPhone6' in bot or
154 'iPhone7' in bot or
155 # skia:5792
156 'IntelHD530' in bot or
157 'IntelIris540' in bot):
158 configs = [x for x in configs if 'msaa' not in x]
Eric Boren4c7754c2017-04-10 08:19:10 -0400159
Ben Wagner32fa5102017-08-10 21:25:55 -0400160 # The NP produces different images for dft on every run.
161 if 'NexusPlayer' in bot:
162 configs = [x for x in configs if 'dft' not in x]
Eric Boren4c7754c2017-04-10 08:19:10 -0400163
Ben Wagner32fa5102017-08-10 21:25:55 -0400164 # We want to test both the OpenGL config and the GLES config on Linux Intel:
165 # GL is used by Chrome, GLES is used by ChromeOS.
Brian Osmanf9810662017-08-30 10:02:10 -0400166 # Also do the Ganesh threading verification test (render with and without
167 # worker threads, using only the SW path renderer, and compare the results).
Ben Wagner32fa5102017-08-10 21:25:55 -0400168 if 'Intel' in bot and api.vars.is_linux:
Brian Osmana66f4da2018-06-28 17:52:02 +0000169 configs.extend(['gles',
170 'glesdft',
171 'glessrgb',
172 'gltestthreading'])
Brian Osmanf9810662017-08-30 10:02:10 -0400173 # skbug.com/6333, skbug.com/6419, skbug.com/6702
174 blacklist('gltestthreading gm _ lcdblendmodes')
175 blacklist('gltestthreading gm _ lcdoverlap')
Brian Osmanbef21ba2017-08-31 13:49:05 -0400176 blacklist('gltestthreading gm _ textbloblooper')
Brian Osman1e75f2a2017-09-07 09:30:44 -0400177 # All of these GMs are flaky, too:
178 blacklist('gltestthreading gm _ bleed_alpha_bmp')
179 blacklist('gltestthreading gm _ bleed_alpha_bmp_shader')
180 blacklist('gltestthreading gm _ bleed_alpha_image')
181 blacklist('gltestthreading gm _ bleed_alpha_image_shader')
182 blacklist('gltestthreading gm _ savelayer_with_backdrop')
183 blacklist('gltestthreading gm _ persp_shaders_bw')
Brian Salomon5c6ac642017-12-19 11:09:32 -0500184 blacklist('gltestthreading gm _ dftext_blob_persp')
Brian Salomon19eaf2d2018-03-19 16:06:44 -0400185 # skbug.com/7523 - Flaky on various GPUs
186 blacklist('gltestthreading gm _ orientation')
Mike Klein97627d42017-05-11 13:12:48 -0400187
Ben Wagner32fa5102017-08-10 21:25:55 -0400188 # CommandBuffer bot *only* runs the command_buffer config.
189 if 'CommandBuffer' in bot:
190 configs = ['commandbuffer']
191
192 # ANGLE bot *only* runs the angle configs
193 if 'ANGLE' in bot:
194 configs = ['angle_d3d11_es2',
195 'angle_d3d9_es2',
196 'angle_gl_es2',
197 'angle_d3d11_es3']
198 if sample_count is not '':
199 configs.append('angle_d3d11_es2_msaa' + sample_count)
200 configs.append('angle_d3d11_es3_msaa' + sample_count)
Ben Wagner7464a262018-04-19 15:49:18 -0400201 if 'GTX' in bot or 'Quadro' in bot:
202 # See skia:7823 and chromium:693090.
203 configs.append('angle_gl_es3')
204 if sample_count is not '':
205 configs.append('angle_gl_es2_msaa' + sample_count)
206 configs.append('angle_gl_es3_msaa' + sample_count)
Ethan Nicholas00543112018-07-31 09:44:36 -0400207 if 'NUC5i7RYH' in bot:
208 # skbug.com/7376
209 blacklist('_ test _ ProcessorCloneTest')
Ben Wagner32fa5102017-08-10 21:25:55 -0400210
211 # Vulkan bot *only* runs the vk config.
212 if 'Vulkan' in bot:
Chris Daltonaec79e62018-05-29 12:02:19 -0600213 configs = ['vk']
Ben Wagner32fa5102017-08-10 21:25:55 -0400214
Greg Danielb95d2782018-07-24 11:35:18 -0400215 if 'Metal' in bot:
216 configs = ['mtl']
217
Brian Salomon7fc52992018-07-12 16:20:23 -0400218 # Test 1010102 on our Linux/NVIDIA bots and the persistent cache config
219 # on the GL bots.
Brian Salomonbfc63c12018-07-16 15:48:22 -0400220 if ('QuadroP400' in bot and 'PreAbandonGpuContext' not in bot and
Brian Salomon6a3957c2018-07-19 17:01:09 -0400221 'TSAN' not in bot and api.vars.is_linux):
Brian Osman10fc6fd2018-03-02 11:01:10 -0500222 if 'Vulkan' in bot:
223 configs.append('vk1010102')
Brian Osman419abf32018-03-02 14:56:15 -0500224 # Decoding transparent images to 1010102 just looks bad
225 blacklist('vk1010102 image _ _')
Brian Osman10fc6fd2018-03-02 11:01:10 -0500226 else:
Brian Salomon7fc52992018-07-12 16:20:23 -0400227 configs.extend(['gl1010102', 'gltestpersistentcache'])
Brian Osman419abf32018-03-02 14:56:15 -0500228 # Decoding transparent images to 1010102 just looks bad
229 blacklist('gl1010102 image _ _')
Brian Salomon09387592018-07-16 15:34:16 -0400230 # These tests produce slightly different pixels run to run on NV.
Brian Salomon7fc52992018-07-12 16:20:23 -0400231 blacklist('gltestpersistentcache gm _ atlastext')
Brian Salomon09387592018-07-16 15:34:16 -0400232 blacklist('gltestpersistentcache gm _ dftext')
Brian Salomon06e3c3c2018-08-03 12:54:11 -0400233 blacklist('gltestpersistentcache gm _ glyph_pos_h_b')
Brian Osman10fc6fd2018-03-02 11:01:10 -0500234
Brian Salomon7bfe8432018-08-31 13:35:26 -0400235 # Test SkColorSpaceXformCanvas and rendering to wrapped dsts on a few bots
Ben Wagnera4cdfbb2018-08-31 10:20:34 -0400236 if 'BonusConfigs' in api.vars.extra_tokens:
Brian Salomon7bfe8432018-08-31 13:35:26 -0400237 configs = ['gbr-gl', 'glbetex', 'glbert']
238
Ben Wagnera4cdfbb2018-08-31 10:20:34 -0400239
Ben Wagner32fa5102017-08-10 21:25:55 -0400240 if 'ChromeOS' in bot:
241 # Just run GLES for now - maybe add gles_msaa4 in the future
242 configs = ['gles']
243
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400244 if 'Chromecast' in bot:
Kevin Lubick608c35a2018-01-16 16:15:57 -0500245 configs = ['gles']
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400246
Ben Wagner32fa5102017-08-10 21:25:55 -0400247 # Test coverage counting path renderer.
248 if 'CCPR' in bot:
249 configs = [c for c in configs if c == 'gl' or c == 'gles']
Chris Dalton7a0ebfc2017-10-13 12:35:50 -0600250 args.extend(['--pr', 'ccpr', '--cachePathMasks', 'false'])
Chris Dalton97598a52017-07-18 10:49:07 -0600251
Robert Phillips36150be2018-03-15 13:40:07 -0400252 # DDL is a GPU-only feature
253 if 'DDL1' in bot:
Robert Phillips69eb8352018-04-11 13:45:08 -0400254 # This bot generates gl and vk comparison images for the large skps
255 configs = [c for c in configs if c == 'gl' or c == 'vk']
Robert Phillipsb7fafba2018-03-27 20:49:23 +0000256 args.extend(['--skpViewportSize', "2048"])
Robert Phillips21ca0432018-05-29 15:42:00 -0400257 args.extend(['--pr', '~small'])
Robert Phillips36150be2018-03-15 13:40:07 -0400258 if 'DDL3' in bot:
Robert Phillips69eb8352018-04-11 13:45:08 -0400259 # This bot generates the ddl-gl and ddl-vk images for the
260 # large skps and the gms
261 configs = ['ddl-' + c for c in configs if c == 'gl' or c == 'vk']
Robert Phillipsb7fafba2018-03-27 20:49:23 +0000262 args.extend(['--skpViewportSize', "2048"])
Robert Phillipse43ff782018-04-20 11:59:59 -0400263 args.extend(['--gpuThreads', "0"])
Robert Phillips36150be2018-03-15 13:40:07 -0400264
Eric Boren9f4efd32018-07-20 08:25:42 -0400265 if 'Lottie' in bot:
266 configs = ['gl']
267
Kevin Lubick32f318b2017-10-17 13:40:52 -0400268 tf = api.vars.builder_cfg.get('test_filter')
269 if 'All' != tf:
270 # Expected format: shard_XX_YY
271 parts = tf.split('_')
272 if len(parts) == 3:
273 args.extend(['--shard', parts[1]])
274 args.extend(['--shards', parts[2]])
Eric Boren9599b0f2018-04-17 15:55:57 -0400275 else: # pragma: nocover
276 raise Exception('Invalid task name - bad shards: %s' % tf)
Kevin Lubick32f318b2017-10-17 13:40:52 -0400277
Chris Dalton80ace822017-07-20 10:54:04 -0600278 args.append('--config')
279 args.extend(configs)
280
Eric Boren4c7754c2017-04-10 08:19:10 -0400281 # Run tests, gms, and image decoding tests everywhere.
Eric Boren8c172ba2018-07-19 13:27:49 -0400282 args.extend('--src tests gm image lottie colorImage svg skp'.split(' '))
Ben Wagner0ecc2b7e2017-11-09 22:10:44 -0500283 if api.vars.builder_cfg.get('cpu_or_gpu') == 'GPU':
Chris Dalton7c304ba2017-09-07 11:57:16 -0600284 # Don't run the 'svgparse_*' svgs on GPU.
285 blacklist('_ svg _ svgparse_')
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400286 elif bot == 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All-ASAN':
Chris Dalton7c304ba2017-09-07 11:57:16 -0600287 # Only run the CPU SVGs on 8888.
288 blacklist('~8888 svg _ _')
289 else:
290 # On CPU SVGs we only care about parsing. Only run them on the above bot.
291 args.remove('svg')
Eric Boren4c7754c2017-04-10 08:19:10 -0400292
Mike Klein97627d42017-05-11 13:12:48 -0400293 # Eventually I'd like these to pass, but for now just skip 'em.
294 if 'SK_FORCE_RASTER_PIPELINE_BLITTER' in bot:
295 args.remove('tests')
296
Mike Klein9a01a212017-11-03 12:19:54 -0400297 if 'NativeFonts' in bot: # images won't exercise native font integration :)
298 args.remove('image')
299 args.remove('colorImage')
300
Eric Boren8c172ba2018-07-19 13:27:49 -0400301 def remove_from_args(arg):
302 if arg in args:
303 args.remove(arg)
304
Robert Phillips5f3ce3e2018-04-12 11:09:40 -0400305 if 'DDL' in bot:
306 # The DDL bots just render the large skps and the gms
Eric Boren8c172ba2018-07-19 13:27:49 -0400307 remove_from_args('tests')
308 remove_from_args('image')
309 remove_from_args('colorImage')
310 remove_from_args('svg')
Robert Phillips36150be2018-03-15 13:40:07 -0400311 else:
Robert Phillipsb7fafba2018-03-27 20:49:23 +0000312 # Currently, only the DDL bots render skps
Eric Boren8c172ba2018-07-19 13:27:49 -0400313 remove_from_args('skp')
314
315 if 'Lottie' in api.vars.builder_cfg.get('extra_config', ''):
316 # Only run the lotties on Lottie bots.
317 remove_from_args('tests')
318 remove_from_args('gm')
319 remove_from_args('image')
320 remove_from_args('colorImage')
321 remove_from_args('svg')
322 remove_from_args('skp')
323 else:
324 remove_from_args('lottie')
Robert Phillips36150be2018-03-15 13:40:07 -0400325
Eric Boren4c7754c2017-04-10 08:19:10 -0400326 # TODO: ???
327 blacklist('f16 _ _ dstreadshuffle')
328 blacklist('glsrgb image _ _')
329 blacklist('glessrgb image _ _')
330
Eric Boren4c7754c2017-04-10 08:19:10 -0400331 # Not any point to running these.
Mike Kleinb7ea3da2017-10-31 17:42:08 +0000332 blacklist('gbr-8888 image _ _')
333 blacklist('gbr-8888 colorImage _ _')
Eric Boren4c7754c2017-04-10 08:19:10 -0400334
Mike Klein515bda62018-01-09 11:21:58 -0500335 # --src image --config g8 means "decode into Gray8", which isn't supported.
336 blacklist('g8 image _ _')
337 blacklist('g8 colorImage _ _')
338
Eric Boren4c7754c2017-04-10 08:19:10 -0400339 if 'Valgrind' in bot:
340 # These take 18+ hours to run.
341 blacklist('pdf gm _ fontmgr_iter')
342 blacklist('pdf _ _ PANO_20121023_214540.jpg')
343 blacklist('pdf skp _ worldjournal')
344 blacklist('pdf skp _ desk_baidu.skp')
345 blacklist('pdf skp _ desk_wikipedia.skp')
346 blacklist('_ svg _ _')
347
348 if 'iOS' in bot:
349 blacklist(gl_prefix + ' skp _ _')
350
351 if 'Mac' in bot or 'iOS' in bot:
352 # CG fails on questionable bmps
353 blacklist('_ image gen_platf rgba32abf.bmp')
354 blacklist('_ image gen_platf rgb24prof.bmp')
355 blacklist('_ image gen_platf rgb24lprof.bmp')
356 blacklist('_ image gen_platf 8bpp-pixeldata-cropped.bmp')
357 blacklist('_ image gen_platf 4bpp-pixeldata-cropped.bmp')
358 blacklist('_ image gen_platf 32bpp-pixeldata-cropped.bmp')
359 blacklist('_ image gen_platf 24bpp-pixeldata-cropped.bmp')
360
361 # CG has unpredictable behavior on this questionable gif
362 # It's probably using uninitialized memory
363 blacklist('_ image gen_platf frame_larger_than_image.gif')
364
365 # CG has unpredictable behavior on incomplete pngs
366 # skbug.com/5774
367 blacklist('_ image gen_platf inc0.png')
368 blacklist('_ image gen_platf inc1.png')
369 blacklist('_ image gen_platf inc2.png')
370 blacklist('_ image gen_platf inc3.png')
371 blacklist('_ image gen_platf inc4.png')
372 blacklist('_ image gen_platf inc5.png')
373 blacklist('_ image gen_platf inc6.png')
374 blacklist('_ image gen_platf inc7.png')
375 blacklist('_ image gen_platf inc8.png')
376 blacklist('_ image gen_platf inc9.png')
377 blacklist('_ image gen_platf inc10.png')
378 blacklist('_ image gen_platf inc11.png')
379 blacklist('_ image gen_platf inc12.png')
380 blacklist('_ image gen_platf inc13.png')
381 blacklist('_ image gen_platf inc14.png')
382
Ben Wagner3f67914c2017-11-27 13:02:25 -0500383 # These images fail after Mac 10.13.1 upgrade.
384 blacklist('_ image gen_platf incInterlaced.gif')
385 blacklist('_ image gen_platf inc1.gif')
386 blacklist('_ image gen_platf inc0.gif')
387 blacklist('_ image gen_platf butterfly.gif')
388
Matt Sarett6c50a2e2017-05-01 09:13:05 -0400389 # WIC fails on questionable bmps
Eric Boren4c7754c2017-04-10 08:19:10 -0400390 if 'Win' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400391 blacklist('_ image gen_platf pal8os2v2.bmp')
392 blacklist('_ image gen_platf pal8os2v2-16.bmp')
393 blacklist('_ image gen_platf rgba32abf.bmp')
394 blacklist('_ image gen_platf rgb24prof.bmp')
395 blacklist('_ image gen_platf rgb24lprof.bmp')
396 blacklist('_ image gen_platf 8bpp-pixeldata-cropped.bmp')
397 blacklist('_ image gen_platf 4bpp-pixeldata-cropped.bmp')
398 blacklist('_ image gen_platf 32bpp-pixeldata-cropped.bmp')
399 blacklist('_ image gen_platf 24bpp-pixeldata-cropped.bmp')
Eric Boren4c7754c2017-04-10 08:19:10 -0400400 if 'x86_64' in bot and 'CPU' in bot:
401 # This GM triggers a SkSmallAllocator assert.
402 blacklist('_ gm _ composeshader_bitmap')
403
Matt Sarett6c50a2e2017-05-01 09:13:05 -0400404 if 'Win' in bot or 'Mac' in bot:
Leon Scroggins III3a3cf432017-08-18 13:08:16 -0400405 # WIC and CG fail on arithmetic jpegs
Matt Sarett6c50a2e2017-05-01 09:13:05 -0400406 blacklist('_ image gen_platf testimgari.jpg')
Leon Scroggins III3a3cf432017-08-18 13:08:16 -0400407 # More questionable bmps that fail on Mac, too. skbug.com/6984
408 blacklist('_ image gen_platf rle8-height-negative.bmp')
409 blacklist('_ image gen_platf rle4-height-negative.bmp')
Matt Sarett6c50a2e2017-05-01 09:13:05 -0400410
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400411 if 'Android' in bot or 'iOS' in bot or 'Chromecast' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400412 # This test crashes the N9 (perhaps because of large malloc/frees). It also
413 # is fairly slow and not platform-specific. So we just disable it on all of
414 # Android and iOS. skia:5438
415 blacklist('_ test _ GrShape')
416
Eric Borenfb20ac42018-04-24 14:48:19 -0400417 if api.vars.internal_hardware_label == '2':
Kevin Lubickbd27d1d2017-10-13 08:01:49 -0400418 # skia:7160
419 blacklist('_ test _ SRGBReadWritePixels')
420 blacklist('_ test _ SRGBMipMap')
421
Kevin Lubick451b7432017-09-15 14:44:12 -0400422
Eric Boren4c7754c2017-04-10 08:19:10 -0400423 # skia:4095
Mike Reedfb499092017-06-26 13:53:32 +0000424 bad_serialize_gms = ['bleed_image',
Eric Boren4c7754c2017-04-10 08:19:10 -0400425 'c_gms',
426 'colortype',
427 'colortype_xfermodes',
428 'drawfilter',
429 'fontmgr_bounds_0.75_0',
430 'fontmgr_bounds_1_-0.25',
431 'fontmgr_bounds',
432 'fontmgr_match',
433 'fontmgr_iter',
434 'imagemasksubset']
435
436 # skia:5589
437 bad_serialize_gms.extend(['bitmapfilters',
438 'bitmapshaders',
439 'bleed',
440 'bleed_alpha_bmp',
441 'bleed_alpha_bmp_shader',
442 'convex_poly_clip',
443 'extractalpha',
444 'filterbitmap_checkerboard_32_32_g8',
445 'filterbitmap_image_mandrill_64',
446 'shadows',
447 'simpleaaclip_aaclip'])
448 # skia:5595
449 bad_serialize_gms.extend(['composeshader_bitmap',
450 'scaled_tilemodes_npot',
451 'scaled_tilemodes'])
452
453 # skia:5778
454 bad_serialize_gms.append('typefacerendering_pfaMac')
455 # skia:5942
456 bad_serialize_gms.append('parsedpaths')
457
458 # these use a custom image generator which doesn't serialize
459 bad_serialize_gms.append('ImageGeneratorExternal_rect')
460 bad_serialize_gms.append('ImageGeneratorExternal_shader')
461
462 # skia:6189
463 bad_serialize_gms.append('shadow_utils')
464
Brian Salomonbe3c1d22018-05-21 12:54:39 -0400465 # skia:7938
466 bad_serialize_gms.append('persp_images')
467
Matt Sarett9f3dcb32017-05-04 08:53:32 -0400468 # Not expected to round trip encoding/decoding.
Mike Klein0b78a692017-10-31 17:31:17 -0400469 bad_serialize_gms.append('all_bitmap_configs')
Matt Sarett9f3dcb32017-05-04 08:53:32 -0400470 bad_serialize_gms.append('makecolorspace')
471
Brian Salomon7072e222017-11-29 15:12:45 -0500472 # This GM forces a path to be convex. That property doesn't survive
473 # serialization.
474 bad_serialize_gms.append('analytic_antialias_convex')
475
Eric Boren4c7754c2017-04-10 08:19:10 -0400476 for test in bad_serialize_gms:
477 blacklist(['serialize-8888', 'gm', '_', test])
478
479 if 'Mac' not in bot:
480 for test in ['bleed_alpha_image', 'bleed_alpha_image_shader']:
481 blacklist(['serialize-8888', 'gm', '_', test])
482 # It looks like we skip these only for out-of-memory concerns.
Kevin Lubick608c35a2018-01-16 16:15:57 -0500483 if 'Win' in bot or 'Android' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400484 for test in ['verylargebitmap', 'verylarge_picture_image']:
485 blacklist(['serialize-8888', 'gm', '_', test])
Ben Wagner2e4e73f2017-09-08 15:21:44 -0400486 if 'Mac' in bot and 'CPU' in bot:
Ben Wagner38db79f2017-08-23 15:05:50 -0400487 # skia:6992
Ben Wagner6f98bc62017-09-05 16:02:28 -0400488 blacklist(['pic-8888', 'gm', '_', 'encode-platform'])
Ben Wagner38db79f2017-08-23 15:05:50 -0400489 blacklist(['serialize-8888', 'gm', '_', 'encode-platform'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400490
491 # skia:4769
492 for test in ['drawfilter']:
Eric Boren4c7754c2017-04-10 08:19:10 -0400493 blacklist([ 'pic-8888', 'gm', '_', test])
Eric Boren4c7754c2017-04-10 08:19:10 -0400494 blacklist([ 'lite-8888', 'gm', '_', test])
495 # skia:4703
496 for test in ['image-cacherator-from-picture',
497 'image-cacherator-from-raster',
498 'image-cacherator-from-ctable']:
Eric Boren4c7754c2017-04-10 08:19:10 -0400499 blacklist([ 'pic-8888', 'gm', '_', test])
Eric Boren4c7754c2017-04-10 08:19:10 -0400500 blacklist(['serialize-8888', 'gm', '_', test])
501
502 # GM that requires raster-backed canvas
Mike Klein8f5a7a62018-09-11 12:11:46 -0400503 for test in ['gamut', 'complexclip4_bw', 'complexclip4_aa', 'p3']:
Eric Boren4c7754c2017-04-10 08:19:10 -0400504 blacklist([ 'pic-8888', 'gm', '_', test])
505 blacklist([ 'lite-8888', 'gm', '_', test])
Eric Boren4c7754c2017-04-10 08:19:10 -0400506 blacklist(['serialize-8888', 'gm', '_', test])
507
508 # GM that not support tiles_rt
509 for test in ['complexclip4_bw', 'complexclip4_aa']:
510 blacklist([ 'tiles_rt-8888', 'gm', '_', test])
511
512 # Extensions for RAW images
Ben Wagner6e0a6b32017-09-26 14:11:15 -0400513 r = ['arw', 'cr2', 'dng', 'nef', 'nrw', 'orf', 'raf', 'rw2', 'pef', 'srw',
514 'ARW', 'CR2', 'DNG', 'NEF', 'NRW', 'ORF', 'RAF', 'RW2', 'PEF', 'SRW']
Eric Boren4c7754c2017-04-10 08:19:10 -0400515
516 # skbug.com/4888
517 # Blacklist RAW images (and a few large PNGs) on GPU bots
518 # until we can resolve failures.
Matt Sarett929bfeb2017-05-22 10:34:41 -0400519 if 'GPU' in bot:
520 blacklist('_ image _ interlaced1.png')
521 blacklist('_ image _ interlaced2.png')
522 blacklist('_ image _ interlaced3.png')
523 for raw_ext in r:
524 blacklist('_ image _ .%s' % raw_ext)
525
526 # Blacklist memory intensive tests on 32-bit bots.
Ben Wagnerfd66b5f2017-11-15 15:16:27 -0500527 if ('Win8' in bot or 'Win2016' in bot) and 'x86-' in bot:
Matt Sarett929bfeb2017-05-22 10:34:41 -0400528 blacklist('_ image f16 _')
Matt Sarett112565e2017-05-22 13:45:15 -0400529 blacklist('_ image _ abnormal.wbmp')
Eric Boren4c7754c2017-04-10 08:19:10 -0400530 blacklist('_ image _ interlaced1.png')
531 blacklist('_ image _ interlaced2.png')
532 blacklist('_ image _ interlaced3.png')
533 for raw_ext in r:
534 blacklist('_ image _ .%s' % raw_ext)
535
Ben Wagner3f330692017-12-07 15:14:54 -0500536 if 'Nexus5' in bot and 'GPU' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400537 # skia:5876
538 blacklist(['_', 'gm', '_', 'encode-platform'])
539
540 if 'AndroidOne-GPU' in bot: # skia:4697, skia:4704, skia:4694, skia:4705
541 blacklist(['_', 'gm', '_', 'bigblurs'])
542 blacklist(['_', 'gm', '_', 'bleed'])
543 blacklist(['_', 'gm', '_', 'bleed_alpha_bmp'])
544 blacklist(['_', 'gm', '_', 'bleed_alpha_bmp_shader'])
545 blacklist(['_', 'gm', '_', 'bleed_alpha_image'])
546 blacklist(['_', 'gm', '_', 'bleed_alpha_image_shader'])
547 blacklist(['_', 'gm', '_', 'bleed_image'])
548 blacklist(['_', 'gm', '_', 'dropshadowimagefilter'])
549 blacklist(['_', 'gm', '_', 'filterfastbounds'])
550 blacklist([gl_prefix, 'gm', '_', 'imageblurtiled'])
551 blacklist(['_', 'gm', '_', 'imagefiltersclipped'])
552 blacklist(['_', 'gm', '_', 'imagefiltersscaled'])
553 blacklist(['_', 'gm', '_', 'imageresizetiled'])
554 blacklist(['_', 'gm', '_', 'matrixconvolution'])
555 blacklist(['_', 'gm', '_', 'strokedlines'])
556 if sample_count is not '':
557 gl_msaa_config = gl_prefix + 'msaa' + sample_count
558 blacklist([gl_msaa_config, 'gm', '_', 'imageblurtiled'])
559 blacklist([gl_msaa_config, 'gm', '_', 'imagefiltersbase'])
560
561 match = []
562 if 'Valgrind' in bot: # skia:3021
563 match.append('~Threaded')
564
Ben Wagner6c126422017-06-19 12:45:54 -0400565 if 'Valgrind' in bot and 'PreAbandonGpuContext' in bot:
566 # skia:6575
567 match.append('~multipicturedraw_')
568
Ben Wagnerbb3e7ff2017-04-28 15:28:32 -0400569 if 'CommandBuffer' in bot:
570 # https://crbug.com/697030
571 match.append('~HalfFloatAlphaTextureTest')
572
Cary Clarka7c569d2018-02-14 11:31:25 -0500573 if 'AndroidOne' in bot:
574 match.append('~WritePixels') # skia:4711
575 match.append('~PremulAlphaRoundTrip_Gpu') # skia:7501
Brian Salomonf42a7762018-06-21 11:14:51 -0400576 match.append('~ReimportImageTextureWithMipLevels') # skia:8090
Eric Boren4c7754c2017-04-10 08:19:10 -0400577
Kevin Lubick608c35a2018-01-16 16:15:57 -0500578 if 'Chromecast' in bot:
Kevin Lubick6ea9fdf2018-01-17 08:54:21 -0500579 if 'GPU' in bot:
580 # skia:6687
Kevin Lubick6ea9fdf2018-01-17 08:54:21 -0500581 match.append('~animated-image-blurs')
Ben Wagnerd50a1932018-03-01 09:45:18 -0500582 match.append('~blur_0.01')
583 match.append('~blur_image_filter')
Eric Boren1e00d192018-04-13 15:59:02 -0400584 match.append('~check_small_sigma_offset')
Ben Wagnerd50a1932018-03-01 09:45:18 -0500585 match.append('~imageblur2')
586 match.append('~lighting')
587 match.append('~longpathdash')
588 match.append('~matrixconvolution')
Ben Wagnerdabef9d2018-02-27 16:36:12 -0500589 match.append('~textblobmixedsizes_df')
Ben Wagner98c3c612018-02-26 14:53:30 -0500590 match.append('~textblobrandomfont')
Kevin Lubick608c35a2018-01-16 16:15:57 -0500591 # Blacklisted to avoid OOM (we see DM just end with "broken pipe")
Kevin Lubick608c35a2018-01-16 16:15:57 -0500592 match.append('~bigbitmaprect_')
Kevin Lubick608c35a2018-01-16 16:15:57 -0500593 match.append('~DrawBitmapRect')
Kevin Lubick8684c712018-02-12 15:55:57 -0500594 match.append('~drawbitmaprect')
Ben Wagnerd50a1932018-03-01 09:45:18 -0500595 match.append('~GM_animated-image-blurs')
596 match.append('~ImageFilterBlurLargeImage')
597 match.append('~savelayer_clipmask')
598 match.append('~TextBlobCache')
599 match.append('~verylarge')
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400600
Eric Boren4c7754c2017-04-10 08:19:10 -0400601 if 'GalaxyS6' in bot:
602 match.append('~SpecialImage') # skia:6338
Brian Osmaneee3c092017-06-15 13:25:10 -0400603 match.append('~skbug6653') # skia:6653
Eric Boren4c7754c2017-04-10 08:19:10 -0400604
Eric Boren4c7754c2017-04-10 08:19:10 -0400605 if 'MSAN' in bot:
606 match.extend(['~Once', '~Shared']) # Not sure what's up with these tests.
607
608 if 'TSAN' in bot:
609 match.extend(['~ReadWriteAlpha']) # Flaky on TSAN-covered on nvidia bots.
610 match.extend(['~RGBA4444TextureTest', # Flakier than they are important.
611 '~RGB565TextureTest'])
612
Ben Wagnerdba0bc82017-12-11 13:27:27 -0500613 # By default, we test with GPU threading enabled, unless specifically
614 # disabled.
615 if 'NoGPUThreads' in bot:
616 args.extend(['--gpuThreads', '0'])
617
Greg Daniela86385d2017-06-05 11:34:29 -0400618 if 'Vulkan' in bot and 'Adreno530' in bot:
619 # skia:5777
620 match.extend(['~CopySurface'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400621
Brian Salomon3d86a192018-02-27 16:46:11 -0500622 if 'Vulkan' in bot and 'Adreno' in bot:
623 # skia:7663
624 match.extend(['~WritePixelsNonTextureMSAA_Gpu'])
625 match.extend(['~WritePixelsMSAA_Gpu'])
626
Ben Wagner63457572017-12-21 10:49:58 -0500627 if 'Vulkan' in bot and api.vars.is_linux and 'IntelIris640' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400628 match.extend(['~VkHeapTests']) # skia:6245
629
Kevin Lubickec4e7352018-04-25 07:46:55 -0400630 if api.vars.is_linux and 'IntelIris640' in bot:
631 match.extend(['~GLPrograms']) # skia:7849
632
Ben Wagnerb8427032017-11-18 19:04:25 -0500633 if 'Vulkan' in bot and api.vars.is_linux and 'IntelHD405' in bot:
Ben Wagner32eb5ba2017-11-20 13:46:20 -0500634 # skia:7322
Ben Wagnerb8427032017-11-18 19:04:25 -0500635 blacklist(['vk', 'gm', '_', 'skbug_257'])
Chris Dalton414be9b2018-04-26 14:37:01 -0600636 blacklist(['vk', 'gm', '_', 'filltypespersp'])
Ben Wagnerb8427032017-11-18 19:04:25 -0500637 match.append('~^ClearOp$')
Greg Danielec34a712017-12-06 12:06:26 -0500638 match.append('~^CopySurface$')
639 match.append('~^ImageNewShader_GPU$')
Ben Wagnerb8427032017-11-18 19:04:25 -0500640 match.append('~^InitialTextureClear$')
Greg Danielec34a712017-12-06 12:06:26 -0500641 match.append('~^PinnedImageTest$')
Ben Wagnerb8427032017-11-18 19:04:25 -0500642 match.append('~^ReadPixels_Gpu$')
643 match.append('~^ReadPixels_Texture$')
Greg Danielec34a712017-12-06 12:06:26 -0500644 match.append('~^SRGBReadWritePixels$')
Ben Wagnerb8427032017-11-18 19:04:25 -0500645 match.append('~^VkUploadPixelsTests$')
646 match.append('~^WritePixelsNonTexture_Gpu$')
Brian Salomon3d86a192018-02-27 16:46:11 -0500647 match.append('~^WritePixelsNonTextureMSAA_Gpu$')
Ben Wagnerb8427032017-11-18 19:04:25 -0500648 match.append('~^WritePixels_Gpu$')
Brian Salomon3d86a192018-02-27 16:46:11 -0500649 match.append('~^WritePixelsMSAA_Gpu$')
Ben Wagnerb8427032017-11-18 19:04:25 -0500650
Ben Wagnerf1debdf2017-06-13 13:37:05 -0400651 if 'Vulkan' in bot and 'IntelIris540' in bot and 'Win' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400652 # skia:6398
653 blacklist(['vk', 'gm', '_', 'aarectmodes'])
654 blacklist(['vk', 'gm', '_', 'aaxfermodes'])
Greg Daniel0eef6742017-11-20 16:05:04 -0500655 blacklist(['vk', 'gm', '_', 'dont_clip_to_layer'])
Mike Klein78932122017-11-15 13:21:40 -0500656 blacklist(['vk', 'gm', '_', 'dftext'])
Ben Wagner0473a312018-08-29 14:15:15 -0400657 blacklist(['vk', 'gm', '_', 'dftext_blob_persp'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400658 blacklist(['vk', 'gm', '_', 'drawregionmodes'])
659 blacklist(['vk', 'gm', '_', 'filterfastbounds'])
Mike Klein0030c5e2017-11-13 13:27:48 -0500660 blacklist(['vk', 'gm', '_', 'fontmgr_iter'])
Mike Klein0030c5e2017-11-13 13:27:48 -0500661 blacklist(['vk', 'gm', '_', 'fontmgr_match'])
662 blacklist(['vk', 'gm', '_', 'fontscaler'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400663 blacklist(['vk', 'gm', '_', 'fontscalerdistortable'])
664 blacklist(['vk', 'gm', '_', 'gammagradienttext'])
Mike Klein0030c5e2017-11-13 13:27:48 -0500665 blacklist(['vk', 'gm', '_', 'gammatext'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400666 blacklist(['vk', 'gm', '_', 'gradtext'])
667 blacklist(['vk', 'gm', '_', 'hairmodes'])
668 blacklist(['vk', 'gm', '_', 'imagefilters_xfermodes'])
669 blacklist(['vk', 'gm', '_', 'imagefiltersclipped'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400670 blacklist(['vk', 'gm', '_', 'imagefiltersscaled'])
671 blacklist(['vk', 'gm', '_', 'imagefiltersstroked'])
672 blacklist(['vk', 'gm', '_', 'imagefilterstransformed'])
673 blacklist(['vk', 'gm', '_', 'imageresizetiled'])
674 blacklist(['vk', 'gm', '_', 'lcdblendmodes'])
675 blacklist(['vk', 'gm', '_', 'lcdoverlap'])
Mike Klein0030c5e2017-11-13 13:27:48 -0500676 blacklist(['vk', 'gm', '_', 'lcdtext'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400677 blacklist(['vk', 'gm', '_', 'lcdtextsize'])
678 blacklist(['vk', 'gm', '_', 'matriximagefilter'])
Mike Klein78932122017-11-15 13:21:40 -0500679 blacklist(['vk', 'gm', '_', 'mixedtextblobs'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400680 blacklist(['vk', 'gm', '_', 'resizeimagefilter'])
681 blacklist(['vk', 'gm', '_', 'rotate_imagefilter'])
682 blacklist(['vk', 'gm', '_', 'savelayer_lcdtext'])
Greg Daniel0c269d02018-02-08 15:26:49 -0500683 blacklist(['vk', 'gm', '_', 'shadermaskfilter_image'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400684 blacklist(['vk', 'gm', '_', 'srcmode'])
685 blacklist(['vk', 'gm', '_', 'surfaceprops'])
686 blacklist(['vk', 'gm', '_', 'textblobgeometrychange'])
687 blacklist(['vk', 'gm', '_', 'textbloblooper'])
688 blacklist(['vk', 'gm', '_', 'textblobmixedsizes'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400689 blacklist(['vk', 'gm', '_', 'textblobrandomfont'])
690 blacklist(['vk', 'gm', '_', 'textfilter_color'])
691 blacklist(['vk', 'gm', '_', 'textfilter_image'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400692 blacklist(['vk', 'gm', '_', 'varied_text_clipped_lcd'])
693 blacklist(['vk', 'gm', '_', 'varied_text_ignorable_clip_lcd'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400694
Greg Daniele5b7e6d2018-06-12 10:52:59 -0400695 if 'Vulkan' in bot and 'GTX660' in bot and 'Win' in bot:
696 # skbug.com/8047
697 match.append('~FloatingPointTextureTest$')
698
Chris Dalton2b937f52018-05-17 10:17:10 -0600699 if 'MoltenVK' in bot:
700 # skbug.com/7959
701 blacklist(['_', 'gm', '_', 'vertices_scaled_shader'])
702 blacklist(['_', 'gm', '_', 'vertices'])
703 match.append('~^InitialTextureClear$')
Chris Dalton2b937f52018-05-17 10:17:10 -0600704 match.append('~^RGB565TextureTest$')
705 match.append('~^RGBA4444TextureTest$')
706 match.append('~^WritePixelsNonTextureMSAA_Gpu$')
Chris Dalton2b937f52018-05-17 10:17:10 -0600707
Robert Phillipsa96a1012018-04-23 10:46:09 -0400708 if 'ANGLE' in bot:
709 # skia:7835
710 match.append('~BlurMaskBiggerThanDest')
711
Ben Wagner0473a312018-08-29 14:15:15 -0400712 if 'IntelIris6100' in bot and 'ANGLE' in bot and 'Release' in bot:
Ben Wagner1c4668d2018-07-23 14:25:02 -0400713 # skia:7376
714 match.append('~^ProcessorOptimizationValidationTest$')
715
Ben Wagnerc6b2e6b2017-10-07 18:57:25 -0400716 if ('IntelIris6100' in bot or 'IntelHD4400' in bot) and 'ANGLE' in bot:
717 # skia:6857
718 blacklist(['angle_d3d9_es2', 'gm', '_', 'lighting'])
719
Kevin Lubickc14e5a72017-08-15 13:22:19 -0400720 if 'PowerVRGX6250' in bot:
721 match.append('~gradients_view_perspective_nodither') #skia:6972
722
Mike Klein3a3fbf12018-01-30 08:08:49 -0500723 if '-arm-' in bot and 'ASAN' in bot:
724 # TODO: can we run with env allocator_may_return_null=1 instead?
725 match.append('~BadImage')
726
Ben Wagner1d8726f2018-02-02 14:47:31 -0500727 if 'Mac' in bot and 'IntelHD6000' in bot:
Ben Wagnerdf430052018-02-08 16:57:04 -0500728 # skia:7574
Ben Wagner1d8726f2018-02-02 14:47:31 -0500729 match.append('~^ProcessorCloneTest$')
730 match.append('~^GrMeshTest$')
731
Ben Wagnerdf430052018-02-08 16:57:04 -0500732 if 'Mac' in bot and 'IntelHD615' in bot:
733 # skia:7603
734 match.append('~^GrMeshTest$')
735
Timothy Liangb1f02f32018-08-10 13:30:26 -0400736 if 'Metal' in bot:
737 # skia:8243
738 match.append('~^ClearOp$')
739 match.append('~^DDLSurfaceCharacterizationTest$')
740 match.append('~^DDLOperatorEqTest$')
741 match.append('~^DeferredProxyTest$')
742 match.append('~^GPUMemorySize$')
743 match.append('~^GrContext_colorTypeSupportedAsImage$')
744 match.append('~^GrContext_colorTypeSupportedAsSurface$')
745 match.append('~^GrContext_maxSurfaceSamplesForColorType$')
746 match.append('~^GrContextFactory_sharedContexts$')
747 match.append('~^GrPipelineDynamicStateTest$')
Timothy Liangb1f02f32018-08-10 13:30:26 -0400748 match.append('~^InitialTextureClear$')
749 match.append('~^PromiseImageTest$')
750 match.append('~^ResourceAllocatorTest$')
751 match.append('~^RGB565TextureTest$')
752 match.append('~^RGBA4444TextureTest$')
753 match.append('~^TransferPixelsTest$')
Timothy Liangb1f02f32018-08-10 13:30:26 -0400754 match.append('~^SurfaceCreationWithColorSpace_Gpu$')
755 match.append('~^SurfaceSemaphores$')
756 match.append('~^VertexAttributeCount$')
757 match.append('~^WrappedProxyTest$')
758
Eric Boren4c7754c2017-04-10 08:19:10 -0400759 if blacklisted:
760 args.append('--blacklist')
761 args.extend(blacklisted)
762
763 if match:
764 args.append('--match')
765 args.extend(match)
766
767 # These bots run out of memory running RAW codec tests. Do not run them in
768 # parallel
Ben Wagner2040ed22017-11-22 11:22:22 -0500769 if 'NexusPlayer' in bot or 'Nexus5' in bot or 'Nexus9' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400770 args.append('--noRAW_threading')
771
Yuqian Li84be3ad2017-10-17 10:11:21 -0400772 if 'FSAA' in bot:
773 args.extend(['--analyticAA', 'false', '--deltaAA', 'false'])
774 if 'FAAA' in bot:
775 args.extend(['--deltaAA', 'false', '--forceAnalyticAA'])
776 if 'FDAA' in bot:
777 args.extend(['--deltaAA', '--forceDeltaAA'])
778
Mike Kleinc207da82017-11-10 14:24:34 -0500779 if 'NativeFonts' not in bot:
780 args.append('--nonativeFonts')
781
Mike Klein0c5fdcb2017-11-13 12:40:46 -0500782 if 'GDI' in bot:
783 args.append('--gdi')
784
Stephan Altmueller74dac542017-09-11 15:32:21 -0400785 # Let's make all bots produce verbose output by default.
786 args.append('--verbose')
Mike Kleinc9089062017-06-26 09:09:32 -0400787
Eric Boren4c7754c2017-04-10 08:19:10 -0400788 return args
789
790
791def key_params(api):
792 """Build a unique key from the builder name (as a list).
793
794 E.g. arch x86 gpu GeForce320M mode MacMini4.1 os Mac10.6
795 """
796 # Don't bother to include role, which is always Test.
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400797 blacklist = ['role', 'test_filter']
Eric Boren4c7754c2017-04-10 08:19:10 -0400798
799 flat = []
800 for k in sorted(api.vars.builder_cfg.keys()):
801 if k not in blacklist:
802 flat.append(k)
803 flat.append(api.vars.builder_cfg[k])
Kevin Lubick3fee9232018-08-24 13:30:34 -0400804
Eric Boren4c7754c2017-04-10 08:19:10 -0400805 return flat
806
807
808def test_steps(api):
809 """Run the DM test."""
Eric Boren72f66682018-05-18 07:36:55 -0400810 b = api.properties['buildername']
Eric Boren4c7754c2017-04-10 08:19:10 -0400811 use_hash_file = False
Eric Boren72f66682018-05-18 07:36:55 -0400812 if upload_dm_results(b):
813 host_dm_dir = str(api.flavor.host_dirs.dm_dir)
814 api.flavor.create_clean_host_dir(api.path['start_dir'].join('test'))
Eric Boren4c7754c2017-04-10 08:19:10 -0400815 device_dm_dir = str(api.flavor.device_dirs.dm_dir)
816 if host_dm_dir != device_dm_dir:
817 api.flavor.create_clean_device_dir(device_dm_dir)
818
819 # Obtain the list of already-generated hashes.
820 hash_filename = 'uninteresting_hashes.txt'
821
Eric Boren4c7754c2017-04-10 08:19:10 -0400822 host_hashes_file = api.vars.tmp_dir.join(hash_filename)
823 hashes_file = api.flavor.device_path_join(
824 api.flavor.device_dirs.tmp_dir, hash_filename)
825 api.run(
826 api.python.inline,
827 'get uninteresting hashes',
828 program="""
829 import contextlib
830 import math
831 import socket
832 import sys
833 import time
834 import urllib2
835
Stephan Altmüller64cc5762018-08-02 08:51:38 +0200836 HASHES_URL = sys.argv[1]
Eric Boren4c7754c2017-04-10 08:19:10 -0400837 RETRIES = 5
838 TIMEOUT = 60
839 WAIT_BASE = 15
840
841 socket.setdefaulttimeout(TIMEOUT)
842 for retry in range(RETRIES):
843 try:
844 with contextlib.closing(
845 urllib2.urlopen(HASHES_URL, timeout=TIMEOUT)) as w:
846 hashes = w.read()
Stephan Altmüller64cc5762018-08-02 08:51:38 +0200847 with open(sys.argv[2], 'w') as f:
Eric Boren4c7754c2017-04-10 08:19:10 -0400848 f.write(hashes)
849 break
850 except Exception as e:
851 print 'Failed to get uninteresting hashes from %s:' % HASHES_URL
852 print e
853 if retry == RETRIES:
854 raise
855 waittime = WAIT_BASE * math.pow(2, retry)
856 print 'Retry in %d seconds.' % waittime
857 time.sleep(waittime)
858 """,
Stephan Altmüller64cc5762018-08-02 08:51:38 +0200859 args=[api.properties['gold_hashes_url'], host_hashes_file],
Eric Boren4c7754c2017-04-10 08:19:10 -0400860 abort_on_failure=False,
861 fail_build_on_failure=False,
862 infra_step=True)
863
864 if api.path.exists(host_hashes_file):
865 api.flavor.copy_file_to_device(host_hashes_file, hashes_file)
866 use_hash_file = True
867
868 # Run DM.
869 properties = [
Eric Boren72f66682018-05-18 07:36:55 -0400870 'gitHash', api.properties['revision'],
Eric Boren9a9e3872017-11-29 12:33:22 -0500871 'builder', api.vars.builder_name,
872 'buildbucket_build_id', api.properties.get('buildbucket_build_id', ''),
Eric Boren4c7754c2017-04-10 08:19:10 -0400873 ]
874 if api.vars.is_trybot:
875 properties.extend([
876 'issue', api.vars.issue,
877 'patchset', api.vars.patchset,
878 'patch_storage', api.vars.patch_storage,
879 ])
Eric Borenf9aa9e52017-04-10 09:56:10 -0400880 properties.extend(['swarming_bot_id', api.vars.swarming_bot_id])
881 properties.extend(['swarming_task_id', api.vars.swarming_task_id])
Eric Boren4c7754c2017-04-10 08:19:10 -0400882
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400883 if 'Chromecast' in api.vars.builder_cfg.get('os', ''):
884 # Due to limited disk space, we only deal with skps and one image.
885 args = [
886 'dm',
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400887 '--resourcePath', api.flavor.device_dirs.resource_dir,
888 '--skps', api.flavor.device_dirs.skp_dir,
889 '--images', api.flavor.device_path_join(
Kevin Lubickc2f3e8d2018-01-24 15:48:26 -0500890 api.flavor.device_dirs.resource_dir, 'images', 'color_wheel.jpg'),
Kevin Lubick608c35a2018-01-16 16:15:57 -0500891 '--nameByHash',
892 '--properties'
893 ] + properties
Kevin Lubick95379eb2018-01-17 11:20:19 -0500894 else:
895 args = [
896 'dm',
897 '--resourcePath', api.flavor.device_dirs.resource_dir,
898 '--skps', api.flavor.device_dirs.skp_dir,
899 '--images', api.flavor.device_path_join(
900 api.flavor.device_dirs.images_dir, 'dm'),
901 '--colorImages', api.flavor.device_path_join(
902 api.flavor.device_dirs.images_dir, 'colorspace'),
903 '--nameByHash',
904 '--properties'
905 ] + properties
906
907 args.extend(['--svgs', api.flavor.device_dirs.svg_dir])
Eric Boren8c172ba2018-07-19 13:27:49 -0400908 if 'Lottie' in api.vars.builder_cfg.get('extra_config', ''):
909 args.extend(['--lotties', api.flavor.device_dirs.lotties_dir])
Kevin Lubick95379eb2018-01-17 11:20:19 -0500910
911 args.append('--key')
Kevin Lubick3fee9232018-08-24 13:30:34 -0400912 keys = key_params(api)
913
914 if 'Lottie' in api.vars.builder_cfg.get('extra_config', ''):
915 keys.extend(['renderer', 'skottie'])
916
917 args.extend(keys)
Kevin Lubick608c35a2018-01-16 16:15:57 -0500918
919 if use_hash_file:
920 args.extend(['--uninterestingHashesFile', hashes_file])
Eric Boren72f66682018-05-18 07:36:55 -0400921 if upload_dm_results(b):
Kevin Lubick608c35a2018-01-16 16:15:57 -0500922 args.extend(['--writePath', api.flavor.device_dirs.dm_dir])
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400923
Eric Boren89cd3572017-06-28 13:50:22 -0400924 args.extend(dm_flags(api, api.vars.builder_name))
Eric Boren4c7754c2017-04-10 08:19:10 -0400925
Eric Boren4c7754c2017-04-10 08:19:10 -0400926 # See skia:2789.
Ben Wagner37491d22017-12-13 13:00:47 -0500927 if 'AbandonGpuContext' in api.vars.extra_tokens:
Eric Boren4c7754c2017-04-10 08:19:10 -0400928 args.append('--abandonGpuContext')
Ben Wagner37491d22017-12-13 13:00:47 -0500929 if 'PreAbandonGpuContext' in api.vars.extra_tokens:
Eric Boren4c7754c2017-04-10 08:19:10 -0400930 args.append('--preAbandonGpuContext')
Ben Wagner37491d22017-12-13 13:00:47 -0500931 if 'ReleaseAndAbandonGpuContext' in api.vars.extra_tokens:
Eric Boren6ec17e32017-04-26 14:25:29 -0400932 args.append('--releaseAndAbandonGpuContext')
Eric Boren4c7754c2017-04-10 08:19:10 -0400933
Ben Wagner5655ba42017-10-02 10:48:32 -0400934 api.run(api.flavor.step, 'dm', cmd=args, abort_on_failure=False)
Eric Boren4c7754c2017-04-10 08:19:10 -0400935
Eric Boren72f66682018-05-18 07:36:55 -0400936 if upload_dm_results(b):
Eric Boren4c7754c2017-04-10 08:19:10 -0400937 # Copy images and JSON to host machine if needed.
938 api.flavor.copy_directory_contents_to_host(
Eric Boren72f66682018-05-18 07:36:55 -0400939 api.flavor.device_dirs.dm_dir, api.flavor.host_dirs.dm_dir)
Eric Boren4c7754c2017-04-10 08:19:10 -0400940
941
borenet1ed2ae42016-07-26 11:52:17 -0700942def RunSteps(api):
Eric Borenb7023162018-05-04 13:46:15 -0400943 api.vars.setup()
944 api.file.ensure_directory('makedirs tmp_dir', api.vars.tmp_dir)
945 api.flavor.setup()
946
Robert Iannucci297a7ef2017-05-12 19:09:38 -0700947 env = {}
Eric Boren4c7754c2017-04-10 08:19:10 -0400948 if 'iOS' in api.vars.builder_name:
949 env['IOS_BUNDLE_ID'] = 'com.google.dm'
Stephan Altmueller63e843d2017-04-25 11:38:38 -0400950 env['IOS_MOUNT_POINT'] = api.vars.slave_dir.join('mnt_iosdevice')
Robert Iannucci297a7ef2017-05-12 19:09:38 -0700951 with api.context(env=env):
Eric Boren4c7754c2017-04-10 08:19:10 -0400952 try:
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400953 if 'Chromecast' in api.vars.builder_name:
954 api.flavor.install(resources=True, skps=True)
Eric Boren8c172ba2018-07-19 13:27:49 -0400955 elif 'Lottie' in api.vars.builder_name:
956 api.flavor.install(resources=True, lotties=True)
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400957 else:
Eric Boren8c172ba2018-07-19 13:27:49 -0400958 api.flavor.install(skps=True, images=True, svgs=True, resources=True)
Eric Boren4c7754c2017-04-10 08:19:10 -0400959 test_steps(api)
960 finally:
961 api.flavor.cleanup_steps()
962 api.run.check_failure()
963
964
Eric Borenf9aa9e52017-04-10 09:56:10 -0400965TEST_BUILDERS = [
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400966 'Test-Android-Clang-AndroidOne-GPU-Mali400MP2-arm-Release-All-Android',
967 'Test-Android-Clang-GalaxyS6-GPU-MaliT760-arm64-Debug-All-Android',
Ben Wagner12e69e72018-07-15 15:12:01 -0400968 ('Test-Android-Clang-GalaxyS6-GPU-MaliT760-arm64-Debug-All'
969 '-Android_NoGPUThreads'),
Ben Wagner2107bd82018-06-12 14:16:07 -0400970 ('Test-Android-Clang-GalaxyS7_G930FD-GPU-MaliT880-arm64-Release-All'
971 '-Android_Vulkan'),
Ben Wagner12e69e72018-07-15 15:12:01 -0400972 'Test-Android-Clang-MotoG4-CPU-Snapdragon617-arm-Release-All-Android',
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400973 'Test-Android-Clang-NVIDIA_Shield-GPU-TegraX1-arm64-Debug-All-Android_CCPR',
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400974 'Test-Android-Clang-Nexus5-GPU-Adreno330-arm-Release-All-Android',
Ben Wagner5cf6d322017-12-07 10:23:07 -0500975 'Test-Android-Clang-Nexus7-CPU-Tegra3-arm-Release-All-Android',
Ben Wagner31629a82018-08-22 13:10:32 -0400976 'Test-Android-Clang-NexusPlayer-GPU-PowerVRG6430-x86-Release-All-Android',
Ben Wagner52423f32017-12-07 10:17:13 -0500977 'Test-Android-Clang-Pixel-GPU-Adreno530-arm64-Debug-All-Android_Vulkan',
Ben Wagner12e69e72018-07-15 15:12:01 -0400978 'Test-Android-Clang-Pixel-GPU-Adreno530-arm-Debug-All-Android_ASAN',
Kevin Lubickd7af1db2017-11-02 12:03:22 -0400979 ('Test-ChromeOS-Clang-AcerChromebookR13Convertible-GPU-PowerVRGX6250-'
980 'arm-Debug-All'),
Mike Klein54d7b312018-06-27 13:43:51 -0400981 'Test-Chromecast-Clang-Chorizo-CPU-Cortex_A7-arm-Release-All',
982 'Test-Chromecast-Clang-Chorizo-GPU-Cortex_A7-arm-Release-All',
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400983 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All-ASAN',
Mike Kleinc24e0c12018-08-17 13:24:51 -0400984 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All-BonusConfigs',
Kevin Lubick32f318b2017-10-17 13:40:52 -0400985 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-shard_00_10-Coverage',
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400986 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All-MSAN',
987 ('Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All'
Ben Wagner9fb285e2017-10-02 16:53:07 -0400988 '-SK_USE_DISCARDABLE_SCALEDIMAGECACHE'),
Eric Boren8c172ba2018-07-19 13:27:49 -0400989 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Release-All-Lottie',
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400990 ('Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Release-All'
Ben Wagner6e0a6b32017-09-26 14:11:15 -0400991 '-SK_FORCE_RASTER_PIPELINE_BLITTER'),
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400992 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Release-All-TSAN',
Ben Wagnerd26e4462018-05-22 10:46:15 -0400993 'Test-Debian9-Clang-GCE-GPU-SwiftShader-x86_64-Release-All-SwiftShader',
Kevin Lubick88611a12018-04-26 09:46:45 -0400994 'Test-Debian9-Clang-NUC5PPYH-GPU-IntelHD405-x86_64-Release-All-Vulkan',
995 'Test-Debian9-Clang-NUC7i5BNK-GPU-IntelIris640-x86_64-Debug-All-Vulkan',
Jim Van Verth1b6c75c2018-02-16 09:49:08 -0500996 'Test-Mac-Clang-MacBook10.1-GPU-IntelHD615-x86_64-Release-All-NativeFonts',
Ben Wagner7ea54282018-08-22 14:07:48 -0400997 'Test-Mac-Clang-MacBookAir7.2-GPU-IntelHD6000-x86_64-Debug-All',
998 'Test-Mac-Clang-MacBookPro11.5-CPU-AVX2-x86_64-Release-All',
Greg Danielb95d2782018-07-24 11:35:18 -0400999 'Test-Mac-Clang-MacBookPro11.5-GPU-RadeonHD8870M-x86_64-Debug-All-Metal',
Chris Dalton2b937f52018-05-17 10:17:10 -06001000 ('Test-Mac-Clang-MacBookPro11.5-GPU-RadeonHD8870M-x86_64-Release-All-'
1001 'MoltenVK_Vulkan'),
Ben Wagner7ea54282018-08-22 14:07:48 -04001002 'Test-Mac-Clang-MacMini7.1-GPU-IntelIris5100-x86_64-Debug-All-CommandBuffer',
Ben Wagner9f553932017-11-27 22:18:12 -05001003 'Test-Ubuntu17-Clang-Golo-GPU-QuadroP400-x86_64-Debug-All-Vulkan_Coverage',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001004 ('Test-Ubuntu17-GCC-Golo-GPU-QuadroP400-x86_64-Release-All'
Ben Wagner6e0a6b32017-09-26 14:11:15 -04001005 '-Valgrind_AbandonGpuContext_SK_CPU_LIMIT_SSE41'),
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001006 ('Test-Ubuntu17-GCC-Golo-GPU-QuadroP400-x86_64-Release-All'
Ben Wagner6e0a6b32017-09-26 14:11:15 -04001007 '-Valgrind_PreAbandonGpuContext_SK_CPU_LIMIT_SSE41'),
Eric Borendd8b1fc2018-05-18 09:54:02 -04001008 'Test-Ubuntu17-Clang-Golo-GPU-QuadroP400-x86_64-Debug-All-DDL1',
1009 'Test-Ubuntu17-Clang-Golo-GPU-QuadroP400-x86_64-Debug-All-DDL3',
Eric Boren9f4efd32018-07-20 08:25:42 -04001010 'Test-Ubuntu17-Clang-Golo-GPU-QuadroP400-x86_64-Debug-All-Lottie',
Ben Wagnera4cdfbb2018-08-31 10:20:34 -04001011 'Test-Win10-Clang-Golo-GPU-QuadroP400-x86_64-Release-All-BonusConfigs',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001012 ('Test-Win10-Clang-Golo-GPU-QuadroP400-x86_64-Release-All'
Ben Wagner6e0a6b32017-09-26 14:11:15 -04001013 '-ReleaseAndAbandonGpuContext'),
Ben Wagnerfd66b5f2017-11-15 15:16:27 -05001014 'Test-Win10-Clang-NUC5i7RYH-CPU-AVX2-x86_64-Debug-All-NativeFonts_GDI',
Ben Wagner0473a312018-08-29 14:15:15 -04001015 'Test-Win10-Clang-NUC5i7RYH-GPU-IntelIris6100-x86_64-Release-All-ANGLE',
Ben Wagnerb2fd61a2017-10-23 16:01:44 -04001016 'Test-Win10-Clang-NUC6i5SYK-GPU-IntelIris540-x86_64-Debug-All-ANGLE',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001017 'Test-Win10-Clang-NUC6i5SYK-GPU-IntelIris540-x86_64-Debug-All-Vulkan',
Ben Wagnerb2fd61a2017-10-23 16:01:44 -04001018 'Test-Win10-Clang-NUCD34010WYKH-GPU-IntelHD4400-x86_64-Release-All-ANGLE',
Greg Daniele5b7e6d2018-06-12 10:52:59 -04001019 'Test-Win10-Clang-ShuttleA-GPU-GTX660-x86_64-Release-All-Vulkan',
Ben Wagnerb2fd61a2017-10-23 16:01:44 -04001020 'Test-Win10-Clang-ShuttleC-GPU-GTX960-x86_64-Debug-All-ANGLE',
Ben Wagner78935c22017-11-15 13:21:03 -05001021 'Test-Win2016-Clang-GCE-CPU-AVX2-x86_64-Debug-All-FAAA',
1022 'Test-Win2016-Clang-GCE-CPU-AVX2-x86_64-Debug-All-FDAA',
1023 'Test-Win2016-Clang-GCE-CPU-AVX2-x86_64-Debug-All-FSAA',
Ben Wagner31629a82018-08-22 13:10:32 -04001024 'Test-iOS-Clang-iPadPro-GPU-PowerVRGT7800-arm64-Release-All',
Eric Borenf9aa9e52017-04-10 09:56:10 -04001025]
borenet1ed2ae42016-07-26 11:52:17 -07001026
1027
1028def GenTests(api):
Eric Borenf9aa9e52017-04-10 09:56:10 -04001029 for builder in TEST_BUILDERS:
1030 test = (
1031 api.test(builder) +
1032 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001033 buildbucket_build_id='123454321',
Eric Borenf9aa9e52017-04-10 09:56:10 -04001034 revision='abc123',
1035 path_config='kitchen',
Stephan Altmüller64cc5762018-08-02 08:51:38 +02001036 gold_hashes_url='https://example.com/hashes.txt',
Eric Borenf9aa9e52017-04-10 09:56:10 -04001037 swarm_out_dir='[SWARM_OUT_DIR]') +
1038 api.path.exists(
1039 api.path['start_dir'].join('skia'),
1040 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1041 'skimage', 'VERSION'),
1042 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1043 'skp', 'VERSION'),
1044 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1045 'svg', 'VERSION'),
1046 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
Ben Wagnerf835c222017-04-30 11:14:51 -04001047 ) +
1048 api.step_data('get swarming bot id',
1049 stdout=api.raw_io.output('skia-bot-123')) +
1050 api.step_data('get swarming task id',
1051 stdout=api.raw_io.output('123456'))
Eric Borenf9aa9e52017-04-10 09:56:10 -04001052 )
Eric Borenf9aa9e52017-04-10 09:56:10 -04001053 if 'Win' in builder:
1054 test += api.platform('win', 64)
Eric Boren4c7754c2017-04-10 08:19:10 -04001055
Kevin Lubick2dafbd72017-08-31 10:39:05 -04001056 if 'Chromecast' in builder:
1057 test += api.step_data(
1058 'read chromecast ip',
1059 stdout=api.raw_io.output('192.168.1.2:5555'))
1060
Eric Borenf9aa9e52017-04-10 09:56:10 -04001061 if 'ChromeOS' in builder:
1062 test += api.step_data(
1063 'read chromeos ip',
1064 stdout=api.raw_io.output('{"user_ip":"foo@127.0.0.1"}'))
Eric Boren4c7754c2017-04-10 08:19:10 -04001065
Eric Borenf9aa9e52017-04-10 09:56:10 -04001066 yield test
Eric Boren4c7754c2017-04-10 08:19:10 -04001067
Eric Borendd8b1fc2018-05-18 09:54:02 -04001068 builder = 'Test-Win8-Clang-Golo-CPU-AVX-x86-Debug-All'
Kevin Lubickfe079d42017-04-12 08:31:48 -04001069 yield (
1070 api.test('trybot') +
1071 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001072 buildbucket_build_id='123454321',
Kevin Lubickfe079d42017-04-12 08:31:48 -04001073 revision='abc123',
1074 path_config='kitchen',
Stephan Altmüller64cc5762018-08-02 08:51:38 +02001075 gold_hashes_url='https://example.com/hashes.txt',
Kevin Lubickfe079d42017-04-12 08:31:48 -04001076 swarm_out_dir='[SWARM_OUT_DIR]') +
1077 api.properties(patch_storage='gerrit') +
1078 api.properties.tryserver(
1079 buildername=builder,
1080 gerrit_project='skia',
1081 gerrit_url='https://skia-review.googlesource.com/',
1082 )+
1083 api.path.exists(
1084 api.path['start_dir'].join('skia'),
1085 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1086 'skimage', 'VERSION'),
1087 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1088 'skp', 'VERSION'),
1089 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1090 'svg', 'VERSION'),
1091 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
1092 )
1093 )
1094
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001095 builder = 'Test-Debian9-GCC-GCE-CPU-AVX2-x86_64-Debug-All'
borenet1ed2ae42016-07-26 11:52:17 -07001096 yield (
Eric Boren4c7754c2017-04-10 08:19:10 -04001097 api.test('failed_dm') +
1098 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001099 buildbucket_build_id='123454321',
borenet1ed2ae42016-07-26 11:52:17 -07001100 revision='abc123',
1101 path_config='kitchen',
Stephan Altmüller64cc5762018-08-02 08:51:38 +02001102 gold_hashes_url='https://example.com/hashes.txt',
borenet1ed2ae42016-07-26 11:52:17 -07001103 swarm_out_dir='[SWARM_OUT_DIR]') +
1104 api.path.exists(
Ravi Mistry9bcca6a2016-11-21 16:06:19 -05001105 api.path['start_dir'].join('skia'),
1106 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
Eric Boren4c7754c2017-04-10 08:19:10 -04001107 'skimage', 'VERSION'),
Ravi Mistry9bcca6a2016-11-21 16:06:19 -05001108 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
Eric Boren4c7754c2017-04-10 08:19:10 -04001109 'skp', 'VERSION'),
Ravi Mistry9bcca6a2016-11-21 16:06:19 -05001110 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
Eric Boren4c7754c2017-04-10 08:19:10 -04001111 'svg', 'VERSION'),
Ravi Mistry9bcca6a2016-11-21 16:06:19 -05001112 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
Eric Boren4c7754c2017-04-10 08:19:10 -04001113 ) +
1114 api.step_data('symbolized dm', retcode=1)
1115 )
1116
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001117 builder = 'Test-Android-Clang-Nexus7-GPU-Tegra3-arm-Release-All-Android'
Eric Boren4c7754c2017-04-10 08:19:10 -04001118 yield (
1119 api.test('failed_get_hashes') +
1120 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001121 buildbucket_build_id='123454321',
Eric Boren4c7754c2017-04-10 08:19:10 -04001122 revision='abc123',
1123 path_config='kitchen',
Stephan Altmüller64cc5762018-08-02 08:51:38 +02001124 gold_hashes_url='https://example.com/hashes.txt',
Eric Boren4c7754c2017-04-10 08:19:10 -04001125 swarm_out_dir='[SWARM_OUT_DIR]') +
1126 api.path.exists(
1127 api.path['start_dir'].join('skia'),
1128 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1129 'skimage', 'VERSION'),
1130 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1131 'skp', 'VERSION'),
1132 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1133 'svg', 'VERSION'),
1134 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
1135 ) +
1136 api.step_data('get uninteresting hashes', retcode=1)
1137 )
1138
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001139 builder = ('Test-Android-Clang-NexusPlayer-CPU-Moorefield-x86-'
1140 'Debug-All-Android')
Eric Boren4c7754c2017-04-10 08:19:10 -04001141 yield (
1142 api.test('failed_push') +
1143 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001144 buildbucket_build_id='123454321',
Eric Boren4c7754c2017-04-10 08:19:10 -04001145 revision='abc123',
1146 path_config='kitchen',
Stephan Altmüller64cc5762018-08-02 08:51:38 +02001147 gold_hashes_url='https://example.com/hashes.txt',
Eric Boren4c7754c2017-04-10 08:19:10 -04001148 swarm_out_dir='[SWARM_OUT_DIR]') +
1149 api.path.exists(
1150 api.path['start_dir'].join('skia'),
1151 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1152 'skimage', 'VERSION'),
1153 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1154 'skp', 'VERSION'),
1155 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1156 'svg', 'VERSION'),
1157 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
1158 ) +
Kevin Lubickc6f74ca2018-03-01 09:21:38 -05001159 api.step_data('get swarming bot id',
1160 stdout=api.raw_io.output('build123-m2--device5')) +
Eric Boren4c7754c2017-04-10 08:19:10 -04001161 api.step_data('push [START_DIR]/skia/resources/* '+
1162 '/sdcard/revenge_of_the_skiabot/resources', retcode=1)
1163 )
1164
Ben Wagner1a2b3f02017-10-26 15:13:38 -04001165 builder = 'Test-Android-Clang-Nexus7-GPU-Tegra3-arm-Debug-All-Android'
Eric Borencd0a98c2018-06-20 13:23:16 -04001166 retry_step_name = 'adb pull.pull /sdcard/revenge_of_the_skiabot/dm_out'
Eric Boren4c7754c2017-04-10 08:19:10 -04001167 yield (
1168 api.test('failed_pull') +
1169 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001170 buildbucket_build_id='123454321',
Eric Boren4c7754c2017-04-10 08:19:10 -04001171 revision='abc123',
1172 path_config='kitchen',
Stephan Altmüller64cc5762018-08-02 08:51:38 +02001173 gold_hashes_url='https://example.com/hashes.txt',
Eric Boren4c7754c2017-04-10 08:19:10 -04001174 swarm_out_dir='[SWARM_OUT_DIR]') +
1175 api.path.exists(
1176 api.path['start_dir'].join('skia'),
1177 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1178 'skimage', 'VERSION'),
1179 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1180 'skp', 'VERSION'),
1181 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1182 'svg', 'VERSION'),
1183 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
1184 ) +
1185 api.step_data('dm', retcode=1) +
Ben Wagnere7e6e222018-05-25 09:47:37 -04001186 api.step_data(retry_step_name, retcode=1) +
1187 api.step_data(retry_step_name + ' (attempt 2)', retcode=1) +
1188 api.step_data(retry_step_name + ' (attempt 3)', retcode=1)
borenetbfa5b452016-10-19 10:13:32 -07001189 )
Eric Boren053d7a42017-09-15 08:35:31 -04001190
1191 yield (
Kevin Lubickbd27d1d2017-10-13 08:01:49 -04001192 api.test('internal_bot_2') +
1193 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001194 buildbucket_build_id='123454321',
Kevin Lubickbd27d1d2017-10-13 08:01:49 -04001195 revision='abc123',
1196 path_config='kitchen',
1197 swarm_out_dir='[SWARM_OUT_DIR]',
Stephan Altmüller64cc5762018-08-02 08:51:38 +02001198 gold_hashes_url='https://example.com/hashes.txt',
Eric Borenfb20ac42018-04-24 14:48:19 -04001199 internal_hardware_label='2') +
Kevin Lubickbd27d1d2017-10-13 08:01:49 -04001200 api.path.exists(
1201 api.path['start_dir'].join('skia'),
1202 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1203 'skimage', 'VERSION'),
1204 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1205 'skp', 'VERSION'),
1206 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1207 'svg', 'VERSION'),
1208 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
Kevin Lubickd1bbd5f2017-11-21 16:47:16 -05001209 )
Kevin Lubickbd27d1d2017-10-13 08:01:49 -04001210 )