blob: 4c8935199383049a6473d9617229ea626251aaf1 [file] [log] [blame]
borenet1ed2ae42016-07-26 11:52:17 -07001# Copyright 2016 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5
6# Recipe module for Skia Swarming test.
7
8
9DEPS = [
Eric Boren896af752017-04-24 13:22:56 -040010 'env',
11 'flavor',
Robert Iannucci297a7ef2017-05-12 19:09:38 -070012 'recipe_engine/context',
Robert Iannucci8cd50412017-07-07 14:36:58 -070013 'recipe_engine/file',
borenet1ed2ae42016-07-26 11:52:17 -070014 'recipe_engine/path',
15 'recipe_engine/platform',
16 'recipe_engine/properties',
Eric Boren4c7754c2017-04-10 08:19:10 -040017 'recipe_engine/python',
borenet1ed2ae42016-07-26 11:52:17 -070018 'recipe_engine/raw_io',
Eric Boren4c7754c2017-04-10 08:19:10 -040019 'recipe_engine/step',
Eric Boren4c7754c2017-04-10 08:19:10 -040020 'run',
21 'vars',
borenet1ed2ae42016-07-26 11:52:17 -070022]
23
24
Eric Boren72f66682018-05-18 07:36:55 -040025def upload_dm_results(buildername):
26 skip_upload_bots = [
27 'ASAN',
28 'Coverage',
29 'MSAN',
30 'TSAN',
31 'UBSAN',
32 'Valgrind',
33 ]
34 for s in skip_upload_bots:
35 if s in buildername:
36 return False
37 return True
38
39
Eric Boren89cd3572017-06-28 13:50:22 -040040def dm_flags(api, bot):
Eric Boren4c7754c2017-04-10 08:19:10 -040041 args = []
Brian Osmanf9810662017-08-30 10:02:10 -040042 configs = []
43 blacklisted = []
44
45 def blacklist(quad):
Eric Borencd0a98c2018-06-20 13:23:16 -040046 config, src, options, name = (
47 quad.split(' ') if isinstance(quad, str) else quad)
Brian Osmanf9810662017-08-30 10:02:10 -040048 if (config == '_' or
49 config in configs or
50 (config[0] == '~' and config[1:] in configs)):
51 blacklisted.extend([config, src, options, name])
Eric Boren4c7754c2017-04-10 08:19:10 -040052
Mike Klein97d6a7a2017-07-24 10:37:19 -040053 # We've been spending lots of time writing out and especially uploading
54 # .pdfs, but not doing anything further with them. skia:6821
55 args.extend(['--dont_write', 'pdf'])
56
Eric Boren4c7754c2017-04-10 08:19:10 -040057 # This enables non-deterministic random seeding of the GPU FP optimization
Brian Osman7a34dca2017-04-13 13:40:29 -040058 # test.
Ben Wagner6da8f792017-08-10 12:22:56 -040059 # Not Android due to:
Ben Wagner11ab43c2017-08-09 18:05:59 -040060 # - https://skia.googlesource.com/skia/+/
61 # 5910ed347a638ded8cd4c06dbfda086695df1112/BUILD.gn#160
62 # - https://skia.googlesource.com/skia/+/
63 # ce06e261e68848ae21cac1052abc16bc07b961bf/tests/ProcessorTest.cpp#307
Ben Wagner6da8f792017-08-10 12:22:56 -040064 # Not MSAN due to:
65 # - https://skia.googlesource.com/skia/+/
66 # 0ac06e47269a40c177747310a613d213c95d1d6d/infra/bots/recipe_modules/
67 # flavor/gn_flavor.py#80
68 if 'Android' not in bot and 'MSAN' not in bot:
Ben Wagner11ab43c2017-08-09 18:05:59 -040069 args.append('--randomProcessorTest')
Eric Boren4c7754c2017-04-10 08:19:10 -040070
71 # 32-bit desktop bots tend to run out of memory, because they have relatively
72 # far more cores than RAM (e.g. 32 cores, 3G RAM). Hold them back a bit.
73 if '-x86-' in bot and not 'NexusPlayer' in bot:
Mike Kleindf669812017-06-23 13:30:17 -040074 args.extend(['--threads', '4'])
Eric Boren4c7754c2017-04-10 08:19:10 -040075
Ben Wagner5cf6d322017-12-07 10:23:07 -050076 # Nexus7 runs out of memory due to having 4 cores and only 1G RAM.
77 if 'CPU' in bot and 'Nexus7' in bot:
Ben Wagner1cfb6bc2017-12-07 12:19:30 -050078 args.extend(['--threads', '2'])
Ben Wagner5cf6d322017-12-07 10:23:07 -050079
Ben Wagner12e69e72018-07-15 15:12:01 -040080 # MotoG4 occasionally fails when multiple threads read the same image file.
81 if 'CPU' in bot and 'MotoG4' in bot:
82 args.extend(['--threads', '0'])
83
Kevin Lubick2dafbd72017-08-31 10:39:05 -040084 if 'Chromecast' in bot:
85 args.extend(['--threads', '0'])
86
Eric Boren4c7754c2017-04-10 08:19:10 -040087 # Avoid issues with dynamically exceeding resource cache limits.
88 if 'Test' in bot and 'DISCARDABLE' in bot:
Mike Kleindf669812017-06-23 13:30:17 -040089 args.extend(['--threads', '0'])
90
91 # See if staying on the main thread helps skia:6748.
92 if 'Test-iOS' in bot:
93 args.extend(['--threads', '0'])
Eric Boren4c7754c2017-04-10 08:19:10 -040094
Derek Sollenbergeredfe3df2017-07-19 15:25:24 -040095 # Android's kernel will occasionally attempt to kill our process, using
96 # SIGINT, in an effort to free up resources. If requested, that signal
97 # is ignored and dm will keep attempting to proceed until we actually
98 # exhaust the available resources.
99 if ('NexusPlayer' in bot or
Kevin Lubick608c35a2018-01-16 16:15:57 -0500100 'Chromecast' in bot):
Derek Sollenbergeredfe3df2017-07-19 15:25:24 -0400101 args.append('--ignoreSigInt')
102
Ben Wagner122b3852018-04-20 13:43:23 -0400103 if 'SwiftShader' in api.vars.extra_tokens:
104 configs.extend(['gles', 'glesdft'])
105 args.append('--disableDriverCorrectnessWorkarounds')
106
107 elif api.vars.builder_cfg.get('cpu_or_gpu') == 'CPU':
Ben Wagner32fa5102017-08-10 21:25:55 -0400108 args.append('--nogpu')
109
Mike Kleinc24e0c12018-08-17 13:24:51 -0400110 configs.append('8888')
Ben Wagner32fa5102017-08-10 21:25:55 -0400111
Mike Klein7adfd2f2018-08-21 13:42:53 +0000112 if 'BonusConfigs' in bot or ('SAN' in bot and 'GCE' in bot):
Mike Kleinc24e0c12018-08-17 13:24:51 -0400113 configs.extend([
114 'pdf',
115 'g8', '565',
116 'pic-8888', 'tiles_rt-8888', 'lite-8888', 'serialize-8888',
117 'gbr-8888',
118 'f16', 'srgb', 'esrgb', 'narrow', 'enarrow',
119 'p3', 'ep3', 'rec2020', 'erec2020'])
Eric Boren9f4efd32018-07-20 08:25:42 -0400120
Ben Wagner32fa5102017-08-10 21:25:55 -0400121 elif api.vars.builder_cfg.get('cpu_or_gpu') == 'GPU':
122 args.append('--nocpu')
123
124 # Add in either gles or gl configs to the canonical set based on OS
125 sample_count = '8'
126 gl_prefix = 'gl'
127 if 'Android' in bot or 'iOS' in bot:
128 sample_count = '4'
129 # We want to test the OpenGL config not the GLES config on the Shield
130 if 'NVIDIA_Shield' not in bot:
131 gl_prefix = 'gles'
132 elif 'Intel' in bot:
133 sample_count = ''
134 elif 'ChromeOS' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400135 gl_prefix = 'gles'
Eric Boren4c7754c2017-04-10 08:19:10 -0400136
Jim Van Verth1b6c75c2018-02-16 09:49:08 -0500137 if 'NativeFonts' in bot:
138 configs.append(gl_prefix)
139 else:
Brian Osmana66f4da2018-06-28 17:52:02 +0000140 configs.extend([gl_prefix,
141 gl_prefix + 'dft',
142 gl_prefix + 'srgb'])
Jim Van Verth240516f2018-02-15 09:55:24 -0500143 if sample_count is not '':
144 configs.append(gl_prefix + 'msaa' + sample_count)
Eric Boren4c7754c2017-04-10 08:19:10 -0400145
Ben Wagner32fa5102017-08-10 21:25:55 -0400146 # The NP produces a long error stream when we run with MSAA. The Tegra3 just
147 # doesn't support it.
148 if ('NexusPlayer' in bot or
149 'Tegra3' in bot or
150 # We aren't interested in fixing msaa bugs on current iOS devices.
151 'iPad4' in bot or
152 'iPadPro' in bot or
153 'iPhone6' in bot or
154 'iPhone7' in bot or
155 # skia:5792
156 'IntelHD530' in bot or
157 'IntelIris540' in bot):
158 configs = [x for x in configs if 'msaa' not in x]
Eric Boren4c7754c2017-04-10 08:19:10 -0400159
Ben Wagner32fa5102017-08-10 21:25:55 -0400160 # The NP produces different images for dft on every run.
161 if 'NexusPlayer' in bot:
162 configs = [x for x in configs if 'dft' not in x]
Eric Boren4c7754c2017-04-10 08:19:10 -0400163
Ben Wagner32fa5102017-08-10 21:25:55 -0400164 # We want to test both the OpenGL config and the GLES config on Linux Intel:
165 # GL is used by Chrome, GLES is used by ChromeOS.
Brian Osmanf9810662017-08-30 10:02:10 -0400166 # Also do the Ganesh threading verification test (render with and without
167 # worker threads, using only the SW path renderer, and compare the results).
Ben Wagner32fa5102017-08-10 21:25:55 -0400168 if 'Intel' in bot and api.vars.is_linux:
Brian Osmana66f4da2018-06-28 17:52:02 +0000169 configs.extend(['gles',
170 'glesdft',
171 'glessrgb',
172 'gltestthreading'])
Brian Osmanf9810662017-08-30 10:02:10 -0400173 # skbug.com/6333, skbug.com/6419, skbug.com/6702
174 blacklist('gltestthreading gm _ lcdblendmodes')
175 blacklist('gltestthreading gm _ lcdoverlap')
Brian Osmanbef21ba2017-08-31 13:49:05 -0400176 blacklist('gltestthreading gm _ textbloblooper')
Brian Osman1e75f2a2017-09-07 09:30:44 -0400177 # All of these GMs are flaky, too:
178 blacklist('gltestthreading gm _ bleed_alpha_bmp')
179 blacklist('gltestthreading gm _ bleed_alpha_bmp_shader')
180 blacklist('gltestthreading gm _ bleed_alpha_image')
181 blacklist('gltestthreading gm _ bleed_alpha_image_shader')
182 blacklist('gltestthreading gm _ savelayer_with_backdrop')
183 blacklist('gltestthreading gm _ persp_shaders_bw')
Brian Salomon5c6ac642017-12-19 11:09:32 -0500184 blacklist('gltestthreading gm _ dftext_blob_persp')
Brian Salomon19eaf2d2018-03-19 16:06:44 -0400185 # skbug.com/7523 - Flaky on various GPUs
186 blacklist('gltestthreading gm _ orientation')
Mike Klein97627d42017-05-11 13:12:48 -0400187
Ben Wagner32fa5102017-08-10 21:25:55 -0400188 # CommandBuffer bot *only* runs the command_buffer config.
189 if 'CommandBuffer' in bot:
190 configs = ['commandbuffer']
191
192 # ANGLE bot *only* runs the angle configs
193 if 'ANGLE' in bot:
194 configs = ['angle_d3d11_es2',
195 'angle_d3d9_es2',
196 'angle_gl_es2',
197 'angle_d3d11_es3']
198 if sample_count is not '':
199 configs.append('angle_d3d11_es2_msaa' + sample_count)
200 configs.append('angle_d3d11_es3_msaa' + sample_count)
Ben Wagner7464a262018-04-19 15:49:18 -0400201 if 'GTX' in bot or 'Quadro' in bot:
202 # See skia:7823 and chromium:693090.
203 configs.append('angle_gl_es3')
204 if sample_count is not '':
205 configs.append('angle_gl_es2_msaa' + sample_count)
206 configs.append('angle_gl_es3_msaa' + sample_count)
Ethan Nicholas00543112018-07-31 09:44:36 -0400207 if 'NUC5i7RYH' in bot:
208 # skbug.com/7376
209 blacklist('_ test _ ProcessorCloneTest')
Ben Wagner32fa5102017-08-10 21:25:55 -0400210
211 # Vulkan bot *only* runs the vk config.
212 if 'Vulkan' in bot:
Chris Daltonaec79e62018-05-29 12:02:19 -0600213 configs = ['vk']
Ben Wagner32fa5102017-08-10 21:25:55 -0400214
Greg Danielb95d2782018-07-24 11:35:18 -0400215 if 'Metal' in bot:
216 configs = ['mtl']
217
Brian Salomon7fc52992018-07-12 16:20:23 -0400218 # Test 1010102 on our Linux/NVIDIA bots and the persistent cache config
219 # on the GL bots.
Brian Salomonbfc63c12018-07-16 15:48:22 -0400220 if ('QuadroP400' in bot and 'PreAbandonGpuContext' not in bot and
Brian Salomon6a3957c2018-07-19 17:01:09 -0400221 'TSAN' not in bot and api.vars.is_linux):
Brian Osman10fc6fd2018-03-02 11:01:10 -0500222 if 'Vulkan' in bot:
223 configs.append('vk1010102')
Brian Osman419abf32018-03-02 14:56:15 -0500224 # Decoding transparent images to 1010102 just looks bad
225 blacklist('vk1010102 image _ _')
Brian Osman10fc6fd2018-03-02 11:01:10 -0500226 else:
Brian Salomon7fc52992018-07-12 16:20:23 -0400227 configs.extend(['gl1010102', 'gltestpersistentcache'])
Brian Osman419abf32018-03-02 14:56:15 -0500228 # Decoding transparent images to 1010102 just looks bad
229 blacklist('gl1010102 image _ _')
Brian Salomon09387592018-07-16 15:34:16 -0400230 # These tests produce slightly different pixels run to run on NV.
Brian Salomon7fc52992018-07-12 16:20:23 -0400231 blacklist('gltestpersistentcache gm _ atlastext')
Brian Salomon09387592018-07-16 15:34:16 -0400232 blacklist('gltestpersistentcache gm _ dftext')
Brian Salomon06e3c3c2018-08-03 12:54:11 -0400233 blacklist('gltestpersistentcache gm _ glyph_pos_h_b')
Brian Osman10fc6fd2018-03-02 11:01:10 -0500234
Ben Wagnera4cdfbb2018-08-31 10:20:34 -0400235 # Test SkColorSpaceXformCanvas on a few bots
236 if 'BonusConfigs' in api.vars.extra_tokens:
237 configs = ['gbr-gl']
238
Ben Wagner32fa5102017-08-10 21:25:55 -0400239 if 'ChromeOS' in bot:
240 # Just run GLES for now - maybe add gles_msaa4 in the future
241 configs = ['gles']
242
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400243 if 'Chromecast' in bot:
Kevin Lubick608c35a2018-01-16 16:15:57 -0500244 configs = ['gles']
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400245
Ben Wagner32fa5102017-08-10 21:25:55 -0400246 # Test coverage counting path renderer.
247 if 'CCPR' in bot:
248 configs = [c for c in configs if c == 'gl' or c == 'gles']
Chris Dalton7a0ebfc2017-10-13 12:35:50 -0600249 args.extend(['--pr', 'ccpr', '--cachePathMasks', 'false'])
Chris Dalton97598a52017-07-18 10:49:07 -0600250
Robert Phillips36150be2018-03-15 13:40:07 -0400251 # DDL is a GPU-only feature
252 if 'DDL1' in bot:
Robert Phillips69eb8352018-04-11 13:45:08 -0400253 # This bot generates gl and vk comparison images for the large skps
254 configs = [c for c in configs if c == 'gl' or c == 'vk']
Robert Phillipsb7fafba2018-03-27 20:49:23 +0000255 args.extend(['--skpViewportSize', "2048"])
Robert Phillips21ca0432018-05-29 15:42:00 -0400256 args.extend(['--pr', '~small'])
Robert Phillips36150be2018-03-15 13:40:07 -0400257 if 'DDL3' in bot:
Robert Phillips69eb8352018-04-11 13:45:08 -0400258 # This bot generates the ddl-gl and ddl-vk images for the
259 # large skps and the gms
260 configs = ['ddl-' + c for c in configs if c == 'gl' or c == 'vk']
Robert Phillipsb7fafba2018-03-27 20:49:23 +0000261 args.extend(['--skpViewportSize', "2048"])
Robert Phillipse43ff782018-04-20 11:59:59 -0400262 args.extend(['--gpuThreads', "0"])
Robert Phillips36150be2018-03-15 13:40:07 -0400263
Eric Boren9f4efd32018-07-20 08:25:42 -0400264 if 'Lottie' in bot:
265 configs = ['gl']
266
Kevin Lubick32f318b2017-10-17 13:40:52 -0400267 tf = api.vars.builder_cfg.get('test_filter')
268 if 'All' != tf:
269 # Expected format: shard_XX_YY
270 parts = tf.split('_')
271 if len(parts) == 3:
272 args.extend(['--shard', parts[1]])
273 args.extend(['--shards', parts[2]])
Eric Boren9599b0f2018-04-17 15:55:57 -0400274 else: # pragma: nocover
275 raise Exception('Invalid task name - bad shards: %s' % tf)
Kevin Lubick32f318b2017-10-17 13:40:52 -0400276
Chris Dalton80ace822017-07-20 10:54:04 -0600277 args.append('--config')
278 args.extend(configs)
279
Eric Boren4c7754c2017-04-10 08:19:10 -0400280 # Run tests, gms, and image decoding tests everywhere.
Eric Boren8c172ba2018-07-19 13:27:49 -0400281 args.extend('--src tests gm image lottie colorImage svg skp'.split(' '))
Ben Wagner0ecc2b7e2017-11-09 22:10:44 -0500282 if api.vars.builder_cfg.get('cpu_or_gpu') == 'GPU':
Chris Dalton7c304ba2017-09-07 11:57:16 -0600283 # Don't run the 'svgparse_*' svgs on GPU.
284 blacklist('_ svg _ svgparse_')
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400285 elif bot == 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All-ASAN':
Chris Dalton7c304ba2017-09-07 11:57:16 -0600286 # Only run the CPU SVGs on 8888.
287 blacklist('~8888 svg _ _')
288 else:
289 # On CPU SVGs we only care about parsing. Only run them on the above bot.
290 args.remove('svg')
Eric Boren4c7754c2017-04-10 08:19:10 -0400291
Mike Klein97627d42017-05-11 13:12:48 -0400292 # Eventually I'd like these to pass, but for now just skip 'em.
293 if 'SK_FORCE_RASTER_PIPELINE_BLITTER' in bot:
294 args.remove('tests')
295
Mike Klein9a01a212017-11-03 12:19:54 -0400296 if 'NativeFonts' in bot: # images won't exercise native font integration :)
297 args.remove('image')
298 args.remove('colorImage')
299
Eric Boren8c172ba2018-07-19 13:27:49 -0400300 def remove_from_args(arg):
301 if arg in args:
302 args.remove(arg)
303
Robert Phillips5f3ce3e2018-04-12 11:09:40 -0400304 if 'DDL' in bot:
305 # The DDL bots just render the large skps and the gms
Eric Boren8c172ba2018-07-19 13:27:49 -0400306 remove_from_args('tests')
307 remove_from_args('image')
308 remove_from_args('colorImage')
309 remove_from_args('svg')
Robert Phillips36150be2018-03-15 13:40:07 -0400310 else:
Robert Phillipsb7fafba2018-03-27 20:49:23 +0000311 # Currently, only the DDL bots render skps
Eric Boren8c172ba2018-07-19 13:27:49 -0400312 remove_from_args('skp')
313
314 if 'Lottie' in api.vars.builder_cfg.get('extra_config', ''):
315 # Only run the lotties on Lottie bots.
316 remove_from_args('tests')
317 remove_from_args('gm')
318 remove_from_args('image')
319 remove_from_args('colorImage')
320 remove_from_args('svg')
321 remove_from_args('skp')
322 else:
323 remove_from_args('lottie')
Robert Phillips36150be2018-03-15 13:40:07 -0400324
Eric Boren4c7754c2017-04-10 08:19:10 -0400325 # TODO: ???
326 blacklist('f16 _ _ dstreadshuffle')
327 blacklist('glsrgb image _ _')
328 blacklist('glessrgb image _ _')
329
Eric Boren4c7754c2017-04-10 08:19:10 -0400330 # Not any point to running these.
Mike Kleinb7ea3da2017-10-31 17:42:08 +0000331 blacklist('gbr-8888 image _ _')
332 blacklist('gbr-8888 colorImage _ _')
Eric Boren4c7754c2017-04-10 08:19:10 -0400333
Mike Klein515bda62018-01-09 11:21:58 -0500334 # --src image --config g8 means "decode into Gray8", which isn't supported.
335 blacklist('g8 image _ _')
336 blacklist('g8 colorImage _ _')
337
Eric Boren4c7754c2017-04-10 08:19:10 -0400338 if 'Valgrind' in bot:
339 # These take 18+ hours to run.
340 blacklist('pdf gm _ fontmgr_iter')
341 blacklist('pdf _ _ PANO_20121023_214540.jpg')
342 blacklist('pdf skp _ worldjournal')
343 blacklist('pdf skp _ desk_baidu.skp')
344 blacklist('pdf skp _ desk_wikipedia.skp')
345 blacklist('_ svg _ _')
346
347 if 'iOS' in bot:
348 blacklist(gl_prefix + ' skp _ _')
349
350 if 'Mac' in bot or 'iOS' in bot:
351 # CG fails on questionable bmps
352 blacklist('_ image gen_platf rgba32abf.bmp')
353 blacklist('_ image gen_platf rgb24prof.bmp')
354 blacklist('_ image gen_platf rgb24lprof.bmp')
355 blacklist('_ image gen_platf 8bpp-pixeldata-cropped.bmp')
356 blacklist('_ image gen_platf 4bpp-pixeldata-cropped.bmp')
357 blacklist('_ image gen_platf 32bpp-pixeldata-cropped.bmp')
358 blacklist('_ image gen_platf 24bpp-pixeldata-cropped.bmp')
359
360 # CG has unpredictable behavior on this questionable gif
361 # It's probably using uninitialized memory
362 blacklist('_ image gen_platf frame_larger_than_image.gif')
363
364 # CG has unpredictable behavior on incomplete pngs
365 # skbug.com/5774
366 blacklist('_ image gen_platf inc0.png')
367 blacklist('_ image gen_platf inc1.png')
368 blacklist('_ image gen_platf inc2.png')
369 blacklist('_ image gen_platf inc3.png')
370 blacklist('_ image gen_platf inc4.png')
371 blacklist('_ image gen_platf inc5.png')
372 blacklist('_ image gen_platf inc6.png')
373 blacklist('_ image gen_platf inc7.png')
374 blacklist('_ image gen_platf inc8.png')
375 blacklist('_ image gen_platf inc9.png')
376 blacklist('_ image gen_platf inc10.png')
377 blacklist('_ image gen_platf inc11.png')
378 blacklist('_ image gen_platf inc12.png')
379 blacklist('_ image gen_platf inc13.png')
380 blacklist('_ image gen_platf inc14.png')
381
Ben Wagner3f67914c2017-11-27 13:02:25 -0500382 # These images fail after Mac 10.13.1 upgrade.
383 blacklist('_ image gen_platf incInterlaced.gif')
384 blacklist('_ image gen_platf inc1.gif')
385 blacklist('_ image gen_platf inc0.gif')
386 blacklist('_ image gen_platf butterfly.gif')
387
Matt Sarett6c50a2e2017-05-01 09:13:05 -0400388 # WIC fails on questionable bmps
Eric Boren4c7754c2017-04-10 08:19:10 -0400389 if 'Win' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400390 blacklist('_ image gen_platf pal8os2v2.bmp')
391 blacklist('_ image gen_platf pal8os2v2-16.bmp')
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')
Eric Boren4c7754c2017-04-10 08:19:10 -0400399 if 'x86_64' in bot and 'CPU' in bot:
400 # This GM triggers a SkSmallAllocator assert.
401 blacklist('_ gm _ composeshader_bitmap')
402
Matt Sarett6c50a2e2017-05-01 09:13:05 -0400403 if 'Win' in bot or 'Mac' in bot:
Leon Scroggins III3a3cf432017-08-18 13:08:16 -0400404 # WIC and CG fail on arithmetic jpegs
Matt Sarett6c50a2e2017-05-01 09:13:05 -0400405 blacklist('_ image gen_platf testimgari.jpg')
Leon Scroggins III3a3cf432017-08-18 13:08:16 -0400406 # More questionable bmps that fail on Mac, too. skbug.com/6984
407 blacklist('_ image gen_platf rle8-height-negative.bmp')
408 blacklist('_ image gen_platf rle4-height-negative.bmp')
Matt Sarett6c50a2e2017-05-01 09:13:05 -0400409
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400410 if 'Android' in bot or 'iOS' in bot or 'Chromecast' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400411 # This test crashes the N9 (perhaps because of large malloc/frees). It also
412 # is fairly slow and not platform-specific. So we just disable it on all of
413 # Android and iOS. skia:5438
414 blacklist('_ test _ GrShape')
415
Eric Borenfb20ac42018-04-24 14:48:19 -0400416 if api.vars.internal_hardware_label == '2':
Kevin Lubickbd27d1d2017-10-13 08:01:49 -0400417 # skia:7160
418 blacklist('_ test _ SRGBReadWritePixels')
419 blacklist('_ test _ SRGBMipMap')
420
Kevin Lubick451b7432017-09-15 14:44:12 -0400421
Eric Boren4c7754c2017-04-10 08:19:10 -0400422 # skia:4095
Mike Reedfb499092017-06-26 13:53:32 +0000423 bad_serialize_gms = ['bleed_image',
Eric Boren4c7754c2017-04-10 08:19:10 -0400424 'c_gms',
425 'colortype',
426 'colortype_xfermodes',
427 'drawfilter',
428 'fontmgr_bounds_0.75_0',
429 'fontmgr_bounds_1_-0.25',
430 'fontmgr_bounds',
431 'fontmgr_match',
432 'fontmgr_iter',
433 'imagemasksubset']
434
435 # skia:5589
436 bad_serialize_gms.extend(['bitmapfilters',
437 'bitmapshaders',
438 'bleed',
439 'bleed_alpha_bmp',
440 'bleed_alpha_bmp_shader',
441 'convex_poly_clip',
442 'extractalpha',
443 'filterbitmap_checkerboard_32_32_g8',
444 'filterbitmap_image_mandrill_64',
445 'shadows',
446 'simpleaaclip_aaclip'])
447 # skia:5595
448 bad_serialize_gms.extend(['composeshader_bitmap',
449 'scaled_tilemodes_npot',
450 'scaled_tilemodes'])
451
452 # skia:5778
453 bad_serialize_gms.append('typefacerendering_pfaMac')
454 # skia:5942
455 bad_serialize_gms.append('parsedpaths')
456
457 # these use a custom image generator which doesn't serialize
458 bad_serialize_gms.append('ImageGeneratorExternal_rect')
459 bad_serialize_gms.append('ImageGeneratorExternal_shader')
460
461 # skia:6189
462 bad_serialize_gms.append('shadow_utils')
463
Brian Salomonbe3c1d22018-05-21 12:54:39 -0400464 # skia:7938
465 bad_serialize_gms.append('persp_images')
466
Matt Sarett9f3dcb32017-05-04 08:53:32 -0400467 # Not expected to round trip encoding/decoding.
Mike Klein0b78a692017-10-31 17:31:17 -0400468 bad_serialize_gms.append('all_bitmap_configs')
Matt Sarett9f3dcb32017-05-04 08:53:32 -0400469 bad_serialize_gms.append('makecolorspace')
470
Brian Salomon7072e222017-11-29 15:12:45 -0500471 # This GM forces a path to be convex. That property doesn't survive
472 # serialization.
473 bad_serialize_gms.append('analytic_antialias_convex')
474
Eric Boren4c7754c2017-04-10 08:19:10 -0400475 for test in bad_serialize_gms:
476 blacklist(['serialize-8888', 'gm', '_', test])
477
478 if 'Mac' not in bot:
479 for test in ['bleed_alpha_image', 'bleed_alpha_image_shader']:
480 blacklist(['serialize-8888', 'gm', '_', test])
481 # It looks like we skip these only for out-of-memory concerns.
Kevin Lubick608c35a2018-01-16 16:15:57 -0500482 if 'Win' in bot or 'Android' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400483 for test in ['verylargebitmap', 'verylarge_picture_image']:
484 blacklist(['serialize-8888', 'gm', '_', test])
Ben Wagner2e4e73f2017-09-08 15:21:44 -0400485 if 'Mac' in bot and 'CPU' in bot:
Ben Wagner38db79f2017-08-23 15:05:50 -0400486 # skia:6992
Ben Wagner6f98bc62017-09-05 16:02:28 -0400487 blacklist(['pic-8888', 'gm', '_', 'encode-platform'])
Ben Wagner38db79f2017-08-23 15:05:50 -0400488 blacklist(['serialize-8888', 'gm', '_', 'encode-platform'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400489
490 # skia:4769
491 for test in ['drawfilter']:
Eric Boren4c7754c2017-04-10 08:19:10 -0400492 blacklist([ 'pic-8888', 'gm', '_', test])
Eric Boren4c7754c2017-04-10 08:19:10 -0400493 blacklist([ 'lite-8888', 'gm', '_', test])
494 # skia:4703
495 for test in ['image-cacherator-from-picture',
496 'image-cacherator-from-raster',
497 'image-cacherator-from-ctable']:
Eric Boren4c7754c2017-04-10 08:19:10 -0400498 blacklist([ 'pic-8888', 'gm', '_', test])
Eric Boren4c7754c2017-04-10 08:19:10 -0400499 blacklist(['serialize-8888', 'gm', '_', test])
500
501 # GM that requires raster-backed canvas
502 for test in ['gamut', 'complexclip4_bw', 'complexclip4_aa']:
Eric Boren4c7754c2017-04-10 08:19:10 -0400503 blacklist([ 'pic-8888', 'gm', '_', test])
504 blacklist([ 'lite-8888', 'gm', '_', test])
Eric Boren4c7754c2017-04-10 08:19:10 -0400505 blacklist(['serialize-8888', 'gm', '_', test])
506
507 # GM that not support tiles_rt
508 for test in ['complexclip4_bw', 'complexclip4_aa']:
509 blacklist([ 'tiles_rt-8888', 'gm', '_', test])
510
511 # Extensions for RAW images
Ben Wagner6e0a6b32017-09-26 14:11:15 -0400512 r = ['arw', 'cr2', 'dng', 'nef', 'nrw', 'orf', 'raf', 'rw2', 'pef', 'srw',
513 'ARW', 'CR2', 'DNG', 'NEF', 'NRW', 'ORF', 'RAF', 'RW2', 'PEF', 'SRW']
Eric Boren4c7754c2017-04-10 08:19:10 -0400514
515 # skbug.com/4888
516 # Blacklist RAW images (and a few large PNGs) on GPU bots
517 # until we can resolve failures.
Matt Sarett929bfeb2017-05-22 10:34:41 -0400518 if 'GPU' in bot:
519 blacklist('_ image _ interlaced1.png')
520 blacklist('_ image _ interlaced2.png')
521 blacklist('_ image _ interlaced3.png')
522 for raw_ext in r:
523 blacklist('_ image _ .%s' % raw_ext)
524
525 # Blacklist memory intensive tests on 32-bit bots.
Ben Wagnerfd66b5f2017-11-15 15:16:27 -0500526 if ('Win8' in bot or 'Win2016' in bot) and 'x86-' in bot:
Matt Sarett929bfeb2017-05-22 10:34:41 -0400527 blacklist('_ image f16 _')
Matt Sarett112565e2017-05-22 13:45:15 -0400528 blacklist('_ image _ abnormal.wbmp')
Eric Boren4c7754c2017-04-10 08:19:10 -0400529 blacklist('_ image _ interlaced1.png')
530 blacklist('_ image _ interlaced2.png')
531 blacklist('_ image _ interlaced3.png')
532 for raw_ext in r:
533 blacklist('_ image _ .%s' % raw_ext)
534
Ben Wagner3f330692017-12-07 15:14:54 -0500535 if 'Nexus5' in bot and 'GPU' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400536 # skia:5876
537 blacklist(['_', 'gm', '_', 'encode-platform'])
538
539 if 'AndroidOne-GPU' in bot: # skia:4697, skia:4704, skia:4694, skia:4705
540 blacklist(['_', 'gm', '_', 'bigblurs'])
541 blacklist(['_', 'gm', '_', 'bleed'])
542 blacklist(['_', 'gm', '_', 'bleed_alpha_bmp'])
543 blacklist(['_', 'gm', '_', 'bleed_alpha_bmp_shader'])
544 blacklist(['_', 'gm', '_', 'bleed_alpha_image'])
545 blacklist(['_', 'gm', '_', 'bleed_alpha_image_shader'])
546 blacklist(['_', 'gm', '_', 'bleed_image'])
547 blacklist(['_', 'gm', '_', 'dropshadowimagefilter'])
548 blacklist(['_', 'gm', '_', 'filterfastbounds'])
549 blacklist([gl_prefix, 'gm', '_', 'imageblurtiled'])
550 blacklist(['_', 'gm', '_', 'imagefiltersclipped'])
551 blacklist(['_', 'gm', '_', 'imagefiltersscaled'])
552 blacklist(['_', 'gm', '_', 'imageresizetiled'])
553 blacklist(['_', 'gm', '_', 'matrixconvolution'])
554 blacklist(['_', 'gm', '_', 'strokedlines'])
555 if sample_count is not '':
556 gl_msaa_config = gl_prefix + 'msaa' + sample_count
557 blacklist([gl_msaa_config, 'gm', '_', 'imageblurtiled'])
558 blacklist([gl_msaa_config, 'gm', '_', 'imagefiltersbase'])
559
560 match = []
561 if 'Valgrind' in bot: # skia:3021
562 match.append('~Threaded')
563
Ben Wagner6c126422017-06-19 12:45:54 -0400564 if 'Valgrind' in bot and 'PreAbandonGpuContext' in bot:
565 # skia:6575
566 match.append('~multipicturedraw_')
567
Ben Wagnerbb3e7ff2017-04-28 15:28:32 -0400568 if 'CommandBuffer' in bot:
569 # https://crbug.com/697030
570 match.append('~HalfFloatAlphaTextureTest')
571
Cary Clarka7c569d2018-02-14 11:31:25 -0500572 if 'AndroidOne' in bot:
573 match.append('~WritePixels') # skia:4711
574 match.append('~PremulAlphaRoundTrip_Gpu') # skia:7501
Brian Salomonf42a7762018-06-21 11:14:51 -0400575 match.append('~ReimportImageTextureWithMipLevels') # skia:8090
Eric Boren4c7754c2017-04-10 08:19:10 -0400576
Kevin Lubick608c35a2018-01-16 16:15:57 -0500577 if 'Chromecast' in bot:
Kevin Lubick6ea9fdf2018-01-17 08:54:21 -0500578 if 'GPU' in bot:
579 # skia:6687
Kevin Lubick6ea9fdf2018-01-17 08:54:21 -0500580 match.append('~animated-image-blurs')
Ben Wagnerd50a1932018-03-01 09:45:18 -0500581 match.append('~blur_0.01')
582 match.append('~blur_image_filter')
Eric Boren1e00d192018-04-13 15:59:02 -0400583 match.append('~check_small_sigma_offset')
Ben Wagnerd50a1932018-03-01 09:45:18 -0500584 match.append('~imageblur2')
585 match.append('~lighting')
586 match.append('~longpathdash')
587 match.append('~matrixconvolution')
Ben Wagnerdabef9d2018-02-27 16:36:12 -0500588 match.append('~textblobmixedsizes_df')
Ben Wagner98c3c612018-02-26 14:53:30 -0500589 match.append('~textblobrandomfont')
Kevin Lubick608c35a2018-01-16 16:15:57 -0500590 # Blacklisted to avoid OOM (we see DM just end with "broken pipe")
Kevin Lubick608c35a2018-01-16 16:15:57 -0500591 match.append('~bigbitmaprect_')
Kevin Lubick608c35a2018-01-16 16:15:57 -0500592 match.append('~DrawBitmapRect')
Kevin Lubick8684c712018-02-12 15:55:57 -0500593 match.append('~drawbitmaprect')
Ben Wagnerd50a1932018-03-01 09:45:18 -0500594 match.append('~GM_animated-image-blurs')
595 match.append('~ImageFilterBlurLargeImage')
596 match.append('~savelayer_clipmask')
597 match.append('~TextBlobCache')
598 match.append('~verylarge')
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400599
Eric Boren4c7754c2017-04-10 08:19:10 -0400600 if 'GalaxyS6' in bot:
601 match.append('~SpecialImage') # skia:6338
Brian Osmaneee3c092017-06-15 13:25:10 -0400602 match.append('~skbug6653') # skia:6653
Eric Boren4c7754c2017-04-10 08:19:10 -0400603
Eric Boren4c7754c2017-04-10 08:19:10 -0400604 if 'MSAN' in bot:
605 match.extend(['~Once', '~Shared']) # Not sure what's up with these tests.
606
607 if 'TSAN' in bot:
608 match.extend(['~ReadWriteAlpha']) # Flaky on TSAN-covered on nvidia bots.
609 match.extend(['~RGBA4444TextureTest', # Flakier than they are important.
610 '~RGB565TextureTest'])
611
Ben Wagnerdba0bc82017-12-11 13:27:27 -0500612 # By default, we test with GPU threading enabled, unless specifically
613 # disabled.
614 if 'NoGPUThreads' in bot:
615 args.extend(['--gpuThreads', '0'])
616
Greg Daniela86385d2017-06-05 11:34:29 -0400617 if 'Vulkan' in bot and 'Adreno530' in bot:
618 # skia:5777
619 match.extend(['~CopySurface'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400620
Brian Salomon3d86a192018-02-27 16:46:11 -0500621 if 'Vulkan' in bot and 'Adreno' in bot:
622 # skia:7663
623 match.extend(['~WritePixelsNonTextureMSAA_Gpu'])
624 match.extend(['~WritePixelsMSAA_Gpu'])
625
Ben Wagner2107bd82018-06-12 14:16:07 -0400626 if 'Vulkan' in bot and 'GalaxyS7_G930FD' in bot:
627 # skia:8064
628 match.append('~^WritePixelsNonTexture_Gpu$')
629
Ben Wagner63457572017-12-21 10:49:58 -0500630 if 'Vulkan' in bot and api.vars.is_linux and 'IntelIris640' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400631 match.extend(['~VkHeapTests']) # skia:6245
632
Kevin Lubickec4e7352018-04-25 07:46:55 -0400633 if api.vars.is_linux and 'IntelIris640' in bot:
634 match.extend(['~GLPrograms']) # skia:7849
635
Ben Wagnerb8427032017-11-18 19:04:25 -0500636 if 'Vulkan' in bot and api.vars.is_linux and 'IntelHD405' in bot:
Ben Wagner32eb5ba2017-11-20 13:46:20 -0500637 # skia:7322
Ben Wagnerb8427032017-11-18 19:04:25 -0500638 blacklist(['vk', 'gm', '_', 'skbug_257'])
Chris Dalton414be9b2018-04-26 14:37:01 -0600639 blacklist(['vk', 'gm', '_', 'filltypespersp'])
Ben Wagnerb8427032017-11-18 19:04:25 -0500640 match.append('~^ClearOp$')
Greg Danielec34a712017-12-06 12:06:26 -0500641 match.append('~^CopySurface$')
642 match.append('~^ImageNewShader_GPU$')
Ben Wagnerb8427032017-11-18 19:04:25 -0500643 match.append('~^InitialTextureClear$')
Greg Danielec34a712017-12-06 12:06:26 -0500644 match.append('~^PinnedImageTest$')
Ben Wagnerb8427032017-11-18 19:04:25 -0500645 match.append('~^ReadPixels_Gpu$')
646 match.append('~^ReadPixels_Texture$')
Greg Danielec34a712017-12-06 12:06:26 -0500647 match.append('~^SRGBReadWritePixels$')
Ben Wagnerb8427032017-11-18 19:04:25 -0500648 match.append('~^VkUploadPixelsTests$')
649 match.append('~^WritePixelsNonTexture_Gpu$')
Brian Salomon3d86a192018-02-27 16:46:11 -0500650 match.append('~^WritePixelsNonTextureMSAA_Gpu$')
Ben Wagnerb8427032017-11-18 19:04:25 -0500651 match.append('~^WritePixels_Gpu$')
Brian Salomon3d86a192018-02-27 16:46:11 -0500652 match.append('~^WritePixelsMSAA_Gpu$')
Ben Wagnerb8427032017-11-18 19:04:25 -0500653
Ben Wagnerf1debdf2017-06-13 13:37:05 -0400654 if 'Vulkan' in bot and 'IntelIris540' in bot and 'Win' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400655 # skia:6398
656 blacklist(['vk', 'gm', '_', 'aarectmodes'])
657 blacklist(['vk', 'gm', '_', 'aaxfermodes'])
Greg Daniel0eef6742017-11-20 16:05:04 -0500658 blacklist(['vk', 'gm', '_', 'dont_clip_to_layer'])
Mike Klein78932122017-11-15 13:21:40 -0500659 blacklist(['vk', 'gm', '_', 'dftext'])
Ben Wagner0473a312018-08-29 14:15:15 -0400660 blacklist(['vk', 'gm', '_', 'dftext_blob_persp'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400661 blacklist(['vk', 'gm', '_', 'drawregionmodes'])
662 blacklist(['vk', 'gm', '_', 'filterfastbounds'])
Mike Klein0030c5e2017-11-13 13:27:48 -0500663 blacklist(['vk', 'gm', '_', 'fontmgr_iter'])
Mike Klein0030c5e2017-11-13 13:27:48 -0500664 blacklist(['vk', 'gm', '_', 'fontmgr_match'])
665 blacklist(['vk', 'gm', '_', 'fontscaler'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400666 blacklist(['vk', 'gm', '_', 'fontscalerdistortable'])
667 blacklist(['vk', 'gm', '_', 'gammagradienttext'])
Mike Klein0030c5e2017-11-13 13:27:48 -0500668 blacklist(['vk', 'gm', '_', 'gammatext'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400669 blacklist(['vk', 'gm', '_', 'gradtext'])
670 blacklist(['vk', 'gm', '_', 'hairmodes'])
671 blacklist(['vk', 'gm', '_', 'imagefilters_xfermodes'])
672 blacklist(['vk', 'gm', '_', 'imagefiltersclipped'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400673 blacklist(['vk', 'gm', '_', 'imagefiltersscaled'])
674 blacklist(['vk', 'gm', '_', 'imagefiltersstroked'])
675 blacklist(['vk', 'gm', '_', 'imagefilterstransformed'])
676 blacklist(['vk', 'gm', '_', 'imageresizetiled'])
677 blacklist(['vk', 'gm', '_', 'lcdblendmodes'])
678 blacklist(['vk', 'gm', '_', 'lcdoverlap'])
Mike Klein0030c5e2017-11-13 13:27:48 -0500679 blacklist(['vk', 'gm', '_', 'lcdtext'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400680 blacklist(['vk', 'gm', '_', 'lcdtextsize'])
681 blacklist(['vk', 'gm', '_', 'matriximagefilter'])
Mike Klein78932122017-11-15 13:21:40 -0500682 blacklist(['vk', 'gm', '_', 'mixedtextblobs'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400683 blacklist(['vk', 'gm', '_', 'resizeimagefilter'])
684 blacklist(['vk', 'gm', '_', 'rotate_imagefilter'])
685 blacklist(['vk', 'gm', '_', 'savelayer_lcdtext'])
Greg Daniel0c269d02018-02-08 15:26:49 -0500686 blacklist(['vk', 'gm', '_', 'shadermaskfilter_image'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400687 blacklist(['vk', 'gm', '_', 'srcmode'])
688 blacklist(['vk', 'gm', '_', 'surfaceprops'])
689 blacklist(['vk', 'gm', '_', 'textblobgeometrychange'])
690 blacklist(['vk', 'gm', '_', 'textbloblooper'])
691 blacklist(['vk', 'gm', '_', 'textblobmixedsizes'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400692 blacklist(['vk', 'gm', '_', 'textblobrandomfont'])
693 blacklist(['vk', 'gm', '_', 'textfilter_color'])
694 blacklist(['vk', 'gm', '_', 'textfilter_image'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400695 blacklist(['vk', 'gm', '_', 'varied_text_clipped_lcd'])
696 blacklist(['vk', 'gm', '_', 'varied_text_ignorable_clip_lcd'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400697
Greg Daniele5b7e6d2018-06-12 10:52:59 -0400698 if 'Vulkan' in bot and 'GTX660' in bot and 'Win' in bot:
699 # skbug.com/8047
700 match.append('~FloatingPointTextureTest$')
701
Chris Dalton2b937f52018-05-17 10:17:10 -0600702 if 'MoltenVK' in bot:
703 # skbug.com/7959
704 blacklist(['_', 'gm', '_', 'vertices_scaled_shader'])
705 blacklist(['_', 'gm', '_', 'vertices'])
706 match.append('~^InitialTextureClear$')
Chris Dalton2b937f52018-05-17 10:17:10 -0600707 match.append('~^RGB565TextureTest$')
708 match.append('~^RGBA4444TextureTest$')
709 match.append('~^WritePixelsNonTextureMSAA_Gpu$')
Chris Dalton2b937f52018-05-17 10:17:10 -0600710
Robert Phillipsa96a1012018-04-23 10:46:09 -0400711 if 'ANGLE' in bot:
712 # skia:7835
713 match.append('~BlurMaskBiggerThanDest')
714
Ben Wagner0473a312018-08-29 14:15:15 -0400715 if 'IntelIris6100' in bot and 'ANGLE' in bot and 'Release' in bot:
Ben Wagner1c4668d2018-07-23 14:25:02 -0400716 # skia:7376
717 match.append('~^ProcessorOptimizationValidationTest$')
718
Ben Wagnerc6b2e6b2017-10-07 18:57:25 -0400719 if ('IntelIris6100' in bot or 'IntelHD4400' in bot) and 'ANGLE' in bot:
720 # skia:6857
721 blacklist(['angle_d3d9_es2', 'gm', '_', 'lighting'])
722
Kevin Lubickc14e5a72017-08-15 13:22:19 -0400723 if 'PowerVRGX6250' in bot:
724 match.append('~gradients_view_perspective_nodither') #skia:6972
725
Mike Klein3a3fbf12018-01-30 08:08:49 -0500726 if '-arm-' in bot and 'ASAN' in bot:
727 # TODO: can we run with env allocator_may_return_null=1 instead?
728 match.append('~BadImage')
729
Ben Wagner1d8726f2018-02-02 14:47:31 -0500730 if 'Mac' in bot and 'IntelHD6000' in bot:
Ben Wagnerdf430052018-02-08 16:57:04 -0500731 # skia:7574
Ben Wagner1d8726f2018-02-02 14:47:31 -0500732 match.append('~^ProcessorCloneTest$')
733 match.append('~^GrMeshTest$')
734
Ben Wagnerdf430052018-02-08 16:57:04 -0500735 if 'Mac' in bot and 'IntelHD615' in bot:
736 # skia:7603
737 match.append('~^GrMeshTest$')
738
Timothy Liangb1f02f32018-08-10 13:30:26 -0400739 if 'Metal' in bot:
740 # skia:8243
741 match.append('~^ClearOp$')
742 match.append('~^DDLSurfaceCharacterizationTest$')
743 match.append('~^DDLOperatorEqTest$')
744 match.append('~^DeferredProxyTest$')
745 match.append('~^GPUMemorySize$')
746 match.append('~^GrContext_colorTypeSupportedAsImage$')
747 match.append('~^GrContext_colorTypeSupportedAsSurface$')
748 match.append('~^GrContext_maxSurfaceSamplesForColorType$')
749 match.append('~^GrContextFactory_sharedContexts$')
750 match.append('~^GrPipelineDynamicStateTest$')
Timothy Liangb1f02f32018-08-10 13:30:26 -0400751 match.append('~^InitialTextureClear$')
752 match.append('~^PromiseImageTest$')
753 match.append('~^ResourceAllocatorTest$')
754 match.append('~^RGB565TextureTest$')
755 match.append('~^RGBA4444TextureTest$')
756 match.append('~^TransferPixelsTest$')
Timothy Liangb1f02f32018-08-10 13:30:26 -0400757 match.append('~^SurfaceCreationWithColorSpace_Gpu$')
758 match.append('~^SurfaceSemaphores$')
759 match.append('~^VertexAttributeCount$')
760 match.append('~^WrappedProxyTest$')
761
Eric Boren4c7754c2017-04-10 08:19:10 -0400762 if blacklisted:
763 args.append('--blacklist')
764 args.extend(blacklisted)
765
766 if match:
767 args.append('--match')
768 args.extend(match)
769
770 # These bots run out of memory running RAW codec tests. Do not run them in
771 # parallel
Ben Wagner2040ed22017-11-22 11:22:22 -0500772 if 'NexusPlayer' in bot or 'Nexus5' in bot or 'Nexus9' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400773 args.append('--noRAW_threading')
774
Yuqian Li84be3ad2017-10-17 10:11:21 -0400775 if 'FSAA' in bot:
776 args.extend(['--analyticAA', 'false', '--deltaAA', 'false'])
777 if 'FAAA' in bot:
778 args.extend(['--deltaAA', 'false', '--forceAnalyticAA'])
779 if 'FDAA' in bot:
780 args.extend(['--deltaAA', '--forceDeltaAA'])
781
Mike Kleinc207da82017-11-10 14:24:34 -0500782 if 'NativeFonts' not in bot:
783 args.append('--nonativeFonts')
784
Mike Klein0c5fdcb2017-11-13 12:40:46 -0500785 if 'GDI' in bot:
786 args.append('--gdi')
787
Stephan Altmueller74dac542017-09-11 15:32:21 -0400788 # Let's make all bots produce verbose output by default.
789 args.append('--verbose')
Mike Kleinc9089062017-06-26 09:09:32 -0400790
Eric Boren4c7754c2017-04-10 08:19:10 -0400791 return args
792
793
794def key_params(api):
795 """Build a unique key from the builder name (as a list).
796
797 E.g. arch x86 gpu GeForce320M mode MacMini4.1 os Mac10.6
798 """
799 # Don't bother to include role, which is always Test.
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400800 blacklist = ['role', 'test_filter']
Eric Boren4c7754c2017-04-10 08:19:10 -0400801
802 flat = []
803 for k in sorted(api.vars.builder_cfg.keys()):
804 if k not in blacklist:
805 flat.append(k)
806 flat.append(api.vars.builder_cfg[k])
Kevin Lubick3fee9232018-08-24 13:30:34 -0400807
Eric Boren4c7754c2017-04-10 08:19:10 -0400808 return flat
809
810
811def test_steps(api):
812 """Run the DM test."""
Eric Boren72f66682018-05-18 07:36:55 -0400813 b = api.properties['buildername']
Eric Boren4c7754c2017-04-10 08:19:10 -0400814 use_hash_file = False
Eric Boren72f66682018-05-18 07:36:55 -0400815 if upload_dm_results(b):
816 host_dm_dir = str(api.flavor.host_dirs.dm_dir)
817 api.flavor.create_clean_host_dir(api.path['start_dir'].join('test'))
Eric Boren4c7754c2017-04-10 08:19:10 -0400818 device_dm_dir = str(api.flavor.device_dirs.dm_dir)
819 if host_dm_dir != device_dm_dir:
820 api.flavor.create_clean_device_dir(device_dm_dir)
821
822 # Obtain the list of already-generated hashes.
823 hash_filename = 'uninteresting_hashes.txt'
824
Eric Boren4c7754c2017-04-10 08:19:10 -0400825 host_hashes_file = api.vars.tmp_dir.join(hash_filename)
826 hashes_file = api.flavor.device_path_join(
827 api.flavor.device_dirs.tmp_dir, hash_filename)
828 api.run(
829 api.python.inline,
830 'get uninteresting hashes',
831 program="""
832 import contextlib
833 import math
834 import socket
835 import sys
836 import time
837 import urllib2
838
Stephan Altmüller64cc5762018-08-02 08:51:38 +0200839 HASHES_URL = sys.argv[1]
Eric Boren4c7754c2017-04-10 08:19:10 -0400840 RETRIES = 5
841 TIMEOUT = 60
842 WAIT_BASE = 15
843
844 socket.setdefaulttimeout(TIMEOUT)
845 for retry in range(RETRIES):
846 try:
847 with contextlib.closing(
848 urllib2.urlopen(HASHES_URL, timeout=TIMEOUT)) as w:
849 hashes = w.read()
Stephan Altmüller64cc5762018-08-02 08:51:38 +0200850 with open(sys.argv[2], 'w') as f:
Eric Boren4c7754c2017-04-10 08:19:10 -0400851 f.write(hashes)
852 break
853 except Exception as e:
854 print 'Failed to get uninteresting hashes from %s:' % HASHES_URL
855 print e
856 if retry == RETRIES:
857 raise
858 waittime = WAIT_BASE * math.pow(2, retry)
859 print 'Retry in %d seconds.' % waittime
860 time.sleep(waittime)
861 """,
Stephan Altmüller64cc5762018-08-02 08:51:38 +0200862 args=[api.properties['gold_hashes_url'], host_hashes_file],
Eric Boren4c7754c2017-04-10 08:19:10 -0400863 abort_on_failure=False,
864 fail_build_on_failure=False,
865 infra_step=True)
866
867 if api.path.exists(host_hashes_file):
868 api.flavor.copy_file_to_device(host_hashes_file, hashes_file)
869 use_hash_file = True
870
871 # Run DM.
872 properties = [
Eric Boren72f66682018-05-18 07:36:55 -0400873 'gitHash', api.properties['revision'],
Eric Boren9a9e3872017-11-29 12:33:22 -0500874 'builder', api.vars.builder_name,
875 'buildbucket_build_id', api.properties.get('buildbucket_build_id', ''),
Eric Boren4c7754c2017-04-10 08:19:10 -0400876 ]
877 if api.vars.is_trybot:
878 properties.extend([
879 'issue', api.vars.issue,
880 'patchset', api.vars.patchset,
881 'patch_storage', api.vars.patch_storage,
882 ])
Eric Borenf9aa9e52017-04-10 09:56:10 -0400883 properties.extend(['swarming_bot_id', api.vars.swarming_bot_id])
884 properties.extend(['swarming_task_id', api.vars.swarming_task_id])
Eric Boren4c7754c2017-04-10 08:19:10 -0400885
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400886 if 'Chromecast' in api.vars.builder_cfg.get('os', ''):
887 # Due to limited disk space, we only deal with skps and one image.
888 args = [
889 'dm',
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400890 '--resourcePath', api.flavor.device_dirs.resource_dir,
891 '--skps', api.flavor.device_dirs.skp_dir,
892 '--images', api.flavor.device_path_join(
Kevin Lubickc2f3e8d2018-01-24 15:48:26 -0500893 api.flavor.device_dirs.resource_dir, 'images', 'color_wheel.jpg'),
Kevin Lubick608c35a2018-01-16 16:15:57 -0500894 '--nameByHash',
895 '--properties'
896 ] + properties
Kevin Lubick95379eb2018-01-17 11:20:19 -0500897 else:
898 args = [
899 'dm',
900 '--resourcePath', api.flavor.device_dirs.resource_dir,
901 '--skps', api.flavor.device_dirs.skp_dir,
902 '--images', api.flavor.device_path_join(
903 api.flavor.device_dirs.images_dir, 'dm'),
904 '--colorImages', api.flavor.device_path_join(
905 api.flavor.device_dirs.images_dir, 'colorspace'),
906 '--nameByHash',
907 '--properties'
908 ] + properties
909
910 args.extend(['--svgs', api.flavor.device_dirs.svg_dir])
Eric Boren8c172ba2018-07-19 13:27:49 -0400911 if 'Lottie' in api.vars.builder_cfg.get('extra_config', ''):
912 args.extend(['--lotties', api.flavor.device_dirs.lotties_dir])
Kevin Lubick95379eb2018-01-17 11:20:19 -0500913
914 args.append('--key')
Kevin Lubick3fee9232018-08-24 13:30:34 -0400915 keys = key_params(api)
916
917 if 'Lottie' in api.vars.builder_cfg.get('extra_config', ''):
918 keys.extend(['renderer', 'skottie'])
919
920 args.extend(keys)
Kevin Lubick608c35a2018-01-16 16:15:57 -0500921
922 if use_hash_file:
923 args.extend(['--uninterestingHashesFile', hashes_file])
Eric Boren72f66682018-05-18 07:36:55 -0400924 if upload_dm_results(b):
Kevin Lubick608c35a2018-01-16 16:15:57 -0500925 args.extend(['--writePath', api.flavor.device_dirs.dm_dir])
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400926
Eric Boren89cd3572017-06-28 13:50:22 -0400927 args.extend(dm_flags(api, api.vars.builder_name))
Eric Boren4c7754c2017-04-10 08:19:10 -0400928
Eric Boren4c7754c2017-04-10 08:19:10 -0400929 # See skia:2789.
Ben Wagner37491d22017-12-13 13:00:47 -0500930 if 'AbandonGpuContext' in api.vars.extra_tokens:
Eric Boren4c7754c2017-04-10 08:19:10 -0400931 args.append('--abandonGpuContext')
Ben Wagner37491d22017-12-13 13:00:47 -0500932 if 'PreAbandonGpuContext' in api.vars.extra_tokens:
Eric Boren4c7754c2017-04-10 08:19:10 -0400933 args.append('--preAbandonGpuContext')
Ben Wagner37491d22017-12-13 13:00:47 -0500934 if 'ReleaseAndAbandonGpuContext' in api.vars.extra_tokens:
Eric Boren6ec17e32017-04-26 14:25:29 -0400935 args.append('--releaseAndAbandonGpuContext')
Eric Boren4c7754c2017-04-10 08:19:10 -0400936
Ben Wagner5655ba42017-10-02 10:48:32 -0400937 api.run(api.flavor.step, 'dm', cmd=args, abort_on_failure=False)
Eric Boren4c7754c2017-04-10 08:19:10 -0400938
Eric Boren72f66682018-05-18 07:36:55 -0400939 if upload_dm_results(b):
Eric Boren4c7754c2017-04-10 08:19:10 -0400940 # Copy images and JSON to host machine if needed.
941 api.flavor.copy_directory_contents_to_host(
Eric Boren72f66682018-05-18 07:36:55 -0400942 api.flavor.device_dirs.dm_dir, api.flavor.host_dirs.dm_dir)
Eric Boren4c7754c2017-04-10 08:19:10 -0400943
944
borenet1ed2ae42016-07-26 11:52:17 -0700945def RunSteps(api):
Eric Borenb7023162018-05-04 13:46:15 -0400946 api.vars.setup()
947 api.file.ensure_directory('makedirs tmp_dir', api.vars.tmp_dir)
948 api.flavor.setup()
949
Robert Iannucci297a7ef2017-05-12 19:09:38 -0700950 env = {}
Eric Boren4c7754c2017-04-10 08:19:10 -0400951 if 'iOS' in api.vars.builder_name:
952 env['IOS_BUNDLE_ID'] = 'com.google.dm'
Stephan Altmueller63e843d2017-04-25 11:38:38 -0400953 env['IOS_MOUNT_POINT'] = api.vars.slave_dir.join('mnt_iosdevice')
Robert Iannucci297a7ef2017-05-12 19:09:38 -0700954 with api.context(env=env):
Eric Boren4c7754c2017-04-10 08:19:10 -0400955 try:
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400956 if 'Chromecast' in api.vars.builder_name:
957 api.flavor.install(resources=True, skps=True)
Eric Boren8c172ba2018-07-19 13:27:49 -0400958 elif 'Lottie' in api.vars.builder_name:
959 api.flavor.install(resources=True, lotties=True)
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400960 else:
Eric Boren8c172ba2018-07-19 13:27:49 -0400961 api.flavor.install(skps=True, images=True, svgs=True, resources=True)
Eric Boren4c7754c2017-04-10 08:19:10 -0400962 test_steps(api)
963 finally:
964 api.flavor.cleanup_steps()
965 api.run.check_failure()
966
967
Eric Borenf9aa9e52017-04-10 09:56:10 -0400968TEST_BUILDERS = [
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400969 'Test-Android-Clang-AndroidOne-GPU-Mali400MP2-arm-Release-All-Android',
970 'Test-Android-Clang-GalaxyS6-GPU-MaliT760-arm64-Debug-All-Android',
Ben Wagner12e69e72018-07-15 15:12:01 -0400971 ('Test-Android-Clang-GalaxyS6-GPU-MaliT760-arm64-Debug-All'
972 '-Android_NoGPUThreads'),
Ben Wagner2107bd82018-06-12 14:16:07 -0400973 ('Test-Android-Clang-GalaxyS7_G930FD-GPU-MaliT880-arm64-Release-All'
974 '-Android_Vulkan'),
Ben Wagner12e69e72018-07-15 15:12:01 -0400975 'Test-Android-Clang-MotoG4-CPU-Snapdragon617-arm-Release-All-Android',
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400976 'Test-Android-Clang-NVIDIA_Shield-GPU-TegraX1-arm64-Debug-All-Android_CCPR',
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400977 'Test-Android-Clang-Nexus5-GPU-Adreno330-arm-Release-All-Android',
Ben Wagner5cf6d322017-12-07 10:23:07 -0500978 'Test-Android-Clang-Nexus7-CPU-Tegra3-arm-Release-All-Android',
Ben Wagner31629a82018-08-22 13:10:32 -0400979 'Test-Android-Clang-NexusPlayer-GPU-PowerVRG6430-x86-Release-All-Android',
Ben Wagner52423f32017-12-07 10:17:13 -0500980 'Test-Android-Clang-Pixel-GPU-Adreno530-arm64-Debug-All-Android_Vulkan',
Ben Wagner12e69e72018-07-15 15:12:01 -0400981 'Test-Android-Clang-Pixel-GPU-Adreno530-arm-Debug-All-Android_ASAN',
Kevin Lubickd7af1db2017-11-02 12:03:22 -0400982 ('Test-ChromeOS-Clang-AcerChromebookR13Convertible-GPU-PowerVRGX6250-'
983 'arm-Debug-All'),
Mike Klein54d7b312018-06-27 13:43:51 -0400984 'Test-Chromecast-Clang-Chorizo-CPU-Cortex_A7-arm-Release-All',
985 'Test-Chromecast-Clang-Chorizo-GPU-Cortex_A7-arm-Release-All',
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400986 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All-ASAN',
Mike Kleinc24e0c12018-08-17 13:24:51 -0400987 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All-BonusConfigs',
Kevin Lubick32f318b2017-10-17 13:40:52 -0400988 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-shard_00_10-Coverage',
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400989 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All-MSAN',
990 ('Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All'
Ben Wagner9fb285e2017-10-02 16:53:07 -0400991 '-SK_USE_DISCARDABLE_SCALEDIMAGECACHE'),
Eric Boren8c172ba2018-07-19 13:27:49 -0400992 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Release-All-Lottie',
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400993 ('Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Release-All'
Ben Wagner6e0a6b32017-09-26 14:11:15 -0400994 '-SK_FORCE_RASTER_PIPELINE_BLITTER'),
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400995 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Release-All-TSAN',
Ben Wagnerd26e4462018-05-22 10:46:15 -0400996 'Test-Debian9-Clang-GCE-GPU-SwiftShader-x86_64-Release-All-SwiftShader',
Kevin Lubick88611a12018-04-26 09:46:45 -0400997 'Test-Debian9-Clang-NUC5PPYH-GPU-IntelHD405-x86_64-Release-All-Vulkan',
998 'Test-Debian9-Clang-NUC7i5BNK-GPU-IntelIris640-x86_64-Debug-All-Vulkan',
Jim Van Verth1b6c75c2018-02-16 09:49:08 -0500999 'Test-Mac-Clang-MacBook10.1-GPU-IntelHD615-x86_64-Release-All-NativeFonts',
Ben Wagner7ea54282018-08-22 14:07:48 -04001000 'Test-Mac-Clang-MacBookAir7.2-GPU-IntelHD6000-x86_64-Debug-All',
1001 'Test-Mac-Clang-MacBookPro11.5-CPU-AVX2-x86_64-Release-All',
Greg Danielb95d2782018-07-24 11:35:18 -04001002 'Test-Mac-Clang-MacBookPro11.5-GPU-RadeonHD8870M-x86_64-Debug-All-Metal',
Chris Dalton2b937f52018-05-17 10:17:10 -06001003 ('Test-Mac-Clang-MacBookPro11.5-GPU-RadeonHD8870M-x86_64-Release-All-'
1004 'MoltenVK_Vulkan'),
Ben Wagner7ea54282018-08-22 14:07:48 -04001005 'Test-Mac-Clang-MacMini7.1-GPU-IntelIris5100-x86_64-Debug-All-CommandBuffer',
Ben Wagner9f553932017-11-27 22:18:12 -05001006 'Test-Ubuntu17-Clang-Golo-GPU-QuadroP400-x86_64-Debug-All-Vulkan_Coverage',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001007 ('Test-Ubuntu17-GCC-Golo-GPU-QuadroP400-x86_64-Release-All'
Ben Wagner6e0a6b32017-09-26 14:11:15 -04001008 '-Valgrind_AbandonGpuContext_SK_CPU_LIMIT_SSE41'),
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001009 ('Test-Ubuntu17-GCC-Golo-GPU-QuadroP400-x86_64-Release-All'
Ben Wagner6e0a6b32017-09-26 14:11:15 -04001010 '-Valgrind_PreAbandonGpuContext_SK_CPU_LIMIT_SSE41'),
Eric Borendd8b1fc2018-05-18 09:54:02 -04001011 'Test-Ubuntu17-Clang-Golo-GPU-QuadroP400-x86_64-Debug-All-DDL1',
1012 'Test-Ubuntu17-Clang-Golo-GPU-QuadroP400-x86_64-Debug-All-DDL3',
Eric Boren9f4efd32018-07-20 08:25:42 -04001013 'Test-Ubuntu17-Clang-Golo-GPU-QuadroP400-x86_64-Debug-All-Lottie',
Ben Wagnera4cdfbb2018-08-31 10:20:34 -04001014 'Test-Win10-Clang-Golo-GPU-QuadroP400-x86_64-Release-All-BonusConfigs',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001015 ('Test-Win10-Clang-Golo-GPU-QuadroP400-x86_64-Release-All'
Ben Wagner6e0a6b32017-09-26 14:11:15 -04001016 '-ReleaseAndAbandonGpuContext'),
Ben Wagnerfd66b5f2017-11-15 15:16:27 -05001017 'Test-Win10-Clang-NUC5i7RYH-CPU-AVX2-x86_64-Debug-All-NativeFonts_GDI',
Ben Wagner0473a312018-08-29 14:15:15 -04001018 'Test-Win10-Clang-NUC5i7RYH-GPU-IntelIris6100-x86_64-Release-All-ANGLE',
Ben Wagnerb2fd61a2017-10-23 16:01:44 -04001019 'Test-Win10-Clang-NUC6i5SYK-GPU-IntelIris540-x86_64-Debug-All-ANGLE',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001020 'Test-Win10-Clang-NUC6i5SYK-GPU-IntelIris540-x86_64-Debug-All-Vulkan',
Ben Wagnerb2fd61a2017-10-23 16:01:44 -04001021 'Test-Win10-Clang-NUCD34010WYKH-GPU-IntelHD4400-x86_64-Release-All-ANGLE',
Greg Daniele5b7e6d2018-06-12 10:52:59 -04001022 'Test-Win10-Clang-ShuttleA-GPU-GTX660-x86_64-Release-All-Vulkan',
Ben Wagnerb2fd61a2017-10-23 16:01:44 -04001023 'Test-Win10-Clang-ShuttleC-GPU-GTX960-x86_64-Debug-All-ANGLE',
Ben Wagner78935c22017-11-15 13:21:03 -05001024 'Test-Win2016-Clang-GCE-CPU-AVX2-x86_64-Debug-All-FAAA',
1025 'Test-Win2016-Clang-GCE-CPU-AVX2-x86_64-Debug-All-FDAA',
1026 'Test-Win2016-Clang-GCE-CPU-AVX2-x86_64-Debug-All-FSAA',
Ben Wagner31629a82018-08-22 13:10:32 -04001027 'Test-iOS-Clang-iPadPro-GPU-PowerVRGT7800-arm64-Release-All',
Eric Borenf9aa9e52017-04-10 09:56:10 -04001028]
borenet1ed2ae42016-07-26 11:52:17 -07001029
1030
1031def GenTests(api):
Eric Borenf9aa9e52017-04-10 09:56:10 -04001032 for builder in TEST_BUILDERS:
1033 test = (
1034 api.test(builder) +
1035 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001036 buildbucket_build_id='123454321',
Eric Borenf9aa9e52017-04-10 09:56:10 -04001037 revision='abc123',
1038 path_config='kitchen',
Stephan Altmüller64cc5762018-08-02 08:51:38 +02001039 gold_hashes_url='https://example.com/hashes.txt',
Eric Borenf9aa9e52017-04-10 09:56:10 -04001040 swarm_out_dir='[SWARM_OUT_DIR]') +
1041 api.path.exists(
1042 api.path['start_dir'].join('skia'),
1043 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1044 'skimage', 'VERSION'),
1045 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1046 'skp', 'VERSION'),
1047 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1048 'svg', 'VERSION'),
1049 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
Ben Wagnerf835c222017-04-30 11:14:51 -04001050 ) +
1051 api.step_data('get swarming bot id',
1052 stdout=api.raw_io.output('skia-bot-123')) +
1053 api.step_data('get swarming task id',
1054 stdout=api.raw_io.output('123456'))
Eric Borenf9aa9e52017-04-10 09:56:10 -04001055 )
Eric Borenf9aa9e52017-04-10 09:56:10 -04001056 if 'Win' in builder:
1057 test += api.platform('win', 64)
Eric Boren4c7754c2017-04-10 08:19:10 -04001058
Kevin Lubick2dafbd72017-08-31 10:39:05 -04001059 if 'Chromecast' in builder:
1060 test += api.step_data(
1061 'read chromecast ip',
1062 stdout=api.raw_io.output('192.168.1.2:5555'))
1063
Eric Borenf9aa9e52017-04-10 09:56:10 -04001064 if 'ChromeOS' in builder:
1065 test += api.step_data(
1066 'read chromeos ip',
1067 stdout=api.raw_io.output('{"user_ip":"foo@127.0.0.1"}'))
Eric Boren4c7754c2017-04-10 08:19:10 -04001068
Eric Borenf9aa9e52017-04-10 09:56:10 -04001069 yield test
Eric Boren4c7754c2017-04-10 08:19:10 -04001070
Eric Borendd8b1fc2018-05-18 09:54:02 -04001071 builder = 'Test-Win8-Clang-Golo-CPU-AVX-x86-Debug-All'
Kevin Lubickfe079d42017-04-12 08:31:48 -04001072 yield (
1073 api.test('trybot') +
1074 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001075 buildbucket_build_id='123454321',
Kevin Lubickfe079d42017-04-12 08:31:48 -04001076 revision='abc123',
1077 path_config='kitchen',
Stephan Altmüller64cc5762018-08-02 08:51:38 +02001078 gold_hashes_url='https://example.com/hashes.txt',
Kevin Lubickfe079d42017-04-12 08:31:48 -04001079 swarm_out_dir='[SWARM_OUT_DIR]') +
1080 api.properties(patch_storage='gerrit') +
1081 api.properties.tryserver(
1082 buildername=builder,
1083 gerrit_project='skia',
1084 gerrit_url='https://skia-review.googlesource.com/',
1085 )+
1086 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')
1095 )
1096 )
1097
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001098 builder = 'Test-Debian9-GCC-GCE-CPU-AVX2-x86_64-Debug-All'
borenet1ed2ae42016-07-26 11:52:17 -07001099 yield (
Eric Boren4c7754c2017-04-10 08:19:10 -04001100 api.test('failed_dm') +
1101 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001102 buildbucket_build_id='123454321',
borenet1ed2ae42016-07-26 11:52:17 -07001103 revision='abc123',
1104 path_config='kitchen',
Stephan Altmüller64cc5762018-08-02 08:51:38 +02001105 gold_hashes_url='https://example.com/hashes.txt',
borenet1ed2ae42016-07-26 11:52:17 -07001106 swarm_out_dir='[SWARM_OUT_DIR]') +
1107 api.path.exists(
Ravi Mistry9bcca6a2016-11-21 16:06:19 -05001108 api.path['start_dir'].join('skia'),
1109 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
Eric Boren4c7754c2017-04-10 08:19:10 -04001110 'skimage', 'VERSION'),
Ravi Mistry9bcca6a2016-11-21 16:06:19 -05001111 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
Eric Boren4c7754c2017-04-10 08:19:10 -04001112 'skp', 'VERSION'),
Ravi Mistry9bcca6a2016-11-21 16:06:19 -05001113 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
Eric Boren4c7754c2017-04-10 08:19:10 -04001114 'svg', 'VERSION'),
Ravi Mistry9bcca6a2016-11-21 16:06:19 -05001115 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
Eric Boren4c7754c2017-04-10 08:19:10 -04001116 ) +
1117 api.step_data('symbolized dm', retcode=1)
1118 )
1119
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001120 builder = 'Test-Android-Clang-Nexus7-GPU-Tegra3-arm-Release-All-Android'
Eric Boren4c7754c2017-04-10 08:19:10 -04001121 yield (
1122 api.test('failed_get_hashes') +
1123 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001124 buildbucket_build_id='123454321',
Eric Boren4c7754c2017-04-10 08:19:10 -04001125 revision='abc123',
1126 path_config='kitchen',
Stephan Altmüller64cc5762018-08-02 08:51:38 +02001127 gold_hashes_url='https://example.com/hashes.txt',
Eric Boren4c7754c2017-04-10 08:19:10 -04001128 swarm_out_dir='[SWARM_OUT_DIR]') +
1129 api.path.exists(
1130 api.path['start_dir'].join('skia'),
1131 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1132 'skimage', 'VERSION'),
1133 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1134 'skp', 'VERSION'),
1135 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1136 'svg', 'VERSION'),
1137 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
1138 ) +
1139 api.step_data('get uninteresting hashes', retcode=1)
1140 )
1141
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001142 builder = ('Test-Android-Clang-NexusPlayer-CPU-Moorefield-x86-'
1143 'Debug-All-Android')
Eric Boren4c7754c2017-04-10 08:19:10 -04001144 yield (
1145 api.test('failed_push') +
1146 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001147 buildbucket_build_id='123454321',
Eric Boren4c7754c2017-04-10 08:19:10 -04001148 revision='abc123',
1149 path_config='kitchen',
Stephan Altmüller64cc5762018-08-02 08:51:38 +02001150 gold_hashes_url='https://example.com/hashes.txt',
Eric Boren4c7754c2017-04-10 08:19:10 -04001151 swarm_out_dir='[SWARM_OUT_DIR]') +
1152 api.path.exists(
1153 api.path['start_dir'].join('skia'),
1154 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1155 'skimage', 'VERSION'),
1156 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1157 'skp', 'VERSION'),
1158 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1159 'svg', 'VERSION'),
1160 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
1161 ) +
Kevin Lubickc6f74ca2018-03-01 09:21:38 -05001162 api.step_data('get swarming bot id',
1163 stdout=api.raw_io.output('build123-m2--device5')) +
Eric Boren4c7754c2017-04-10 08:19:10 -04001164 api.step_data('push [START_DIR]/skia/resources/* '+
1165 '/sdcard/revenge_of_the_skiabot/resources', retcode=1)
1166 )
1167
Ben Wagner1a2b3f02017-10-26 15:13:38 -04001168 builder = 'Test-Android-Clang-Nexus7-GPU-Tegra3-arm-Debug-All-Android'
Eric Borencd0a98c2018-06-20 13:23:16 -04001169 retry_step_name = 'adb pull.pull /sdcard/revenge_of_the_skiabot/dm_out'
Eric Boren4c7754c2017-04-10 08:19:10 -04001170 yield (
1171 api.test('failed_pull') +
1172 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001173 buildbucket_build_id='123454321',
Eric Boren4c7754c2017-04-10 08:19:10 -04001174 revision='abc123',
1175 path_config='kitchen',
Stephan Altmüller64cc5762018-08-02 08:51:38 +02001176 gold_hashes_url='https://example.com/hashes.txt',
Eric Boren4c7754c2017-04-10 08:19:10 -04001177 swarm_out_dir='[SWARM_OUT_DIR]') +
1178 api.path.exists(
1179 api.path['start_dir'].join('skia'),
1180 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1181 'skimage', 'VERSION'),
1182 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1183 'skp', 'VERSION'),
1184 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1185 'svg', 'VERSION'),
1186 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
1187 ) +
1188 api.step_data('dm', retcode=1) +
Ben Wagnere7e6e222018-05-25 09:47:37 -04001189 api.step_data(retry_step_name, retcode=1) +
1190 api.step_data(retry_step_name + ' (attempt 2)', retcode=1) +
1191 api.step_data(retry_step_name + ' (attempt 3)', retcode=1)
borenetbfa5b452016-10-19 10:13:32 -07001192 )
Eric Boren053d7a42017-09-15 08:35:31 -04001193
1194 yield (
Kevin Lubickbd27d1d2017-10-13 08:01:49 -04001195 api.test('internal_bot_2') +
1196 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001197 buildbucket_build_id='123454321',
Kevin Lubickbd27d1d2017-10-13 08:01:49 -04001198 revision='abc123',
1199 path_config='kitchen',
1200 swarm_out_dir='[SWARM_OUT_DIR]',
Stephan Altmüller64cc5762018-08-02 08:51:38 +02001201 gold_hashes_url='https://example.com/hashes.txt',
Eric Borenfb20ac42018-04-24 14:48:19 -04001202 internal_hardware_label='2') +
Kevin Lubickbd27d1d2017-10-13 08:01:49 -04001203 api.path.exists(
1204 api.path['start_dir'].join('skia'),
1205 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1206 'skimage', 'VERSION'),
1207 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1208 'skp', 'VERSION'),
1209 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1210 'svg', 'VERSION'),
1211 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
Kevin Lubickd1bbd5f2017-11-21 16:47:16 -05001212 )
Kevin Lubickbd27d1d2017-10-13 08:01:49 -04001213 )