blob: ba8d0b61ffe95fe47bf27af9b37396c5ade01b93 [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
Robert Phillipscd5d1462019-05-01 18:25:52 -040071 if 'Pixel3' in bot and 'Vulkan' in bot:
Greg Danielf41b2bd2019-08-22 16:19:24 -040072 args.extend(['--dontReduceOpsTaskSplitting'])
Robert Phillipscd5d1462019-05-01 18:25:52 -040073
Mike Klein1cab6b72019-03-18 10:10:37 -050074 thread_limit = None
75 MAIN_THREAD_ONLY = 0
76
Eric Boren4c7754c2017-04-10 08:19:10 -040077 # 32-bit desktop bots tend to run out of memory, because they have relatively
78 # far more cores than RAM (e.g. 32 cores, 3G RAM). Hold them back a bit.
Mike Klein1cab6b72019-03-18 10:10:37 -050079 if '-x86-' in bot:
80 thread_limit = 4
Eric Boren4c7754c2017-04-10 08:19:10 -040081
Mike Klein1cab6b72019-03-18 10:10:37 -050082 # These bots run out of memory easily.
Mike Klein1a5235e2019-03-19 09:49:57 -050083 if 'Chromecast' in bot or 'MotoG4' in bot or 'Nexus7' in bot:
Mike Klein1cab6b72019-03-18 10:10:37 -050084 thread_limit = MAIN_THREAD_ONLY
Kevin Lubick2dafbd72017-08-31 10:39:05 -040085
Eric Boren4c7754c2017-04-10 08:19:10 -040086 # Avoid issues with dynamically exceeding resource cache limits.
87 if 'Test' in bot and 'DISCARDABLE' in bot:
Mike Klein1cab6b72019-03-18 10:10:37 -050088 thread_limit = MAIN_THREAD_ONLY
Mike Kleindf669812017-06-23 13:30:17 -040089
Mike Klein1cab6b72019-03-18 10:10:37 -050090 if thread_limit is not None:
91 args.extend(['--threads', str(thread_limit)])
Eric Boren4c7754c2017-04-10 08:19:10 -040092
Derek Sollenbergeredfe3df2017-07-19 15:25:24 -040093 # Android's kernel will occasionally attempt to kill our process, using
94 # SIGINT, in an effort to free up resources. If requested, that signal
95 # is ignored and dm will keep attempting to proceed until we actually
96 # exhaust the available resources.
Brian Osman2d170c32019-06-11 12:38:55 -040097 if 'Chromecast' in bot:
Derek Sollenbergeredfe3df2017-07-19 15:25:24 -040098 args.append('--ignoreSigInt')
99
Ben Wagner122b3852018-04-20 13:43:23 -0400100 if 'SwiftShader' in api.vars.extra_tokens:
101 configs.extend(['gles', 'glesdft'])
102 args.append('--disableDriverCorrectnessWorkarounds')
103
104 elif api.vars.builder_cfg.get('cpu_or_gpu') == 'CPU':
Ben Wagner32fa5102017-08-10 21:25:55 -0400105 args.append('--nogpu')
106
Mike Kleinc24e0c12018-08-17 13:24:51 -0400107 configs.append('8888')
Ben Wagner32fa5102017-08-10 21:25:55 -0400108
Mike Klein7adfd2f2018-08-21 13:42:53 +0000109 if 'BonusConfigs' in bot or ('SAN' in bot and 'GCE' in bot):
Mike Kleinc24e0c12018-08-17 13:24:51 -0400110 configs.extend([
111 'pdf',
112 'g8', '565',
Mike Reed2319b802019-11-15 10:39:50 -0500113 'pic-8888', 'serialize-8888',
Mike Kleinc24e0c12018-08-17 13:24:51 -0400114 'f16', 'srgb', 'esrgb', 'narrow', 'enarrow',
115 'p3', 'ep3', 'rec2020', 'erec2020'])
Eric Boren9f4efd32018-07-20 08:25:42 -0400116
Ben Wagner32fa5102017-08-10 21:25:55 -0400117 elif api.vars.builder_cfg.get('cpu_or_gpu') == 'GPU':
118 args.append('--nocpu')
119
120 # Add in either gles or gl configs to the canonical set based on OS
121 sample_count = '8'
122 gl_prefix = 'gl'
123 if 'Android' in bot or 'iOS' in bot:
124 sample_count = '4'
125 # We want to test the OpenGL config not the GLES config on the Shield
126 if 'NVIDIA_Shield' not in bot:
127 gl_prefix = 'gles'
Chris Dalton6e38ce72019-10-23 11:14:49 -0600128 # MSAA is disabled on Pixel3a (https://b.corp.google.com/issues/143074513).
129 if ('Pixel3a' in bot):
130 sample_count = ''
Ben Wagner32fa5102017-08-10 21:25:55 -0400131 elif 'Intel' in bot:
Brian Osmanb5391bf2019-08-15 14:52:52 -0400132 # MSAA doesn't work well on Intel GPUs chromium:527565, chromium:983926
133 sample_count = ''
Ben Wagner32fa5102017-08-10 21:25:55 -0400134 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
Brian Osman2d170c32019-06-11 12:38:55 -0400146 # The Tegra3 doesn't support MSAA
147 if ('Tegra3' in bot or
Ben Wagner32fa5102017-08-10 21:25:55 -0400148 # We aren't interested in fixing msaa bugs on current iOS devices.
149 'iPad4' in bot or
150 'iPadPro' in bot or
151 'iPhone6' in bot or
152 'iPhone7' in bot or
153 # skia:5792
154 'IntelHD530' in bot or
155 'IntelIris540' in bot):
156 configs = [x for x in configs if 'msaa' not in x]
Eric Boren4c7754c2017-04-10 08:19:10 -0400157
Ben Wagner32fa5102017-08-10 21:25:55 -0400158 # We want to test both the OpenGL config and the GLES config on Linux Intel:
159 # GL is used by Chrome, GLES is used by ChromeOS.
Brian Osmanf9810662017-08-30 10:02:10 -0400160 # Also do the Ganesh threading verification test (render with and without
161 # worker threads, using only the SW path renderer, and compare the results).
Ben Wagner32fa5102017-08-10 21:25:55 -0400162 if 'Intel' in bot and api.vars.is_linux:
Brian Osmana66f4da2018-06-28 17:52:02 +0000163 configs.extend(['gles',
164 'glesdft',
165 'glessrgb',
166 'gltestthreading'])
Brian Osmanf9810662017-08-30 10:02:10 -0400167 # skbug.com/6333, skbug.com/6419, skbug.com/6702
168 blacklist('gltestthreading gm _ lcdblendmodes')
169 blacklist('gltestthreading gm _ lcdoverlap')
Brian Osmanbef21ba2017-08-31 13:49:05 -0400170 blacklist('gltestthreading gm _ textbloblooper')
Brian Osman1e75f2a2017-09-07 09:30:44 -0400171 # All of these GMs are flaky, too:
172 blacklist('gltestthreading gm _ bleed_alpha_bmp')
173 blacklist('gltestthreading gm _ bleed_alpha_bmp_shader')
174 blacklist('gltestthreading gm _ bleed_alpha_image')
175 blacklist('gltestthreading gm _ bleed_alpha_image_shader')
176 blacklist('gltestthreading gm _ savelayer_with_backdrop')
177 blacklist('gltestthreading gm _ persp_shaders_bw')
Brian Salomon5c6ac642017-12-19 11:09:32 -0500178 blacklist('gltestthreading gm _ dftext_blob_persp')
Herb Derby2c1d0d72018-10-18 15:32:59 -0400179 blacklist('gltestthreading gm _ dftext')
Robert Phillipsb1664692019-04-04 12:43:45 -0400180 # skbug.com/7523 - Flaky on various GPUs
Brian Salomon19eaf2d2018-03-19 16:06:44 -0400181 blacklist('gltestthreading gm _ orientation')
Robert Phillipsb1664692019-04-04 12:43:45 -0400182 # These GMs only differ in the low bits
183 blacklist('gltestthreading gm _ stroketext')
184 blacklist('gltestthreading gm _ draw_image_set')
Mike Klein97627d42017-05-11 13:12:48 -0400185
Ben Wagner32fa5102017-08-10 21:25:55 -0400186 # CommandBuffer bot *only* runs the command_buffer config.
187 if 'CommandBuffer' in bot:
188 configs = ['commandbuffer']
189
190 # ANGLE bot *only* runs the angle configs
191 if 'ANGLE' in bot:
192 configs = ['angle_d3d11_es2',
193 'angle_d3d9_es2',
194 'angle_gl_es2',
195 'angle_d3d11_es3']
Raul Tambre0362dc22019-05-07 16:42:32 +0300196 if sample_count:
Ben Wagner32fa5102017-08-10 21:25:55 -0400197 configs.append('angle_d3d11_es2_msaa' + sample_count)
198 configs.append('angle_d3d11_es3_msaa' + sample_count)
Brian Osman1b531912019-07-25 15:55:11 -0400199 if 'LenovoYogaC630' in bot:
200 # LenovoYogaC630 only supports D3D11, and to save time, we only test ES3
201 configs = ['angle_d3d11_es3',
202 'angle_d3d11_es3_msaa' + sample_count]
Ben Wagner7464a262018-04-19 15:49:18 -0400203 if 'GTX' in bot or 'Quadro' in bot:
204 # See skia:7823 and chromium:693090.
205 configs.append('angle_gl_es3')
Raul Tambre0362dc22019-05-07 16:42:32 +0300206 if sample_count:
Ben Wagner7464a262018-04-19 15:49:18 -0400207 configs.append('angle_gl_es2_msaa' + sample_count)
208 configs.append('angle_gl_es3_msaa' + sample_count)
Ethan Nicholas00543112018-07-31 09:44:36 -0400209 if 'NUC5i7RYH' in bot:
210 # skbug.com/7376
211 blacklist('_ test _ ProcessorCloneTest')
Ben Wagner32fa5102017-08-10 21:25:55 -0400212
Brian Osman27966fe2019-04-25 11:38:07 -0400213 if 'AndroidOne' in bot or ('Nexus' in bot and 'Nexus5x' not in bot) or 'GalaxyS6' in bot:
Brian Osman7b40fcc2019-04-25 09:58:09 -0400214 # skbug.com/9019
215 blacklist('_ test _ ProcessorCloneTest')
Jim Van Verth5a8f3e42019-10-24 10:23:26 -0400216 blacklist('_ test _ Programs')
Brian Osman7b40fcc2019-04-25 09:58:09 -0400217 blacklist('_ test _ ProcessorOptimizationValidationTest')
218
Brian Salomonb3b98b72019-07-08 16:29:31 +0000219 if 'CommandBuffer' in bot and 'MacBook10.1-' in bot:
220 # skbug.com/9235
Jim Van Verth5a8f3e42019-10-24 10:23:26 -0400221 blacklist('_ test _ Programs')
Brian Salomonb3b98b72019-07-08 16:29:31 +0000222
Robert Phillips494aa3d2019-04-29 17:10:27 -0400223 # skbug.com/9033 - these devices run out of memory on this test
224 # when opList splitting reduction is enabled
225 if 'GPU' in bot and ('Nexus7' in bot or
Robert Phillips494aa3d2019-04-29 17:10:27 -0400226 'NVIDIA_Shield' in bot or
Robert Phillips39e5af72019-05-01 12:54:37 -0400227 'Nexus5x' in bot or
228 ('Win10' in bot and 'GTX660' in bot and 'Vulkan' in bot) or
229 'Chorizo' in bot):
Robert Phillips494aa3d2019-04-29 17:10:27 -0400230 blacklist(['_', 'gm', '_', 'savelayer_clipmask'])
231
Brian Salomonce2e4aa2019-05-23 17:13:11 -0400232 # skbug.com/9123
233 if 'CommandBuffer' in bot and 'IntelIris5100' in bot:
234 blacklist(['_', 'test', '_', 'AsyncReadPixels'])
235
Robert Phillips520f85b2019-05-01 14:57:35 -0400236 # skbug.com/9043 - these devices render this test incorrectly
237 # when opList splitting reduction is enabled
Jim Van Verth95df6132019-09-24 12:31:57 -0400238 if 'GPU' in bot and 'Vulkan' in bot and ('RadeonR9M470X' in bot or
Robert Phillips520f85b2019-05-01 14:57:35 -0400239 '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']
Brian Osman829144c2019-07-23 14:45:44 -0400244 if 'Android' in bot:
Greg Danield521ce32019-04-26 09:47:14 -0400245 configs.append('vkmsaa4')
246 else:
Brian Osmanb5391bf2019-08-15 14:52:52 -0400247 # MSAA doesn't work well on Intel GPUs chromium:527565, chromium:983926, skia:9023
248 if 'Intel' not in bot:
Greg Daniela30cf842019-04-26 11:29:22 -0400249 configs.append('vkmsaa8')
Ben Wagner32fa5102017-08-10 21:25:55 -0400250
Greg Danielb95d2782018-07-24 11:35:18 -0400251 if 'Metal' in bot:
252 configs = ['mtl']
Jim Van Verth31a9e8d2019-07-15 12:27:31 -0400253 if 'iOS' in bot:
254 configs.append('mtlmsaa4')
255 else:
Brian Osmanb5391bf2019-08-15 14:52:52 -0400256 # MSAA doesn't work well on Intel GPUs chromium:527565, chromium:983926
257 if 'Intel' not in bot:
Brian Osman829144c2019-07-23 14:45:44 -0400258 configs.append('mtlmsaa8')
Greg Danielb95d2782018-07-24 11:35:18 -0400259
Brian Salomon7fc52992018-07-12 16:20:23 -0400260 # Test 1010102 on our Linux/NVIDIA bots and the persistent cache config
261 # on the GL bots.
Brian Salomonbfc63c12018-07-16 15:48:22 -0400262 if ('QuadroP400' in bot and 'PreAbandonGpuContext' not in bot and
Brian Salomon6a3957c2018-07-19 17:01:09 -0400263 'TSAN' not in bot and api.vars.is_linux):
Brian Osman10fc6fd2018-03-02 11:01:10 -0500264 if 'Vulkan' in bot:
265 configs.append('vk1010102')
Brian Osman419abf32018-03-02 14:56:15 -0500266 # Decoding transparent images to 1010102 just looks bad
267 blacklist('vk1010102 image _ _')
Brian Osman10fc6fd2018-03-02 11:01:10 -0500268 else:
Brian Osmaned58e002019-09-06 14:42:43 -0400269 configs.extend(['gl1010102',
270 'gltestpersistentcache',
271 'gltestglslcache',
272 'gltestprecompile'])
Brian Osman419abf32018-03-02 14:56:15 -0500273 # Decoding transparent images to 1010102 just looks bad
274 blacklist('gl1010102 image _ _')
Brian Salomon09387592018-07-16 15:34:16 -0400275 # These tests produce slightly different pixels run to run on NV.
Brian Salomon7fc52992018-07-12 16:20:23 -0400276 blacklist('gltestpersistentcache gm _ atlastext')
Brian Salomon09387592018-07-16 15:34:16 -0400277 blacklist('gltestpersistentcache gm _ dftext')
Brian Salomon06e3c3c2018-08-03 12:54:11 -0400278 blacklist('gltestpersistentcache gm _ glyph_pos_h_b')
Brian Osmanf71b0702019-04-03 13:04:16 -0400279 blacklist('gltestglslcache gm _ atlastext')
280 blacklist('gltestglslcache gm _ dftext')
281 blacklist('gltestglslcache gm _ glyph_pos_h_b')
Brian Osmaned58e002019-09-06 14:42:43 -0400282 blacklist('gltestprecompile gm _ atlastext')
283 blacklist('gltestprecompile gm _ dftext')
284 blacklist('gltestprecompile gm _ glyph_pos_h_b')
Brian Osman10fc6fd2018-03-02 11:01:10 -0500285
Brian Osman4af42fc2019-09-16 12:38:04 -0400286 # We also test the SkSL precompile config on Pixel2XL as a representative
287 # Android device - this feature is primarily used by Flutter.
288 if 'Pixel2XL' in bot and 'Vulkan' not in bot:
289 configs.append('glestestprecompile')
290
Brian Osmanf9666f52019-03-21 12:35:02 -0400291 # Test rendering to wrapped dsts on a few bots
Brian Osman23885d22018-12-06 09:52:22 -0500292 # Also test 'glenarrow', which hits F16 surfaces and F16 vertex colors.
Ben Wagnera4cdfbb2018-08-31 10:20:34 -0400293 if 'BonusConfigs' in api.vars.extra_tokens:
Brian Osmanf9666f52019-03-21 12:35:02 -0400294 configs = ['glbetex', 'glbert', 'glenarrow']
Brian Salomon7bfe8432018-08-31 13:35:26 -0400295
Ben Wagnera4cdfbb2018-08-31 10:20:34 -0400296
Ben Wagner32fa5102017-08-10 21:25:55 -0400297 if 'ChromeOS' in bot:
298 # Just run GLES for now - maybe add gles_msaa4 in the future
299 configs = ['gles']
300
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400301 if 'Chromecast' in bot:
Kevin Lubick608c35a2018-01-16 16:15:57 -0500302 configs = ['gles']
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400303
Ben Wagner32fa5102017-08-10 21:25:55 -0400304 # Test coverage counting path renderer.
305 if 'CCPR' in bot:
306 configs = [c for c in configs if c == 'gl' or c == 'gles']
Chris Daltona8fbeba2019-03-30 00:31:23 -0600307 args.extend(['--pr', 'ccpr', '--cc', 'true', '--cachePathMasks', 'false'])
Chris Dalton97598a52017-07-18 10:49:07 -0600308
Chris Daltonb3c97452019-06-25 20:07:56 -0600309 # Test non-nvpr on NVIDIA.
310 if 'NonNVPR' in bot:
311 configs = ['gl', 'glmsaa4']
312 args.extend(['--pr', '~nvpr'])
313
Robert Phillips36150be2018-03-15 13:40:07 -0400314 # DDL is a GPU-only feature
315 if 'DDL1' in bot:
Robert Phillips69eb8352018-04-11 13:45:08 -0400316 # This bot generates gl and vk comparison images for the large skps
Jim Van Verthc8f285a2019-05-24 15:15:14 -0400317 configs = [c for c in configs if c == 'gl' or c == 'vk' or c == 'mtl']
Robert Phillipsb7fafba2018-03-27 20:49:23 +0000318 args.extend(['--skpViewportSize', "2048"])
Robert Phillips21ca0432018-05-29 15:42:00 -0400319 args.extend(['--pr', '~small'])
Robert Phillips36150be2018-03-15 13:40:07 -0400320 if 'DDL3' in bot:
Robert Phillips69eb8352018-04-11 13:45:08 -0400321 # This bot generates the ddl-gl and ddl-vk images for the
322 # large skps and the gms
Jim Van Verthc8f285a2019-05-24 15:15:14 -0400323 ddl_configs = ['ddl-' + c for c in configs if c == 'gl' or c == 'vk' or c == 'mtl']
324 ddl2_configs = ['ddl2-' + c for c in configs if c == 'gl' or c == 'vk' or c == 'mtl']
Brian Salomon8f40b662018-12-21 17:50:43 -0500325 configs = ddl_configs + ddl2_configs
Robert Phillipsb7fafba2018-03-27 20:49:23 +0000326 args.extend(['--skpViewportSize', "2048"])
Robert Phillipse43ff782018-04-20 11:59:59 -0400327 args.extend(['--gpuThreads', "0"])
Robert Phillips36150be2018-03-15 13:40:07 -0400328
Eric Boren9f4efd32018-07-20 08:25:42 -0400329 if 'Lottie' in bot:
330 configs = ['gl']
331
Kevin Lubick32f318b2017-10-17 13:40:52 -0400332 tf = api.vars.builder_cfg.get('test_filter')
333 if 'All' != tf:
334 # Expected format: shard_XX_YY
335 parts = tf.split('_')
336 if len(parts) == 3:
337 args.extend(['--shard', parts[1]])
338 args.extend(['--shards', parts[2]])
Eric Boren9599b0f2018-04-17 15:55:57 -0400339 else: # pragma: nocover
340 raise Exception('Invalid task name - bad shards: %s' % tf)
Kevin Lubick32f318b2017-10-17 13:40:52 -0400341
Chris Dalton80ace822017-07-20 10:54:04 -0600342 args.append('--config')
343 args.extend(configs)
344
Eric Boren4c7754c2017-04-10 08:19:10 -0400345 # Run tests, gms, and image decoding tests everywhere.
Eric Boren8c172ba2018-07-19 13:27:49 -0400346 args.extend('--src tests gm image lottie colorImage svg skp'.split(' '))
Ben Wagner0ecc2b7e2017-11-09 22:10:44 -0500347 if api.vars.builder_cfg.get('cpu_or_gpu') == 'GPU':
Chris Dalton7c304ba2017-09-07 11:57:16 -0600348 # Don't run the 'svgparse_*' svgs on GPU.
349 blacklist('_ svg _ svgparse_')
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400350 elif bot == 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All-ASAN':
Chris Dalton7c304ba2017-09-07 11:57:16 -0600351 # Only run the CPU SVGs on 8888.
352 blacklist('~8888 svg _ _')
353 else:
354 # On CPU SVGs we only care about parsing. Only run them on the above bot.
355 args.remove('svg')
Eric Boren4c7754c2017-04-10 08:19:10 -0400356
Mike Klein97627d42017-05-11 13:12:48 -0400357 # Eventually I'd like these to pass, but for now just skip 'em.
358 if 'SK_FORCE_RASTER_PIPELINE_BLITTER' in bot:
359 args.remove('tests')
360
Mike Klein9a01a212017-11-03 12:19:54 -0400361 if 'NativeFonts' in bot: # images won't exercise native font integration :)
362 args.remove('image')
363 args.remove('colorImage')
364
Eric Boren8c172ba2018-07-19 13:27:49 -0400365 def remove_from_args(arg):
366 if arg in args:
367 args.remove(arg)
368
Robert Phillips5f3ce3e2018-04-12 11:09:40 -0400369 if 'DDL' in bot:
370 # The DDL bots just render the large skps and the gms
Eric Boren8c172ba2018-07-19 13:27:49 -0400371 remove_from_args('tests')
372 remove_from_args('image')
373 remove_from_args('colorImage')
374 remove_from_args('svg')
Robert Phillips36150be2018-03-15 13:40:07 -0400375 else:
Robert Phillipsb7fafba2018-03-27 20:49:23 +0000376 # Currently, only the DDL bots render skps
Eric Boren8c172ba2018-07-19 13:27:49 -0400377 remove_from_args('skp')
378
379 if 'Lottie' in api.vars.builder_cfg.get('extra_config', ''):
380 # Only run the lotties on Lottie bots.
381 remove_from_args('tests')
382 remove_from_args('gm')
383 remove_from_args('image')
384 remove_from_args('colorImage')
385 remove_from_args('svg')
386 remove_from_args('skp')
387 else:
388 remove_from_args('lottie')
Robert Phillips36150be2018-03-15 13:40:07 -0400389
Eric Boren4c7754c2017-04-10 08:19:10 -0400390 # TODO: ???
391 blacklist('f16 _ _ dstreadshuffle')
392 blacklist('glsrgb image _ _')
393 blacklist('glessrgb image _ _')
394
Mike Klein515bda62018-01-09 11:21:58 -0500395 # --src image --config g8 means "decode into Gray8", which isn't supported.
396 blacklist('g8 image _ _')
397 blacklist('g8 colorImage _ _')
398
Eric Boren4c7754c2017-04-10 08:19:10 -0400399 if 'Valgrind' in bot:
400 # These take 18+ hours to run.
401 blacklist('pdf gm _ fontmgr_iter')
402 blacklist('pdf _ _ PANO_20121023_214540.jpg')
403 blacklist('pdf skp _ worldjournal')
404 blacklist('pdf skp _ desk_baidu.skp')
405 blacklist('pdf skp _ desk_wikipedia.skp')
406 blacklist('_ svg _ _')
Robert Phillips578c8ee2019-06-17 19:10:54 -0400407 # skbug.com/9171 and 8847
408 blacklist('_ test _ InitialTextureClear')
Eric Boren4c7754c2017-04-10 08:19:10 -0400409
Brian Salomon7c8c67e2019-09-11 16:53:12 -0400410 if 'TecnoSpark3Pro' in bot:
411 # skbug.com/9421
412 blacklist('_ test _ InitialTextureClear')
413
Eric Boren4c7754c2017-04-10 08:19:10 -0400414 if 'iOS' in bot:
415 blacklist(gl_prefix + ' skp _ _')
416
417 if 'Mac' in bot or 'iOS' in bot:
418 # CG fails on questionable bmps
419 blacklist('_ image gen_platf rgba32abf.bmp')
420 blacklist('_ image gen_platf rgb24prof.bmp')
421 blacklist('_ image gen_platf rgb24lprof.bmp')
422 blacklist('_ image gen_platf 8bpp-pixeldata-cropped.bmp')
423 blacklist('_ image gen_platf 4bpp-pixeldata-cropped.bmp')
424 blacklist('_ image gen_platf 32bpp-pixeldata-cropped.bmp')
425 blacklist('_ image gen_platf 24bpp-pixeldata-cropped.bmp')
426
427 # CG has unpredictable behavior on this questionable gif
428 # It's probably using uninitialized memory
429 blacklist('_ image gen_platf frame_larger_than_image.gif')
430
431 # CG has unpredictable behavior on incomplete pngs
432 # skbug.com/5774
433 blacklist('_ image gen_platf inc0.png')
434 blacklist('_ image gen_platf inc1.png')
435 blacklist('_ image gen_platf inc2.png')
436 blacklist('_ image gen_platf inc3.png')
437 blacklist('_ image gen_platf inc4.png')
438 blacklist('_ image gen_platf inc5.png')
439 blacklist('_ image gen_platf inc6.png')
440 blacklist('_ image gen_platf inc7.png')
441 blacklist('_ image gen_platf inc8.png')
442 blacklist('_ image gen_platf inc9.png')
443 blacklist('_ image gen_platf inc10.png')
444 blacklist('_ image gen_platf inc11.png')
445 blacklist('_ image gen_platf inc12.png')
446 blacklist('_ image gen_platf inc13.png')
447 blacklist('_ image gen_platf inc14.png')
Leon Scroggins IIIa66ac002018-10-26 09:45:11 -0400448 blacklist('_ image gen_platf incInterlaced.png')
Eric Boren4c7754c2017-04-10 08:19:10 -0400449
Ben Wagner3f67914c2017-11-27 13:02:25 -0500450 # These images fail after Mac 10.13.1 upgrade.
451 blacklist('_ image gen_platf incInterlaced.gif')
452 blacklist('_ image gen_platf inc1.gif')
453 blacklist('_ image gen_platf inc0.gif')
454 blacklist('_ image gen_platf butterfly.gif')
455
Matt Sarett6c50a2e2017-05-01 09:13:05 -0400456 # WIC fails on questionable bmps
Eric Boren4c7754c2017-04-10 08:19:10 -0400457 if 'Win' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400458 blacklist('_ image gen_platf pal8os2v2.bmp')
459 blacklist('_ image gen_platf pal8os2v2-16.bmp')
460 blacklist('_ image gen_platf rgba32abf.bmp')
461 blacklist('_ image gen_platf rgb24prof.bmp')
462 blacklist('_ image gen_platf rgb24lprof.bmp')
463 blacklist('_ image gen_platf 8bpp-pixeldata-cropped.bmp')
464 blacklist('_ image gen_platf 4bpp-pixeldata-cropped.bmp')
465 blacklist('_ image gen_platf 32bpp-pixeldata-cropped.bmp')
466 blacklist('_ image gen_platf 24bpp-pixeldata-cropped.bmp')
Eric Boren4c7754c2017-04-10 08:19:10 -0400467 if 'x86_64' in bot and 'CPU' in bot:
468 # This GM triggers a SkSmallAllocator assert.
469 blacklist('_ gm _ composeshader_bitmap')
470
Matt Sarett6c50a2e2017-05-01 09:13:05 -0400471 if 'Win' in bot or 'Mac' in bot:
Leon Scroggins III3a3cf432017-08-18 13:08:16 -0400472 # WIC and CG fail on arithmetic jpegs
Matt Sarett6c50a2e2017-05-01 09:13:05 -0400473 blacklist('_ image gen_platf testimgari.jpg')
Leon Scroggins III3a3cf432017-08-18 13:08:16 -0400474 # More questionable bmps that fail on Mac, too. skbug.com/6984
475 blacklist('_ image gen_platf rle8-height-negative.bmp')
476 blacklist('_ image gen_platf rle4-height-negative.bmp')
Matt Sarett6c50a2e2017-05-01 09:13:05 -0400477
Leon Scroggins III3abcd822018-10-18 11:28:36 -0400478 # These PNGs have CRC errors. The platform generators seem to draw
479 # uninitialized memory without reporting an error, so skip them to
480 # avoid lots of images on Gold.
481 blacklist('_ image gen_platf error')
482
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400483 if 'Android' in bot or 'iOS' in bot or 'Chromecast' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400484 # This test crashes the N9 (perhaps because of large malloc/frees). It also
485 # is fairly slow and not platform-specific. So we just disable it on all of
486 # Android and iOS. skia:5438
487 blacklist('_ test _ GrShape')
488
Eric Borenfb20ac42018-04-24 14:48:19 -0400489 if api.vars.internal_hardware_label == '2':
Kevin Lubickbd27d1d2017-10-13 08:01:49 -0400490 # skia:7160
491 blacklist('_ test _ SRGBReadWritePixels')
492 blacklist('_ test _ SRGBMipMap')
Robert Phillips0fb13962019-10-08 10:23:03 -0400493 # skia:9517
494 blacklist('_ test _ CharacterizationBackendAllocationTest')
495 blacklist('_ test _ ColorTypeBackendAllocationTest')
496 blacklist('_ test _ GLBackendAllocationTest')
497 blacklist('_ test _ VKBackendAllocationTest')
Kevin Lubickbd27d1d2017-10-13 08:01:49 -0400498
Kevin Lubick82439882018-12-12 15:50:14 -0500499 if api.vars.internal_hardware_label == '5':
500 # http://b/118312149#comment9
501 blacklist('_ test _ SRGBReadWritePixels')
502
Mike Klein359f61b2019-08-23 10:47:30 -0500503 # skia:4095
Mike Reedfb499092017-06-26 13:53:32 +0000504 bad_serialize_gms = ['bleed_image',
Eric Boren4c7754c2017-04-10 08:19:10 -0400505 'c_gms',
506 'colortype',
507 'colortype_xfermodes',
508 'drawfilter',
509 'fontmgr_bounds_0.75_0',
510 'fontmgr_bounds_1_-0.25',
511 'fontmgr_bounds',
512 'fontmgr_match',
513 'fontmgr_iter',
Michael Ludwiga6a84002019-04-12 15:03:02 -0400514 'imagemasksubset',
Michael Ludwigd5fad8c2019-06-18 09:28:47 -0400515 'wacky_yuv_formats_domain',
516 'imagemakewithfilter',
517 'imagemakewithfilter_crop',
518 'imagemakewithfilter_crop_ref',
Mike Klein359f61b2019-08-23 10:47:30 -0500519 'imagemakewithfilter_ref']
Eric Boren4c7754c2017-04-10 08:19:10 -0400520
521 # skia:5589
522 bad_serialize_gms.extend(['bitmapfilters',
523 'bitmapshaders',
524 'bleed',
525 'bleed_alpha_bmp',
526 'bleed_alpha_bmp_shader',
527 'convex_poly_clip',
528 'extractalpha',
529 'filterbitmap_checkerboard_32_32_g8',
530 'filterbitmap_image_mandrill_64',
531 'shadows',
532 'simpleaaclip_aaclip'])
533 # skia:5595
534 bad_serialize_gms.extend(['composeshader_bitmap',
535 'scaled_tilemodes_npot',
536 'scaled_tilemodes'])
537
538 # skia:5778
539 bad_serialize_gms.append('typefacerendering_pfaMac')
540 # skia:5942
541 bad_serialize_gms.append('parsedpaths')
542
543 # these use a custom image generator which doesn't serialize
544 bad_serialize_gms.append('ImageGeneratorExternal_rect')
545 bad_serialize_gms.append('ImageGeneratorExternal_shader')
546
547 # skia:6189
548 bad_serialize_gms.append('shadow_utils')
549
Brian Salomonbe3c1d22018-05-21 12:54:39 -0400550 # skia:7938
551 bad_serialize_gms.append('persp_images')
552
Matt Sarett9f3dcb32017-05-04 08:53:32 -0400553 # Not expected to round trip encoding/decoding.
Mike Klein0b78a692017-10-31 17:31:17 -0400554 bad_serialize_gms.append('all_bitmap_configs')
Matt Sarett9f3dcb32017-05-04 08:53:32 -0400555 bad_serialize_gms.append('makecolorspace')
Mike Klein0a44d5c2018-10-02 11:10:59 -0400556 bad_serialize_gms.append('readpixels')
Brian Salomon0087c832018-10-15 14:48:20 -0400557 bad_serialize_gms.append('draw_image_set_rect_to_rect')
Michael Ludwig390f0cc2019-03-19 09:16:38 -0400558 bad_serialize_gms.append('compositor_quads_shader')
Matt Sarett9f3dcb32017-05-04 08:53:32 -0400559
Brian Salomon7072e222017-11-29 15:12:45 -0500560 # This GM forces a path to be convex. That property doesn't survive
561 # serialization.
562 bad_serialize_gms.append('analytic_antialias_convex')
563
Eric Boren4c7754c2017-04-10 08:19:10 -0400564 for test in bad_serialize_gms:
565 blacklist(['serialize-8888', 'gm', '_', test])
566
567 if 'Mac' not in bot:
568 for test in ['bleed_alpha_image', 'bleed_alpha_image_shader']:
569 blacklist(['serialize-8888', 'gm', '_', test])
570 # It looks like we skip these only for out-of-memory concerns.
Kevin Lubick608c35a2018-01-16 16:15:57 -0500571 if 'Win' in bot or 'Android' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400572 for test in ['verylargebitmap', 'verylarge_picture_image']:
573 blacklist(['serialize-8888', 'gm', '_', test])
Ben Wagner2e4e73f2017-09-08 15:21:44 -0400574 if 'Mac' in bot and 'CPU' in bot:
Ben Wagner38db79f2017-08-23 15:05:50 -0400575 # skia:6992
Ben Wagner6f98bc62017-09-05 16:02:28 -0400576 blacklist(['pic-8888', 'gm', '_', 'encode-platform'])
Ben Wagner38db79f2017-08-23 15:05:50 -0400577 blacklist(['serialize-8888', 'gm', '_', 'encode-platform'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400578
579 # skia:4769
580 for test in ['drawfilter']:
Eric Boren4c7754c2017-04-10 08:19:10 -0400581 blacklist([ 'pic-8888', 'gm', '_', test])
Eric Boren4c7754c2017-04-10 08:19:10 -0400582 # skia:4703
583 for test in ['image-cacherator-from-picture',
584 'image-cacherator-from-raster',
585 'image-cacherator-from-ctable']:
Eric Boren4c7754c2017-04-10 08:19:10 -0400586 blacklist([ 'pic-8888', 'gm', '_', test])
Eric Boren4c7754c2017-04-10 08:19:10 -0400587 blacklist(['serialize-8888', 'gm', '_', test])
588
589 # GM that requires raster-backed canvas
Brian Salomon201700f2019-05-17 12:05:44 -0400590 for test in ['complexclip4_bw', 'complexclip4_aa', 'p3',
591 'async_rescale_and_read_text_up_large',
592 'async_rescale_and_read_text_up',
593 'async_rescale_and_read_text_down',
594 'async_rescale_and_read_dog_up',
595 'async_rescale_and_read_dog_down',
Brian Salomon286b5572019-05-20 10:25:50 -0400596 'async_rescale_and_read_rose',
597 'async_rescale_and_read_no_bleed']:
Eric Boren4c7754c2017-04-10 08:19:10 -0400598 blacklist([ 'pic-8888', 'gm', '_', test])
Eric Boren4c7754c2017-04-10 08:19:10 -0400599 blacklist(['serialize-8888', 'gm', '_', test])
600
Brian Salomonb2d5d402019-09-10 10:11:52 -0400601 # GM requries canvas->makeSurface() to return a valid surface.
602 blacklist([ 'pic-8888', 'gm', '_', "blurrect_compare"])
603 blacklist(['serialize-8888', 'gm', '_', "blurrect_compare"])
604
Eric Boren4c7754c2017-04-10 08:19:10 -0400605 # Extensions for RAW images
Ben Wagner6e0a6b32017-09-26 14:11:15 -0400606 r = ['arw', 'cr2', 'dng', 'nef', 'nrw', 'orf', 'raf', 'rw2', 'pef', 'srw',
607 'ARW', 'CR2', 'DNG', 'NEF', 'NRW', 'ORF', 'RAF', 'RW2', 'PEF', 'SRW']
Eric Boren4c7754c2017-04-10 08:19:10 -0400608
609 # skbug.com/4888
610 # Blacklist RAW images (and a few large PNGs) on GPU bots
611 # until we can resolve failures.
Matt Sarett929bfeb2017-05-22 10:34:41 -0400612 if 'GPU' in bot:
613 blacklist('_ image _ interlaced1.png')
614 blacklist('_ image _ interlaced2.png')
615 blacklist('_ image _ interlaced3.png')
616 for raw_ext in r:
617 blacklist('_ image _ .%s' % raw_ext)
618
619 # Blacklist memory intensive tests on 32-bit bots.
Ben Wagnerfd66b5f2017-11-15 15:16:27 -0500620 if ('Win8' in bot or 'Win2016' in bot) and 'x86-' in bot:
Matt Sarett929bfeb2017-05-22 10:34:41 -0400621 blacklist('_ image f16 _')
Matt Sarett112565e2017-05-22 13:45:15 -0400622 blacklist('_ image _ abnormal.wbmp')
Eric Boren4c7754c2017-04-10 08:19:10 -0400623 blacklist('_ image _ interlaced1.png')
624 blacklist('_ image _ interlaced2.png')
625 blacklist('_ image _ interlaced3.png')
626 for raw_ext in r:
627 blacklist('_ image _ .%s' % raw_ext)
628
Ben Wagner3f330692017-12-07 15:14:54 -0500629 if 'Nexus5' in bot and 'GPU' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400630 # skia:5876
631 blacklist(['_', 'gm', '_', 'encode-platform'])
632
633 if 'AndroidOne-GPU' in bot: # skia:4697, skia:4704, skia:4694, skia:4705
634 blacklist(['_', 'gm', '_', 'bigblurs'])
635 blacklist(['_', 'gm', '_', 'bleed'])
636 blacklist(['_', 'gm', '_', 'bleed_alpha_bmp'])
637 blacklist(['_', 'gm', '_', 'bleed_alpha_bmp_shader'])
638 blacklist(['_', 'gm', '_', 'bleed_alpha_image'])
639 blacklist(['_', 'gm', '_', 'bleed_alpha_image_shader'])
640 blacklist(['_', 'gm', '_', 'bleed_image'])
641 blacklist(['_', 'gm', '_', 'dropshadowimagefilter'])
642 blacklist(['_', 'gm', '_', 'filterfastbounds'])
643 blacklist([gl_prefix, 'gm', '_', 'imageblurtiled'])
644 blacklist(['_', 'gm', '_', 'imagefiltersclipped'])
645 blacklist(['_', 'gm', '_', 'imagefiltersscaled'])
646 blacklist(['_', 'gm', '_', 'imageresizetiled'])
647 blacklist(['_', 'gm', '_', 'matrixconvolution'])
648 blacklist(['_', 'gm', '_', 'strokedlines'])
Raul Tambre0362dc22019-05-07 16:42:32 +0300649 if sample_count:
Eric Boren4c7754c2017-04-10 08:19:10 -0400650 gl_msaa_config = gl_prefix + 'msaa' + sample_count
651 blacklist([gl_msaa_config, 'gm', '_', 'imageblurtiled'])
652 blacklist([gl_msaa_config, 'gm', '_', 'imagefiltersbase'])
653
654 match = []
655 if 'Valgrind' in bot: # skia:3021
656 match.append('~Threaded')
657
Ben Wagner6c126422017-06-19 12:45:54 -0400658 if 'Valgrind' in bot and 'PreAbandonGpuContext' in bot:
659 # skia:6575
660 match.append('~multipicturedraw_')
661
Cary Clarka7c569d2018-02-14 11:31:25 -0500662 if 'AndroidOne' in bot:
663 match.append('~WritePixels') # skia:4711
664 match.append('~PremulAlphaRoundTrip_Gpu') # skia:7501
Brian Salomonf42a7762018-06-21 11:14:51 -0400665 match.append('~ReimportImageTextureWithMipLevels') # skia:8090
Eric Boren4c7754c2017-04-10 08:19:10 -0400666
Kevin Lubick608c35a2018-01-16 16:15:57 -0500667 if 'Chromecast' in bot:
Kevin Lubick6ea9fdf2018-01-17 08:54:21 -0500668 if 'GPU' in bot:
669 # skia:6687
Kevin Lubick6ea9fdf2018-01-17 08:54:21 -0500670 match.append('~animated-image-blurs')
Ben Wagnerd50a1932018-03-01 09:45:18 -0500671 match.append('~blur_0.01')
672 match.append('~blur_image_filter')
Eric Boren1e00d192018-04-13 15:59:02 -0400673 match.append('~check_small_sigma_offset')
Ben Wagnerd50a1932018-03-01 09:45:18 -0500674 match.append('~imageblur2')
675 match.append('~lighting')
676 match.append('~longpathdash')
677 match.append('~matrixconvolution')
Ben Wagnerdabef9d2018-02-27 16:36:12 -0500678 match.append('~textblobmixedsizes_df')
Ben Wagner98c3c612018-02-26 14:53:30 -0500679 match.append('~textblobrandomfont')
Kevin Lubick608c35a2018-01-16 16:15:57 -0500680 # Blacklisted to avoid OOM (we see DM just end with "broken pipe")
Kevin Lubick608c35a2018-01-16 16:15:57 -0500681 match.append('~bigbitmaprect_')
Kevin Lubick608c35a2018-01-16 16:15:57 -0500682 match.append('~DrawBitmapRect')
Kevin Lubick8684c712018-02-12 15:55:57 -0500683 match.append('~drawbitmaprect')
Ben Wagnerd50a1932018-03-01 09:45:18 -0500684 match.append('~GM_animated-image-blurs')
685 match.append('~ImageFilterBlurLargeImage')
686 match.append('~savelayer_clipmask')
687 match.append('~TextBlobCache')
688 match.append('~verylarge')
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400689
Eric Boren4c7754c2017-04-10 08:19:10 -0400690 if 'GalaxyS6' in bot:
691 match.append('~SpecialImage') # skia:6338
Brian Osmaneee3c092017-06-15 13:25:10 -0400692 match.append('~skbug6653') # skia:6653
Eric Boren4c7754c2017-04-10 08:19:10 -0400693
Eric Boren4c7754c2017-04-10 08:19:10 -0400694 if 'MSAN' in bot:
695 match.extend(['~Once', '~Shared']) # Not sure what's up with these tests.
696
697 if 'TSAN' in bot:
698 match.extend(['~ReadWriteAlpha']) # Flaky on TSAN-covered on nvidia bots.
699 match.extend(['~RGBA4444TextureTest', # Flakier than they are important.
700 '~RGB565TextureTest'])
701
Ben Wagnerdba0bc82017-12-11 13:27:27 -0500702 # By default, we test with GPU threading enabled, unless specifically
703 # disabled.
704 if 'NoGPUThreads' in bot:
705 args.extend(['--gpuThreads', '0'])
706
Greg Daniela86385d2017-06-05 11:34:29 -0400707 if 'Vulkan' in bot and 'Adreno530' in bot:
708 # skia:5777
709 match.extend(['~CopySurface'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400710
Brian Salomon3d86a192018-02-27 16:46:11 -0500711 if 'Vulkan' in bot and 'Adreno' in bot:
712 # skia:7663
713 match.extend(['~WritePixelsNonTextureMSAA_Gpu'])
714 match.extend(['~WritePixelsMSAA_Gpu'])
715
Ben Wagner63457572017-12-21 10:49:58 -0500716 if 'Vulkan' in bot and api.vars.is_linux and 'IntelIris640' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400717 match.extend(['~VkHeapTests']) # skia:6245
718
Kevin Lubickec4e7352018-04-25 07:46:55 -0400719 if api.vars.is_linux and 'IntelIris640' in bot:
Jim Van Verth5a8f3e42019-10-24 10:23:26 -0400720 match.extend(['~Programs']) # skia:7849
Kevin Lubickec4e7352018-04-25 07:46:55 -0400721
Brian Osman8c4ee902019-07-09 12:58:26 +0000722 if 'IntelIris640' in bot or 'IntelHD615' in bot or 'IntelHDGraphics615' in bot:
Brian Osman22e47f92019-07-01 14:28:13 -0400723 match.append('~^SRGBReadWritePixels$') # skia:9225
724
Ben Wagnerb8427032017-11-18 19:04:25 -0500725 if 'Vulkan' in bot and api.vars.is_linux and 'IntelHD405' in bot:
Ben Wagner32eb5ba2017-11-20 13:46:20 -0500726 # skia:7322
Ben Wagnerb8427032017-11-18 19:04:25 -0500727 blacklist(['vk', 'gm', '_', 'skbug_257'])
Chris Dalton414be9b2018-04-26 14:37:01 -0600728 blacklist(['vk', 'gm', '_', 'filltypespersp'])
Ben Wagnerb8427032017-11-18 19:04:25 -0500729 match.append('~^ClearOp$')
Greg Danielec34a712017-12-06 12:06:26 -0500730 match.append('~^CopySurface$')
731 match.append('~^ImageNewShader_GPU$')
Ben Wagnerb8427032017-11-18 19:04:25 -0500732 match.append('~^InitialTextureClear$')
Greg Danielec34a712017-12-06 12:06:26 -0500733 match.append('~^PinnedImageTest$')
Ben Wagnerb8427032017-11-18 19:04:25 -0500734 match.append('~^ReadPixels_Gpu$')
735 match.append('~^ReadPixels_Texture$')
Greg Danielec34a712017-12-06 12:06:26 -0500736 match.append('~^SRGBReadWritePixels$')
Ben Wagnerb8427032017-11-18 19:04:25 -0500737 match.append('~^VkUploadPixelsTests$')
738 match.append('~^WritePixelsNonTexture_Gpu$')
Brian Salomon3d86a192018-02-27 16:46:11 -0500739 match.append('~^WritePixelsNonTextureMSAA_Gpu$')
Ben Wagnerb8427032017-11-18 19:04:25 -0500740 match.append('~^WritePixels_Gpu$')
Brian Salomon3d86a192018-02-27 16:46:11 -0500741 match.append('~^WritePixelsMSAA_Gpu$')
Ben Wagnerb8427032017-11-18 19:04:25 -0500742
Greg Daniele5b7e6d2018-06-12 10:52:59 -0400743 if 'Vulkan' in bot and 'GTX660' in bot and 'Win' in bot:
744 # skbug.com/8047
745 match.append('~FloatingPointTextureTest$')
746
Jim Van Verth31a9e8d2019-07-15 12:27:31 -0400747 if 'Metal' in bot and 'HD8870M' in bot and 'Mac' in bot:
748 # skia:9255
749 match.append('~WritePixelsNonTextureMSAA_Gpu')
750
Robert Phillipsa96a1012018-04-23 10:46:09 -0400751 if 'ANGLE' in bot:
752 # skia:7835
753 match.append('~BlurMaskBiggerThanDest')
754
Ben Wagner0473a312018-08-29 14:15:15 -0400755 if 'IntelIris6100' in bot and 'ANGLE' in bot and 'Release' in bot:
Ben Wagner1c4668d2018-07-23 14:25:02 -0400756 # skia:7376
757 match.append('~^ProcessorOptimizationValidationTest$')
758
Ben Wagnerc6b2e6b2017-10-07 18:57:25 -0400759 if ('IntelIris6100' in bot or 'IntelHD4400' in bot) and 'ANGLE' in bot:
760 # skia:6857
761 blacklist(['angle_d3d9_es2', 'gm', '_', 'lighting'])
762
Michael Ludwig9a568752019-03-14 16:31:45 -0400763 if 'Chorizo' in bot:
764 # skia:8869
765 blacklist(['_', 'gm', '_', 'compositor_quads_filter'])
766
Kevin Lubickc14e5a72017-08-15 13:22:19 -0400767 if 'PowerVRGX6250' in bot:
768 match.append('~gradients_view_perspective_nodither') #skia:6972
769
Mike Klein3a3fbf12018-01-30 08:08:49 -0500770 if '-arm-' in bot and 'ASAN' in bot:
771 # TODO: can we run with env allocator_may_return_null=1 instead?
772 match.append('~BadImage')
773
Ben Wagner1d8726f2018-02-02 14:47:31 -0500774 if 'Mac' in bot and 'IntelHD6000' in bot:
Ben Wagnerdf430052018-02-08 16:57:04 -0500775 # skia:7574
Ben Wagner1d8726f2018-02-02 14:47:31 -0500776 match.append('~^ProcessorCloneTest$')
777 match.append('~^GrMeshTest$')
778
Ben Wagnerdf430052018-02-08 16:57:04 -0500779 if 'Mac' in bot and 'IntelHD615' in bot:
780 # skia:7603
781 match.append('~^GrMeshTest$')
782
Ben Wagner18753532019-04-15 10:56:05 -0400783 if 'LenovoYogaC630' in bot and 'ANGLE' in api.vars.extra_tokens:
Brian Osman1b531912019-07-25 15:55:11 -0400784 # skia:9275
Jim Van Verth5a8f3e42019-10-24 10:23:26 -0400785 blacklist(['_', 'tests', '_', 'Programs'])
Ben Wagner18753532019-04-15 10:56:05 -0400786 # skia:8976
787 blacklist(['_', 'tests', '_', 'GrDefaultPathRendererTest'])
Chris Dalton786dcfd2019-05-21 09:25:08 -0600788 # https://bugs.chromium.org/p/angleproject/issues/detail?id=3414
789 blacklist(['_', 'tests', '_', 'PinnedImageTest'])
Ben Wagner18753532019-04-15 10:56:05 -0400790
Eric Boren4c7754c2017-04-10 08:19:10 -0400791 if blacklisted:
792 args.append('--blacklist')
793 args.extend(blacklisted)
794
795 if match:
796 args.append('--match')
797 args.extend(match)
798
799 # These bots run out of memory running RAW codec tests. Do not run them in
800 # parallel
Brian Osman2d170c32019-06-11 12:38:55 -0400801 if 'Nexus5' in bot or 'Nexus9' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400802 args.append('--noRAW_threading')
803
Yuqian Li84be3ad2017-10-17 10:11:21 -0400804 if 'FSAA' in bot:
Mike Kleine5acd752019-03-22 09:57:16 -0500805 args.extend(['--analyticAA', 'false'])
Yuqian Li84be3ad2017-10-17 10:11:21 -0400806 if 'FAAA' in bot:
Mike Kleine5acd752019-03-22 09:57:16 -0500807 args.extend(['--forceAnalyticAA'])
Yuqian Li84be3ad2017-10-17 10:11:21 -0400808
Mike Kleinc207da82017-11-10 14:24:34 -0500809 if 'NativeFonts' not in bot:
810 args.append('--nonativeFonts')
811
Mike Klein0c5fdcb2017-11-13 12:40:46 -0500812 if 'GDI' in bot:
813 args.append('--gdi')
814
Stephan Altmueller74dac542017-09-11 15:32:21 -0400815 # Let's make all bots produce verbose output by default.
816 args.append('--verbose')
Mike Kleinc9089062017-06-26 09:09:32 -0400817
Eric Boren4c7754c2017-04-10 08:19:10 -0400818 return args
819
820
821def key_params(api):
822 """Build a unique key from the builder name (as a list).
823
824 E.g. arch x86 gpu GeForce320M mode MacMini4.1 os Mac10.6
825 """
826 # Don't bother to include role, which is always Test.
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400827 blacklist = ['role', 'test_filter']
Eric Boren4c7754c2017-04-10 08:19:10 -0400828
829 flat = []
830 for k in sorted(api.vars.builder_cfg.keys()):
831 if k not in blacklist:
832 flat.append(k)
833 flat.append(api.vars.builder_cfg[k])
Kevin Lubick3fee9232018-08-24 13:30:34 -0400834
Eric Boren4c7754c2017-04-10 08:19:10 -0400835 return flat
836
837
838def test_steps(api):
839 """Run the DM test."""
Eric Boren72f66682018-05-18 07:36:55 -0400840 b = api.properties['buildername']
Eric Boren4c7754c2017-04-10 08:19:10 -0400841 use_hash_file = False
Eric Boren72f66682018-05-18 07:36:55 -0400842 if upload_dm_results(b):
843 host_dm_dir = str(api.flavor.host_dirs.dm_dir)
844 api.flavor.create_clean_host_dir(api.path['start_dir'].join('test'))
Eric Boren4c7754c2017-04-10 08:19:10 -0400845 device_dm_dir = str(api.flavor.device_dirs.dm_dir)
846 if host_dm_dir != device_dm_dir:
847 api.flavor.create_clean_device_dir(device_dm_dir)
848
849 # Obtain the list of already-generated hashes.
850 hash_filename = 'uninteresting_hashes.txt'
851
Eric Boren4c7754c2017-04-10 08:19:10 -0400852 host_hashes_file = api.vars.tmp_dir.join(hash_filename)
853 hashes_file = api.flavor.device_path_join(
854 api.flavor.device_dirs.tmp_dir, hash_filename)
855 api.run(
856 api.python.inline,
857 'get uninteresting hashes',
858 program="""
859 import contextlib
860 import math
861 import socket
862 import sys
863 import time
864 import urllib2
865
Stephan Altmüller64cc5762018-08-02 08:51:38 +0200866 HASHES_URL = sys.argv[1]
Eric Boren4c7754c2017-04-10 08:19:10 -0400867 RETRIES = 5
868 TIMEOUT = 60
869 WAIT_BASE = 15
870
871 socket.setdefaulttimeout(TIMEOUT)
872 for retry in range(RETRIES):
873 try:
874 with contextlib.closing(
875 urllib2.urlopen(HASHES_URL, timeout=TIMEOUT)) as w:
876 hashes = w.read()
Stephan Altmüller64cc5762018-08-02 08:51:38 +0200877 with open(sys.argv[2], 'w') as f:
Eric Boren4c7754c2017-04-10 08:19:10 -0400878 f.write(hashes)
879 break
880 except Exception as e:
881 print 'Failed to get uninteresting hashes from %s:' % HASHES_URL
882 print e
883 if retry == RETRIES:
884 raise
885 waittime = WAIT_BASE * math.pow(2, retry)
886 print 'Retry in %d seconds.' % waittime
887 time.sleep(waittime)
888 """,
Stephan Altmüller64cc5762018-08-02 08:51:38 +0200889 args=[api.properties['gold_hashes_url'], host_hashes_file],
Eric Boren4c7754c2017-04-10 08:19:10 -0400890 abort_on_failure=False,
891 fail_build_on_failure=False,
892 infra_step=True)
893
894 if api.path.exists(host_hashes_file):
895 api.flavor.copy_file_to_device(host_hashes_file, hashes_file)
896 use_hash_file = True
897
898 # Run DM.
899 properties = [
Eric Boren72f66682018-05-18 07:36:55 -0400900 'gitHash', api.properties['revision'],
Eric Boren9a9e3872017-11-29 12:33:22 -0500901 'builder', api.vars.builder_name,
902 'buildbucket_build_id', api.properties.get('buildbucket_build_id', ''),
Eric Boren113cba82019-02-26 13:52:43 -0500903 'task_id', api.properties['task_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',
Greg Danielf41b2bd2019-08-22 16:19:24 -0400923 '--dontReduceOpsTaskSplitting',
Kevin Lubick608c35a2018-01-16 16:15:57 -0500924 '--properties'
925 ] + properties
Kevin Lubick95379eb2018-01-17 11:20:19 -0500926 else:
927 args = [
928 'dm',
929 '--resourcePath', api.flavor.device_dirs.resource_dir,
930 '--skps', api.flavor.device_dirs.skp_dir,
931 '--images', api.flavor.device_path_join(
932 api.flavor.device_dirs.images_dir, 'dm'),
933 '--colorImages', api.flavor.device_path_join(
934 api.flavor.device_dirs.images_dir, 'colorspace'),
935 '--nameByHash',
936 '--properties'
937 ] + properties
938
939 args.extend(['--svgs', api.flavor.device_dirs.svg_dir])
Eric Boren8c172ba2018-07-19 13:27:49 -0400940 if 'Lottie' in api.vars.builder_cfg.get('extra_config', ''):
Florin Malita81eb6322019-06-24 10:50:33 -0400941 args.extend([
942 '--lotties',
943 api.flavor.device_path_join(
944 api.flavor.device_dirs.resource_dir, 'skottie'),
945 api.flavor.device_dirs.lotties_dir])
Kevin Lubick95379eb2018-01-17 11:20:19 -0500946
947 args.append('--key')
Kevin Lubick3fee9232018-08-24 13:30:34 -0400948 keys = key_params(api)
949
950 if 'Lottie' in api.vars.builder_cfg.get('extra_config', ''):
951 keys.extend(['renderer', 'skottie'])
Ben Wagner58a2e3d2019-02-08 13:01:40 -0500952 if 'DDL' in api.vars.builder_cfg.get('extra_config', ''):
953 # 'DDL' style means "--skpViewportSize 2048 --pr ~small"
954 keys.extend(['style', 'DDL'])
955 else:
956 keys.extend(['style', 'default'])
Kevin Lubick3fee9232018-08-24 13:30:34 -0400957
958 args.extend(keys)
Kevin Lubick608c35a2018-01-16 16:15:57 -0500959
960 if use_hash_file:
961 args.extend(['--uninterestingHashesFile', hashes_file])
Eric Boren72f66682018-05-18 07:36:55 -0400962 if upload_dm_results(b):
Kevin Lubick608c35a2018-01-16 16:15:57 -0500963 args.extend(['--writePath', api.flavor.device_dirs.dm_dir])
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400964
Eric Boren89cd3572017-06-28 13:50:22 -0400965 args.extend(dm_flags(api, api.vars.builder_name))
Eric Boren4c7754c2017-04-10 08:19:10 -0400966
Eric Boren4c7754c2017-04-10 08:19:10 -0400967 # See skia:2789.
Ben Wagner37491d22017-12-13 13:00:47 -0500968 if 'AbandonGpuContext' in api.vars.extra_tokens:
Eric Boren4c7754c2017-04-10 08:19:10 -0400969 args.append('--abandonGpuContext')
Ben Wagner37491d22017-12-13 13:00:47 -0500970 if 'PreAbandonGpuContext' in api.vars.extra_tokens:
Eric Boren4c7754c2017-04-10 08:19:10 -0400971 args.append('--preAbandonGpuContext')
Ben Wagner37491d22017-12-13 13:00:47 -0500972 if 'ReleaseAndAbandonGpuContext' in api.vars.extra_tokens:
Eric Boren6ec17e32017-04-26 14:25:29 -0400973 args.append('--releaseAndAbandonGpuContext')
Eric Boren4c7754c2017-04-10 08:19:10 -0400974
Ben Wagner5655ba42017-10-02 10:48:32 -0400975 api.run(api.flavor.step, 'dm', cmd=args, abort_on_failure=False)
Eric Boren4c7754c2017-04-10 08:19:10 -0400976
Eric Boren72f66682018-05-18 07:36:55 -0400977 if upload_dm_results(b):
Eric Boren4c7754c2017-04-10 08:19:10 -0400978 # Copy images and JSON to host machine if needed.
979 api.flavor.copy_directory_contents_to_host(
Eric Boren72f66682018-05-18 07:36:55 -0400980 api.flavor.device_dirs.dm_dir, api.flavor.host_dirs.dm_dir)
Eric Boren4c7754c2017-04-10 08:19:10 -0400981
982
borenet1ed2ae42016-07-26 11:52:17 -0700983def RunSteps(api):
Eric Borenb7023162018-05-04 13:46:15 -0400984 api.vars.setup()
985 api.file.ensure_directory('makedirs tmp_dir', api.vars.tmp_dir)
986 api.flavor.setup()
987
Robert Iannucci297a7ef2017-05-12 19:09:38 -0700988 env = {}
Eric Boren4c7754c2017-04-10 08:19:10 -0400989 if 'iOS' in api.vars.builder_name:
990 env['IOS_BUNDLE_ID'] = 'com.google.dm'
Stephan Altmueller63e843d2017-04-25 11:38:38 -0400991 env['IOS_MOUNT_POINT'] = api.vars.slave_dir.join('mnt_iosdevice')
Robert Iannucci297a7ef2017-05-12 19:09:38 -0700992 with api.context(env=env):
Eric Boren4c7754c2017-04-10 08:19:10 -0400993 try:
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400994 if 'Chromecast' in api.vars.builder_name:
995 api.flavor.install(resources=True, skps=True)
Eric Boren8c172ba2018-07-19 13:27:49 -0400996 elif 'Lottie' in api.vars.builder_name:
997 api.flavor.install(resources=True, lotties=True)
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400998 else:
Eric Boren8c172ba2018-07-19 13:27:49 -0400999 api.flavor.install(skps=True, images=True, svgs=True, resources=True)
Eric Boren4c7754c2017-04-10 08:19:10 -04001000 test_steps(api)
1001 finally:
1002 api.flavor.cleanup_steps()
1003 api.run.check_failure()
1004
1005
Eric Borenf9aa9e52017-04-10 09:56:10 -04001006TEST_BUILDERS = [
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001007 'Test-Android-Clang-AndroidOne-GPU-Mali400MP2-arm-Release-All-Android',
1008 'Test-Android-Clang-GalaxyS6-GPU-MaliT760-arm64-Debug-All-Android',
Ben Wagner12e69e72018-07-15 15:12:01 -04001009 ('Test-Android-Clang-GalaxyS6-GPU-MaliT760-arm64-Debug-All'
1010 '-Android_NoGPUThreads'),
Ben Wagner2107bd82018-06-12 14:16:07 -04001011 ('Test-Android-Clang-GalaxyS7_G930FD-GPU-MaliT880-arm64-Release-All'
1012 '-Android_Vulkan'),
Ben Wagner12e69e72018-07-15 15:12:01 -04001013 'Test-Android-Clang-MotoG4-CPU-Snapdragon617-arm-Release-All-Android',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001014 'Test-Android-Clang-NVIDIA_Shield-GPU-TegraX1-arm64-Debug-All-Android_CCPR',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001015 'Test-Android-Clang-Nexus5-GPU-Adreno330-arm-Release-All-Android',
Ben Wagner5cf6d322017-12-07 10:23:07 -05001016 'Test-Android-Clang-Nexus7-CPU-Tegra3-arm-Release-All-Android',
Ben Wagner52423f32017-12-07 10:17:13 -05001017 'Test-Android-Clang-Pixel-GPU-Adreno530-arm64-Debug-All-Android_Vulkan',
Ben Wagner12e69e72018-07-15 15:12:01 -04001018 'Test-Android-Clang-Pixel-GPU-Adreno530-arm-Debug-All-Android_ASAN',
Brian Osman4af42fc2019-09-16 12:38:04 -04001019 'Test-Android-Clang-Pixel2XL-GPU-Adreno540-arm64-Debug-All-Android',
Robert Phillipscd5d1462019-05-01 18:25:52 -04001020 'Test-Android-Clang-Pixel3-GPU-Adreno630-arm64-Debug-All-Android_Vulkan',
Chris Dalton6e38ce72019-10-23 11:14:49 -06001021 'Test-Android-Clang-Pixel3a-GPU-Adreno615-arm64-Debug-All-Android',
Kevin Lubickd7af1db2017-11-02 12:03:22 -04001022 ('Test-ChromeOS-Clang-AcerChromebookR13Convertible-GPU-PowerVRGX6250-'
1023 'arm-Debug-All'),
Mike Klein54d7b312018-06-27 13:43:51 -04001024 'Test-Chromecast-Clang-Chorizo-CPU-Cortex_A7-arm-Release-All',
1025 'Test-Chromecast-Clang-Chorizo-GPU-Cortex_A7-arm-Release-All',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001026 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All-ASAN',
Mike Kleinc24e0c12018-08-17 13:24:51 -04001027 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All-BonusConfigs',
Kevin Lubick32f318b2017-10-17 13:40:52 -04001028 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-shard_00_10-Coverage',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001029 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All-MSAN',
1030 ('Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All'
Ben Wagner9fb285e2017-10-02 16:53:07 -04001031 '-SK_USE_DISCARDABLE_SCALEDIMAGECACHE'),
Eric Boren8c172ba2018-07-19 13:27:49 -04001032 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Release-All-Lottie',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001033 ('Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Release-All'
Ben Wagner6e0a6b32017-09-26 14:11:15 -04001034 '-SK_FORCE_RASTER_PIPELINE_BLITTER'),
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001035 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Release-All-TSAN',
Ben Wagnerd26e4462018-05-22 10:46:15 -04001036 'Test-Debian9-Clang-GCE-GPU-SwiftShader-x86_64-Release-All-SwiftShader',
Kevin Lubick88611a12018-04-26 09:46:45 -04001037 'Test-Debian9-Clang-NUC5PPYH-GPU-IntelHD405-x86_64-Release-All-Vulkan',
1038 'Test-Debian9-Clang-NUC7i5BNK-GPU-IntelIris640-x86_64-Debug-All-Vulkan',
Ben Wagner4d3ac512019-11-21 16:32:26 -05001039 'Test-Debian10-GCC-GCE-CPU-AVX2-x86_64-Debug-All-Docker',
Jim Van Verth31a9e8d2019-07-15 12:27:31 -04001040 'Test-iOS-Clang-iPhone6-GPU-PowerVRGX6450-arm64-Release-All-Metal',
Ben Wagnerb1f5d612019-02-21 19:24:09 -05001041 ('Test-Mac10.13-Clang-MacBook10.1-GPU-IntelHD615-x86_64-Release-All'
1042 '-NativeFonts'),
1043 'Test-Mac10.13-Clang-MacBookPro11.5-CPU-AVX2-x86_64-Release-All',
1044 'Test-Mac10.13-Clang-MacBookPro11.5-GPU-RadeonHD8870M-x86_64-Debug-All-Metal',
Ben Wagnerb1f5d612019-02-21 19:24:09 -05001045 ('Test-Mac10.13-Clang-MacMini7.1-GPU-IntelIris5100-x86_64-Debug-All'
1046 '-CommandBuffer'),
1047 'Test-Mac10.14-Clang-MacBookAir7.2-GPU-IntelHD6000-x86_64-Debug-All',
Ben Wagner9f553932017-11-27 22:18:12 -05001048 'Test-Ubuntu17-Clang-Golo-GPU-QuadroP400-x86_64-Debug-All-Vulkan_Coverage',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001049 ('Test-Ubuntu17-GCC-Golo-GPU-QuadroP400-x86_64-Release-All'
Mike Kleinf4a0f572019-11-19 12:41:16 -06001050 '-Valgrind_AbandonGpuContext'),
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001051 ('Test-Ubuntu17-GCC-Golo-GPU-QuadroP400-x86_64-Release-All'
Mike Kleinf4a0f572019-11-19 12:41:16 -06001052 '-Valgrind_PreAbandonGpuContext'),
Eric Borendd8b1fc2018-05-18 09:54:02 -04001053 'Test-Ubuntu17-Clang-Golo-GPU-QuadroP400-x86_64-Debug-All-DDL1',
1054 'Test-Ubuntu17-Clang-Golo-GPU-QuadroP400-x86_64-Debug-All-DDL3',
Eric Boren9f4efd32018-07-20 08:25:42 -04001055 'Test-Ubuntu17-Clang-Golo-GPU-QuadroP400-x86_64-Debug-All-Lottie',
Ben Wagnera4cdfbb2018-08-31 10:20:34 -04001056 'Test-Win10-Clang-Golo-GPU-QuadroP400-x86_64-Release-All-BonusConfigs',
Chris Daltonb3c97452019-06-25 20:07:56 -06001057 'Test-Win10-Clang-Golo-GPU-QuadroP400-x86_64-Debug-All-NonNVPR',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001058 ('Test-Win10-Clang-Golo-GPU-QuadroP400-x86_64-Release-All'
Ben Wagner6e0a6b32017-09-26 14:11:15 -04001059 '-ReleaseAndAbandonGpuContext'),
Ben Wagnerfd66b5f2017-11-15 15:16:27 -05001060 'Test-Win10-Clang-NUC5i7RYH-CPU-AVX2-x86_64-Debug-All-NativeFonts_GDI',
Ben Wagner0473a312018-08-29 14:15:15 -04001061 'Test-Win10-Clang-NUC5i7RYH-GPU-IntelIris6100-x86_64-Release-All-ANGLE',
Ben Wagnerb2fd61a2017-10-23 16:01:44 -04001062 'Test-Win10-Clang-NUCD34010WYKH-GPU-IntelHD4400-x86_64-Release-All-ANGLE',
Greg Daniele5b7e6d2018-06-12 10:52:59 -04001063 'Test-Win10-Clang-ShuttleA-GPU-GTX660-x86_64-Release-All-Vulkan',
Jim Van Verth95df6132019-09-24 12:31:57 -04001064 'Test-Win10-Clang-ShuttleA-GPU-RadeonHD7770-x86_64-Release-All-Vulkan',
Ben Wagnerb2fd61a2017-10-23 16:01:44 -04001065 'Test-Win10-Clang-ShuttleC-GPU-GTX960-x86_64-Debug-All-ANGLE',
Ben Wagner18753532019-04-15 10:56:05 -04001066 'Test-Win10-MSVC-LenovoYogaC630-GPU-Adreno630-arm64-Debug-All-ANGLE',
Ben Wagner78935c22017-11-15 13:21:03 -05001067 'Test-Win2016-Clang-GCE-CPU-AVX2-x86_64-Debug-All-FAAA',
Ben Wagner78935c22017-11-15 13:21:03 -05001068 'Test-Win2016-Clang-GCE-CPU-AVX2-x86_64-Debug-All-FSAA',
Ben Wagner31629a82018-08-22 13:10:32 -04001069 'Test-iOS-Clang-iPadPro-GPU-PowerVRGT7800-arm64-Release-All',
Brian Salomonb3b98b72019-07-08 16:29:31 +00001070 'Test-Mac10.13-Clang-MacBook10.1-GPU-IntelHD615-x86_64-Debug-All-CommandBuffer',
Brian Salomon7c8c67e2019-09-11 16:53:12 -04001071 'Test-Android-Clang-TecnoSpark3Pro-GPU-PowerVRGE8320-arm-Debug-All-Android',
Eric Borenf9aa9e52017-04-10 09:56:10 -04001072]
borenet1ed2ae42016-07-26 11:52:17 -07001073
1074
1075def GenTests(api):
Eric Borenf9aa9e52017-04-10 09:56:10 -04001076 for builder in TEST_BUILDERS:
1077 test = (
1078 api.test(builder) +
1079 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001080 buildbucket_build_id='123454321',
Eric Borenf9aa9e52017-04-10 09:56:10 -04001081 revision='abc123',
1082 path_config='kitchen',
Stephan Altmüller64cc5762018-08-02 08:51:38 +02001083 gold_hashes_url='https://example.com/hashes.txt',
Eric Boren113cba82019-02-26 13:52:43 -05001084 swarm_out_dir='[SWARM_OUT_DIR]',
1085 task_id='task_12345') +
Eric Borenf9aa9e52017-04-10 09:56:10 -04001086 api.path.exists(
1087 api.path['start_dir'].join('skia'),
1088 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1089 'skimage', 'VERSION'),
1090 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1091 'skp', 'VERSION'),
1092 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1093 'svg', 'VERSION'),
1094 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
Ben Wagnerf835c222017-04-30 11:14:51 -04001095 ) +
1096 api.step_data('get swarming bot id',
1097 stdout=api.raw_io.output('skia-bot-123')) +
1098 api.step_data('get swarming task id',
1099 stdout=api.raw_io.output('123456'))
Eric Borenf9aa9e52017-04-10 09:56:10 -04001100 )
Ben Wagner18753532019-04-15 10:56:05 -04001101 if 'Win' in builder and not 'LenovoYogaC630' in builder:
Eric Borenf9aa9e52017-04-10 09:56:10 -04001102 test += api.platform('win', 64)
Eric Boren4c7754c2017-04-10 08:19:10 -04001103
Kevin Lubick2dafbd72017-08-31 10:39:05 -04001104 if 'Chromecast' in builder:
1105 test += api.step_data(
1106 'read chromecast ip',
1107 stdout=api.raw_io.output('192.168.1.2:5555'))
1108
Eric Borenf9aa9e52017-04-10 09:56:10 -04001109 yield test
Eric Boren4c7754c2017-04-10 08:19:10 -04001110
Eric Borendd8b1fc2018-05-18 09:54:02 -04001111 builder = 'Test-Win8-Clang-Golo-CPU-AVX-x86-Debug-All'
Kevin Lubickfe079d42017-04-12 08:31:48 -04001112 yield (
1113 api.test('trybot') +
1114 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001115 buildbucket_build_id='123454321',
Kevin Lubickfe079d42017-04-12 08:31:48 -04001116 revision='abc123',
1117 path_config='kitchen',
Stephan Altmüller64cc5762018-08-02 08:51:38 +02001118 gold_hashes_url='https://example.com/hashes.txt',
Eric Boren113cba82019-02-26 13:52:43 -05001119 swarm_out_dir='[SWARM_OUT_DIR]',
1120 task_id='task_12345') +
Ben Wagnera0dbedf2019-04-24 14:14:27 -04001121 api.platform('win', 64) +
Kevin Lubickfe079d42017-04-12 08:31:48 -04001122 api.properties(patch_storage='gerrit') +
1123 api.properties.tryserver(
1124 buildername=builder,
1125 gerrit_project='skia',
1126 gerrit_url='https://skia-review.googlesource.com/',
1127 )+
1128 api.path.exists(
1129 api.path['start_dir'].join('skia'),
1130 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1131 'skimage', 'VERSION'),
1132 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1133 'skp', 'VERSION'),
1134 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1135 'svg', 'VERSION'),
1136 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
1137 )
1138 )
1139
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001140 builder = 'Test-Debian9-GCC-GCE-CPU-AVX2-x86_64-Debug-All'
borenet1ed2ae42016-07-26 11:52:17 -07001141 yield (
Eric Boren4c7754c2017-04-10 08:19:10 -04001142 api.test('failed_dm') +
1143 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001144 buildbucket_build_id='123454321',
borenet1ed2ae42016-07-26 11:52:17 -07001145 revision='abc123',
1146 path_config='kitchen',
Stephan Altmüller64cc5762018-08-02 08:51:38 +02001147 gold_hashes_url='https://example.com/hashes.txt',
Eric Boren113cba82019-02-26 13:52:43 -05001148 swarm_out_dir='[SWARM_OUT_DIR]',
1149 task_id='task_12345') +
borenet1ed2ae42016-07-26 11:52:17 -07001150 api.path.exists(
Ravi Mistry9bcca6a2016-11-21 16:06:19 -05001151 api.path['start_dir'].join('skia'),
1152 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
Eric Boren4c7754c2017-04-10 08:19:10 -04001153 'skimage', 'VERSION'),
Ravi Mistry9bcca6a2016-11-21 16:06:19 -05001154 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
Eric Boren4c7754c2017-04-10 08:19:10 -04001155 'skp', 'VERSION'),
Ravi Mistry9bcca6a2016-11-21 16:06:19 -05001156 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
Eric Boren4c7754c2017-04-10 08:19:10 -04001157 'svg', 'VERSION'),
Ravi Mistry9bcca6a2016-11-21 16:06:19 -05001158 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
Eric Boren4c7754c2017-04-10 08:19:10 -04001159 ) +
1160 api.step_data('symbolized dm', retcode=1)
1161 )
1162
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001163 builder = 'Test-Android-Clang-Nexus7-GPU-Tegra3-arm-Release-All-Android'
Eric Boren4c7754c2017-04-10 08:19:10 -04001164 yield (
1165 api.test('failed_get_hashes') +
1166 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001167 buildbucket_build_id='123454321',
Eric Boren4c7754c2017-04-10 08:19:10 -04001168 revision='abc123',
1169 path_config='kitchen',
Stephan Altmüller64cc5762018-08-02 08:51:38 +02001170 gold_hashes_url='https://example.com/hashes.txt',
Eric Boren113cba82019-02-26 13:52:43 -05001171 swarm_out_dir='[SWARM_OUT_DIR]',
1172 task_id='task_12345') +
Eric Boren4c7754c2017-04-10 08:19:10 -04001173 api.path.exists(
1174 api.path['start_dir'].join('skia'),
1175 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1176 'skimage', 'VERSION'),
1177 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1178 'skp', 'VERSION'),
1179 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1180 'svg', 'VERSION'),
1181 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
1182 ) +
1183 api.step_data('get uninteresting hashes', retcode=1)
1184 )
1185
Brian Osman2d170c32019-06-11 12:38:55 -04001186 builder = 'Test-Android-Clang-Nexus7-GPU-Tegra3-arm-Debug-All-Android'
Ben Wagner63acfe32019-10-14 13:03:50 -04001187 retry_step_name = ('push [START_DIR]/skia/resources/* '
1188 '/sdcard/revenge_of_the_skiabot/resources.push '
1189 '[START_DIR]/skia/resources/file1')
Eric Boren4c7754c2017-04-10 08:19:10 -04001190 yield (
1191 api.test('failed_push') +
1192 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001193 buildbucket_build_id='123454321',
Eric Boren4c7754c2017-04-10 08:19:10 -04001194 revision='abc123',
1195 path_config='kitchen',
Stephan Altmüller64cc5762018-08-02 08:51:38 +02001196 gold_hashes_url='https://example.com/hashes.txt',
Eric Boren113cba82019-02-26 13:52:43 -05001197 swarm_out_dir='[SWARM_OUT_DIR]',
1198 task_id='task_12345') +
Eric Boren4c7754c2017-04-10 08:19:10 -04001199 api.path.exists(
1200 api.path['start_dir'].join('skia'),
1201 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1202 'skimage', 'VERSION'),
1203 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1204 'skp', 'VERSION'),
1205 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1206 'svg', 'VERSION'),
1207 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
1208 ) +
Kevin Lubickc6f74ca2018-03-01 09:21:38 -05001209 api.step_data('get swarming bot id',
1210 stdout=api.raw_io.output('build123-m2--device5')) +
Ben Wagner63acfe32019-10-14 13:03:50 -04001211 api.step_data(retry_step_name, retcode=1) +
1212 api.step_data(retry_step_name + ' (attempt 2)', retcode=1) +
1213 api.step_data(retry_step_name + ' (attempt 3)', retcode=1)
Eric Boren4c7754c2017-04-10 08:19:10 -04001214 )
1215
Eric Borencd0a98c2018-06-20 13:23:16 -04001216 retry_step_name = 'adb pull.pull /sdcard/revenge_of_the_skiabot/dm_out'
Eric Boren4c7754c2017-04-10 08:19:10 -04001217 yield (
1218 api.test('failed_pull') +
1219 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001220 buildbucket_build_id='123454321',
Eric Boren4c7754c2017-04-10 08:19:10 -04001221 revision='abc123',
1222 path_config='kitchen',
Stephan Altmüller64cc5762018-08-02 08:51:38 +02001223 gold_hashes_url='https://example.com/hashes.txt',
Eric Boren113cba82019-02-26 13:52:43 -05001224 swarm_out_dir='[SWARM_OUT_DIR]',
1225 task_id='task_12345') +
Eric Boren4c7754c2017-04-10 08:19:10 -04001226 api.path.exists(
1227 api.path['start_dir'].join('skia'),
1228 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1229 'skimage', 'VERSION'),
1230 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1231 'skp', 'VERSION'),
1232 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1233 'svg', 'VERSION'),
1234 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
1235 ) +
1236 api.step_data('dm', retcode=1) +
Ben Wagnere7e6e222018-05-25 09:47:37 -04001237 api.step_data(retry_step_name, retcode=1) +
1238 api.step_data(retry_step_name + ' (attempt 2)', retcode=1) +
1239 api.step_data(retry_step_name + ' (attempt 3)', retcode=1)
borenetbfa5b452016-10-19 10:13:32 -07001240 )
Eric Boren053d7a42017-09-15 08:35:31 -04001241
1242 yield (
Kevin Lubickbd27d1d2017-10-13 08:01:49 -04001243 api.test('internal_bot_2') +
1244 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001245 buildbucket_build_id='123454321',
Kevin Lubickbd27d1d2017-10-13 08:01:49 -04001246 revision='abc123',
1247 path_config='kitchen',
1248 swarm_out_dir='[SWARM_OUT_DIR]',
Stephan Altmüller64cc5762018-08-02 08:51:38 +02001249 gold_hashes_url='https://example.com/hashes.txt',
Eric Boren113cba82019-02-26 13:52:43 -05001250 internal_hardware_label='2',
1251 task_id='task_12345') +
Kevin Lubickbd27d1d2017-10-13 08:01:49 -04001252 api.path.exists(
1253 api.path['start_dir'].join('skia'),
1254 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1255 'skimage', 'VERSION'),
1256 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1257 'skp', 'VERSION'),
1258 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1259 'svg', 'VERSION'),
1260 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
Kevin Lubickd1bbd5f2017-11-21 16:47:16 -05001261 )
Kevin Lubickbd27d1d2017-10-13 08:01:49 -04001262 )
Kevin Lubick82439882018-12-12 15:50:14 -05001263
1264 yield (
1265 api.test('internal_bot_5') +
1266 api.properties(buildername=builder,
1267 buildbucket_build_id='123454321',
1268 revision='abc123',
1269 path_config='kitchen',
1270 swarm_out_dir='[SWARM_OUT_DIR]',
1271 gold_hashes_url='https://example.com/hashes.txt',
Eric Boren113cba82019-02-26 13:52:43 -05001272 internal_hardware_label='5',
1273 task_id='task_12345') +
Kevin Lubick82439882018-12-12 15:50:14 -05001274 api.path.exists(
1275 api.path['start_dir'].join('skia'),
1276 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1277 'skimage', 'VERSION'),
1278 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1279 'skp', 'VERSION'),
1280 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1281 'svg', 'VERSION'),
1282 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
1283 )
1284 )