blob: 655372d681458746a779021d062cc897098a8997 [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')
Herb Derby2c1d0d72018-10-18 15:32:59 -0400185 blacklist('gltestthreading gm _ dftext')
186 # skbug.com/7523 - Flaky on various GPUs
Brian Salomon19eaf2d2018-03-19 16:06:44 -0400187 blacklist('gltestthreading gm _ orientation')
Mike Klein97627d42017-05-11 13:12:48 -0400188
Ben Wagner32fa5102017-08-10 21:25:55 -0400189 # CommandBuffer bot *only* runs the command_buffer config.
190 if 'CommandBuffer' in bot:
191 configs = ['commandbuffer']
192
193 # ANGLE bot *only* runs the angle configs
194 if 'ANGLE' in bot:
195 configs = ['angle_d3d11_es2',
196 'angle_d3d9_es2',
197 'angle_gl_es2',
198 'angle_d3d11_es3']
199 if sample_count is not '':
200 configs.append('angle_d3d11_es2_msaa' + sample_count)
201 configs.append('angle_d3d11_es3_msaa' + sample_count)
Ben Wagner7464a262018-04-19 15:49:18 -0400202 if 'GTX' in bot or 'Quadro' in bot:
203 # See skia:7823 and chromium:693090.
204 configs.append('angle_gl_es3')
205 if sample_count is not '':
206 configs.append('angle_gl_es2_msaa' + sample_count)
207 configs.append('angle_gl_es3_msaa' + sample_count)
Ethan Nicholas00543112018-07-31 09:44:36 -0400208 if 'NUC5i7RYH' in bot:
209 # skbug.com/7376
210 blacklist('_ test _ ProcessorCloneTest')
Ben Wagner32fa5102017-08-10 21:25:55 -0400211
212 # Vulkan bot *only* runs the vk config.
213 if 'Vulkan' in bot:
Chris Daltonaec79e62018-05-29 12:02:19 -0600214 configs = ['vk']
Ben Wagner32fa5102017-08-10 21:25:55 -0400215
Greg Danielb95d2782018-07-24 11:35:18 -0400216 if 'Metal' in bot:
217 configs = ['mtl']
218
Brian Salomon7fc52992018-07-12 16:20:23 -0400219 # Test 1010102 on our Linux/NVIDIA bots and the persistent cache config
220 # on the GL bots.
Brian Salomonbfc63c12018-07-16 15:48:22 -0400221 if ('QuadroP400' in bot and 'PreAbandonGpuContext' not in bot and
Brian Salomon6a3957c2018-07-19 17:01:09 -0400222 'TSAN' not in bot and api.vars.is_linux):
Brian Osman10fc6fd2018-03-02 11:01:10 -0500223 if 'Vulkan' in bot:
224 configs.append('vk1010102')
Brian Osman419abf32018-03-02 14:56:15 -0500225 # Decoding transparent images to 1010102 just looks bad
226 blacklist('vk1010102 image _ _')
Brian Osman10fc6fd2018-03-02 11:01:10 -0500227 else:
Brian Salomon7fc52992018-07-12 16:20:23 -0400228 configs.extend(['gl1010102', 'gltestpersistentcache'])
Brian Osman419abf32018-03-02 14:56:15 -0500229 # Decoding transparent images to 1010102 just looks bad
230 blacklist('gl1010102 image _ _')
Brian Salomon09387592018-07-16 15:34:16 -0400231 # These tests produce slightly different pixels run to run on NV.
Brian Salomon7fc52992018-07-12 16:20:23 -0400232 blacklist('gltestpersistentcache gm _ atlastext')
Brian Salomon09387592018-07-16 15:34:16 -0400233 blacklist('gltestpersistentcache gm _ dftext')
Brian Salomon06e3c3c2018-08-03 12:54:11 -0400234 blacklist('gltestpersistentcache gm _ glyph_pos_h_b')
Brian Osman10fc6fd2018-03-02 11:01:10 -0500235
Brian Salomon7bfe8432018-08-31 13:35:26 -0400236 # Test SkColorSpaceXformCanvas and rendering to wrapped dsts on a few bots
Brian Osman23885d22018-12-06 09:52:22 -0500237 # Also test 'glenarrow', which hits F16 surfaces and F16 vertex colors.
Ben Wagnera4cdfbb2018-08-31 10:20:34 -0400238 if 'BonusConfigs' in api.vars.extra_tokens:
Brian Osman23885d22018-12-06 09:52:22 -0500239 configs = ['gbr-gl', 'glbetex', 'glbert', 'glenarrow']
Brian Salomon7bfe8432018-08-31 13:35:26 -0400240
Ben Wagnera4cdfbb2018-08-31 10:20:34 -0400241
Ben Wagner32fa5102017-08-10 21:25:55 -0400242 if 'ChromeOS' in bot:
243 # Just run GLES for now - maybe add gles_msaa4 in the future
244 configs = ['gles']
245
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400246 if 'Chromecast' in bot:
Kevin Lubick608c35a2018-01-16 16:15:57 -0500247 configs = ['gles']
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400248
Ben Wagner32fa5102017-08-10 21:25:55 -0400249 # Test coverage counting path renderer.
250 if 'CCPR' in bot:
251 configs = [c for c in configs if c == 'gl' or c == 'gles']
Chris Dalton7a0ebfc2017-10-13 12:35:50 -0600252 args.extend(['--pr', 'ccpr', '--cachePathMasks', 'false'])
Chris Dalton97598a52017-07-18 10:49:07 -0600253
Robert Phillips36150be2018-03-15 13:40:07 -0400254 # DDL is a GPU-only feature
255 if 'DDL1' in bot:
Robert Phillips69eb8352018-04-11 13:45:08 -0400256 # This bot generates gl and vk comparison images for the large skps
257 configs = [c for c in configs if c == 'gl' or c == 'vk']
Robert Phillipsb7fafba2018-03-27 20:49:23 +0000258 args.extend(['--skpViewportSize', "2048"])
Robert Phillips21ca0432018-05-29 15:42:00 -0400259 args.extend(['--pr', '~small'])
Robert Phillips36150be2018-03-15 13:40:07 -0400260 if 'DDL3' in bot:
Robert Phillips69eb8352018-04-11 13:45:08 -0400261 # This bot generates the ddl-gl and ddl-vk images for the
262 # large skps and the gms
Brian Salomon8f40b662018-12-21 17:50:43 -0500263 ddl_configs = ['ddl-' + c for c in configs if c == 'gl' or c == 'vk']
264 ddl2_configs = ['ddl2-' + c for c in configs if c == 'gl' or c == 'vk']
265 configs = ddl_configs + ddl2_configs
Robert Phillipsb7fafba2018-03-27 20:49:23 +0000266 args.extend(['--skpViewportSize', "2048"])
Robert Phillipse43ff782018-04-20 11:59:59 -0400267 args.extend(['--gpuThreads', "0"])
Robert Phillips36150be2018-03-15 13:40:07 -0400268
Eric Boren9f4efd32018-07-20 08:25:42 -0400269 if 'Lottie' in bot:
270 configs = ['gl']
271
Kevin Lubick32f318b2017-10-17 13:40:52 -0400272 tf = api.vars.builder_cfg.get('test_filter')
273 if 'All' != tf:
274 # Expected format: shard_XX_YY
275 parts = tf.split('_')
276 if len(parts) == 3:
277 args.extend(['--shard', parts[1]])
278 args.extend(['--shards', parts[2]])
Eric Boren9599b0f2018-04-17 15:55:57 -0400279 else: # pragma: nocover
280 raise Exception('Invalid task name - bad shards: %s' % tf)
Kevin Lubick32f318b2017-10-17 13:40:52 -0400281
Chris Dalton80ace822017-07-20 10:54:04 -0600282 args.append('--config')
283 args.extend(configs)
284
Eric Boren4c7754c2017-04-10 08:19:10 -0400285 # Run tests, gms, and image decoding tests everywhere.
Eric Boren8c172ba2018-07-19 13:27:49 -0400286 args.extend('--src tests gm image lottie colorImage svg skp'.split(' '))
Ben Wagner0ecc2b7e2017-11-09 22:10:44 -0500287 if api.vars.builder_cfg.get('cpu_or_gpu') == 'GPU':
Chris Dalton7c304ba2017-09-07 11:57:16 -0600288 # Don't run the 'svgparse_*' svgs on GPU.
289 blacklist('_ svg _ svgparse_')
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400290 elif bot == 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All-ASAN':
Chris Dalton7c304ba2017-09-07 11:57:16 -0600291 # Only run the CPU SVGs on 8888.
292 blacklist('~8888 svg _ _')
293 else:
294 # On CPU SVGs we only care about parsing. Only run them on the above bot.
295 args.remove('svg')
Eric Boren4c7754c2017-04-10 08:19:10 -0400296
Mike Klein97627d42017-05-11 13:12:48 -0400297 # Eventually I'd like these to pass, but for now just skip 'em.
298 if 'SK_FORCE_RASTER_PIPELINE_BLITTER' in bot:
299 args.remove('tests')
300
Mike Klein9a01a212017-11-03 12:19:54 -0400301 if 'NativeFonts' in bot: # images won't exercise native font integration :)
302 args.remove('image')
303 args.remove('colorImage')
304
Eric Boren8c172ba2018-07-19 13:27:49 -0400305 def remove_from_args(arg):
306 if arg in args:
307 args.remove(arg)
308
Robert Phillips5f3ce3e2018-04-12 11:09:40 -0400309 if 'DDL' in bot:
310 # The DDL bots just render the large skps and the gms
Eric Boren8c172ba2018-07-19 13:27:49 -0400311 remove_from_args('tests')
312 remove_from_args('image')
313 remove_from_args('colorImage')
314 remove_from_args('svg')
Robert Phillips36150be2018-03-15 13:40:07 -0400315 else:
Robert Phillipsb7fafba2018-03-27 20:49:23 +0000316 # Currently, only the DDL bots render skps
Eric Boren8c172ba2018-07-19 13:27:49 -0400317 remove_from_args('skp')
318
319 if 'Lottie' in api.vars.builder_cfg.get('extra_config', ''):
320 # Only run the lotties on Lottie bots.
321 remove_from_args('tests')
322 remove_from_args('gm')
323 remove_from_args('image')
324 remove_from_args('colorImage')
325 remove_from_args('svg')
326 remove_from_args('skp')
327 else:
328 remove_from_args('lottie')
Robert Phillips36150be2018-03-15 13:40:07 -0400329
Eric Boren4c7754c2017-04-10 08:19:10 -0400330 # TODO: ???
331 blacklist('f16 _ _ dstreadshuffle')
332 blacklist('glsrgb image _ _')
333 blacklist('glessrgb image _ _')
334
Eric Boren4c7754c2017-04-10 08:19:10 -0400335 # Not any point to running these.
Mike Kleinb7ea3da2017-10-31 17:42:08 +0000336 blacklist('gbr-8888 image _ _')
337 blacklist('gbr-8888 colorImage _ _')
Eric Boren4c7754c2017-04-10 08:19:10 -0400338
Mike Klein515bda62018-01-09 11:21:58 -0500339 # --src image --config g8 means "decode into Gray8", which isn't supported.
340 blacklist('g8 image _ _')
341 blacklist('g8 colorImage _ _')
342
Eric Boren4c7754c2017-04-10 08:19:10 -0400343 if 'Valgrind' in bot:
344 # These take 18+ hours to run.
345 blacklist('pdf gm _ fontmgr_iter')
346 blacklist('pdf _ _ PANO_20121023_214540.jpg')
347 blacklist('pdf skp _ worldjournal')
348 blacklist('pdf skp _ desk_baidu.skp')
349 blacklist('pdf skp _ desk_wikipedia.skp')
350 blacklist('_ svg _ _')
351
352 if 'iOS' in bot:
353 blacklist(gl_prefix + ' skp _ _')
354
355 if 'Mac' in bot or 'iOS' in bot:
356 # CG fails on questionable bmps
357 blacklist('_ image gen_platf rgba32abf.bmp')
358 blacklist('_ image gen_platf rgb24prof.bmp')
359 blacklist('_ image gen_platf rgb24lprof.bmp')
360 blacklist('_ image gen_platf 8bpp-pixeldata-cropped.bmp')
361 blacklist('_ image gen_platf 4bpp-pixeldata-cropped.bmp')
362 blacklist('_ image gen_platf 32bpp-pixeldata-cropped.bmp')
363 blacklist('_ image gen_platf 24bpp-pixeldata-cropped.bmp')
364
365 # CG has unpredictable behavior on this questionable gif
366 # It's probably using uninitialized memory
367 blacklist('_ image gen_platf frame_larger_than_image.gif')
368
369 # CG has unpredictable behavior on incomplete pngs
370 # skbug.com/5774
371 blacklist('_ image gen_platf inc0.png')
372 blacklist('_ image gen_platf inc1.png')
373 blacklist('_ image gen_platf inc2.png')
374 blacklist('_ image gen_platf inc3.png')
375 blacklist('_ image gen_platf inc4.png')
376 blacklist('_ image gen_platf inc5.png')
377 blacklist('_ image gen_platf inc6.png')
378 blacklist('_ image gen_platf inc7.png')
379 blacklist('_ image gen_platf inc8.png')
380 blacklist('_ image gen_platf inc9.png')
381 blacklist('_ image gen_platf inc10.png')
382 blacklist('_ image gen_platf inc11.png')
383 blacklist('_ image gen_platf inc12.png')
384 blacklist('_ image gen_platf inc13.png')
385 blacklist('_ image gen_platf inc14.png')
Leon Scroggins IIIa66ac002018-10-26 09:45:11 -0400386 blacklist('_ image gen_platf incInterlaced.png')
Eric Boren4c7754c2017-04-10 08:19:10 -0400387
Ben Wagner3f679142017-11-27 13:02:25 -0500388 # These images fail after Mac 10.13.1 upgrade.
389 blacklist('_ image gen_platf incInterlaced.gif')
390 blacklist('_ image gen_platf inc1.gif')
391 blacklist('_ image gen_platf inc0.gif')
392 blacklist('_ image gen_platf butterfly.gif')
393
Matt Sarett6c50a2e2017-05-01 09:13:05 -0400394 # WIC fails on questionable bmps
Eric Boren4c7754c2017-04-10 08:19:10 -0400395 if 'Win' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400396 blacklist('_ image gen_platf pal8os2v2.bmp')
397 blacklist('_ image gen_platf pal8os2v2-16.bmp')
398 blacklist('_ image gen_platf rgba32abf.bmp')
399 blacklist('_ image gen_platf rgb24prof.bmp')
400 blacklist('_ image gen_platf rgb24lprof.bmp')
401 blacklist('_ image gen_platf 8bpp-pixeldata-cropped.bmp')
402 blacklist('_ image gen_platf 4bpp-pixeldata-cropped.bmp')
403 blacklist('_ image gen_platf 32bpp-pixeldata-cropped.bmp')
404 blacklist('_ image gen_platf 24bpp-pixeldata-cropped.bmp')
Eric Boren4c7754c2017-04-10 08:19:10 -0400405 if 'x86_64' in bot and 'CPU' in bot:
406 # This GM triggers a SkSmallAllocator assert.
407 blacklist('_ gm _ composeshader_bitmap')
408
Matt Sarett6c50a2e2017-05-01 09:13:05 -0400409 if 'Win' in bot or 'Mac' in bot:
Leon Scroggins III3a3cf432017-08-18 13:08:16 -0400410 # WIC and CG fail on arithmetic jpegs
Matt Sarett6c50a2e2017-05-01 09:13:05 -0400411 blacklist('_ image gen_platf testimgari.jpg')
Leon Scroggins III3a3cf432017-08-18 13:08:16 -0400412 # More questionable bmps that fail on Mac, too. skbug.com/6984
413 blacklist('_ image gen_platf rle8-height-negative.bmp')
414 blacklist('_ image gen_platf rle4-height-negative.bmp')
Matt Sarett6c50a2e2017-05-01 09:13:05 -0400415
Leon Scroggins III3abcd822018-10-18 11:28:36 -0400416 # These PNGs have CRC errors. The platform generators seem to draw
417 # uninitialized memory without reporting an error, so skip them to
418 # avoid lots of images on Gold.
419 blacklist('_ image gen_platf error')
420
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400421 if 'Android' in bot or 'iOS' in bot or 'Chromecast' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400422 # This test crashes the N9 (perhaps because of large malloc/frees). It also
423 # is fairly slow and not platform-specific. So we just disable it on all of
424 # Android and iOS. skia:5438
425 blacklist('_ test _ GrShape')
426
Eric Borenfb20ac42018-04-24 14:48:19 -0400427 if api.vars.internal_hardware_label == '2':
Kevin Lubickbd27d1d2017-10-13 08:01:49 -0400428 # skia:7160
429 blacklist('_ test _ SRGBReadWritePixels')
430 blacklist('_ test _ SRGBMipMap')
431
Kevin Lubick82439882018-12-12 15:50:14 -0500432 if api.vars.internal_hardware_label == '5':
433 # http://b/118312149#comment9
434 blacklist('_ test _ SRGBReadWritePixels')
435
Eric Boren4c7754c2017-04-10 08:19:10 -0400436 # skia:4095
Mike Reedfb499092017-06-26 13:53:32 +0000437 bad_serialize_gms = ['bleed_image',
Eric Boren4c7754c2017-04-10 08:19:10 -0400438 'c_gms',
439 'colortype',
440 'colortype_xfermodes',
441 'drawfilter',
442 'fontmgr_bounds_0.75_0',
443 'fontmgr_bounds_1_-0.25',
444 'fontmgr_bounds',
445 'fontmgr_match',
446 'fontmgr_iter',
447 'imagemasksubset']
448
449 # skia:5589
450 bad_serialize_gms.extend(['bitmapfilters',
451 'bitmapshaders',
452 'bleed',
453 'bleed_alpha_bmp',
454 'bleed_alpha_bmp_shader',
455 'convex_poly_clip',
456 'extractalpha',
457 'filterbitmap_checkerboard_32_32_g8',
458 'filterbitmap_image_mandrill_64',
459 'shadows',
460 'simpleaaclip_aaclip'])
461 # skia:5595
462 bad_serialize_gms.extend(['composeshader_bitmap',
463 'scaled_tilemodes_npot',
464 'scaled_tilemodes'])
465
466 # skia:5778
467 bad_serialize_gms.append('typefacerendering_pfaMac')
468 # skia:5942
469 bad_serialize_gms.append('parsedpaths')
470
471 # these use a custom image generator which doesn't serialize
472 bad_serialize_gms.append('ImageGeneratorExternal_rect')
473 bad_serialize_gms.append('ImageGeneratorExternal_shader')
474
475 # skia:6189
476 bad_serialize_gms.append('shadow_utils')
477
Brian Salomonbe3c1d22018-05-21 12:54:39 -0400478 # skia:7938
479 bad_serialize_gms.append('persp_images')
480
Matt Sarett9f3dcb32017-05-04 08:53:32 -0400481 # Not expected to round trip encoding/decoding.
Mike Klein0b78a692017-10-31 17:31:17 -0400482 bad_serialize_gms.append('all_bitmap_configs')
Matt Sarett9f3dcb32017-05-04 08:53:32 -0400483 bad_serialize_gms.append('makecolorspace')
Mike Klein0a44d5c2018-10-02 11:10:59 -0400484 bad_serialize_gms.append('readpixels')
Brian Salomon0087c832018-10-15 14:48:20 -0400485 bad_serialize_gms.append('draw_image_set_rect_to_rect')
Matt Sarett9f3dcb32017-05-04 08:53:32 -0400486
Brian Salomon7072e222017-11-29 15:12:45 -0500487 # This GM forces a path to be convex. That property doesn't survive
488 # serialization.
489 bad_serialize_gms.append('analytic_antialias_convex')
490
Eric Boren4c7754c2017-04-10 08:19:10 -0400491 for test in bad_serialize_gms:
492 blacklist(['serialize-8888', 'gm', '_', test])
493
494 if 'Mac' not in bot:
495 for test in ['bleed_alpha_image', 'bleed_alpha_image_shader']:
496 blacklist(['serialize-8888', 'gm', '_', test])
497 # It looks like we skip these only for out-of-memory concerns.
Kevin Lubick608c35a2018-01-16 16:15:57 -0500498 if 'Win' in bot or 'Android' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400499 for test in ['verylargebitmap', 'verylarge_picture_image']:
500 blacklist(['serialize-8888', 'gm', '_', test])
Ben Wagner2e4e73f2017-09-08 15:21:44 -0400501 if 'Mac' in bot and 'CPU' in bot:
Ben Wagner38db79f2017-08-23 15:05:50 -0400502 # skia:6992
Ben Wagner6f98bc62017-09-05 16:02:28 -0400503 blacklist(['pic-8888', 'gm', '_', 'encode-platform'])
Ben Wagner38db79f2017-08-23 15:05:50 -0400504 blacklist(['serialize-8888', 'gm', '_', 'encode-platform'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400505
506 # skia:4769
507 for test in ['drawfilter']:
Eric Boren4c7754c2017-04-10 08:19:10 -0400508 blacklist([ 'pic-8888', 'gm', '_', test])
Eric Boren4c7754c2017-04-10 08:19:10 -0400509 blacklist([ 'lite-8888', 'gm', '_', test])
510 # skia:4703
511 for test in ['image-cacherator-from-picture',
512 'image-cacherator-from-raster',
513 'image-cacherator-from-ctable']:
Eric Boren4c7754c2017-04-10 08:19:10 -0400514 blacklist([ 'pic-8888', 'gm', '_', test])
Eric Boren4c7754c2017-04-10 08:19:10 -0400515 blacklist(['serialize-8888', 'gm', '_', test])
516
517 # GM that requires raster-backed canvas
Brian Osman368895b2018-11-26 10:17:57 -0500518 for test in ['complexclip4_bw', 'complexclip4_aa', 'p3']:
Eric Boren4c7754c2017-04-10 08:19:10 -0400519 blacklist([ 'pic-8888', 'gm', '_', test])
520 blacklist([ 'lite-8888', 'gm', '_', test])
Eric Boren4c7754c2017-04-10 08:19:10 -0400521 blacklist(['serialize-8888', 'gm', '_', test])
522
523 # GM that not support tiles_rt
524 for test in ['complexclip4_bw', 'complexclip4_aa']:
525 blacklist([ 'tiles_rt-8888', 'gm', '_', test])
526
527 # Extensions for RAW images
Ben Wagner6e0a6b32017-09-26 14:11:15 -0400528 r = ['arw', 'cr2', 'dng', 'nef', 'nrw', 'orf', 'raf', 'rw2', 'pef', 'srw',
529 'ARW', 'CR2', 'DNG', 'NEF', 'NRW', 'ORF', 'RAF', 'RW2', 'PEF', 'SRW']
Eric Boren4c7754c2017-04-10 08:19:10 -0400530
531 # skbug.com/4888
532 # Blacklist RAW images (and a few large PNGs) on GPU bots
533 # until we can resolve failures.
Matt Sarett929bfeb2017-05-22 10:34:41 -0400534 if 'GPU' in bot:
535 blacklist('_ image _ interlaced1.png')
536 blacklist('_ image _ interlaced2.png')
537 blacklist('_ image _ interlaced3.png')
538 for raw_ext in r:
539 blacklist('_ image _ .%s' % raw_ext)
540
541 # Blacklist memory intensive tests on 32-bit bots.
Ben Wagnerfd66b5f2017-11-15 15:16:27 -0500542 if ('Win8' in bot or 'Win2016' in bot) and 'x86-' in bot:
Matt Sarett929bfeb2017-05-22 10:34:41 -0400543 blacklist('_ image f16 _')
Matt Sarett112565e2017-05-22 13:45:15 -0400544 blacklist('_ image _ abnormal.wbmp')
Eric Boren4c7754c2017-04-10 08:19:10 -0400545 blacklist('_ image _ interlaced1.png')
546 blacklist('_ image _ interlaced2.png')
547 blacklist('_ image _ interlaced3.png')
548 for raw_ext in r:
549 blacklist('_ image _ .%s' % raw_ext)
550
Ben Wagner3f330692017-12-07 15:14:54 -0500551 if 'Nexus5' in bot and 'GPU' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400552 # skia:5876
553 blacklist(['_', 'gm', '_', 'encode-platform'])
554
555 if 'AndroidOne-GPU' in bot: # skia:4697, skia:4704, skia:4694, skia:4705
556 blacklist(['_', 'gm', '_', 'bigblurs'])
557 blacklist(['_', 'gm', '_', 'bleed'])
558 blacklist(['_', 'gm', '_', 'bleed_alpha_bmp'])
559 blacklist(['_', 'gm', '_', 'bleed_alpha_bmp_shader'])
560 blacklist(['_', 'gm', '_', 'bleed_alpha_image'])
561 blacklist(['_', 'gm', '_', 'bleed_alpha_image_shader'])
562 blacklist(['_', 'gm', '_', 'bleed_image'])
563 blacklist(['_', 'gm', '_', 'dropshadowimagefilter'])
564 blacklist(['_', 'gm', '_', 'filterfastbounds'])
565 blacklist([gl_prefix, 'gm', '_', 'imageblurtiled'])
566 blacklist(['_', 'gm', '_', 'imagefiltersclipped'])
567 blacklist(['_', 'gm', '_', 'imagefiltersscaled'])
568 blacklist(['_', 'gm', '_', 'imageresizetiled'])
569 blacklist(['_', 'gm', '_', 'matrixconvolution'])
570 blacklist(['_', 'gm', '_', 'strokedlines'])
571 if sample_count is not '':
572 gl_msaa_config = gl_prefix + 'msaa' + sample_count
573 blacklist([gl_msaa_config, 'gm', '_', 'imageblurtiled'])
574 blacklist([gl_msaa_config, 'gm', '_', 'imagefiltersbase'])
575
576 match = []
577 if 'Valgrind' in bot: # skia:3021
578 match.append('~Threaded')
579
Ben Wagner6c126422017-06-19 12:45:54 -0400580 if 'Valgrind' in bot and 'PreAbandonGpuContext' in bot:
581 # skia:6575
582 match.append('~multipicturedraw_')
583
Ben Wagnerbb3e7ff2017-04-28 15:28:32 -0400584 if 'CommandBuffer' in bot:
585 # https://crbug.com/697030
586 match.append('~HalfFloatAlphaTextureTest')
587
Cary Clarka7c569d2018-02-14 11:31:25 -0500588 if 'AndroidOne' in bot:
589 match.append('~WritePixels') # skia:4711
590 match.append('~PremulAlphaRoundTrip_Gpu') # skia:7501
Brian Salomonf42a7762018-06-21 11:14:51 -0400591 match.append('~ReimportImageTextureWithMipLevels') # skia:8090
Eric Boren4c7754c2017-04-10 08:19:10 -0400592
Kevin Lubick608c35a2018-01-16 16:15:57 -0500593 if 'Chromecast' in bot:
Kevin Lubick6ea9fdf2018-01-17 08:54:21 -0500594 if 'GPU' in bot:
595 # skia:6687
Kevin Lubick6ea9fdf2018-01-17 08:54:21 -0500596 match.append('~animated-image-blurs')
Ben Wagnerd50a1932018-03-01 09:45:18 -0500597 match.append('~blur_0.01')
598 match.append('~blur_image_filter')
Eric Boren1e00d192018-04-13 15:59:02 -0400599 match.append('~check_small_sigma_offset')
Ben Wagnerd50a1932018-03-01 09:45:18 -0500600 match.append('~imageblur2')
601 match.append('~lighting')
602 match.append('~longpathdash')
603 match.append('~matrixconvolution')
Ben Wagnerdabef9d2018-02-27 16:36:12 -0500604 match.append('~textblobmixedsizes_df')
Ben Wagner98c3c612018-02-26 14:53:30 -0500605 match.append('~textblobrandomfont')
Kevin Lubick608c35a2018-01-16 16:15:57 -0500606 # Blacklisted to avoid OOM (we see DM just end with "broken pipe")
Kevin Lubick608c35a2018-01-16 16:15:57 -0500607 match.append('~bigbitmaprect_')
Kevin Lubick608c35a2018-01-16 16:15:57 -0500608 match.append('~DrawBitmapRect')
Kevin Lubick8684c712018-02-12 15:55:57 -0500609 match.append('~drawbitmaprect')
Ben Wagnerd50a1932018-03-01 09:45:18 -0500610 match.append('~GM_animated-image-blurs')
611 match.append('~ImageFilterBlurLargeImage')
612 match.append('~savelayer_clipmask')
613 match.append('~TextBlobCache')
614 match.append('~verylarge')
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400615
Eric Boren4c7754c2017-04-10 08:19:10 -0400616 if 'GalaxyS6' in bot:
617 match.append('~SpecialImage') # skia:6338
Brian Osmaneee3c092017-06-15 13:25:10 -0400618 match.append('~skbug6653') # skia:6653
Eric Boren4c7754c2017-04-10 08:19:10 -0400619
Eric Boren4c7754c2017-04-10 08:19:10 -0400620 if 'MSAN' in bot:
621 match.extend(['~Once', '~Shared']) # Not sure what's up with these tests.
622
623 if 'TSAN' in bot:
624 match.extend(['~ReadWriteAlpha']) # Flaky on TSAN-covered on nvidia bots.
625 match.extend(['~RGBA4444TextureTest', # Flakier than they are important.
626 '~RGB565TextureTest'])
627
Ben Wagnerdba0bc82017-12-11 13:27:27 -0500628 # By default, we test with GPU threading enabled, unless specifically
629 # disabled.
630 if 'NoGPUThreads' in bot:
631 args.extend(['--gpuThreads', '0'])
632
Greg Daniela86385d2017-06-05 11:34:29 -0400633 if 'Vulkan' in bot and 'Adreno530' in bot:
634 # skia:5777
635 match.extend(['~CopySurface'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400636
Brian Salomon3d86a192018-02-27 16:46:11 -0500637 if 'Vulkan' in bot and 'Adreno' in bot:
638 # skia:7663
639 match.extend(['~WritePixelsNonTextureMSAA_Gpu'])
640 match.extend(['~WritePixelsMSAA_Gpu'])
641
Ben Wagner63457572017-12-21 10:49:58 -0500642 if 'Vulkan' in bot and api.vars.is_linux and 'IntelIris640' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400643 match.extend(['~VkHeapTests']) # skia:6245
644
Kevin Lubickec4e7352018-04-25 07:46:55 -0400645 if api.vars.is_linux and 'IntelIris640' in bot:
646 match.extend(['~GLPrograms']) # skia:7849
647
Ben Wagnerb8427032017-11-18 19:04:25 -0500648 if 'Vulkan' in bot and api.vars.is_linux and 'IntelHD405' in bot:
Ben Wagner32eb5ba2017-11-20 13:46:20 -0500649 # skia:7322
Ben Wagnerb8427032017-11-18 19:04:25 -0500650 blacklist(['vk', 'gm', '_', 'skbug_257'])
Chris Dalton414be9b2018-04-26 14:37:01 -0600651 blacklist(['vk', 'gm', '_', 'filltypespersp'])
Ben Wagnerb8427032017-11-18 19:04:25 -0500652 match.append('~^ClearOp$')
Greg Danielec34a712017-12-06 12:06:26 -0500653 match.append('~^CopySurface$')
654 match.append('~^ImageNewShader_GPU$')
Ben Wagnerb8427032017-11-18 19:04:25 -0500655 match.append('~^InitialTextureClear$')
Greg Danielec34a712017-12-06 12:06:26 -0500656 match.append('~^PinnedImageTest$')
Ben Wagnerb8427032017-11-18 19:04:25 -0500657 match.append('~^ReadPixels_Gpu$')
658 match.append('~^ReadPixels_Texture$')
Greg Danielec34a712017-12-06 12:06:26 -0500659 match.append('~^SRGBReadWritePixels$')
Ben Wagnerb8427032017-11-18 19:04:25 -0500660 match.append('~^VkUploadPixelsTests$')
661 match.append('~^WritePixelsNonTexture_Gpu$')
Brian Salomon3d86a192018-02-27 16:46:11 -0500662 match.append('~^WritePixelsNonTextureMSAA_Gpu$')
Ben Wagnerb8427032017-11-18 19:04:25 -0500663 match.append('~^WritePixels_Gpu$')
Brian Salomon3d86a192018-02-27 16:46:11 -0500664 match.append('~^WritePixelsMSAA_Gpu$')
Ben Wagnerb8427032017-11-18 19:04:25 -0500665
Greg Daniele5b7e6d2018-06-12 10:52:59 -0400666 if 'Vulkan' in bot and 'GTX660' in bot and 'Win' in bot:
667 # skbug.com/8047
668 match.append('~FloatingPointTextureTest$')
669
Ben Wagnerb73cb3f2019-01-04 13:18:10 -0500670 if 'Vulkan' in bot and 'Win10' in bot and 'IntelIris655' in bot:
671 # skia:8659
672 blacklist(['vk', 'gm', '_', 'aarectmodes'])
673 blacklist(['vk', 'gm', '_', 'aaxfermodes'])
674 blacklist(['vk', 'gm', '_', 'crbug_892988'])
675 blacklist(['vk', 'gm', '_', 'dftext'])
676 blacklist(['vk', 'gm', '_', 'dftext_blob_persp'])
677 blacklist(['vk', 'gm', '_', 'dont_clip_to_layer'])
678 blacklist(['vk', 'gm', '_', 'drawregionmodes'])
679 blacklist(['vk', 'gm', '_', 'filterfastbounds'])
680 blacklist(['vk', 'gm', '_', 'fontmgr_iter'])
681 blacklist(['vk', 'gm', '_', 'fontmgr_match'])
682 blacklist(['vk', 'gm', '_', 'fontscalerdistortable'])
683 blacklist(['vk', 'gm', '_', 'gammagradienttext'])
684 blacklist(['vk', 'gm', '_', 'gammatext'])
685 blacklist(['vk', 'gm', '_', 'gradtext'])
686 blacklist(['vk', 'gm', '_', 'hairmodes'])
687 blacklist(['vk', 'gm', '_', 'imagefilters_xfermodes'])
688 blacklist(['vk', 'gm', '_', 'imagefiltersclipped'])
689 blacklist(['vk', 'gm', '_', 'imagefiltersscaled'])
690 blacklist(['vk', 'gm', '_', 'imagefiltersstroked'])
691 blacklist(['vk', 'gm', '_', 'imagefilterstransformed'])
692 blacklist(['vk', 'gm', '_', 'imageresizetiled'])
693 blacklist(['vk', 'gm', '_', 'lcdblendmodes'])
694 blacklist(['vk', 'gm', '_', 'lcdoverlap'])
695 blacklist(['vk', 'gm', '_', 'lcdtext'])
696 blacklist(['vk', 'gm', '_', 'lcdtextsize'])
697 blacklist(['vk', 'gm', '_', 'matriximagefilter'])
698 blacklist(['vk', 'gm', '_', 'resizeimagefilter'])
699 blacklist(['vk', 'gm', '_', 'rotate_imagefilter'])
700 blacklist(['vk', 'gm', '_', 'savelayer_lcdtext'])
701 blacklist(['vk', 'gm', '_', 'shadermaskfilter_image'])
702 blacklist(['vk', 'gm', '_', 'srcmode'])
703 blacklist(['vk', 'gm', '_', 'surfaceprops'])
704 blacklist(['vk', 'gm', '_', 'textblobgeometrychange'])
705 blacklist(['vk', 'gm', '_', 'textbloblooper'])
706 blacklist(['vk', 'gm', '_', 'textblobrandomfont'])
707 blacklist(['vk', 'gm', '_', 'textfilter_color'])
708 blacklist(['vk', 'gm', '_', 'textfilter_image'])
709 blacklist(['vk', 'gm', '_', 'varied_text_clipped_lcd'])
710 blacklist(['vk', 'gm', '_', 'varied_text_ignorable_clip_lcd'])
711 if 'Debug' in bot:
712 blacklist(['vk', 'gm', '_', 'fontscaler'])
713 blacklist(['vk', 'gm', '_', 'mixedtextblobs'])
714 blacklist(['vk', 'gm', '_', 'textblobmixedsizes'])
715 blacklist(['vk', 'gm', '_', 'textblobmixedsizes_df'])
716
Chris Dalton2b937f52018-05-17 10:17:10 -0600717 if 'MoltenVK' in bot:
718 # skbug.com/7959
719 blacklist(['_', 'gm', '_', 'vertices_scaled_shader'])
720 blacklist(['_', 'gm', '_', 'vertices'])
721 match.append('~^InitialTextureClear$')
Chris Dalton2b937f52018-05-17 10:17:10 -0600722 match.append('~^RGB565TextureTest$')
723 match.append('~^RGBA4444TextureTest$')
724 match.append('~^WritePixelsNonTextureMSAA_Gpu$')
Chris Dalton2b937f52018-05-17 10:17:10 -0600725
Robert Phillipsa96a1012018-04-23 10:46:09 -0400726 if 'ANGLE' in bot:
727 # skia:7835
728 match.append('~BlurMaskBiggerThanDest')
729
Ben Wagner0473a312018-08-29 14:15:15 -0400730 if 'IntelIris6100' in bot and 'ANGLE' in bot and 'Release' in bot:
Ben Wagner1c4668d2018-07-23 14:25:02 -0400731 # skia:7376
732 match.append('~^ProcessorOptimizationValidationTest$')
733
Ben Wagnerc6b2e6b2017-10-07 18:57:25 -0400734 if ('IntelIris6100' in bot or 'IntelHD4400' in bot) and 'ANGLE' in bot:
735 # skia:6857
736 blacklist(['angle_d3d9_es2', 'gm', '_', 'lighting'])
737
Kevin Lubickc14e5a72017-08-15 13:22:19 -0400738 if 'PowerVRGX6250' in bot:
739 match.append('~gradients_view_perspective_nodither') #skia:6972
740
Mike Klein3a3fbf12018-01-30 08:08:49 -0500741 if '-arm-' in bot and 'ASAN' in bot:
742 # TODO: can we run with env allocator_may_return_null=1 instead?
743 match.append('~BadImage')
744
Ben Wagner1d8726f2018-02-02 14:47:31 -0500745 if 'Mac' in bot and 'IntelHD6000' in bot:
Ben Wagnerdf430052018-02-08 16:57:04 -0500746 # skia:7574
Ben Wagner1d8726f2018-02-02 14:47:31 -0500747 match.append('~^ProcessorCloneTest$')
748 match.append('~^GrMeshTest$')
749
Ben Wagnerdf430052018-02-08 16:57:04 -0500750 if 'Mac' in bot and 'IntelHD615' in bot:
751 # skia:7603
752 match.append('~^GrMeshTest$')
753
Timothy Liangb1f02f32018-08-10 13:30:26 -0400754 if 'Metal' in bot:
755 # skia:8243
756 match.append('~^ClearOp$')
757 match.append('~^DDLSurfaceCharacterizationTest$')
758 match.append('~^DDLOperatorEqTest$')
759 match.append('~^DeferredProxyTest$')
760 match.append('~^GPUMemorySize$')
761 match.append('~^GrContext_colorTypeSupportedAsImage$')
762 match.append('~^GrContext_colorTypeSupportedAsSurface$')
763 match.append('~^GrContext_maxSurfaceSamplesForColorType$')
764 match.append('~^GrContextFactory_sharedContexts$')
765 match.append('~^GrPipelineDynamicStateTest$')
Timothy Liangb1f02f32018-08-10 13:30:26 -0400766 match.append('~^InitialTextureClear$')
767 match.append('~^PromiseImageTest$')
768 match.append('~^ResourceAllocatorTest$')
769 match.append('~^RGB565TextureTest$')
770 match.append('~^RGBA4444TextureTest$')
771 match.append('~^TransferPixelsTest$')
Timothy Liangb1f02f32018-08-10 13:30:26 -0400772 match.append('~^SurfaceSemaphores$')
773 match.append('~^VertexAttributeCount$')
774 match.append('~^WrappedProxyTest$')
775
Eric Boren4c7754c2017-04-10 08:19:10 -0400776 if blacklisted:
777 args.append('--blacklist')
778 args.extend(blacklisted)
779
780 if match:
781 args.append('--match')
782 args.extend(match)
783
784 # These bots run out of memory running RAW codec tests. Do not run them in
785 # parallel
Ben Wagner2040ed22017-11-22 11:22:22 -0500786 if 'NexusPlayer' in bot or 'Nexus5' in bot or 'Nexus9' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400787 args.append('--noRAW_threading')
788
Yuqian Li84be3ad2017-10-17 10:11:21 -0400789 if 'FSAA' in bot:
790 args.extend(['--analyticAA', 'false', '--deltaAA', 'false'])
791 if 'FAAA' in bot:
792 args.extend(['--deltaAA', 'false', '--forceAnalyticAA'])
793 if 'FDAA' in bot:
794 args.extend(['--deltaAA', '--forceDeltaAA'])
795
Mike Kleinc207da82017-11-10 14:24:34 -0500796 if 'NativeFonts' not in bot:
797 args.append('--nonativeFonts')
798
Mike Klein0c5fdcb2017-11-13 12:40:46 -0500799 if 'GDI' in bot:
800 args.append('--gdi')
801
Robert Phillips9945f762018-10-11 10:05:27 -0400802 if ('QuadroP400' in bot or
803 'Adreno540' in bot or
804 'IntelHD2000' in bot or # gen 6 - sandy bridge
805 'IntelHD4400' in bot or # gen 7 - haswell
806 'IntelHD405' in bot or # gen 8 - cherryview braswell
807 'IntelIris6100' in bot or # gen 8 - broadwell
808 'IntelIris540' in bot or # gen 9 - skylake
809 'IntelIris640' in bot or # gen 9 - kaby lake
Ben Wagnerb73cb3f2019-01-04 13:18:10 -0500810 'IntelIris655' in bot or # gen 9 - coffee lake
Robert Phillips9945f762018-10-11 10:05:27 -0400811 'MaliT760' in bot or
812 'MaliT860' in bot or
813 'MaliT880' in bot):
Robert Phillips8505a0a2018-10-10 12:41:41 -0400814 args.extend(['--reduceOpListSplitting'])
815
Stephan Altmueller74dac542017-09-11 15:32:21 -0400816 # Let's make all bots produce verbose output by default.
817 args.append('--verbose')
Mike Kleinc9089062017-06-26 09:09:32 -0400818
Eric Boren4c7754c2017-04-10 08:19:10 -0400819 return args
820
821
822def key_params(api):
823 """Build a unique key from the builder name (as a list).
824
825 E.g. arch x86 gpu GeForce320M mode MacMini4.1 os Mac10.6
826 """
827 # Don't bother to include role, which is always Test.
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400828 blacklist = ['role', 'test_filter']
Eric Boren4c7754c2017-04-10 08:19:10 -0400829
830 flat = []
831 for k in sorted(api.vars.builder_cfg.keys()):
832 if k not in blacklist:
833 flat.append(k)
834 flat.append(api.vars.builder_cfg[k])
Kevin Lubick3fee9232018-08-24 13:30:34 -0400835
Eric Boren4c7754c2017-04-10 08:19:10 -0400836 return flat
837
838
839def test_steps(api):
840 """Run the DM test."""
Eric Boren72f66682018-05-18 07:36:55 -0400841 b = api.properties['buildername']
Eric Boren4c7754c2017-04-10 08:19:10 -0400842 use_hash_file = False
Eric Boren72f66682018-05-18 07:36:55 -0400843 if upload_dm_results(b):
844 host_dm_dir = str(api.flavor.host_dirs.dm_dir)
845 api.flavor.create_clean_host_dir(api.path['start_dir'].join('test'))
Eric Boren4c7754c2017-04-10 08:19:10 -0400846 device_dm_dir = str(api.flavor.device_dirs.dm_dir)
847 if host_dm_dir != device_dm_dir:
848 api.flavor.create_clean_device_dir(device_dm_dir)
849
850 # Obtain the list of already-generated hashes.
851 hash_filename = 'uninteresting_hashes.txt'
852
Eric Boren4c7754c2017-04-10 08:19:10 -0400853 host_hashes_file = api.vars.tmp_dir.join(hash_filename)
854 hashes_file = api.flavor.device_path_join(
855 api.flavor.device_dirs.tmp_dir, hash_filename)
856 api.run(
857 api.python.inline,
858 'get uninteresting hashes',
859 program="""
860 import contextlib
861 import math
862 import socket
863 import sys
864 import time
865 import urllib2
866
Stephan Altmüller64cc5762018-08-02 08:51:38 +0200867 HASHES_URL = sys.argv[1]
Eric Boren4c7754c2017-04-10 08:19:10 -0400868 RETRIES = 5
869 TIMEOUT = 60
870 WAIT_BASE = 15
871
872 socket.setdefaulttimeout(TIMEOUT)
873 for retry in range(RETRIES):
874 try:
875 with contextlib.closing(
876 urllib2.urlopen(HASHES_URL, timeout=TIMEOUT)) as w:
877 hashes = w.read()
Stephan Altmüller64cc5762018-08-02 08:51:38 +0200878 with open(sys.argv[2], 'w') as f:
Eric Boren4c7754c2017-04-10 08:19:10 -0400879 f.write(hashes)
880 break
881 except Exception as e:
882 print 'Failed to get uninteresting hashes from %s:' % HASHES_URL
883 print e
884 if retry == RETRIES:
885 raise
886 waittime = WAIT_BASE * math.pow(2, retry)
887 print 'Retry in %d seconds.' % waittime
888 time.sleep(waittime)
889 """,
Stephan Altmüller64cc5762018-08-02 08:51:38 +0200890 args=[api.properties['gold_hashes_url'], host_hashes_file],
Eric Boren4c7754c2017-04-10 08:19:10 -0400891 abort_on_failure=False,
892 fail_build_on_failure=False,
893 infra_step=True)
894
895 if api.path.exists(host_hashes_file):
896 api.flavor.copy_file_to_device(host_hashes_file, hashes_file)
897 use_hash_file = True
898
899 # Run DM.
900 properties = [
Eric Boren72f66682018-05-18 07:36:55 -0400901 'gitHash', api.properties['revision'],
Eric Boren9a9e3872017-11-29 12:33:22 -0500902 'builder', api.vars.builder_name,
903 'buildbucket_build_id', api.properties.get('buildbucket_build_id', ''),
Eric Boren4c7754c2017-04-10 08:19:10 -0400904 ]
905 if api.vars.is_trybot:
906 properties.extend([
907 'issue', api.vars.issue,
908 'patchset', api.vars.patchset,
909 'patch_storage', api.vars.patch_storage,
910 ])
Eric Borenf9aa9e52017-04-10 09:56:10 -0400911 properties.extend(['swarming_bot_id', api.vars.swarming_bot_id])
912 properties.extend(['swarming_task_id', api.vars.swarming_task_id])
Eric Boren4c7754c2017-04-10 08:19:10 -0400913
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400914 if 'Chromecast' in api.vars.builder_cfg.get('os', ''):
915 # Due to limited disk space, we only deal with skps and one image.
916 args = [
917 'dm',
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400918 '--resourcePath', api.flavor.device_dirs.resource_dir,
919 '--skps', api.flavor.device_dirs.skp_dir,
920 '--images', api.flavor.device_path_join(
Kevin Lubickc2f3e8d2018-01-24 15:48:26 -0500921 api.flavor.device_dirs.resource_dir, 'images', 'color_wheel.jpg'),
Kevin Lubick608c35a2018-01-16 16:15:57 -0500922 '--nameByHash',
923 '--properties'
924 ] + properties
Kevin Lubick95379eb2018-01-17 11:20:19 -0500925 else:
926 args = [
927 'dm',
928 '--resourcePath', api.flavor.device_dirs.resource_dir,
929 '--skps', api.flavor.device_dirs.skp_dir,
930 '--images', api.flavor.device_path_join(
931 api.flavor.device_dirs.images_dir, 'dm'),
932 '--colorImages', api.flavor.device_path_join(
933 api.flavor.device_dirs.images_dir, 'colorspace'),
934 '--nameByHash',
935 '--properties'
936 ] + properties
937
938 args.extend(['--svgs', api.flavor.device_dirs.svg_dir])
Eric Boren8c172ba2018-07-19 13:27:49 -0400939 if 'Lottie' in api.vars.builder_cfg.get('extra_config', ''):
940 args.extend(['--lotties', api.flavor.device_dirs.lotties_dir])
Kevin Lubick95379eb2018-01-17 11:20:19 -0500941
942 args.append('--key')
Kevin Lubick3fee9232018-08-24 13:30:34 -0400943 keys = key_params(api)
944
945 if 'Lottie' in api.vars.builder_cfg.get('extra_config', ''):
946 keys.extend(['renderer', 'skottie'])
947
948 args.extend(keys)
Kevin Lubick608c35a2018-01-16 16:15:57 -0500949
950 if use_hash_file:
951 args.extend(['--uninterestingHashesFile', hashes_file])
Eric Boren72f66682018-05-18 07:36:55 -0400952 if upload_dm_results(b):
Kevin Lubick608c35a2018-01-16 16:15:57 -0500953 args.extend(['--writePath', api.flavor.device_dirs.dm_dir])
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400954
Eric Boren89cd3572017-06-28 13:50:22 -0400955 args.extend(dm_flags(api, api.vars.builder_name))
Eric Boren4c7754c2017-04-10 08:19:10 -0400956
Eric Boren4c7754c2017-04-10 08:19:10 -0400957 # See skia:2789.
Ben Wagner37491d22017-12-13 13:00:47 -0500958 if 'AbandonGpuContext' in api.vars.extra_tokens:
Eric Boren4c7754c2017-04-10 08:19:10 -0400959 args.append('--abandonGpuContext')
Ben Wagner37491d22017-12-13 13:00:47 -0500960 if 'PreAbandonGpuContext' in api.vars.extra_tokens:
Eric Boren4c7754c2017-04-10 08:19:10 -0400961 args.append('--preAbandonGpuContext')
Ben Wagner37491d22017-12-13 13:00:47 -0500962 if 'ReleaseAndAbandonGpuContext' in api.vars.extra_tokens:
Eric Boren6ec17e32017-04-26 14:25:29 -0400963 args.append('--releaseAndAbandonGpuContext')
Eric Boren4c7754c2017-04-10 08:19:10 -0400964
Ben Wagner5655ba42017-10-02 10:48:32 -0400965 api.run(api.flavor.step, 'dm', cmd=args, abort_on_failure=False)
Eric Boren4c7754c2017-04-10 08:19:10 -0400966
Eric Boren72f66682018-05-18 07:36:55 -0400967 if upload_dm_results(b):
Eric Boren4c7754c2017-04-10 08:19:10 -0400968 # Copy images and JSON to host machine if needed.
969 api.flavor.copy_directory_contents_to_host(
Eric Boren72f66682018-05-18 07:36:55 -0400970 api.flavor.device_dirs.dm_dir, api.flavor.host_dirs.dm_dir)
Eric Boren4c7754c2017-04-10 08:19:10 -0400971
972
borenet1ed2ae42016-07-26 11:52:17 -0700973def RunSteps(api):
Eric Borenb7023162018-05-04 13:46:15 -0400974 api.vars.setup()
975 api.file.ensure_directory('makedirs tmp_dir', api.vars.tmp_dir)
976 api.flavor.setup()
977
Robert Iannucci297a7ef2017-05-12 19:09:38 -0700978 env = {}
Eric Boren4c7754c2017-04-10 08:19:10 -0400979 if 'iOS' in api.vars.builder_name:
980 env['IOS_BUNDLE_ID'] = 'com.google.dm'
Stephan Altmueller63e843d2017-04-25 11:38:38 -0400981 env['IOS_MOUNT_POINT'] = api.vars.slave_dir.join('mnt_iosdevice')
Robert Iannucci297a7ef2017-05-12 19:09:38 -0700982 with api.context(env=env):
Eric Boren4c7754c2017-04-10 08:19:10 -0400983 try:
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400984 if 'Chromecast' in api.vars.builder_name:
985 api.flavor.install(resources=True, skps=True)
Eric Boren8c172ba2018-07-19 13:27:49 -0400986 elif 'Lottie' in api.vars.builder_name:
987 api.flavor.install(resources=True, lotties=True)
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400988 else:
Eric Boren8c172ba2018-07-19 13:27:49 -0400989 api.flavor.install(skps=True, images=True, svgs=True, resources=True)
Eric Boren4c7754c2017-04-10 08:19:10 -0400990 test_steps(api)
991 finally:
992 api.flavor.cleanup_steps()
993 api.run.check_failure()
994
995
Eric Borenf9aa9e52017-04-10 09:56:10 -0400996TEST_BUILDERS = [
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400997 'Test-Android-Clang-AndroidOne-GPU-Mali400MP2-arm-Release-All-Android',
998 'Test-Android-Clang-GalaxyS6-GPU-MaliT760-arm64-Debug-All-Android',
Ben Wagner12e69e72018-07-15 15:12:01 -0400999 ('Test-Android-Clang-GalaxyS6-GPU-MaliT760-arm64-Debug-All'
1000 '-Android_NoGPUThreads'),
Ben Wagner2107bd82018-06-12 14:16:07 -04001001 ('Test-Android-Clang-GalaxyS7_G930FD-GPU-MaliT880-arm64-Release-All'
1002 '-Android_Vulkan'),
Ben Wagner12e69e72018-07-15 15:12:01 -04001003 'Test-Android-Clang-MotoG4-CPU-Snapdragon617-arm-Release-All-Android',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001004 'Test-Android-Clang-NVIDIA_Shield-GPU-TegraX1-arm64-Debug-All-Android_CCPR',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001005 'Test-Android-Clang-Nexus5-GPU-Adreno330-arm-Release-All-Android',
Ben Wagner5cf6d322017-12-07 10:23:07 -05001006 'Test-Android-Clang-Nexus7-CPU-Tegra3-arm-Release-All-Android',
Ben Wagner31629a82018-08-22 13:10:32 -04001007 'Test-Android-Clang-NexusPlayer-GPU-PowerVRG6430-x86-Release-All-Android',
Ben Wagner52423f32017-12-07 10:17:13 -05001008 'Test-Android-Clang-Pixel-GPU-Adreno530-arm64-Debug-All-Android_Vulkan',
Ben Wagner12e69e72018-07-15 15:12:01 -04001009 'Test-Android-Clang-Pixel-GPU-Adreno530-arm-Debug-All-Android_ASAN',
Kevin Lubickd7af1db2017-11-02 12:03:22 -04001010 ('Test-ChromeOS-Clang-AcerChromebookR13Convertible-GPU-PowerVRGX6250-'
1011 'arm-Debug-All'),
Mike Klein54d7b312018-06-27 13:43:51 -04001012 'Test-Chromecast-Clang-Chorizo-CPU-Cortex_A7-arm-Release-All',
1013 'Test-Chromecast-Clang-Chorizo-GPU-Cortex_A7-arm-Release-All',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001014 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All-ASAN',
Mike Kleinc24e0c12018-08-17 13:24:51 -04001015 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All-BonusConfigs',
Kevin Lubick32f318b2017-10-17 13:40:52 -04001016 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-shard_00_10-Coverage',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001017 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All-MSAN',
1018 ('Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All'
Ben Wagner9fb285e2017-10-02 16:53:07 -04001019 '-SK_USE_DISCARDABLE_SCALEDIMAGECACHE'),
Eric Boren8c172ba2018-07-19 13:27:49 -04001020 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Release-All-Lottie',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001021 ('Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Release-All'
Ben Wagner6e0a6b32017-09-26 14:11:15 -04001022 '-SK_FORCE_RASTER_PIPELINE_BLITTER'),
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001023 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Release-All-TSAN',
Ben Wagnerd26e4462018-05-22 10:46:15 -04001024 'Test-Debian9-Clang-GCE-GPU-SwiftShader-x86_64-Release-All-SwiftShader',
Kevin Lubick88611a12018-04-26 09:46:45 -04001025 'Test-Debian9-Clang-NUC5PPYH-GPU-IntelHD405-x86_64-Release-All-Vulkan',
1026 'Test-Debian9-Clang-NUC7i5BNK-GPU-IntelIris640-x86_64-Debug-All-Vulkan',
Jim Van Verth1b6c75c2018-02-16 09:49:08 -05001027 'Test-Mac-Clang-MacBook10.1-GPU-IntelHD615-x86_64-Release-All-NativeFonts',
Ben Wagner7ea54282018-08-22 14:07:48 -04001028 'Test-Mac-Clang-MacBookAir7.2-GPU-IntelHD6000-x86_64-Debug-All',
1029 'Test-Mac-Clang-MacBookPro11.5-CPU-AVX2-x86_64-Release-All',
Greg Danielb95d2782018-07-24 11:35:18 -04001030 'Test-Mac-Clang-MacBookPro11.5-GPU-RadeonHD8870M-x86_64-Debug-All-Metal',
Chris Dalton2b937f52018-05-17 10:17:10 -06001031 ('Test-Mac-Clang-MacBookPro11.5-GPU-RadeonHD8870M-x86_64-Release-All-'
1032 'MoltenVK_Vulkan'),
Ben Wagner7ea54282018-08-22 14:07:48 -04001033 'Test-Mac-Clang-MacMini7.1-GPU-IntelIris5100-x86_64-Debug-All-CommandBuffer',
Ben Wagner9f553932017-11-27 22:18:12 -05001034 'Test-Ubuntu17-Clang-Golo-GPU-QuadroP400-x86_64-Debug-All-Vulkan_Coverage',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001035 ('Test-Ubuntu17-GCC-Golo-GPU-QuadroP400-x86_64-Release-All'
Ben Wagner6e0a6b32017-09-26 14:11:15 -04001036 '-Valgrind_AbandonGpuContext_SK_CPU_LIMIT_SSE41'),
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001037 ('Test-Ubuntu17-GCC-Golo-GPU-QuadroP400-x86_64-Release-All'
Ben Wagner6e0a6b32017-09-26 14:11:15 -04001038 '-Valgrind_PreAbandonGpuContext_SK_CPU_LIMIT_SSE41'),
Eric Borendd8b1fc2018-05-18 09:54:02 -04001039 'Test-Ubuntu17-Clang-Golo-GPU-QuadroP400-x86_64-Debug-All-DDL1',
1040 'Test-Ubuntu17-Clang-Golo-GPU-QuadroP400-x86_64-Debug-All-DDL3',
Eric Boren9f4efd32018-07-20 08:25:42 -04001041 'Test-Ubuntu17-Clang-Golo-GPU-QuadroP400-x86_64-Debug-All-Lottie',
Ben Wagnera4cdfbb2018-08-31 10:20:34 -04001042 'Test-Win10-Clang-Golo-GPU-QuadroP400-x86_64-Release-All-BonusConfigs',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001043 ('Test-Win10-Clang-Golo-GPU-QuadroP400-x86_64-Release-All'
Ben Wagner6e0a6b32017-09-26 14:11:15 -04001044 '-ReleaseAndAbandonGpuContext'),
Ben Wagnerfd66b5f2017-11-15 15:16:27 -05001045 'Test-Win10-Clang-NUC5i7RYH-CPU-AVX2-x86_64-Debug-All-NativeFonts_GDI',
Ben Wagner0473a312018-08-29 14:15:15 -04001046 'Test-Win10-Clang-NUC5i7RYH-GPU-IntelIris6100-x86_64-Release-All-ANGLE',
Ben Wagnerb73cb3f2019-01-04 13:18:10 -05001047 'Test-Win10-Clang-NUC8i5BEK-GPU-IntelIris655-x86_64-Debug-All-Vulkan',
Ben Wagnerb2fd61a2017-10-23 16:01:44 -04001048 'Test-Win10-Clang-NUCD34010WYKH-GPU-IntelHD4400-x86_64-Release-All-ANGLE',
Greg Daniele5b7e6d2018-06-12 10:52:59 -04001049 'Test-Win10-Clang-ShuttleA-GPU-GTX660-x86_64-Release-All-Vulkan',
Ben Wagnerb2fd61a2017-10-23 16:01:44 -04001050 'Test-Win10-Clang-ShuttleC-GPU-GTX960-x86_64-Debug-All-ANGLE',
Ben Wagner78935c22017-11-15 13:21:03 -05001051 'Test-Win2016-Clang-GCE-CPU-AVX2-x86_64-Debug-All-FAAA',
1052 'Test-Win2016-Clang-GCE-CPU-AVX2-x86_64-Debug-All-FDAA',
1053 'Test-Win2016-Clang-GCE-CPU-AVX2-x86_64-Debug-All-FSAA',
Ben Wagner31629a82018-08-22 13:10:32 -04001054 'Test-iOS-Clang-iPadPro-GPU-PowerVRGT7800-arm64-Release-All',
Eric Borenf9aa9e52017-04-10 09:56:10 -04001055]
borenet1ed2ae42016-07-26 11:52:17 -07001056
1057
1058def GenTests(api):
Eric Borenf9aa9e52017-04-10 09:56:10 -04001059 for builder in TEST_BUILDERS:
1060 test = (
1061 api.test(builder) +
1062 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001063 buildbucket_build_id='123454321',
Eric Borenf9aa9e52017-04-10 09:56:10 -04001064 revision='abc123',
1065 path_config='kitchen',
Stephan Altmüller64cc5762018-08-02 08:51:38 +02001066 gold_hashes_url='https://example.com/hashes.txt',
Eric Borenf9aa9e52017-04-10 09:56:10 -04001067 swarm_out_dir='[SWARM_OUT_DIR]') +
1068 api.path.exists(
1069 api.path['start_dir'].join('skia'),
1070 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1071 'skimage', 'VERSION'),
1072 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1073 'skp', 'VERSION'),
1074 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1075 'svg', 'VERSION'),
1076 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
Ben Wagnerf835c222017-04-30 11:14:51 -04001077 ) +
1078 api.step_data('get swarming bot id',
1079 stdout=api.raw_io.output('skia-bot-123')) +
1080 api.step_data('get swarming task id',
1081 stdout=api.raw_io.output('123456'))
Eric Borenf9aa9e52017-04-10 09:56:10 -04001082 )
Eric Borenf9aa9e52017-04-10 09:56:10 -04001083 if 'Win' in builder:
1084 test += api.platform('win', 64)
Eric Boren4c7754c2017-04-10 08:19:10 -04001085
Kevin Lubick2dafbd72017-08-31 10:39:05 -04001086 if 'Chromecast' in builder:
1087 test += api.step_data(
1088 'read chromecast ip',
1089 stdout=api.raw_io.output('192.168.1.2:5555'))
1090
Eric Borenf9aa9e52017-04-10 09:56:10 -04001091 if 'ChromeOS' in builder:
1092 test += api.step_data(
1093 'read chromeos ip',
1094 stdout=api.raw_io.output('{"user_ip":"foo@127.0.0.1"}'))
Eric Boren4c7754c2017-04-10 08:19:10 -04001095
Eric Borenf9aa9e52017-04-10 09:56:10 -04001096 yield test
Eric Boren4c7754c2017-04-10 08:19:10 -04001097
Eric Borendd8b1fc2018-05-18 09:54:02 -04001098 builder = 'Test-Win8-Clang-Golo-CPU-AVX-x86-Debug-All'
Kevin Lubickfe079d42017-04-12 08:31:48 -04001099 yield (
1100 api.test('trybot') +
1101 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001102 buildbucket_build_id='123454321',
Kevin Lubickfe079d42017-04-12 08:31:48 -04001103 revision='abc123',
1104 path_config='kitchen',
Stephan Altmüller64cc5762018-08-02 08:51:38 +02001105 gold_hashes_url='https://example.com/hashes.txt',
Kevin Lubickfe079d42017-04-12 08:31:48 -04001106 swarm_out_dir='[SWARM_OUT_DIR]') +
1107 api.properties(patch_storage='gerrit') +
1108 api.properties.tryserver(
1109 buildername=builder,
1110 gerrit_project='skia',
1111 gerrit_url='https://skia-review.googlesource.com/',
1112 )+
1113 api.path.exists(
1114 api.path['start_dir'].join('skia'),
1115 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1116 'skimage', 'VERSION'),
1117 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1118 'skp', 'VERSION'),
1119 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1120 'svg', 'VERSION'),
1121 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
1122 )
1123 )
1124
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001125 builder = 'Test-Debian9-GCC-GCE-CPU-AVX2-x86_64-Debug-All'
borenet1ed2ae42016-07-26 11:52:17 -07001126 yield (
Eric Boren4c7754c2017-04-10 08:19:10 -04001127 api.test('failed_dm') +
1128 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001129 buildbucket_build_id='123454321',
borenet1ed2ae42016-07-26 11:52:17 -07001130 revision='abc123',
1131 path_config='kitchen',
Stephan Altmüller64cc5762018-08-02 08:51:38 +02001132 gold_hashes_url='https://example.com/hashes.txt',
borenet1ed2ae42016-07-26 11:52:17 -07001133 swarm_out_dir='[SWARM_OUT_DIR]') +
1134 api.path.exists(
Ravi Mistry9bcca6a2016-11-21 16:06:19 -05001135 api.path['start_dir'].join('skia'),
1136 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
Eric Boren4c7754c2017-04-10 08:19:10 -04001137 'skimage', 'VERSION'),
Ravi Mistry9bcca6a2016-11-21 16:06:19 -05001138 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
Eric Boren4c7754c2017-04-10 08:19:10 -04001139 'skp', 'VERSION'),
Ravi Mistry9bcca6a2016-11-21 16:06:19 -05001140 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
Eric Boren4c7754c2017-04-10 08:19:10 -04001141 'svg', 'VERSION'),
Ravi Mistry9bcca6a2016-11-21 16:06:19 -05001142 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
Eric Boren4c7754c2017-04-10 08:19:10 -04001143 ) +
1144 api.step_data('symbolized dm', retcode=1)
1145 )
1146
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001147 builder = 'Test-Android-Clang-Nexus7-GPU-Tegra3-arm-Release-All-Android'
Eric Boren4c7754c2017-04-10 08:19:10 -04001148 yield (
1149 api.test('failed_get_hashes') +
1150 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001151 buildbucket_build_id='123454321',
Eric Boren4c7754c2017-04-10 08:19:10 -04001152 revision='abc123',
1153 path_config='kitchen',
Stephan Altmüller64cc5762018-08-02 08:51:38 +02001154 gold_hashes_url='https://example.com/hashes.txt',
Eric Boren4c7754c2017-04-10 08:19:10 -04001155 swarm_out_dir='[SWARM_OUT_DIR]') +
1156 api.path.exists(
1157 api.path['start_dir'].join('skia'),
1158 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1159 'skimage', 'VERSION'),
1160 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1161 'skp', 'VERSION'),
1162 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1163 'svg', 'VERSION'),
1164 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
1165 ) +
1166 api.step_data('get uninteresting hashes', retcode=1)
1167 )
1168
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001169 builder = ('Test-Android-Clang-NexusPlayer-CPU-Moorefield-x86-'
1170 'Debug-All-Android')
Eric Boren4c7754c2017-04-10 08:19:10 -04001171 yield (
1172 api.test('failed_push') +
1173 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001174 buildbucket_build_id='123454321',
Eric Boren4c7754c2017-04-10 08:19:10 -04001175 revision='abc123',
1176 path_config='kitchen',
Stephan Altmüller64cc5762018-08-02 08:51:38 +02001177 gold_hashes_url='https://example.com/hashes.txt',
Eric Boren4c7754c2017-04-10 08:19:10 -04001178 swarm_out_dir='[SWARM_OUT_DIR]') +
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')
1188 ) +
Kevin Lubickc6f74ca2018-03-01 09:21:38 -05001189 api.step_data('get swarming bot id',
1190 stdout=api.raw_io.output('build123-m2--device5')) +
Eric Boren4c7754c2017-04-10 08:19:10 -04001191 api.step_data('push [START_DIR]/skia/resources/* '+
1192 '/sdcard/revenge_of_the_skiabot/resources', retcode=1)
1193 )
1194
Ben Wagner1a2b3f02017-10-26 15:13:38 -04001195 builder = 'Test-Android-Clang-Nexus7-GPU-Tegra3-arm-Debug-All-Android'
Eric Borencd0a98c2018-06-20 13:23:16 -04001196 retry_step_name = 'adb pull.pull /sdcard/revenge_of_the_skiabot/dm_out'
Eric Boren4c7754c2017-04-10 08:19:10 -04001197 yield (
1198 api.test('failed_pull') +
1199 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001200 buildbucket_build_id='123454321',
Eric Boren4c7754c2017-04-10 08:19:10 -04001201 revision='abc123',
1202 path_config='kitchen',
Stephan Altmüller64cc5762018-08-02 08:51:38 +02001203 gold_hashes_url='https://example.com/hashes.txt',
Eric Boren4c7754c2017-04-10 08:19:10 -04001204 swarm_out_dir='[SWARM_OUT_DIR]') +
1205 api.path.exists(
1206 api.path['start_dir'].join('skia'),
1207 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1208 'skimage', 'VERSION'),
1209 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1210 'skp', 'VERSION'),
1211 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1212 'svg', 'VERSION'),
1213 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
1214 ) +
1215 api.step_data('dm', retcode=1) +
Ben Wagnere7e6e222018-05-25 09:47:37 -04001216 api.step_data(retry_step_name, retcode=1) +
1217 api.step_data(retry_step_name + ' (attempt 2)', retcode=1) +
1218 api.step_data(retry_step_name + ' (attempt 3)', retcode=1)
borenetbfa5b452016-10-19 10:13:32 -07001219 )
Eric Boren053d7a42017-09-15 08:35:31 -04001220
1221 yield (
Kevin Lubickbd27d1d2017-10-13 08:01:49 -04001222 api.test('internal_bot_2') +
1223 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001224 buildbucket_build_id='123454321',
Kevin Lubickbd27d1d2017-10-13 08:01:49 -04001225 revision='abc123',
1226 path_config='kitchen',
1227 swarm_out_dir='[SWARM_OUT_DIR]',
Stephan Altmüller64cc5762018-08-02 08:51:38 +02001228 gold_hashes_url='https://example.com/hashes.txt',
Eric Borenfb20ac42018-04-24 14:48:19 -04001229 internal_hardware_label='2') +
Kevin Lubickbd27d1d2017-10-13 08:01:49 -04001230 api.path.exists(
1231 api.path['start_dir'].join('skia'),
1232 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1233 'skimage', 'VERSION'),
1234 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1235 'skp', 'VERSION'),
1236 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1237 'svg', 'VERSION'),
1238 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
Kevin Lubickd1bbd5f2017-11-21 16:47:16 -05001239 )
Kevin Lubickbd27d1d2017-10-13 08:01:49 -04001240 )
Kevin Lubick82439882018-12-12 15:50:14 -05001241
1242 yield (
1243 api.test('internal_bot_5') +
1244 api.properties(buildername=builder,
1245 buildbucket_build_id='123454321',
1246 revision='abc123',
1247 path_config='kitchen',
1248 swarm_out_dir='[SWARM_OUT_DIR]',
1249 gold_hashes_url='https://example.com/hashes.txt',
1250 internal_hardware_label='5') +
1251 api.path.exists(
1252 api.path['start_dir'].join('skia'),
1253 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1254 'skimage', 'VERSION'),
1255 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1256 'skp', 'VERSION'),
1257 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1258 'svg', 'VERSION'),
1259 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
1260 )
1261 )