blob: d8672610edc2696573b80afa0a848dff070a4d2e [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',
Brian Osman5b4f2d52019-02-05 10:33:05 -050030 'MSRTC',
Eric Boren72f66682018-05-18 07:36:55 -040031 'TSAN',
32 'UBSAN',
33 'Valgrind',
34 ]
35 for s in skip_upload_bots:
36 if s in buildername:
37 return False
38 return True
39
40
Eric Boren89cd3572017-06-28 13:50:22 -040041def dm_flags(api, bot):
Eric Boren4c7754c2017-04-10 08:19:10 -040042 args = []
Brian Osmanf9810662017-08-30 10:02:10 -040043 configs = []
44 blacklisted = []
45
46 def blacklist(quad):
Eric Borencd0a98c2018-06-20 13:23:16 -040047 config, src, options, name = (
48 quad.split(' ') if isinstance(quad, str) else quad)
Brian Osmanf9810662017-08-30 10:02:10 -040049 if (config == '_' or
50 config in configs or
51 (config[0] == '~' and config[1:] in configs)):
52 blacklisted.extend([config, src, options, name])
Eric Boren4c7754c2017-04-10 08:19:10 -040053
Mike Klein97d6a7a2017-07-24 10:37:19 -040054 # We've been spending lots of time writing out and especially uploading
55 # .pdfs, but not doing anything further with them. skia:6821
56 args.extend(['--dont_write', 'pdf'])
57
Eric Boren4c7754c2017-04-10 08:19:10 -040058 # This enables non-deterministic random seeding of the GPU FP optimization
Brian Osman7a34dca2017-04-13 13:40:29 -040059 # test.
Ben Wagner6da8f792017-08-10 12:22:56 -040060 # Not Android due to:
Ben Wagner11ab43c2017-08-09 18:05:59 -040061 # - https://skia.googlesource.com/skia/+/
62 # 5910ed347a638ded8cd4c06dbfda086695df1112/BUILD.gn#160
63 # - https://skia.googlesource.com/skia/+/
64 # ce06e261e68848ae21cac1052abc16bc07b961bf/tests/ProcessorTest.cpp#307
Ben Wagner6da8f792017-08-10 12:22:56 -040065 # Not MSAN due to:
66 # - https://skia.googlesource.com/skia/+/
67 # 0ac06e47269a40c177747310a613d213c95d1d6d/infra/bots/recipe_modules/
68 # flavor/gn_flavor.py#80
69 if 'Android' not in bot and 'MSAN' not in bot:
Ben Wagner11ab43c2017-08-09 18:05:59 -040070 args.append('--randomProcessorTest')
Eric Boren4c7754c2017-04-10 08:19:10 -040071
Robert Phillipscd5d1462019-05-01 18:25:52 -040072 if 'Pixel3' in bot and 'Vulkan' in bot:
73 args.extend(['--dontReduceOpListSplitting'])
74
Mike Klein1cab6b72019-03-18 10:10:37 -050075 thread_limit = None
76 MAIN_THREAD_ONLY = 0
77
Eric Boren4c7754c2017-04-10 08:19:10 -040078 # 32-bit desktop bots tend to run out of memory, because they have relatively
79 # far more cores than RAM (e.g. 32 cores, 3G RAM). Hold them back a bit.
Mike Klein1cab6b72019-03-18 10:10:37 -050080 if '-x86-' in bot:
81 thread_limit = 4
Eric Boren4c7754c2017-04-10 08:19:10 -040082
Mike Klein1cab6b72019-03-18 10:10:37 -050083 # These bots run out of memory easily.
Mike Klein1a5235e2019-03-19 09:49:57 -050084 if 'Chromecast' in bot or 'MotoG4' in bot or 'Nexus7' in bot:
Mike Klein1cab6b72019-03-18 10:10:37 -050085 thread_limit = MAIN_THREAD_ONLY
Mike Klein1a5235e2019-03-19 09:49:57 -050086 if 'NexusPlayer' in bot:
87 thread_limit = 2
Kevin Lubick2dafbd72017-08-31 10:39:05 -040088
Eric Boren4c7754c2017-04-10 08:19:10 -040089 # Avoid issues with dynamically exceeding resource cache limits.
90 if 'Test' in bot and 'DISCARDABLE' in bot:
Mike Klein1cab6b72019-03-18 10:10:37 -050091 thread_limit = MAIN_THREAD_ONLY
Mike Kleindf669812017-06-23 13:30:17 -040092
Mike Klein1cab6b72019-03-18 10:10:37 -050093 if thread_limit is not None:
94 args.extend(['--threads', str(thread_limit)])
Eric Boren4c7754c2017-04-10 08:19:10 -040095
Derek Sollenbergeredfe3df2017-07-19 15:25:24 -040096 # Android's kernel will occasionally attempt to kill our process, using
97 # SIGINT, in an effort to free up resources. If requested, that signal
98 # is ignored and dm will keep attempting to proceed until we actually
99 # exhaust the available resources.
100 if ('NexusPlayer' in bot or
Kevin Lubick608c35a2018-01-16 16:15:57 -0500101 'Chromecast' in bot):
Derek Sollenbergeredfe3df2017-07-19 15:25:24 -0400102 args.append('--ignoreSigInt')
103
Ben Wagner122b3852018-04-20 13:43:23 -0400104 if 'SwiftShader' in api.vars.extra_tokens:
105 configs.extend(['gles', 'glesdft'])
106 args.append('--disableDriverCorrectnessWorkarounds')
107
108 elif api.vars.builder_cfg.get('cpu_or_gpu') == 'CPU':
Ben Wagner32fa5102017-08-10 21:25:55 -0400109 args.append('--nogpu')
110
Mike Kleinc24e0c12018-08-17 13:24:51 -0400111 configs.append('8888')
Ben Wagner32fa5102017-08-10 21:25:55 -0400112
Mike Klein7adfd2f2018-08-21 13:42:53 +0000113 if 'BonusConfigs' in bot or ('SAN' in bot and 'GCE' in bot):
Mike Kleinc24e0c12018-08-17 13:24:51 -0400114 configs.extend([
115 'pdf',
116 'g8', '565',
Mike Kleina705cb92019-05-14 12:33:40 -0500117 'pic-8888', 'tiles_rt-8888', 'serialize-8888',
Mike Kleinc24e0c12018-08-17 13:24:51 -0400118 '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'])
Raul Tambre0362dc22019-05-07 16:42:32 +0300143 if sample_count:
Jim Van Verth240516f2018-02-15 09:55:24 -0500144 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')
Robert Phillipsb1664692019-04-04 12:43:45 -0400186 # skbug.com/7523 - Flaky on various GPUs
Brian Salomon19eaf2d2018-03-19 16:06:44 -0400187 blacklist('gltestthreading gm _ orientation')
Robert Phillipsb1664692019-04-04 12:43:45 -0400188 # These GMs only differ in the low bits
189 blacklist('gltestthreading gm _ stroketext')
190 blacklist('gltestthreading gm _ draw_image_set')
Mike Klein97627d42017-05-11 13:12:48 -0400191
Ben Wagner32fa5102017-08-10 21:25:55 -0400192 # CommandBuffer bot *only* runs the command_buffer config.
193 if 'CommandBuffer' in bot:
194 configs = ['commandbuffer']
195
196 # ANGLE bot *only* runs the angle configs
197 if 'ANGLE' in bot:
198 configs = ['angle_d3d11_es2',
199 'angle_d3d9_es2',
200 'angle_gl_es2',
201 'angle_d3d11_es3']
Ben Wagner18753532019-04-15 10:56:05 -0400202 if 'LenovoYogaC630' in bot:
203 # LenovoYogaC630 only supports D3D11, not GL.
204 configs = ['angle_d3d11_es2',
205 'angle_d3d11_es3']
Raul Tambre0362dc22019-05-07 16:42:32 +0300206 if sample_count:
Ben Wagner32fa5102017-08-10 21:25:55 -0400207 configs.append('angle_d3d11_es2_msaa' + sample_count)
208 configs.append('angle_d3d11_es3_msaa' + sample_count)
Ben Wagner7464a262018-04-19 15:49:18 -0400209 if 'GTX' in bot or 'Quadro' in bot:
210 # See skia:7823 and chromium:693090.
211 configs.append('angle_gl_es3')
Raul Tambre0362dc22019-05-07 16:42:32 +0300212 if sample_count:
Ben Wagner7464a262018-04-19 15:49:18 -0400213 configs.append('angle_gl_es2_msaa' + sample_count)
214 configs.append('angle_gl_es3_msaa' + sample_count)
Ethan Nicholas00543112018-07-31 09:44:36 -0400215 if 'NUC5i7RYH' in bot:
216 # skbug.com/7376
217 blacklist('_ test _ ProcessorCloneTest')
Ben Wagner32fa5102017-08-10 21:25:55 -0400218
Brian Osman27966fe2019-04-25 11:38:07 -0400219 if 'AndroidOne' in bot or ('Nexus' in bot and 'Nexus5x' not in bot) or 'GalaxyS6' in bot:
Brian Osman7b40fcc2019-04-25 09:58:09 -0400220 # skbug.com/9019
221 blacklist('_ test _ ProcessorCloneTest')
222 blacklist('_ test _ GLPrograms')
223 blacklist('_ test _ ProcessorOptimizationValidationTest')
224
Robert Phillips494aa3d2019-04-29 17:10:27 -0400225 # skbug.com/9033 - these devices run out of memory on this test
226 # when opList splitting reduction is enabled
227 if 'GPU' in bot and ('Nexus7' in bot or
228 'NexusPlayer' in bot or
229 'NVIDIA_Shield' in bot or
Robert Phillips39e5af72019-05-01 12:54:37 -0400230 'Nexus5x' in bot or
231 ('Win10' in bot and 'GTX660' in bot and 'Vulkan' in bot) or
232 'Chorizo' in bot):
Robert Phillips494aa3d2019-04-29 17:10:27 -0400233 blacklist(['_', 'gm', '_', 'savelayer_clipmask'])
234
Robert Phillips520f85b2019-05-01 14:57:35 -0400235 # skbug.com/9043 - these devices render this test incorrectly
236 # when opList splitting reduction is enabled
237 if 'GPU' in bot and 'Vulkan' in bot and ('MoltenVK' in bot or
238 'RadeonR9M470X' in bot or
239 'RadeonHD7770' in bot):
240 blacklist(['_', 'tests', '_', 'VkDrawableImportTest'])
241
Ben Wagner32fa5102017-08-10 21:25:55 -0400242 if 'Vulkan' in bot:
Chris Daltonaec79e62018-05-29 12:02:19 -0600243 configs = ['vk']
Greg Danield521ce32019-04-26 09:47:14 -0400244 if 'Android' in bot or 'iOS' in bot:
245 configs.append('vkmsaa4')
246 else:
Greg Daniela30cf842019-04-26 11:29:22 -0400247 # skbug.com/9023
248 if ('IntelHD405' not in bot and
249 'IntelIris655' not in bot):
250 configs.append('vkmsaa8')
Ben Wagner32fa5102017-08-10 21:25:55 -0400251
Greg Danielb95d2782018-07-24 11:35:18 -0400252 if 'Metal' in bot:
253 configs = ['mtl']
254
Brian Salomon7fc52992018-07-12 16:20:23 -0400255 # Test 1010102 on our Linux/NVIDIA bots and the persistent cache config
256 # on the GL bots.
Brian Salomonbfc63c12018-07-16 15:48:22 -0400257 if ('QuadroP400' in bot and 'PreAbandonGpuContext' not in bot and
Brian Salomon6a3957c2018-07-19 17:01:09 -0400258 'TSAN' not in bot and api.vars.is_linux):
Brian Osman10fc6fd2018-03-02 11:01:10 -0500259 if 'Vulkan' in bot:
260 configs.append('vk1010102')
Brian Osman419abf32018-03-02 14:56:15 -0500261 # Decoding transparent images to 1010102 just looks bad
262 blacklist('vk1010102 image _ _')
Brian Osman10fc6fd2018-03-02 11:01:10 -0500263 else:
Brian Osmanf71b0702019-04-03 13:04:16 -0400264 configs.extend(['gl1010102', 'gltestpersistentcache', 'gltestglslcache'])
Brian Osman419abf32018-03-02 14:56:15 -0500265 # Decoding transparent images to 1010102 just looks bad
266 blacklist('gl1010102 image _ _')
Brian Salomon09387592018-07-16 15:34:16 -0400267 # These tests produce slightly different pixels run to run on NV.
Brian Salomon7fc52992018-07-12 16:20:23 -0400268 blacklist('gltestpersistentcache gm _ atlastext')
Brian Salomon09387592018-07-16 15:34:16 -0400269 blacklist('gltestpersistentcache gm _ dftext')
Brian Salomon06e3c3c2018-08-03 12:54:11 -0400270 blacklist('gltestpersistentcache gm _ glyph_pos_h_b')
Brian Osmanf71b0702019-04-03 13:04:16 -0400271 blacklist('gltestglslcache gm _ atlastext')
272 blacklist('gltestglslcache gm _ dftext')
273 blacklist('gltestglslcache gm _ glyph_pos_h_b')
Brian Osman10fc6fd2018-03-02 11:01:10 -0500274
Brian Osmanf9666f52019-03-21 12:35:02 -0400275 # Test rendering to wrapped dsts on a few bots
Brian Osman23885d22018-12-06 09:52:22 -0500276 # Also test 'glenarrow', which hits F16 surfaces and F16 vertex colors.
Ben Wagnera4cdfbb2018-08-31 10:20:34 -0400277 if 'BonusConfigs' in api.vars.extra_tokens:
Brian Osmanf9666f52019-03-21 12:35:02 -0400278 configs = ['glbetex', 'glbert', 'glenarrow']
Brian Salomon7bfe8432018-08-31 13:35:26 -0400279
Ben Wagnera4cdfbb2018-08-31 10:20:34 -0400280
Ben Wagner32fa5102017-08-10 21:25:55 -0400281 if 'ChromeOS' in bot:
282 # Just run GLES for now - maybe add gles_msaa4 in the future
283 configs = ['gles']
284
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400285 if 'Chromecast' in bot:
Kevin Lubick608c35a2018-01-16 16:15:57 -0500286 configs = ['gles']
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400287
Ben Wagner32fa5102017-08-10 21:25:55 -0400288 # Test coverage counting path renderer.
289 if 'CCPR' in bot:
290 configs = [c for c in configs if c == 'gl' or c == 'gles']
Chris Daltona8fbeba2019-03-30 00:31:23 -0600291 args.extend(['--pr', 'ccpr', '--cc', 'true', '--cachePathMasks', 'false'])
Chris Dalton97598a52017-07-18 10:49:07 -0600292
Robert Phillips36150be2018-03-15 13:40:07 -0400293 # DDL is a GPU-only feature
294 if 'DDL1' in bot:
Robert Phillips69eb8352018-04-11 13:45:08 -0400295 # This bot generates gl and vk comparison images for the large skps
296 configs = [c for c in configs if c == 'gl' or c == 'vk']
Robert Phillipsb7fafba2018-03-27 20:49:23 +0000297 args.extend(['--skpViewportSize', "2048"])
Robert Phillips21ca0432018-05-29 15:42:00 -0400298 args.extend(['--pr', '~small'])
Robert Phillips36150be2018-03-15 13:40:07 -0400299 if 'DDL3' in bot:
Robert Phillips69eb8352018-04-11 13:45:08 -0400300 # This bot generates the ddl-gl and ddl-vk images for the
301 # large skps and the gms
Brian Salomon8f40b662018-12-21 17:50:43 -0500302 ddl_configs = ['ddl-' + c for c in configs if c == 'gl' or c == 'vk']
303 ddl2_configs = ['ddl2-' + c for c in configs if c == 'gl' or c == 'vk']
304 configs = ddl_configs + ddl2_configs
Robert Phillipsb7fafba2018-03-27 20:49:23 +0000305 args.extend(['--skpViewportSize', "2048"])
Robert Phillipse43ff782018-04-20 11:59:59 -0400306 args.extend(['--gpuThreads', "0"])
Robert Phillips36150be2018-03-15 13:40:07 -0400307
Eric Boren9f4efd32018-07-20 08:25:42 -0400308 if 'Lottie' in bot:
309 configs = ['gl']
310
Kevin Lubick32f318b2017-10-17 13:40:52 -0400311 tf = api.vars.builder_cfg.get('test_filter')
312 if 'All' != tf:
313 # Expected format: shard_XX_YY
314 parts = tf.split('_')
315 if len(parts) == 3:
316 args.extend(['--shard', parts[1]])
317 args.extend(['--shards', parts[2]])
Eric Boren9599b0f2018-04-17 15:55:57 -0400318 else: # pragma: nocover
319 raise Exception('Invalid task name - bad shards: %s' % tf)
Kevin Lubick32f318b2017-10-17 13:40:52 -0400320
Chris Dalton80ace822017-07-20 10:54:04 -0600321 args.append('--config')
322 args.extend(configs)
323
Eric Boren4c7754c2017-04-10 08:19:10 -0400324 # Run tests, gms, and image decoding tests everywhere.
Eric Boren8c172ba2018-07-19 13:27:49 -0400325 args.extend('--src tests gm image lottie colorImage svg skp'.split(' '))
Ben Wagner0ecc2b7e2017-11-09 22:10:44 -0500326 if api.vars.builder_cfg.get('cpu_or_gpu') == 'GPU':
Chris Dalton7c304ba2017-09-07 11:57:16 -0600327 # Don't run the 'svgparse_*' svgs on GPU.
328 blacklist('_ svg _ svgparse_')
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400329 elif bot == 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All-ASAN':
Chris Dalton7c304ba2017-09-07 11:57:16 -0600330 # Only run the CPU SVGs on 8888.
331 blacklist('~8888 svg _ _')
332 else:
333 # On CPU SVGs we only care about parsing. Only run them on the above bot.
334 args.remove('svg')
Eric Boren4c7754c2017-04-10 08:19:10 -0400335
Mike Klein97627d42017-05-11 13:12:48 -0400336 # Eventually I'd like these to pass, but for now just skip 'em.
337 if 'SK_FORCE_RASTER_PIPELINE_BLITTER' in bot:
338 args.remove('tests')
339
Mike Klein9a01a212017-11-03 12:19:54 -0400340 if 'NativeFonts' in bot: # images won't exercise native font integration :)
341 args.remove('image')
342 args.remove('colorImage')
343
Eric Boren8c172ba2018-07-19 13:27:49 -0400344 def remove_from_args(arg):
345 if arg in args:
346 args.remove(arg)
347
Robert Phillips5f3ce3e2018-04-12 11:09:40 -0400348 if 'DDL' in bot:
349 # The DDL bots just render the large skps and the gms
Eric Boren8c172ba2018-07-19 13:27:49 -0400350 remove_from_args('tests')
351 remove_from_args('image')
352 remove_from_args('colorImage')
353 remove_from_args('svg')
Robert Phillips36150be2018-03-15 13:40:07 -0400354 else:
Robert Phillipsb7fafba2018-03-27 20:49:23 +0000355 # Currently, only the DDL bots render skps
Eric Boren8c172ba2018-07-19 13:27:49 -0400356 remove_from_args('skp')
357
358 if 'Lottie' in api.vars.builder_cfg.get('extra_config', ''):
359 # Only run the lotties on Lottie bots.
360 remove_from_args('tests')
361 remove_from_args('gm')
362 remove_from_args('image')
363 remove_from_args('colorImage')
364 remove_from_args('svg')
365 remove_from_args('skp')
366 else:
367 remove_from_args('lottie')
Robert Phillips36150be2018-03-15 13:40:07 -0400368
Eric Boren4c7754c2017-04-10 08:19:10 -0400369 # TODO: ???
370 blacklist('f16 _ _ dstreadshuffle')
371 blacklist('glsrgb image _ _')
372 blacklist('glessrgb image _ _')
373
Mike Klein515bda62018-01-09 11:21:58 -0500374 # --src image --config g8 means "decode into Gray8", which isn't supported.
375 blacklist('g8 image _ _')
376 blacklist('g8 colorImage _ _')
377
Eric Boren4c7754c2017-04-10 08:19:10 -0400378 if 'Valgrind' in bot:
379 # These take 18+ hours to run.
380 blacklist('pdf gm _ fontmgr_iter')
381 blacklist('pdf _ _ PANO_20121023_214540.jpg')
382 blacklist('pdf skp _ worldjournal')
383 blacklist('pdf skp _ desk_baidu.skp')
384 blacklist('pdf skp _ desk_wikipedia.skp')
385 blacklist('_ svg _ _')
386
387 if 'iOS' in bot:
388 blacklist(gl_prefix + ' skp _ _')
389
390 if 'Mac' in bot or 'iOS' in bot:
391 # CG fails on questionable bmps
392 blacklist('_ image gen_platf rgba32abf.bmp')
393 blacklist('_ image gen_platf rgb24prof.bmp')
394 blacklist('_ image gen_platf rgb24lprof.bmp')
395 blacklist('_ image gen_platf 8bpp-pixeldata-cropped.bmp')
396 blacklist('_ image gen_platf 4bpp-pixeldata-cropped.bmp')
397 blacklist('_ image gen_platf 32bpp-pixeldata-cropped.bmp')
398 blacklist('_ image gen_platf 24bpp-pixeldata-cropped.bmp')
399
400 # CG has unpredictable behavior on this questionable gif
401 # It's probably using uninitialized memory
402 blacklist('_ image gen_platf frame_larger_than_image.gif')
403
404 # CG has unpredictable behavior on incomplete pngs
405 # skbug.com/5774
406 blacklist('_ image gen_platf inc0.png')
407 blacklist('_ image gen_platf inc1.png')
408 blacklist('_ image gen_platf inc2.png')
409 blacklist('_ image gen_platf inc3.png')
410 blacklist('_ image gen_platf inc4.png')
411 blacklist('_ image gen_platf inc5.png')
412 blacklist('_ image gen_platf inc6.png')
413 blacklist('_ image gen_platf inc7.png')
414 blacklist('_ image gen_platf inc8.png')
415 blacklist('_ image gen_platf inc9.png')
416 blacklist('_ image gen_platf inc10.png')
417 blacklist('_ image gen_platf inc11.png')
418 blacklist('_ image gen_platf inc12.png')
419 blacklist('_ image gen_platf inc13.png')
420 blacklist('_ image gen_platf inc14.png')
Leon Scroggins IIIa66ac002018-10-26 09:45:11 -0400421 blacklist('_ image gen_platf incInterlaced.png')
Eric Boren4c7754c2017-04-10 08:19:10 -0400422
Ben Wagner3f67914c2017-11-27 13:02:25 -0500423 # These images fail after Mac 10.13.1 upgrade.
424 blacklist('_ image gen_platf incInterlaced.gif')
425 blacklist('_ image gen_platf inc1.gif')
426 blacklist('_ image gen_platf inc0.gif')
427 blacklist('_ image gen_platf butterfly.gif')
428
Matt Sarett6c50a2e2017-05-01 09:13:05 -0400429 # WIC fails on questionable bmps
Eric Boren4c7754c2017-04-10 08:19:10 -0400430 if 'Win' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400431 blacklist('_ image gen_platf pal8os2v2.bmp')
432 blacklist('_ image gen_platf pal8os2v2-16.bmp')
433 blacklist('_ image gen_platf rgba32abf.bmp')
434 blacklist('_ image gen_platf rgb24prof.bmp')
435 blacklist('_ image gen_platf rgb24lprof.bmp')
436 blacklist('_ image gen_platf 8bpp-pixeldata-cropped.bmp')
437 blacklist('_ image gen_platf 4bpp-pixeldata-cropped.bmp')
438 blacklist('_ image gen_platf 32bpp-pixeldata-cropped.bmp')
439 blacklist('_ image gen_platf 24bpp-pixeldata-cropped.bmp')
Eric Boren4c7754c2017-04-10 08:19:10 -0400440 if 'x86_64' in bot and 'CPU' in bot:
441 # This GM triggers a SkSmallAllocator assert.
442 blacklist('_ gm _ composeshader_bitmap')
443
Matt Sarett6c50a2e2017-05-01 09:13:05 -0400444 if 'Win' in bot or 'Mac' in bot:
Leon Scroggins III3a3cf432017-08-18 13:08:16 -0400445 # WIC and CG fail on arithmetic jpegs
Matt Sarett6c50a2e2017-05-01 09:13:05 -0400446 blacklist('_ image gen_platf testimgari.jpg')
Leon Scroggins III3a3cf432017-08-18 13:08:16 -0400447 # More questionable bmps that fail on Mac, too. skbug.com/6984
448 blacklist('_ image gen_platf rle8-height-negative.bmp')
449 blacklist('_ image gen_platf rle4-height-negative.bmp')
Matt Sarett6c50a2e2017-05-01 09:13:05 -0400450
Leon Scroggins III3abcd822018-10-18 11:28:36 -0400451 # These PNGs have CRC errors. The platform generators seem to draw
452 # uninitialized memory without reporting an error, so skip them to
453 # avoid lots of images on Gold.
454 blacklist('_ image gen_platf error')
455
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400456 if 'Android' in bot or 'iOS' in bot or 'Chromecast' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400457 # This test crashes the N9 (perhaps because of large malloc/frees). It also
458 # is fairly slow and not platform-specific. So we just disable it on all of
459 # Android and iOS. skia:5438
460 blacklist('_ test _ GrShape')
461
Eric Borenfb20ac42018-04-24 14:48:19 -0400462 if api.vars.internal_hardware_label == '2':
Kevin Lubickbd27d1d2017-10-13 08:01:49 -0400463 # skia:7160
464 blacklist('_ test _ SRGBReadWritePixels')
465 blacklist('_ test _ SRGBMipMap')
466
Kevin Lubick82439882018-12-12 15:50:14 -0500467 if api.vars.internal_hardware_label == '5':
468 # http://b/118312149#comment9
469 blacklist('_ test _ SRGBReadWritePixels')
470
Eric Boren4c7754c2017-04-10 08:19:10 -0400471 # skia:4095
Mike Reedfb499092017-06-26 13:53:32 +0000472 bad_serialize_gms = ['bleed_image',
Eric Boren4c7754c2017-04-10 08:19:10 -0400473 'c_gms',
474 'colortype',
475 'colortype_xfermodes',
476 'drawfilter',
477 'fontmgr_bounds_0.75_0',
478 'fontmgr_bounds_1_-0.25',
479 'fontmgr_bounds',
480 'fontmgr_match',
481 'fontmgr_iter',
Michael Ludwiga6a84002019-04-12 15:03:02 -0400482 'imagemasksubset',
483 'wacky_yuv_formats_domain']
Eric Boren4c7754c2017-04-10 08:19:10 -0400484
485 # skia:5589
486 bad_serialize_gms.extend(['bitmapfilters',
487 'bitmapshaders',
488 'bleed',
489 'bleed_alpha_bmp',
490 'bleed_alpha_bmp_shader',
491 'convex_poly_clip',
492 'extractalpha',
493 'filterbitmap_checkerboard_32_32_g8',
494 'filterbitmap_image_mandrill_64',
495 'shadows',
496 'simpleaaclip_aaclip'])
497 # skia:5595
498 bad_serialize_gms.extend(['composeshader_bitmap',
499 'scaled_tilemodes_npot',
500 'scaled_tilemodes'])
501
502 # skia:5778
503 bad_serialize_gms.append('typefacerendering_pfaMac')
504 # skia:5942
505 bad_serialize_gms.append('parsedpaths')
506
507 # these use a custom image generator which doesn't serialize
508 bad_serialize_gms.append('ImageGeneratorExternal_rect')
509 bad_serialize_gms.append('ImageGeneratorExternal_shader')
510
511 # skia:6189
512 bad_serialize_gms.append('shadow_utils')
513
Brian Salomonbe3c1d22018-05-21 12:54:39 -0400514 # skia:7938
515 bad_serialize_gms.append('persp_images')
516
Matt Sarett9f3dcb32017-05-04 08:53:32 -0400517 # Not expected to round trip encoding/decoding.
Mike Klein0b78a692017-10-31 17:31:17 -0400518 bad_serialize_gms.append('all_bitmap_configs')
Matt Sarett9f3dcb32017-05-04 08:53:32 -0400519 bad_serialize_gms.append('makecolorspace')
Mike Klein0a44d5c2018-10-02 11:10:59 -0400520 bad_serialize_gms.append('readpixels')
Brian Salomon0087c832018-10-15 14:48:20 -0400521 bad_serialize_gms.append('draw_image_set_rect_to_rect')
Michael Ludwig390f0cc2019-03-19 09:16:38 -0400522 bad_serialize_gms.append('compositor_quads_shader')
Matt Sarett9f3dcb32017-05-04 08:53:32 -0400523
Brian Salomon7072e222017-11-29 15:12:45 -0500524 # This GM forces a path to be convex. That property doesn't survive
525 # serialization.
526 bad_serialize_gms.append('analytic_antialias_convex')
527
Eric Boren4c7754c2017-04-10 08:19:10 -0400528 for test in bad_serialize_gms:
529 blacklist(['serialize-8888', 'gm', '_', test])
530
531 if 'Mac' not in bot:
532 for test in ['bleed_alpha_image', 'bleed_alpha_image_shader']:
533 blacklist(['serialize-8888', 'gm', '_', test])
534 # It looks like we skip these only for out-of-memory concerns.
Kevin Lubick608c35a2018-01-16 16:15:57 -0500535 if 'Win' in bot or 'Android' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400536 for test in ['verylargebitmap', 'verylarge_picture_image']:
537 blacklist(['serialize-8888', 'gm', '_', test])
Ben Wagner2e4e73f2017-09-08 15:21:44 -0400538 if 'Mac' in bot and 'CPU' in bot:
Ben Wagner38db79f2017-08-23 15:05:50 -0400539 # skia:6992
Ben Wagner6f98bc62017-09-05 16:02:28 -0400540 blacklist(['pic-8888', 'gm', '_', 'encode-platform'])
Ben Wagner38db79f2017-08-23 15:05:50 -0400541 blacklist(['serialize-8888', 'gm', '_', 'encode-platform'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400542
543 # skia:4769
544 for test in ['drawfilter']:
Eric Boren4c7754c2017-04-10 08:19:10 -0400545 blacklist([ 'pic-8888', 'gm', '_', test])
Eric Boren4c7754c2017-04-10 08:19:10 -0400546 # skia:4703
547 for test in ['image-cacherator-from-picture',
548 'image-cacherator-from-raster',
549 'image-cacherator-from-ctable']:
Eric Boren4c7754c2017-04-10 08:19:10 -0400550 blacklist([ 'pic-8888', 'gm', '_', test])
Eric Boren4c7754c2017-04-10 08:19:10 -0400551 blacklist(['serialize-8888', 'gm', '_', test])
552
553 # GM that requires raster-backed canvas
Brian Salomon201700f2019-05-17 12:05:44 -0400554 for test in ['complexclip4_bw', 'complexclip4_aa', 'p3',
555 'async_rescale_and_read_text_up_large',
556 'async_rescale_and_read_text_up',
557 'async_rescale_and_read_text_down',
558 'async_rescale_and_read_dog_up',
559 'async_rescale_and_read_dog_down',
Brian Salomona34e0fc2019-05-17 19:56:59 +0000560 'async_rescale_and_read_rose']:
Eric Boren4c7754c2017-04-10 08:19:10 -0400561 blacklist([ 'pic-8888', 'gm', '_', test])
Eric Boren4c7754c2017-04-10 08:19:10 -0400562 blacklist(['serialize-8888', 'gm', '_', test])
563
564 # GM that not support tiles_rt
565 for test in ['complexclip4_bw', 'complexclip4_aa']:
566 blacklist([ 'tiles_rt-8888', 'gm', '_', test])
567
568 # Extensions for RAW images
Ben Wagner6e0a6b32017-09-26 14:11:15 -0400569 r = ['arw', 'cr2', 'dng', 'nef', 'nrw', 'orf', 'raf', 'rw2', 'pef', 'srw',
570 'ARW', 'CR2', 'DNG', 'NEF', 'NRW', 'ORF', 'RAF', 'RW2', 'PEF', 'SRW']
Eric Boren4c7754c2017-04-10 08:19:10 -0400571
572 # skbug.com/4888
573 # Blacklist RAW images (and a few large PNGs) on GPU bots
574 # until we can resolve failures.
Matt Sarett929bfeb2017-05-22 10:34:41 -0400575 if 'GPU' in bot:
576 blacklist('_ image _ interlaced1.png')
577 blacklist('_ image _ interlaced2.png')
578 blacklist('_ image _ interlaced3.png')
579 for raw_ext in r:
580 blacklist('_ image _ .%s' % raw_ext)
581
582 # Blacklist memory intensive tests on 32-bit bots.
Ben Wagnerfd66b5f2017-11-15 15:16:27 -0500583 if ('Win8' in bot or 'Win2016' in bot) and 'x86-' in bot:
Matt Sarett929bfeb2017-05-22 10:34:41 -0400584 blacklist('_ image f16 _')
Matt Sarett112565e2017-05-22 13:45:15 -0400585 blacklist('_ image _ abnormal.wbmp')
Eric Boren4c7754c2017-04-10 08:19:10 -0400586 blacklist('_ image _ interlaced1.png')
587 blacklist('_ image _ interlaced2.png')
588 blacklist('_ image _ interlaced3.png')
589 for raw_ext in r:
590 blacklist('_ image _ .%s' % raw_ext)
591
Ben Wagner3f330692017-12-07 15:14:54 -0500592 if 'Nexus5' in bot and 'GPU' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400593 # skia:5876
594 blacklist(['_', 'gm', '_', 'encode-platform'])
595
596 if 'AndroidOne-GPU' in bot: # skia:4697, skia:4704, skia:4694, skia:4705
597 blacklist(['_', 'gm', '_', 'bigblurs'])
598 blacklist(['_', 'gm', '_', 'bleed'])
599 blacklist(['_', 'gm', '_', 'bleed_alpha_bmp'])
600 blacklist(['_', 'gm', '_', 'bleed_alpha_bmp_shader'])
601 blacklist(['_', 'gm', '_', 'bleed_alpha_image'])
602 blacklist(['_', 'gm', '_', 'bleed_alpha_image_shader'])
603 blacklist(['_', 'gm', '_', 'bleed_image'])
604 blacklist(['_', 'gm', '_', 'dropshadowimagefilter'])
605 blacklist(['_', 'gm', '_', 'filterfastbounds'])
606 blacklist([gl_prefix, 'gm', '_', 'imageblurtiled'])
607 blacklist(['_', 'gm', '_', 'imagefiltersclipped'])
608 blacklist(['_', 'gm', '_', 'imagefiltersscaled'])
609 blacklist(['_', 'gm', '_', 'imageresizetiled'])
610 blacklist(['_', 'gm', '_', 'matrixconvolution'])
611 blacklist(['_', 'gm', '_', 'strokedlines'])
Raul Tambre0362dc22019-05-07 16:42:32 +0300612 if sample_count:
Eric Boren4c7754c2017-04-10 08:19:10 -0400613 gl_msaa_config = gl_prefix + 'msaa' + sample_count
614 blacklist([gl_msaa_config, 'gm', '_', 'imageblurtiled'])
615 blacklist([gl_msaa_config, 'gm', '_', 'imagefiltersbase'])
616
617 match = []
618 if 'Valgrind' in bot: # skia:3021
619 match.append('~Threaded')
620
Ben Wagner6c126422017-06-19 12:45:54 -0400621 if 'Valgrind' in bot and 'PreAbandonGpuContext' in bot:
622 # skia:6575
623 match.append('~multipicturedraw_')
624
Ben Wagnerbb3e7ff2017-04-28 15:28:32 -0400625 if 'CommandBuffer' in bot:
626 # https://crbug.com/697030
627 match.append('~HalfFloatAlphaTextureTest')
628
Cary Clarka7c569d2018-02-14 11:31:25 -0500629 if 'AndroidOne' in bot:
630 match.append('~WritePixels') # skia:4711
631 match.append('~PremulAlphaRoundTrip_Gpu') # skia:7501
Brian Salomonf42a7762018-06-21 11:14:51 -0400632 match.append('~ReimportImageTextureWithMipLevels') # skia:8090
Eric Boren4c7754c2017-04-10 08:19:10 -0400633
Kevin Lubick608c35a2018-01-16 16:15:57 -0500634 if 'Chromecast' in bot:
Kevin Lubick6ea9fdf2018-01-17 08:54:21 -0500635 if 'GPU' in bot:
636 # skia:6687
Kevin Lubick6ea9fdf2018-01-17 08:54:21 -0500637 match.append('~animated-image-blurs')
Ben Wagnerd50a1932018-03-01 09:45:18 -0500638 match.append('~blur_0.01')
639 match.append('~blur_image_filter')
Eric Boren1e00d192018-04-13 15:59:02 -0400640 match.append('~check_small_sigma_offset')
Ben Wagnerd50a1932018-03-01 09:45:18 -0500641 match.append('~imageblur2')
642 match.append('~lighting')
643 match.append('~longpathdash')
644 match.append('~matrixconvolution')
Ben Wagnerdabef9d2018-02-27 16:36:12 -0500645 match.append('~textblobmixedsizes_df')
Ben Wagner98c3c612018-02-26 14:53:30 -0500646 match.append('~textblobrandomfont')
Kevin Lubick608c35a2018-01-16 16:15:57 -0500647 # Blacklisted to avoid OOM (we see DM just end with "broken pipe")
Kevin Lubick608c35a2018-01-16 16:15:57 -0500648 match.append('~bigbitmaprect_')
Kevin Lubick608c35a2018-01-16 16:15:57 -0500649 match.append('~DrawBitmapRect')
Kevin Lubick8684c712018-02-12 15:55:57 -0500650 match.append('~drawbitmaprect')
Ben Wagnerd50a1932018-03-01 09:45:18 -0500651 match.append('~GM_animated-image-blurs')
652 match.append('~ImageFilterBlurLargeImage')
653 match.append('~savelayer_clipmask')
654 match.append('~TextBlobCache')
655 match.append('~verylarge')
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400656
Eric Boren4c7754c2017-04-10 08:19:10 -0400657 if 'GalaxyS6' in bot:
658 match.append('~SpecialImage') # skia:6338
Brian Osmaneee3c092017-06-15 13:25:10 -0400659 match.append('~skbug6653') # skia:6653
Eric Boren4c7754c2017-04-10 08:19:10 -0400660
Eric Boren4c7754c2017-04-10 08:19:10 -0400661 if 'MSAN' in bot:
662 match.extend(['~Once', '~Shared']) # Not sure what's up with these tests.
663
664 if 'TSAN' in bot:
665 match.extend(['~ReadWriteAlpha']) # Flaky on TSAN-covered on nvidia bots.
666 match.extend(['~RGBA4444TextureTest', # Flakier than they are important.
667 '~RGB565TextureTest'])
668
Ben Wagnerdba0bc82017-12-11 13:27:27 -0500669 # By default, we test with GPU threading enabled, unless specifically
670 # disabled.
671 if 'NoGPUThreads' in bot:
672 args.extend(['--gpuThreads', '0'])
673
Greg Daniela86385d2017-06-05 11:34:29 -0400674 if 'Vulkan' in bot and 'Adreno530' in bot:
675 # skia:5777
676 match.extend(['~CopySurface'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400677
Brian Salomon3d86a192018-02-27 16:46:11 -0500678 if 'Vulkan' in bot and 'Adreno' in bot:
679 # skia:7663
680 match.extend(['~WritePixelsNonTextureMSAA_Gpu'])
681 match.extend(['~WritePixelsMSAA_Gpu'])
682
Ben Wagner63457572017-12-21 10:49:58 -0500683 if 'Vulkan' in bot and api.vars.is_linux and 'IntelIris640' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400684 match.extend(['~VkHeapTests']) # skia:6245
685
Kevin Lubickec4e7352018-04-25 07:46:55 -0400686 if api.vars.is_linux and 'IntelIris640' in bot:
687 match.extend(['~GLPrograms']) # skia:7849
688
Ben Wagnerb8427032017-11-18 19:04:25 -0500689 if 'Vulkan' in bot and api.vars.is_linux and 'IntelHD405' in bot:
Ben Wagner32eb5ba2017-11-20 13:46:20 -0500690 # skia:7322
Ben Wagnerb8427032017-11-18 19:04:25 -0500691 blacklist(['vk', 'gm', '_', 'skbug_257'])
Chris Dalton414be9b2018-04-26 14:37:01 -0600692 blacklist(['vk', 'gm', '_', 'filltypespersp'])
Ben Wagnerb8427032017-11-18 19:04:25 -0500693 match.append('~^ClearOp$')
Greg Danielec34a712017-12-06 12:06:26 -0500694 match.append('~^CopySurface$')
695 match.append('~^ImageNewShader_GPU$')
Ben Wagnerb8427032017-11-18 19:04:25 -0500696 match.append('~^InitialTextureClear$')
Greg Danielec34a712017-12-06 12:06:26 -0500697 match.append('~^PinnedImageTest$')
Ben Wagnerb8427032017-11-18 19:04:25 -0500698 match.append('~^ReadPixels_Gpu$')
699 match.append('~^ReadPixels_Texture$')
Greg Danielec34a712017-12-06 12:06:26 -0500700 match.append('~^SRGBReadWritePixels$')
Ben Wagnerb8427032017-11-18 19:04:25 -0500701 match.append('~^VkUploadPixelsTests$')
702 match.append('~^WritePixelsNonTexture_Gpu$')
Brian Salomon3d86a192018-02-27 16:46:11 -0500703 match.append('~^WritePixelsNonTextureMSAA_Gpu$')
Ben Wagnerb8427032017-11-18 19:04:25 -0500704 match.append('~^WritePixels_Gpu$')
Brian Salomon3d86a192018-02-27 16:46:11 -0500705 match.append('~^WritePixelsMSAA_Gpu$')
Ben Wagnerb8427032017-11-18 19:04:25 -0500706
Greg Daniele5b7e6d2018-06-12 10:52:59 -0400707 if 'Vulkan' in bot and 'GTX660' in bot and 'Win' in bot:
708 # skbug.com/8047
709 match.append('~FloatingPointTextureTest$')
710
Ben Wagnerb73cb3f2019-01-04 13:18:10 -0500711 if 'Vulkan' in bot and 'Win10' in bot and 'IntelIris655' in bot:
Michael Ludwigbeb7cd22019-04-08 11:11:42 -0400712 # skia:8961
713 blacklist(['vk', 'gm', '_', 'savelayer_clipmask'])
Ben Wagnerb73cb3f2019-01-04 13:18:10 -0500714 # skia:8659
715 blacklist(['vk', 'gm', '_', 'aarectmodes'])
716 blacklist(['vk', 'gm', '_', 'aaxfermodes'])
Michael Ludwig390f0cc2019-03-19 09:16:38 -0400717 blacklist(['vk', 'gm', '_', 'compositor_quads_filter'])
Ben Wagnerb73cb3f2019-01-04 13:18:10 -0500718 blacklist(['vk', 'gm', '_', 'crbug_892988'])
719 blacklist(['vk', 'gm', '_', 'dftext'])
720 blacklist(['vk', 'gm', '_', 'dftext_blob_persp'])
721 blacklist(['vk', 'gm', '_', 'dont_clip_to_layer'])
722 blacklist(['vk', 'gm', '_', 'drawregionmodes'])
723 blacklist(['vk', 'gm', '_', 'filterfastbounds'])
724 blacklist(['vk', 'gm', '_', 'fontmgr_iter'])
725 blacklist(['vk', 'gm', '_', 'fontmgr_match'])
Jim Van Verth8fc1eb22019-02-22 16:04:21 -0500726 blacklist(['vk', 'gm', '_', 'fontscaler'])
Ben Wagnerb73cb3f2019-01-04 13:18:10 -0500727 blacklist(['vk', 'gm', '_', 'fontscalerdistortable'])
728 blacklist(['vk', 'gm', '_', 'gammagradienttext'])
729 blacklist(['vk', 'gm', '_', 'gammatext'])
730 blacklist(['vk', 'gm', '_', 'gradtext'])
731 blacklist(['vk', 'gm', '_', 'hairmodes'])
732 blacklist(['vk', 'gm', '_', 'imagefilters_xfermodes'])
733 blacklist(['vk', 'gm', '_', 'imagefiltersclipped'])
734 blacklist(['vk', 'gm', '_', 'imagefiltersscaled'])
735 blacklist(['vk', 'gm', '_', 'imagefiltersstroked'])
736 blacklist(['vk', 'gm', '_', 'imagefilterstransformed'])
737 blacklist(['vk', 'gm', '_', 'imageresizetiled'])
738 blacklist(['vk', 'gm', '_', 'lcdblendmodes'])
739 blacklist(['vk', 'gm', '_', 'lcdoverlap'])
740 blacklist(['vk', 'gm', '_', 'lcdtext'])
741 blacklist(['vk', 'gm', '_', 'lcdtextsize'])
742 blacklist(['vk', 'gm', '_', 'matriximagefilter'])
743 blacklist(['vk', 'gm', '_', 'resizeimagefilter'])
744 blacklist(['vk', 'gm', '_', 'rotate_imagefilter'])
745 blacklist(['vk', 'gm', '_', 'savelayer_lcdtext'])
746 blacklist(['vk', 'gm', '_', 'shadermaskfilter_image'])
747 blacklist(['vk', 'gm', '_', 'srcmode'])
748 blacklist(['vk', 'gm', '_', 'surfaceprops'])
749 blacklist(['vk', 'gm', '_', 'textblobgeometrychange'])
750 blacklist(['vk', 'gm', '_', 'textbloblooper'])
751 blacklist(['vk', 'gm', '_', 'textblobrandomfont'])
752 blacklist(['vk', 'gm', '_', 'textfilter_color'])
753 blacklist(['vk', 'gm', '_', 'textfilter_image'])
Ben Wagner59fceb22019-01-10 12:18:27 -0500754 blacklist(['vk', 'gm', '_', 'tilemodes'])
Ben Wagnerb73cb3f2019-01-04 13:18:10 -0500755 blacklist(['vk', 'gm', '_', 'varied_text_clipped_lcd'])
756 blacklist(['vk', 'gm', '_', 'varied_text_ignorable_clip_lcd'])
757 if 'Debug' in bot:
Ben Wagnerb73cb3f2019-01-04 13:18:10 -0500758 blacklist(['vk', 'gm', '_', 'mixedtextblobs'])
759 blacklist(['vk', 'gm', '_', 'textblobmixedsizes'])
760 blacklist(['vk', 'gm', '_', 'textblobmixedsizes_df'])
761
Chris Dalton2b937f52018-05-17 10:17:10 -0600762 if 'MoltenVK' in bot:
763 # skbug.com/7959
764 blacklist(['_', 'gm', '_', 'vertices_scaled_shader'])
765 blacklist(['_', 'gm', '_', 'vertices'])
766 match.append('~^InitialTextureClear$')
Chris Dalton2b937f52018-05-17 10:17:10 -0600767 match.append('~^RGB565TextureTest$')
768 match.append('~^RGBA4444TextureTest$')
Jim Van Verth3bc37fd2019-02-22 14:08:01 -0500769 match.append('~^TextureIdleProcFlushTest$')
Robert Phillips55863792019-04-04 16:48:22 -0400770 match.append('~^TextureStripAtlasManagerColorFilterTest$')
Chris Dalton2b937f52018-05-17 10:17:10 -0600771 match.append('~^WritePixelsNonTextureMSAA_Gpu$')
Brian Salomondfcaaa92019-05-13 13:43:44 -0400772 match.append('~^AsyncReadPixels$')
Chris Dalton2b937f52018-05-17 10:17:10 -0600773
Robert Phillipsa96a1012018-04-23 10:46:09 -0400774 if 'ANGLE' in bot:
775 # skia:7835
776 match.append('~BlurMaskBiggerThanDest')
777
Ben Wagner0473a312018-08-29 14:15:15 -0400778 if 'IntelIris6100' in bot and 'ANGLE' in bot and 'Release' in bot:
Ben Wagner1c4668d2018-07-23 14:25:02 -0400779 # skia:7376
780 match.append('~^ProcessorOptimizationValidationTest$')
781
Ben Wagnerc6b2e6b2017-10-07 18:57:25 -0400782 if ('IntelIris6100' in bot or 'IntelHD4400' in bot) and 'ANGLE' in bot:
783 # skia:6857
784 blacklist(['angle_d3d9_es2', 'gm', '_', 'lighting'])
785
Michael Ludwig9a568752019-03-14 16:31:45 -0400786 if 'Chorizo' in bot:
787 # skia:8869
788 blacklist(['_', 'gm', '_', 'compositor_quads_filter'])
789
Kevin Lubickc14e5a72017-08-15 13:22:19 -0400790 if 'PowerVRGX6250' in bot:
791 match.append('~gradients_view_perspective_nodither') #skia:6972
792
Mike Klein3a3fbf12018-01-30 08:08:49 -0500793 if '-arm-' in bot and 'ASAN' in bot:
794 # TODO: can we run with env allocator_may_return_null=1 instead?
795 match.append('~BadImage')
796
Ben Wagner1d8726f2018-02-02 14:47:31 -0500797 if 'Mac' in bot and 'IntelHD6000' in bot:
Ben Wagnerdf430052018-02-08 16:57:04 -0500798 # skia:7574
Ben Wagner1d8726f2018-02-02 14:47:31 -0500799 match.append('~^ProcessorCloneTest$')
800 match.append('~^GrMeshTest$')
801
Ben Wagnerdf430052018-02-08 16:57:04 -0500802 if 'Mac' in bot and 'IntelHD615' in bot:
803 # skia:7603
804 match.append('~^GrMeshTest$')
805
Leon Scroggins III30d15e62019-02-12 16:09:50 -0500806 if 'Wuffs' in api.vars.extra_tokens:
807 # skia:8750
808 blacklist(['_', 'tests', '_', 'Codec_partial'])
809 # skia:8762
810 blacklist(['_', 'tests', '_', 'Codec_gif'])
811
Ben Wagner18753532019-04-15 10:56:05 -0400812 if 'LenovoYogaC630' in bot and 'ANGLE' in api.vars.extra_tokens:
813 # skia:8976
814 blacklist(['_', 'tests', '_', 'GrDefaultPathRendererTest'])
815
Eric Boren4c7754c2017-04-10 08:19:10 -0400816 if blacklisted:
817 args.append('--blacklist')
818 args.extend(blacklisted)
819
820 if match:
821 args.append('--match')
822 args.extend(match)
823
824 # These bots run out of memory running RAW codec tests. Do not run them in
825 # parallel
Ben Wagner2040ed22017-11-22 11:22:22 -0500826 if 'NexusPlayer' in bot or 'Nexus5' in bot or 'Nexus9' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400827 args.append('--noRAW_threading')
828
Yuqian Li84be3ad2017-10-17 10:11:21 -0400829 if 'FSAA' in bot:
Mike Kleine5acd752019-03-22 09:57:16 -0500830 args.extend(['--analyticAA', 'false'])
Yuqian Li84be3ad2017-10-17 10:11:21 -0400831 if 'FAAA' in bot:
Mike Kleine5acd752019-03-22 09:57:16 -0500832 args.extend(['--forceAnalyticAA'])
Yuqian Li84be3ad2017-10-17 10:11:21 -0400833
Mike Kleinc207da82017-11-10 14:24:34 -0500834 if 'NativeFonts' not in bot:
835 args.append('--nonativeFonts')
836
Mike Klein0c5fdcb2017-11-13 12:40:46 -0500837 if 'GDI' in bot:
838 args.append('--gdi')
839
Stephan Altmueller74dac542017-09-11 15:32:21 -0400840 # Let's make all bots produce verbose output by default.
841 args.append('--verbose')
Mike Kleinc9089062017-06-26 09:09:32 -0400842
Eric Boren4c7754c2017-04-10 08:19:10 -0400843 return args
844
845
846def key_params(api):
847 """Build a unique key from the builder name (as a list).
848
849 E.g. arch x86 gpu GeForce320M mode MacMini4.1 os Mac10.6
850 """
851 # Don't bother to include role, which is always Test.
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400852 blacklist = ['role', 'test_filter']
Eric Boren4c7754c2017-04-10 08:19:10 -0400853
854 flat = []
855 for k in sorted(api.vars.builder_cfg.keys()):
856 if k not in blacklist:
857 flat.append(k)
858 flat.append(api.vars.builder_cfg[k])
Kevin Lubick3fee9232018-08-24 13:30:34 -0400859
Eric Boren4c7754c2017-04-10 08:19:10 -0400860 return flat
861
862
863def test_steps(api):
864 """Run the DM test."""
Eric Boren72f66682018-05-18 07:36:55 -0400865 b = api.properties['buildername']
Eric Boren4c7754c2017-04-10 08:19:10 -0400866 use_hash_file = False
Eric Boren72f66682018-05-18 07:36:55 -0400867 if upload_dm_results(b):
868 host_dm_dir = str(api.flavor.host_dirs.dm_dir)
869 api.flavor.create_clean_host_dir(api.path['start_dir'].join('test'))
Eric Boren4c7754c2017-04-10 08:19:10 -0400870 device_dm_dir = str(api.flavor.device_dirs.dm_dir)
871 if host_dm_dir != device_dm_dir:
872 api.flavor.create_clean_device_dir(device_dm_dir)
873
874 # Obtain the list of already-generated hashes.
875 hash_filename = 'uninteresting_hashes.txt'
876
Eric Boren4c7754c2017-04-10 08:19:10 -0400877 host_hashes_file = api.vars.tmp_dir.join(hash_filename)
878 hashes_file = api.flavor.device_path_join(
879 api.flavor.device_dirs.tmp_dir, hash_filename)
880 api.run(
881 api.python.inline,
882 'get uninteresting hashes',
883 program="""
884 import contextlib
885 import math
886 import socket
887 import sys
888 import time
889 import urllib2
890
Stephan Altmüller64cc5762018-08-02 08:51:38 +0200891 HASHES_URL = sys.argv[1]
Eric Boren4c7754c2017-04-10 08:19:10 -0400892 RETRIES = 5
893 TIMEOUT = 60
894 WAIT_BASE = 15
895
896 socket.setdefaulttimeout(TIMEOUT)
897 for retry in range(RETRIES):
898 try:
899 with contextlib.closing(
900 urllib2.urlopen(HASHES_URL, timeout=TIMEOUT)) as w:
901 hashes = w.read()
Stephan Altmüller64cc5762018-08-02 08:51:38 +0200902 with open(sys.argv[2], 'w') as f:
Eric Boren4c7754c2017-04-10 08:19:10 -0400903 f.write(hashes)
904 break
905 except Exception as e:
906 print 'Failed to get uninteresting hashes from %s:' % HASHES_URL
907 print e
908 if retry == RETRIES:
909 raise
910 waittime = WAIT_BASE * math.pow(2, retry)
911 print 'Retry in %d seconds.' % waittime
912 time.sleep(waittime)
913 """,
Stephan Altmüller64cc5762018-08-02 08:51:38 +0200914 args=[api.properties['gold_hashes_url'], host_hashes_file],
Eric Boren4c7754c2017-04-10 08:19:10 -0400915 abort_on_failure=False,
916 fail_build_on_failure=False,
917 infra_step=True)
918
919 if api.path.exists(host_hashes_file):
920 api.flavor.copy_file_to_device(host_hashes_file, hashes_file)
921 use_hash_file = True
922
923 # Run DM.
924 properties = [
Eric Boren72f66682018-05-18 07:36:55 -0400925 'gitHash', api.properties['revision'],
Eric Boren9a9e3872017-11-29 12:33:22 -0500926 'builder', api.vars.builder_name,
927 'buildbucket_build_id', api.properties.get('buildbucket_build_id', ''),
Eric Boren113cba82019-02-26 13:52:43 -0500928 'task_id', api.properties['task_id'],
Eric Boren4c7754c2017-04-10 08:19:10 -0400929 ]
930 if api.vars.is_trybot:
931 properties.extend([
932 'issue', api.vars.issue,
933 'patchset', api.vars.patchset,
934 'patch_storage', api.vars.patch_storage,
935 ])
Eric Borenf9aa9e52017-04-10 09:56:10 -0400936 properties.extend(['swarming_bot_id', api.vars.swarming_bot_id])
937 properties.extend(['swarming_task_id', api.vars.swarming_task_id])
Eric Boren4c7754c2017-04-10 08:19:10 -0400938
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400939 if 'Chromecast' in api.vars.builder_cfg.get('os', ''):
940 # Due to limited disk space, we only deal with skps and one image.
941 args = [
942 'dm',
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400943 '--resourcePath', api.flavor.device_dirs.resource_dir,
944 '--skps', api.flavor.device_dirs.skp_dir,
945 '--images', api.flavor.device_path_join(
Kevin Lubickc2f3e8d2018-01-24 15:48:26 -0500946 api.flavor.device_dirs.resource_dir, 'images', 'color_wheel.jpg'),
Kevin Lubick608c35a2018-01-16 16:15:57 -0500947 '--nameByHash',
Robert Phillips34703482019-05-02 09:58:54 -0400948 '--dontReduceOpListSplitting',
Kevin Lubick608c35a2018-01-16 16:15:57 -0500949 '--properties'
950 ] + properties
Kevin Lubick95379eb2018-01-17 11:20:19 -0500951 else:
952 args = [
953 'dm',
954 '--resourcePath', api.flavor.device_dirs.resource_dir,
955 '--skps', api.flavor.device_dirs.skp_dir,
956 '--images', api.flavor.device_path_join(
957 api.flavor.device_dirs.images_dir, 'dm'),
958 '--colorImages', api.flavor.device_path_join(
959 api.flavor.device_dirs.images_dir, 'colorspace'),
960 '--nameByHash',
961 '--properties'
962 ] + properties
963
964 args.extend(['--svgs', api.flavor.device_dirs.svg_dir])
Eric Boren8c172ba2018-07-19 13:27:49 -0400965 if 'Lottie' in api.vars.builder_cfg.get('extra_config', ''):
966 args.extend(['--lotties', api.flavor.device_dirs.lotties_dir])
Kevin Lubick95379eb2018-01-17 11:20:19 -0500967
968 args.append('--key')
Kevin Lubick3fee9232018-08-24 13:30:34 -0400969 keys = key_params(api)
970
971 if 'Lottie' in api.vars.builder_cfg.get('extra_config', ''):
972 keys.extend(['renderer', 'skottie'])
Ben Wagner58a2e3d2019-02-08 13:01:40 -0500973 if 'DDL' in api.vars.builder_cfg.get('extra_config', ''):
974 # 'DDL' style means "--skpViewportSize 2048 --pr ~small"
975 keys.extend(['style', 'DDL'])
976 else:
977 keys.extend(['style', 'default'])
Kevin Lubick3fee9232018-08-24 13:30:34 -0400978
979 args.extend(keys)
Kevin Lubick608c35a2018-01-16 16:15:57 -0500980
981 if use_hash_file:
982 args.extend(['--uninterestingHashesFile', hashes_file])
Eric Boren72f66682018-05-18 07:36:55 -0400983 if upload_dm_results(b):
Kevin Lubick608c35a2018-01-16 16:15:57 -0500984 args.extend(['--writePath', api.flavor.device_dirs.dm_dir])
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400985
Eric Boren89cd3572017-06-28 13:50:22 -0400986 args.extend(dm_flags(api, api.vars.builder_name))
Eric Boren4c7754c2017-04-10 08:19:10 -0400987
Eric Boren4c7754c2017-04-10 08:19:10 -0400988 # See skia:2789.
Ben Wagner37491d22017-12-13 13:00:47 -0500989 if 'AbandonGpuContext' in api.vars.extra_tokens:
Eric Boren4c7754c2017-04-10 08:19:10 -0400990 args.append('--abandonGpuContext')
Ben Wagner37491d22017-12-13 13:00:47 -0500991 if 'PreAbandonGpuContext' in api.vars.extra_tokens:
Eric Boren4c7754c2017-04-10 08:19:10 -0400992 args.append('--preAbandonGpuContext')
Ben Wagner37491d22017-12-13 13:00:47 -0500993 if 'ReleaseAndAbandonGpuContext' in api.vars.extra_tokens:
Eric Boren6ec17e32017-04-26 14:25:29 -0400994 args.append('--releaseAndAbandonGpuContext')
Eric Boren4c7754c2017-04-10 08:19:10 -0400995
Ben Wagner5655ba42017-10-02 10:48:32 -0400996 api.run(api.flavor.step, 'dm', cmd=args, abort_on_failure=False)
Eric Boren4c7754c2017-04-10 08:19:10 -0400997
Eric Boren72f66682018-05-18 07:36:55 -0400998 if upload_dm_results(b):
Eric Boren4c7754c2017-04-10 08:19:10 -0400999 # Copy images and JSON to host machine if needed.
1000 api.flavor.copy_directory_contents_to_host(
Eric Boren72f66682018-05-18 07:36:55 -04001001 api.flavor.device_dirs.dm_dir, api.flavor.host_dirs.dm_dir)
Eric Boren4c7754c2017-04-10 08:19:10 -04001002
1003
borenet1ed2ae42016-07-26 11:52:17 -07001004def RunSteps(api):
Eric Borenb7023162018-05-04 13:46:15 -04001005 api.vars.setup()
1006 api.file.ensure_directory('makedirs tmp_dir', api.vars.tmp_dir)
1007 api.flavor.setup()
1008
Robert Iannucci297a7ef2017-05-12 19:09:38 -07001009 env = {}
Eric Boren4c7754c2017-04-10 08:19:10 -04001010 if 'iOS' in api.vars.builder_name:
1011 env['IOS_BUNDLE_ID'] = 'com.google.dm'
Stephan Altmueller63e843d2017-04-25 11:38:38 -04001012 env['IOS_MOUNT_POINT'] = api.vars.slave_dir.join('mnt_iosdevice')
Robert Iannucci297a7ef2017-05-12 19:09:38 -07001013 with api.context(env=env):
Eric Boren4c7754c2017-04-10 08:19:10 -04001014 try:
Kevin Lubick2dafbd72017-08-31 10:39:05 -04001015 if 'Chromecast' in api.vars.builder_name:
1016 api.flavor.install(resources=True, skps=True)
Eric Boren8c172ba2018-07-19 13:27:49 -04001017 elif 'Lottie' in api.vars.builder_name:
1018 api.flavor.install(resources=True, lotties=True)
Kevin Lubick2dafbd72017-08-31 10:39:05 -04001019 else:
Eric Boren8c172ba2018-07-19 13:27:49 -04001020 api.flavor.install(skps=True, images=True, svgs=True, resources=True)
Eric Boren4c7754c2017-04-10 08:19:10 -04001021 test_steps(api)
1022 finally:
1023 api.flavor.cleanup_steps()
1024 api.run.check_failure()
1025
1026
Eric Borenf9aa9e52017-04-10 09:56:10 -04001027TEST_BUILDERS = [
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001028 'Test-Android-Clang-AndroidOne-GPU-Mali400MP2-arm-Release-All-Android',
1029 'Test-Android-Clang-GalaxyS6-GPU-MaliT760-arm64-Debug-All-Android',
Ben Wagner12e69e72018-07-15 15:12:01 -04001030 ('Test-Android-Clang-GalaxyS6-GPU-MaliT760-arm64-Debug-All'
1031 '-Android_NoGPUThreads'),
Ben Wagner2107bd82018-06-12 14:16:07 -04001032 ('Test-Android-Clang-GalaxyS7_G930FD-GPU-MaliT880-arm64-Release-All'
1033 '-Android_Vulkan'),
Ben Wagner12e69e72018-07-15 15:12:01 -04001034 'Test-Android-Clang-MotoG4-CPU-Snapdragon617-arm-Release-All-Android',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001035 'Test-Android-Clang-NVIDIA_Shield-GPU-TegraX1-arm64-Debug-All-Android_CCPR',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001036 'Test-Android-Clang-Nexus5-GPU-Adreno330-arm-Release-All-Android',
Ben Wagner5cf6d322017-12-07 10:23:07 -05001037 'Test-Android-Clang-Nexus7-CPU-Tegra3-arm-Release-All-Android',
Ben Wagner31629a82018-08-22 13:10:32 -04001038 'Test-Android-Clang-NexusPlayer-GPU-PowerVRG6430-x86-Release-All-Android',
Ben Wagner52423f32017-12-07 10:17:13 -05001039 'Test-Android-Clang-Pixel-GPU-Adreno530-arm64-Debug-All-Android_Vulkan',
Ben Wagner12e69e72018-07-15 15:12:01 -04001040 'Test-Android-Clang-Pixel-GPU-Adreno530-arm-Debug-All-Android_ASAN',
Robert Phillipscd5d1462019-05-01 18:25:52 -04001041 'Test-Android-Clang-Pixel3-GPU-Adreno630-arm64-Debug-All-Android_Vulkan',
Kevin Lubickd7af1db2017-11-02 12:03:22 -04001042 ('Test-ChromeOS-Clang-AcerChromebookR13Convertible-GPU-PowerVRGX6250-'
1043 'arm-Debug-All'),
Mike Klein54d7b312018-06-27 13:43:51 -04001044 'Test-Chromecast-Clang-Chorizo-CPU-Cortex_A7-arm-Release-All',
1045 'Test-Chromecast-Clang-Chorizo-GPU-Cortex_A7-arm-Release-All',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001046 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All-ASAN',
Mike Kleinc24e0c12018-08-17 13:24:51 -04001047 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All-BonusConfigs',
Kevin Lubick32f318b2017-10-17 13:40:52 -04001048 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-shard_00_10-Coverage',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001049 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All-MSAN',
1050 ('Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All'
Ben Wagner9fb285e2017-10-02 16:53:07 -04001051 '-SK_USE_DISCARDABLE_SCALEDIMAGECACHE'),
Leon Scroggins III30d15e62019-02-12 16:09:50 -05001052 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All-Wuffs',
Eric Boren8c172ba2018-07-19 13:27:49 -04001053 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Release-All-Lottie',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001054 ('Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Release-All'
Ben Wagner6e0a6b32017-09-26 14:11:15 -04001055 '-SK_FORCE_RASTER_PIPELINE_BLITTER'),
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001056 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Release-All-TSAN',
Ben Wagnerd26e4462018-05-22 10:46:15 -04001057 'Test-Debian9-Clang-GCE-GPU-SwiftShader-x86_64-Release-All-SwiftShader',
Kevin Lubick88611a12018-04-26 09:46:45 -04001058 'Test-Debian9-Clang-NUC5PPYH-GPU-IntelHD405-x86_64-Release-All-Vulkan',
1059 'Test-Debian9-Clang-NUC7i5BNK-GPU-IntelIris640-x86_64-Debug-All-Vulkan',
Ben Wagnerb1f5d612019-02-21 19:24:09 -05001060 ('Test-Mac10.13-Clang-MacBook10.1-GPU-IntelHD615-x86_64-Release-All'
1061 '-NativeFonts'),
1062 'Test-Mac10.13-Clang-MacBookPro11.5-CPU-AVX2-x86_64-Release-All',
1063 'Test-Mac10.13-Clang-MacBookPro11.5-GPU-RadeonHD8870M-x86_64-Debug-All-Metal',
1064 ('Test-Mac10.13-Clang-MacBookPro11.5-GPU-RadeonHD8870M-x86_64-Release-All-'
Chris Dalton2b937f52018-05-17 10:17:10 -06001065 'MoltenVK_Vulkan'),
Ben Wagnerb1f5d612019-02-21 19:24:09 -05001066 ('Test-Mac10.13-Clang-MacMini7.1-GPU-IntelIris5100-x86_64-Debug-All'
1067 '-CommandBuffer'),
1068 'Test-Mac10.14-Clang-MacBookAir7.2-GPU-IntelHD6000-x86_64-Debug-All',
Ben Wagner9f553932017-11-27 22:18:12 -05001069 'Test-Ubuntu17-Clang-Golo-GPU-QuadroP400-x86_64-Debug-All-Vulkan_Coverage',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001070 ('Test-Ubuntu17-GCC-Golo-GPU-QuadroP400-x86_64-Release-All'
Ben Wagner6e0a6b32017-09-26 14:11:15 -04001071 '-Valgrind_AbandonGpuContext_SK_CPU_LIMIT_SSE41'),
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001072 ('Test-Ubuntu17-GCC-Golo-GPU-QuadroP400-x86_64-Release-All'
Ben Wagner6e0a6b32017-09-26 14:11:15 -04001073 '-Valgrind_PreAbandonGpuContext_SK_CPU_LIMIT_SSE41'),
Eric Borendd8b1fc2018-05-18 09:54:02 -04001074 'Test-Ubuntu17-Clang-Golo-GPU-QuadroP400-x86_64-Debug-All-DDL1',
1075 'Test-Ubuntu17-Clang-Golo-GPU-QuadroP400-x86_64-Debug-All-DDL3',
Eric Boren9f4efd32018-07-20 08:25:42 -04001076 'Test-Ubuntu17-Clang-Golo-GPU-QuadroP400-x86_64-Debug-All-Lottie',
Ben Wagnera4cdfbb2018-08-31 10:20:34 -04001077 'Test-Win10-Clang-Golo-GPU-QuadroP400-x86_64-Release-All-BonusConfigs',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001078 ('Test-Win10-Clang-Golo-GPU-QuadroP400-x86_64-Release-All'
Ben Wagner6e0a6b32017-09-26 14:11:15 -04001079 '-ReleaseAndAbandonGpuContext'),
Ben Wagnerfd66b5f2017-11-15 15:16:27 -05001080 'Test-Win10-Clang-NUC5i7RYH-CPU-AVX2-x86_64-Debug-All-NativeFonts_GDI',
Ben Wagner0473a312018-08-29 14:15:15 -04001081 'Test-Win10-Clang-NUC5i7RYH-GPU-IntelIris6100-x86_64-Release-All-ANGLE',
Ben Wagnerb73cb3f2019-01-04 13:18:10 -05001082 'Test-Win10-Clang-NUC8i5BEK-GPU-IntelIris655-x86_64-Debug-All-Vulkan',
Ben Wagnerb2fd61a2017-10-23 16:01:44 -04001083 'Test-Win10-Clang-NUCD34010WYKH-GPU-IntelHD4400-x86_64-Release-All-ANGLE',
Greg Daniele5b7e6d2018-06-12 10:52:59 -04001084 'Test-Win10-Clang-ShuttleA-GPU-GTX660-x86_64-Release-All-Vulkan',
Ben Wagnerb2fd61a2017-10-23 16:01:44 -04001085 'Test-Win10-Clang-ShuttleC-GPU-GTX960-x86_64-Debug-All-ANGLE',
Ben Wagner18753532019-04-15 10:56:05 -04001086 'Test-Win10-MSVC-LenovoYogaC630-GPU-Adreno630-arm64-Debug-All-ANGLE',
Ben Wagner78935c22017-11-15 13:21:03 -05001087 'Test-Win2016-Clang-GCE-CPU-AVX2-x86_64-Debug-All-FAAA',
Ben Wagner78935c22017-11-15 13:21:03 -05001088 'Test-Win2016-Clang-GCE-CPU-AVX2-x86_64-Debug-All-FSAA',
Brian Osman5b4f2d52019-02-05 10:33:05 -05001089 'Test-Win2016-MSVC-GCE-CPU-AVX2-x86_64-Debug-All-MSRTC',
Ben Wagner31629a82018-08-22 13:10:32 -04001090 'Test-iOS-Clang-iPadPro-GPU-PowerVRGT7800-arm64-Release-All',
Eric Borenf9aa9e52017-04-10 09:56:10 -04001091]
borenet1ed2ae42016-07-26 11:52:17 -07001092
1093
1094def GenTests(api):
Eric Borenf9aa9e52017-04-10 09:56:10 -04001095 for builder in TEST_BUILDERS:
1096 test = (
1097 api.test(builder) +
1098 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001099 buildbucket_build_id='123454321',
Eric Borenf9aa9e52017-04-10 09:56:10 -04001100 revision='abc123',
1101 path_config='kitchen',
Stephan Altmüller64cc5762018-08-02 08:51:38 +02001102 gold_hashes_url='https://example.com/hashes.txt',
Eric Boren113cba82019-02-26 13:52:43 -05001103 swarm_out_dir='[SWARM_OUT_DIR]',
1104 task_id='task_12345') +
Eric Borenf9aa9e52017-04-10 09:56:10 -04001105 api.path.exists(
1106 api.path['start_dir'].join('skia'),
1107 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1108 'skimage', 'VERSION'),
1109 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1110 'skp', 'VERSION'),
1111 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1112 'svg', 'VERSION'),
1113 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
Ben Wagnerf835c222017-04-30 11:14:51 -04001114 ) +
1115 api.step_data('get swarming bot id',
1116 stdout=api.raw_io.output('skia-bot-123')) +
1117 api.step_data('get swarming task id',
1118 stdout=api.raw_io.output('123456'))
Eric Borenf9aa9e52017-04-10 09:56:10 -04001119 )
Ben Wagner18753532019-04-15 10:56:05 -04001120 if 'Win' in builder and not 'LenovoYogaC630' in builder:
Eric Borenf9aa9e52017-04-10 09:56:10 -04001121 test += api.platform('win', 64)
Eric Boren4c7754c2017-04-10 08:19:10 -04001122
Kevin Lubick2dafbd72017-08-31 10:39:05 -04001123 if 'Chromecast' in builder:
1124 test += api.step_data(
1125 'read chromecast ip',
1126 stdout=api.raw_io.output('192.168.1.2:5555'))
1127
Eric Borenf9aa9e52017-04-10 09:56:10 -04001128 yield test
Eric Boren4c7754c2017-04-10 08:19:10 -04001129
Eric Borendd8b1fc2018-05-18 09:54:02 -04001130 builder = 'Test-Win8-Clang-Golo-CPU-AVX-x86-Debug-All'
Kevin Lubickfe079d42017-04-12 08:31:48 -04001131 yield (
1132 api.test('trybot') +
1133 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001134 buildbucket_build_id='123454321',
Kevin Lubickfe079d42017-04-12 08:31:48 -04001135 revision='abc123',
1136 path_config='kitchen',
Stephan Altmüller64cc5762018-08-02 08:51:38 +02001137 gold_hashes_url='https://example.com/hashes.txt',
Eric Boren113cba82019-02-26 13:52:43 -05001138 swarm_out_dir='[SWARM_OUT_DIR]',
1139 task_id='task_12345') +
Ben Wagnera0dbedf2019-04-24 14:14:27 -04001140 api.platform('win', 64) +
Kevin Lubickfe079d42017-04-12 08:31:48 -04001141 api.properties(patch_storage='gerrit') +
1142 api.properties.tryserver(
1143 buildername=builder,
1144 gerrit_project='skia',
1145 gerrit_url='https://skia-review.googlesource.com/',
1146 )+
1147 api.path.exists(
1148 api.path['start_dir'].join('skia'),
1149 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1150 'skimage', 'VERSION'),
1151 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1152 'skp', 'VERSION'),
1153 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1154 'svg', 'VERSION'),
1155 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
1156 )
1157 )
1158
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001159 builder = 'Test-Debian9-GCC-GCE-CPU-AVX2-x86_64-Debug-All'
borenet1ed2ae42016-07-26 11:52:17 -07001160 yield (
Eric Boren4c7754c2017-04-10 08:19:10 -04001161 api.test('failed_dm') +
1162 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001163 buildbucket_build_id='123454321',
borenet1ed2ae42016-07-26 11:52:17 -07001164 revision='abc123',
1165 path_config='kitchen',
Stephan Altmüller64cc5762018-08-02 08:51:38 +02001166 gold_hashes_url='https://example.com/hashes.txt',
Eric Boren113cba82019-02-26 13:52:43 -05001167 swarm_out_dir='[SWARM_OUT_DIR]',
1168 task_id='task_12345') +
borenet1ed2ae42016-07-26 11:52:17 -07001169 api.path.exists(
Ravi Mistry9bcca6a2016-11-21 16:06:19 -05001170 api.path['start_dir'].join('skia'),
1171 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
Eric Boren4c7754c2017-04-10 08:19:10 -04001172 'skimage', 'VERSION'),
Ravi Mistry9bcca6a2016-11-21 16:06:19 -05001173 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
Eric Boren4c7754c2017-04-10 08:19:10 -04001174 'skp', 'VERSION'),
Ravi Mistry9bcca6a2016-11-21 16:06:19 -05001175 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
Eric Boren4c7754c2017-04-10 08:19:10 -04001176 'svg', 'VERSION'),
Ravi Mistry9bcca6a2016-11-21 16:06:19 -05001177 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
Eric Boren4c7754c2017-04-10 08:19:10 -04001178 ) +
1179 api.step_data('symbolized dm', retcode=1)
1180 )
1181
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001182 builder = 'Test-Android-Clang-Nexus7-GPU-Tegra3-arm-Release-All-Android'
Eric Boren4c7754c2017-04-10 08:19:10 -04001183 yield (
1184 api.test('failed_get_hashes') +
1185 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001186 buildbucket_build_id='123454321',
Eric Boren4c7754c2017-04-10 08:19:10 -04001187 revision='abc123',
1188 path_config='kitchen',
Stephan Altmüller64cc5762018-08-02 08:51:38 +02001189 gold_hashes_url='https://example.com/hashes.txt',
Eric Boren113cba82019-02-26 13:52:43 -05001190 swarm_out_dir='[SWARM_OUT_DIR]',
1191 task_id='task_12345') +
Eric Boren4c7754c2017-04-10 08:19:10 -04001192 api.path.exists(
1193 api.path['start_dir'].join('skia'),
1194 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1195 'skimage', 'VERSION'),
1196 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1197 'skp', 'VERSION'),
1198 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1199 'svg', 'VERSION'),
1200 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
1201 ) +
1202 api.step_data('get uninteresting hashes', retcode=1)
1203 )
1204
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001205 builder = ('Test-Android-Clang-NexusPlayer-CPU-Moorefield-x86-'
1206 'Debug-All-Android')
Eric Boren4c7754c2017-04-10 08:19:10 -04001207 yield (
1208 api.test('failed_push') +
1209 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001210 buildbucket_build_id='123454321',
Eric Boren4c7754c2017-04-10 08:19:10 -04001211 revision='abc123',
1212 path_config='kitchen',
Stephan Altmüller64cc5762018-08-02 08:51:38 +02001213 gold_hashes_url='https://example.com/hashes.txt',
Eric Boren113cba82019-02-26 13:52:43 -05001214 swarm_out_dir='[SWARM_OUT_DIR]',
1215 task_id='task_12345') +
Eric Boren4c7754c2017-04-10 08:19:10 -04001216 api.path.exists(
1217 api.path['start_dir'].join('skia'),
1218 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1219 'skimage', 'VERSION'),
1220 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1221 'skp', 'VERSION'),
1222 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1223 'svg', 'VERSION'),
1224 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
1225 ) +
Kevin Lubickc6f74ca2018-03-01 09:21:38 -05001226 api.step_data('get swarming bot id',
1227 stdout=api.raw_io.output('build123-m2--device5')) +
Eric Boren4c7754c2017-04-10 08:19:10 -04001228 api.step_data('push [START_DIR]/skia/resources/* '+
1229 '/sdcard/revenge_of_the_skiabot/resources', retcode=1)
1230 )
1231
Ben Wagner1a2b3f02017-10-26 15:13:38 -04001232 builder = 'Test-Android-Clang-Nexus7-GPU-Tegra3-arm-Debug-All-Android'
Eric Borencd0a98c2018-06-20 13:23:16 -04001233 retry_step_name = 'adb pull.pull /sdcard/revenge_of_the_skiabot/dm_out'
Eric Boren4c7754c2017-04-10 08:19:10 -04001234 yield (
1235 api.test('failed_pull') +
1236 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001237 buildbucket_build_id='123454321',
Eric Boren4c7754c2017-04-10 08:19:10 -04001238 revision='abc123',
1239 path_config='kitchen',
Stephan Altmüller64cc5762018-08-02 08:51:38 +02001240 gold_hashes_url='https://example.com/hashes.txt',
Eric Boren113cba82019-02-26 13:52:43 -05001241 swarm_out_dir='[SWARM_OUT_DIR]',
1242 task_id='task_12345') +
Eric Boren4c7754c2017-04-10 08:19:10 -04001243 api.path.exists(
1244 api.path['start_dir'].join('skia'),
1245 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1246 'skimage', 'VERSION'),
1247 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1248 'skp', 'VERSION'),
1249 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1250 'svg', 'VERSION'),
1251 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
1252 ) +
1253 api.step_data('dm', retcode=1) +
Ben Wagnere7e6e222018-05-25 09:47:37 -04001254 api.step_data(retry_step_name, retcode=1) +
1255 api.step_data(retry_step_name + ' (attempt 2)', retcode=1) +
1256 api.step_data(retry_step_name + ' (attempt 3)', retcode=1)
borenetbfa5b452016-10-19 10:13:32 -07001257 )
Eric Boren053d7a42017-09-15 08:35:31 -04001258
1259 yield (
Kevin Lubickbd27d1d2017-10-13 08:01:49 -04001260 api.test('internal_bot_2') +
1261 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001262 buildbucket_build_id='123454321',
Kevin Lubickbd27d1d2017-10-13 08:01:49 -04001263 revision='abc123',
1264 path_config='kitchen',
1265 swarm_out_dir='[SWARM_OUT_DIR]',
Stephan Altmüller64cc5762018-08-02 08:51:38 +02001266 gold_hashes_url='https://example.com/hashes.txt',
Eric Boren113cba82019-02-26 13:52:43 -05001267 internal_hardware_label='2',
1268 task_id='task_12345') +
Kevin Lubickbd27d1d2017-10-13 08:01:49 -04001269 api.path.exists(
1270 api.path['start_dir'].join('skia'),
1271 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1272 'skimage', 'VERSION'),
1273 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1274 'skp', 'VERSION'),
1275 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1276 'svg', 'VERSION'),
1277 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
Kevin Lubickd1bbd5f2017-11-21 16:47:16 -05001278 )
Kevin Lubickbd27d1d2017-10-13 08:01:49 -04001279 )
Kevin Lubick82439882018-12-12 15:50:14 -05001280
1281 yield (
1282 api.test('internal_bot_5') +
1283 api.properties(buildername=builder,
1284 buildbucket_build_id='123454321',
1285 revision='abc123',
1286 path_config='kitchen',
1287 swarm_out_dir='[SWARM_OUT_DIR]',
1288 gold_hashes_url='https://example.com/hashes.txt',
Eric Boren113cba82019-02-26 13:52:43 -05001289 internal_hardware_label='5',
1290 task_id='task_12345') +
Kevin Lubick82439882018-12-12 15:50:14 -05001291 api.path.exists(
1292 api.path['start_dir'].join('skia'),
1293 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1294 'skimage', 'VERSION'),
1295 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1296 'skp', 'VERSION'),
1297 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1298 'svg', 'VERSION'),
1299 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
1300 )
1301 )