blob: 742e098bad047c1d849a233e434f9a1d86d51fd8 [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 Boren4c7754c2017-04-10 08:19:10 -040010 'core',
Eric Boren896af752017-04-24 13:22:56 -040011 'env',
12 'flavor',
Robert Iannucci297a7ef2017-05-12 19:09:38 -070013 'recipe_engine/context',
Robert Iannucci8cd50412017-07-07 14:36:58 -070014 'recipe_engine/file',
Eric Boren4c7754c2017-04-10 08:19:10 -040015 'recipe_engine/json',
borenet1ed2ae42016-07-26 11:52:17 -070016 'recipe_engine/path',
17 'recipe_engine/platform',
18 'recipe_engine/properties',
Eric Boren4c7754c2017-04-10 08:19:10 -040019 'recipe_engine/python',
borenet1ed2ae42016-07-26 11:52:17 -070020 'recipe_engine/raw_io',
Eric Boren4c7754c2017-04-10 08:19:10 -040021 'recipe_engine/step',
Eric Boren4c7754c2017-04-10 08:19:10 -040022 'run',
23 'vars',
borenet1ed2ae42016-07-26 11:52:17 -070024]
25
26
Eric Boren89cd3572017-06-28 13:50:22 -040027def dm_flags(api, bot):
Eric Boren4c7754c2017-04-10 08:19:10 -040028 args = []
Brian Osmanf9810662017-08-30 10:02:10 -040029 configs = []
30 blacklisted = []
31
32 def blacklist(quad):
33 config, src, options, name = quad.split(' ') if type(quad) is str else quad
34 if (config == '_' or
35 config in configs or
36 (config[0] == '~' and config[1:] in configs)):
37 blacklisted.extend([config, src, options, name])
Eric Boren4c7754c2017-04-10 08:19:10 -040038
Mike Klein97d6a7a2017-07-24 10:37:19 -040039 # We've been spending lots of time writing out and especially uploading
40 # .pdfs, but not doing anything further with them. skia:6821
41 args.extend(['--dont_write', 'pdf'])
42
Eric Boren4c7754c2017-04-10 08:19:10 -040043 # This enables non-deterministic random seeding of the GPU FP optimization
Brian Osman7a34dca2017-04-13 13:40:29 -040044 # test.
Ben Wagner6da8f792017-08-10 12:22:56 -040045 # Not Android due to:
Ben Wagner11ab43c2017-08-09 18:05:59 -040046 # - https://skia.googlesource.com/skia/+/
47 # 5910ed347a638ded8cd4c06dbfda086695df1112/BUILD.gn#160
48 # - https://skia.googlesource.com/skia/+/
49 # ce06e261e68848ae21cac1052abc16bc07b961bf/tests/ProcessorTest.cpp#307
Ben Wagner6da8f792017-08-10 12:22:56 -040050 # Not MSAN due to:
51 # - https://skia.googlesource.com/skia/+/
52 # 0ac06e47269a40c177747310a613d213c95d1d6d/infra/bots/recipe_modules/
53 # flavor/gn_flavor.py#80
54 if 'Android' not in bot and 'MSAN' not in bot:
Ben Wagner11ab43c2017-08-09 18:05:59 -040055 args.append('--randomProcessorTest')
Eric Boren4c7754c2017-04-10 08:19:10 -040056
57 # 32-bit desktop bots tend to run out of memory, because they have relatively
58 # far more cores than RAM (e.g. 32 cores, 3G RAM). Hold them back a bit.
59 if '-x86-' in bot and not 'NexusPlayer' in bot:
Mike Kleindf669812017-06-23 13:30:17 -040060 args.extend(['--threads', '4'])
Eric Boren4c7754c2017-04-10 08:19:10 -040061
Ben Wagner5cf6d322017-12-07 10:23:07 -050062 # Nexus7 runs out of memory due to having 4 cores and only 1G RAM.
63 if 'CPU' in bot and 'Nexus7' in bot:
Ben Wagner1cfb6bc2017-12-07 12:19:30 -050064 args.extend(['--threads', '2'])
Ben Wagner5cf6d322017-12-07 10:23:07 -050065
Kevin Lubick2dafbd72017-08-31 10:39:05 -040066 if 'Chromecast' in bot:
67 args.extend(['--threads', '0'])
68
Eric Boren4c7754c2017-04-10 08:19:10 -040069 # Avoid issues with dynamically exceeding resource cache limits.
70 if 'Test' in bot and 'DISCARDABLE' in bot:
Mike Kleindf669812017-06-23 13:30:17 -040071 args.extend(['--threads', '0'])
72
73 # See if staying on the main thread helps skia:6748.
74 if 'Test-iOS' in bot:
75 args.extend(['--threads', '0'])
Eric Boren4c7754c2017-04-10 08:19:10 -040076
Derek Sollenbergeredfe3df2017-07-19 15:25:24 -040077 # Android's kernel will occasionally attempt to kill our process, using
78 # SIGINT, in an effort to free up resources. If requested, that signal
79 # is ignored and dm will keep attempting to proceed until we actually
80 # exhaust the available resources.
81 if ('NexusPlayer' in bot or
Kevin Lubick608c35a2018-01-16 16:15:57 -050082 'PixelC' in bot or
83 'Chromecast' in bot):
Derek Sollenbergeredfe3df2017-07-19 15:25:24 -040084 args.append('--ignoreSigInt')
85
Ben Wagner122b3852018-04-20 13:43:23 -040086 if 'SwiftShader' in api.vars.extra_tokens:
87 configs.extend(['gles', 'glesdft'])
88 args.append('--disableDriverCorrectnessWorkarounds')
89
90 elif api.vars.builder_cfg.get('cpu_or_gpu') == 'CPU':
Ben Wagner32fa5102017-08-10 21:25:55 -040091 args.append('--nogpu')
92
93 # These are the canonical configs that we would ideally run on all bots. We
94 # may opt out or substitute some below for specific bots
Mike Kleince4cf722018-05-10 11:29:15 -040095 configs.extend(['8888', 'pdf'])
Ben Wagner32fa5102017-08-10 21:25:55 -040096
97 # Runs out of memory on Android bots. Everyone else seems fine.
98 if 'Android' in bot:
99 configs.remove('pdf')
100
101 if '-GCE-' in bot:
Mike Klein515bda62018-01-09 11:21:58 -0500102 configs.extend(['g8'])
Ben Wagner32fa5102017-08-10 21:25:55 -0400103 configs.extend(['565'])
104 configs.extend(['f16'])
Ben Wagner32fa5102017-08-10 21:25:55 -0400105 configs.extend(['lite-8888']) # Experimental display list.
Mike Kleinb7ea3da2017-10-31 17:42:08 +0000106 configs.extend(['gbr-8888'])
Mike Kleince4cf722018-05-10 11:29:15 -0400107 configs.extend(['srgb'])
108 configs.extend(['srgbnl'])
109 configs.extend(['esrgb'])
Ben Wagner32fa5102017-08-10 21:25:55 -0400110
Kevin Lubicke0b7f5c2018-05-07 15:10:17 -0400111 if 'SAN' in bot:
112 configs.extend(['t8888'])
Yuqian Licb312482018-04-27 15:52:40 -0400113
Ben Wagner0ecc2b7e2017-11-09 22:10:44 -0500114 configs.extend(mode + '-8888' for mode in ['serialize', 'tiles_rt', 'pic'])
Ben Wagner32fa5102017-08-10 21:25:55 -0400115
Kevin Lubicke0b7f5c2018-05-07 15:10:17 -0400116 if 'T8888' in bot:
117 configs = ['t8888']
118
Ben Wagner32fa5102017-08-10 21:25:55 -0400119 # This bot only differs from vanilla CPU bots in 8888 config.
120 if 'SK_FORCE_RASTER_PIPELINE_BLITTER' in bot:
Mike Kleince4cf722018-05-10 11:29:15 -0400121 configs = ['8888']
Ben Wagner32fa5102017-08-10 21:25:55 -0400122
Ben Wagner077710b2017-10-26 13:12:39 -0400123 if 'FSAA' in bot or 'FAAA' in bot or 'FDAA' in bot:
124 # Scan converters shouldn't really be sensitive to different color
125 # configurations.
126 configs = ['8888', 'tiles_rt-8888']
127
Mike Klein9a01a212017-11-03 12:19:54 -0400128 if 'NativeFonts' in bot:
129 configs = ['8888']
130
Kevin Lubick608c35a2018-01-16 16:15:57 -0500131 # Just do the basic config on Chromecast to avoid OOM.
132 if 'Chromecast' in bot:
Kevin Lubick8baaef92018-01-17 10:02:17 -0500133 configs = ['8888']
Kevin Lubick608c35a2018-01-16 16:15:57 -0500134
Ben Wagner32fa5102017-08-10 21:25:55 -0400135 elif api.vars.builder_cfg.get('cpu_or_gpu') == 'GPU':
136 args.append('--nocpu')
137
138 # Add in either gles or gl configs to the canonical set based on OS
139 sample_count = '8'
140 gl_prefix = 'gl'
141 if 'Android' in bot or 'iOS' in bot:
142 sample_count = '4'
143 # We want to test the OpenGL config not the GLES config on the Shield
144 if 'NVIDIA_Shield' not in bot:
145 gl_prefix = 'gles'
146 elif 'Intel' in bot:
147 sample_count = ''
148 elif 'ChromeOS' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400149 gl_prefix = 'gles'
Eric Boren4c7754c2017-04-10 08:19:10 -0400150
Jim Van Verth1b6c75c2018-02-16 09:49:08 -0500151 if 'NativeFonts' in bot:
152 configs.append(gl_prefix)
153 else:
Jim Van Verth240516f2018-02-15 09:55:24 -0500154 configs.extend([gl_prefix, gl_prefix + 'dft', gl_prefix + 'srgb'])
155 if sample_count is not '':
156 configs.append(gl_prefix + 'msaa' + sample_count)
Eric Boren4c7754c2017-04-10 08:19:10 -0400157
Ben Wagner32fa5102017-08-10 21:25:55 -0400158 # The NP produces a long error stream when we run with MSAA. The Tegra3 just
159 # doesn't support it.
160 if ('NexusPlayer' in bot or
161 'Tegra3' in bot or
162 # We aren't interested in fixing msaa bugs on current iOS devices.
163 'iPad4' in bot or
164 'iPadPro' in bot or
165 'iPhone6' in bot or
166 'iPhone7' in bot or
167 # skia:5792
168 'IntelHD530' in bot or
169 'IntelIris540' in bot):
170 configs = [x for x in configs if 'msaa' not in x]
Eric Boren4c7754c2017-04-10 08:19:10 -0400171
Ben Wagner32fa5102017-08-10 21:25:55 -0400172 # The NP produces different images for dft on every run.
173 if 'NexusPlayer' in bot:
174 configs = [x for x in configs if 'dft' not in x]
Eric Boren4c7754c2017-04-10 08:19:10 -0400175
Ben Wagner32fa5102017-08-10 21:25:55 -0400176 # We want to test both the OpenGL config and the GLES config on Linux Intel:
177 # GL is used by Chrome, GLES is used by ChromeOS.
Brian Osmanf9810662017-08-30 10:02:10 -0400178 # Also do the Ganesh threading verification test (render with and without
179 # worker threads, using only the SW path renderer, and compare the results).
Ben Wagner32fa5102017-08-10 21:25:55 -0400180 if 'Intel' in bot and api.vars.is_linux:
Brian Osmanf9810662017-08-30 10:02:10 -0400181 configs.extend(['gles', 'glesdft', 'glessrgb', 'gltestthreading'])
182 # skbug.com/6333, skbug.com/6419, skbug.com/6702
183 blacklist('gltestthreading gm _ lcdblendmodes')
184 blacklist('gltestthreading gm _ lcdoverlap')
Brian Osmanbef21ba2017-08-31 13:49:05 -0400185 blacklist('gltestthreading gm _ textbloblooper')
Brian Osman1e75f2a2017-09-07 09:30:44 -0400186 # All of these GMs are flaky, too:
187 blacklist('gltestthreading gm _ bleed_alpha_bmp')
188 blacklist('gltestthreading gm _ bleed_alpha_bmp_shader')
189 blacklist('gltestthreading gm _ bleed_alpha_image')
190 blacklist('gltestthreading gm _ bleed_alpha_image_shader')
191 blacklist('gltestthreading gm _ savelayer_with_backdrop')
192 blacklist('gltestthreading gm _ persp_shaders_bw')
Brian Salomon5c6ac642017-12-19 11:09:32 -0500193 blacklist('gltestthreading gm _ dftext_blob_persp')
Brian Salomon19eaf2d2018-03-19 16:06:44 -0400194 # skbug.com/7523 - Flaky on various GPUs
195 blacklist('gltestthreading gm _ orientation')
Mike Klein97627d42017-05-11 13:12:48 -0400196
Ben Wagner32fa5102017-08-10 21:25:55 -0400197 # The following devices do not support glessrgb.
198 if 'glessrgb' in configs:
199 if ('IntelHD405' in bot or
Ben Wagnerab10c822017-12-19 15:14:12 -0500200 'IntelIris640' in bot or
Ben Wagner32fa5102017-08-10 21:25:55 -0400201 'IntelBayTrail' in bot or
202 'IntelHD2000' in bot or
203 'AndroidOne' in bot or
204 'Nexus7' in bot or
205 'NexusPlayer' in bot):
206 configs.remove('glessrgb')
207
Brian Osman09eba3c2017-11-06 14:39:18 -0500208 # Test SkColorSpaceXformCanvas on a few bots
209 if 'GTX1070' in bot:
210 configs.append('gbr-gl')
211
Ben Wagner32fa5102017-08-10 21:25:55 -0400212 # CommandBuffer bot *only* runs the command_buffer config.
213 if 'CommandBuffer' in bot:
214 configs = ['commandbuffer']
215
216 # ANGLE bot *only* runs the angle configs
217 if 'ANGLE' in bot:
218 configs = ['angle_d3d11_es2',
219 'angle_d3d9_es2',
220 'angle_gl_es2',
221 'angle_d3d11_es3']
222 if sample_count is not '':
223 configs.append('angle_d3d11_es2_msaa' + sample_count)
224 configs.append('angle_d3d11_es3_msaa' + sample_count)
Ben Wagner7464a262018-04-19 15:49:18 -0400225 if 'GTX' in bot or 'Quadro' in bot:
226 # See skia:7823 and chromium:693090.
227 configs.append('angle_gl_es3')
228 if sample_count is not '':
229 configs.append('angle_gl_es2_msaa' + sample_count)
230 configs.append('angle_gl_es3_msaa' + sample_count)
Ben Wagner32fa5102017-08-10 21:25:55 -0400231
232 # Vulkan bot *only* runs the vk config.
233 if 'Vulkan' in bot:
234 configs = ['vk']
235
Brian Osman10fc6fd2018-03-02 11:01:10 -0500236 # Test 1010102 on our Linux/NVIDIA bots
237 if 'QuadroP400' in bot and api.vars.is_linux:
238 if 'Vulkan' in bot:
239 configs.append('vk1010102')
Brian Osman419abf32018-03-02 14:56:15 -0500240 # Decoding transparent images to 1010102 just looks bad
241 blacklist('vk1010102 image _ _')
Brian Osman10fc6fd2018-03-02 11:01:10 -0500242 else:
243 configs.append('gl1010102')
Brian Osman419abf32018-03-02 14:56:15 -0500244 # Decoding transparent images to 1010102 just looks bad
245 blacklist('gl1010102 image _ _')
Brian Osman10fc6fd2018-03-02 11:01:10 -0500246
Ben Wagner32fa5102017-08-10 21:25:55 -0400247 if 'ChromeOS' in bot:
248 # Just run GLES for now - maybe add gles_msaa4 in the future
249 configs = ['gles']
250
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400251 if 'Chromecast' in bot:
Kevin Lubick608c35a2018-01-16 16:15:57 -0500252 configs = ['gles']
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400253
Ben Wagner32fa5102017-08-10 21:25:55 -0400254 # Test coverage counting path renderer.
255 if 'CCPR' in bot:
256 configs = [c for c in configs if c == 'gl' or c == 'gles']
Chris Dalton7a0ebfc2017-10-13 12:35:50 -0600257 args.extend(['--pr', 'ccpr', '--cachePathMasks', 'false'])
Chris Dalton97598a52017-07-18 10:49:07 -0600258
Robert Phillips36150be2018-03-15 13:40:07 -0400259 # DDL is a GPU-only feature
260 if 'DDL1' in bot:
Robert Phillips69eb8352018-04-11 13:45:08 -0400261 # This bot generates gl and vk comparison images for the large skps
262 configs = [c for c in configs if c == 'gl' or c == 'vk']
Robert Phillipsb7fafba2018-03-27 20:49:23 +0000263 args.extend(['--skpViewportSize', "2048"])
Robert Phillips371001b2018-04-11 14:43:17 -0400264 args.extend(['--pr', '~ccpr', '~small'])
Robert Phillips36150be2018-03-15 13:40:07 -0400265 if 'DDL3' in bot:
Robert Phillips69eb8352018-04-11 13:45:08 -0400266 # This bot generates the ddl-gl and ddl-vk images for the
267 # large skps and the gms
268 configs = ['ddl-' + c for c in configs if c == 'gl' or c == 'vk']
Robert Phillipsb7fafba2018-03-27 20:49:23 +0000269 args.extend(['--skpViewportSize', "2048"])
Robert Phillipse43ff782018-04-20 11:59:59 -0400270 args.extend(['--gpuThreads', "0"])
Robert Phillips36150be2018-03-15 13:40:07 -0400271
Kevin Lubick32f318b2017-10-17 13:40:52 -0400272 tf = api.vars.builder_cfg.get('test_filter')
273 if 'All' != tf:
274 # Expected format: shard_XX_YY
275 parts = tf.split('_')
276 if len(parts) == 3:
277 args.extend(['--shard', parts[1]])
278 args.extend(['--shards', parts[2]])
Eric Boren9599b0f2018-04-17 15:55:57 -0400279 else: # pragma: nocover
280 raise Exception('Invalid task name - bad shards: %s' % tf)
Kevin Lubick32f318b2017-10-17 13:40:52 -0400281
Chris Dalton80ace822017-07-20 10:54:04 -0600282 args.append('--config')
283 args.extend(configs)
284
Eric Boren4c7754c2017-04-10 08:19:10 -0400285 # Run tests, gms, and image decoding tests everywhere.
Robert Phillips36150be2018-03-15 13:40:07 -0400286 args.extend('--src tests gm image colorImage svg skp'.split(' '))
Ben Wagner0ecc2b7e2017-11-09 22:10:44 -0500287 if api.vars.builder_cfg.get('cpu_or_gpu') == 'GPU':
Chris Dalton7c304ba2017-09-07 11:57:16 -0600288 # Don't run the 'svgparse_*' svgs on GPU.
289 blacklist('_ svg _ svgparse_')
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400290 elif bot == 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All-ASAN':
Chris Dalton7c304ba2017-09-07 11:57:16 -0600291 # Only run the CPU SVGs on 8888.
292 blacklist('~8888 svg _ _')
293 else:
294 # On CPU SVGs we only care about parsing. Only run them on the above bot.
295 args.remove('svg')
Eric Boren4c7754c2017-04-10 08:19:10 -0400296
Mike Klein97627d42017-05-11 13:12:48 -0400297 # Eventually I'd like these to pass, but for now just skip 'em.
298 if 'SK_FORCE_RASTER_PIPELINE_BLITTER' in bot:
299 args.remove('tests')
300
Mike Klein9a01a212017-11-03 12:19:54 -0400301 if 'NativeFonts' in bot: # images won't exercise native font integration :)
302 args.remove('image')
303 args.remove('colorImage')
304
Kevin Lubicke0b7f5c2018-05-07 15:10:17 -0400305 if 'T8888' in bot:
306 args.remove('tests')
307 args.remove('image')
308 args.remove('colorImage')
309
Robert Phillips5f3ce3e2018-04-12 11:09:40 -0400310 if 'DDL' in bot:
311 # The DDL bots just render the large skps and the gms
Robert Phillipsb7fafba2018-03-27 20:49:23 +0000312 args.remove('tests')
313 args.remove('image')
314 args.remove('colorImage')
315 args.remove('svg')
Robert Phillips36150be2018-03-15 13:40:07 -0400316 else:
Robert Phillipsb7fafba2018-03-27 20:49:23 +0000317 # Currently, only the DDL bots render skps
Robert Phillips36150be2018-03-15 13:40:07 -0400318 args.remove('skp')
319
Eric Boren4c7754c2017-04-10 08:19:10 -0400320 # TODO: ???
321 blacklist('f16 _ _ dstreadshuffle')
322 blacklist('glsrgb image _ _')
323 blacklist('glessrgb image _ _')
324
Eric Boren4c7754c2017-04-10 08:19:10 -0400325 # Not any point to running these.
Mike Kleinb7ea3da2017-10-31 17:42:08 +0000326 blacklist('gbr-8888 image _ _')
327 blacklist('gbr-8888 colorImage _ _')
Eric Boren4c7754c2017-04-10 08:19:10 -0400328
Mike Klein515bda62018-01-09 11:21:58 -0500329 # --src image --config g8 means "decode into Gray8", which isn't supported.
330 blacklist('g8 image _ _')
331 blacklist('g8 colorImage _ _')
332
Eric Boren4c7754c2017-04-10 08:19:10 -0400333 if 'Valgrind' in bot:
334 # These take 18+ hours to run.
335 blacklist('pdf gm _ fontmgr_iter')
336 blacklist('pdf _ _ PANO_20121023_214540.jpg')
337 blacklist('pdf skp _ worldjournal')
338 blacklist('pdf skp _ desk_baidu.skp')
339 blacklist('pdf skp _ desk_wikipedia.skp')
340 blacklist('_ svg _ _')
341
342 if 'iOS' in bot:
343 blacklist(gl_prefix + ' skp _ _')
344
345 if 'Mac' in bot or 'iOS' in bot:
346 # CG fails on questionable bmps
347 blacklist('_ image gen_platf rgba32abf.bmp')
348 blacklist('_ image gen_platf rgb24prof.bmp')
349 blacklist('_ image gen_platf rgb24lprof.bmp')
350 blacklist('_ image gen_platf 8bpp-pixeldata-cropped.bmp')
351 blacklist('_ image gen_platf 4bpp-pixeldata-cropped.bmp')
352 blacklist('_ image gen_platf 32bpp-pixeldata-cropped.bmp')
353 blacklist('_ image gen_platf 24bpp-pixeldata-cropped.bmp')
354
355 # CG has unpredictable behavior on this questionable gif
356 # It's probably using uninitialized memory
357 blacklist('_ image gen_platf frame_larger_than_image.gif')
358
359 # CG has unpredictable behavior on incomplete pngs
360 # skbug.com/5774
361 blacklist('_ image gen_platf inc0.png')
362 blacklist('_ image gen_platf inc1.png')
363 blacklist('_ image gen_platf inc2.png')
364 blacklist('_ image gen_platf inc3.png')
365 blacklist('_ image gen_platf inc4.png')
366 blacklist('_ image gen_platf inc5.png')
367 blacklist('_ image gen_platf inc6.png')
368 blacklist('_ image gen_platf inc7.png')
369 blacklist('_ image gen_platf inc8.png')
370 blacklist('_ image gen_platf inc9.png')
371 blacklist('_ image gen_platf inc10.png')
372 blacklist('_ image gen_platf inc11.png')
373 blacklist('_ image gen_platf inc12.png')
374 blacklist('_ image gen_platf inc13.png')
375 blacklist('_ image gen_platf inc14.png')
376
Ben Wagner3f67914c2017-11-27 13:02:25 -0500377 # These images fail after Mac 10.13.1 upgrade.
378 blacklist('_ image gen_platf incInterlaced.gif')
379 blacklist('_ image gen_platf inc1.gif')
380 blacklist('_ image gen_platf inc0.gif')
381 blacklist('_ image gen_platf butterfly.gif')
382
Matt Sarett6c50a2e2017-05-01 09:13:05 -0400383 # WIC fails on questionable bmps
Eric Boren4c7754c2017-04-10 08:19:10 -0400384 if 'Win' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400385 blacklist('_ image gen_platf pal8os2v2.bmp')
386 blacklist('_ image gen_platf pal8os2v2-16.bmp')
387 blacklist('_ image gen_platf rgba32abf.bmp')
388 blacklist('_ image gen_platf rgb24prof.bmp')
389 blacklist('_ image gen_platf rgb24lprof.bmp')
390 blacklist('_ image gen_platf 8bpp-pixeldata-cropped.bmp')
391 blacklist('_ image gen_platf 4bpp-pixeldata-cropped.bmp')
392 blacklist('_ image gen_platf 32bpp-pixeldata-cropped.bmp')
393 blacklist('_ image gen_platf 24bpp-pixeldata-cropped.bmp')
Eric Boren4c7754c2017-04-10 08:19:10 -0400394 if 'x86_64' in bot and 'CPU' in bot:
395 # This GM triggers a SkSmallAllocator assert.
396 blacklist('_ gm _ composeshader_bitmap')
397
Matt Sarett6c50a2e2017-05-01 09:13:05 -0400398 if 'Win' in bot or 'Mac' in bot:
Leon Scroggins III3a3cf432017-08-18 13:08:16 -0400399 # WIC and CG fail on arithmetic jpegs
Matt Sarett6c50a2e2017-05-01 09:13:05 -0400400 blacklist('_ image gen_platf testimgari.jpg')
Leon Scroggins III3a3cf432017-08-18 13:08:16 -0400401 # More questionable bmps that fail on Mac, too. skbug.com/6984
402 blacklist('_ image gen_platf rle8-height-negative.bmp')
403 blacklist('_ image gen_platf rle4-height-negative.bmp')
Matt Sarett6c50a2e2017-05-01 09:13:05 -0400404
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400405 if 'Android' in bot or 'iOS' in bot or 'Chromecast' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400406 # This test crashes the N9 (perhaps because of large malloc/frees). It also
407 # is fairly slow and not platform-specific. So we just disable it on all of
408 # Android and iOS. skia:5438
409 blacklist('_ test _ GrShape')
410
Eric Borenfb20ac42018-04-24 14:48:19 -0400411 if api.vars.internal_hardware_label == '1':
Kevin Lubick451b7432017-09-15 14:44:12 -0400412 # skia:7046
413 blacklist('_ test _ WritePixelsNonTexture_Gpu')
Brian Salomon3d86a192018-02-27 16:46:11 -0500414 blacklist('_ test _ WritePixelsNonTextureMSAA_Gpu')
Kevin Lubick451b7432017-09-15 14:44:12 -0400415 blacklist('_ test _ WritePixels_Gpu')
Brian Salomon3d86a192018-02-27 16:46:11 -0500416 blacklist('_ test _ WritePixelsMSAA_Gpu')
Kevin Lubick451b7432017-09-15 14:44:12 -0400417 blacklist('_ test _ GrSurfaceRenderability')
418 blacklist('_ test _ ES2BlendWithNoTexture')
419
Eric Borenfb20ac42018-04-24 14:48:19 -0400420 if api.vars.internal_hardware_label == '2':
Kevin Lubickbd27d1d2017-10-13 08:01:49 -0400421 # skia:7160
422 blacklist('_ test _ SRGBReadWritePixels')
423 blacklist('_ test _ SRGBMipMap')
424
Kevin Lubick451b7432017-09-15 14:44:12 -0400425
Eric Boren4c7754c2017-04-10 08:19:10 -0400426 # skia:4095
Mike Reedfb499092017-06-26 13:53:32 +0000427 bad_serialize_gms = ['bleed_image',
Eric Boren4c7754c2017-04-10 08:19:10 -0400428 'c_gms',
429 'colortype',
430 'colortype_xfermodes',
431 'drawfilter',
432 'fontmgr_bounds_0.75_0',
433 'fontmgr_bounds_1_-0.25',
434 'fontmgr_bounds',
435 'fontmgr_match',
436 'fontmgr_iter',
437 'imagemasksubset']
438
439 # skia:5589
440 bad_serialize_gms.extend(['bitmapfilters',
441 'bitmapshaders',
442 'bleed',
443 'bleed_alpha_bmp',
444 'bleed_alpha_bmp_shader',
445 'convex_poly_clip',
446 'extractalpha',
447 'filterbitmap_checkerboard_32_32_g8',
448 'filterbitmap_image_mandrill_64',
449 'shadows',
450 'simpleaaclip_aaclip'])
451 # skia:5595
452 bad_serialize_gms.extend(['composeshader_bitmap',
453 'scaled_tilemodes_npot',
454 'scaled_tilemodes'])
455
456 # skia:5778
457 bad_serialize_gms.append('typefacerendering_pfaMac')
458 # skia:5942
459 bad_serialize_gms.append('parsedpaths')
460
461 # these use a custom image generator which doesn't serialize
462 bad_serialize_gms.append('ImageGeneratorExternal_rect')
463 bad_serialize_gms.append('ImageGeneratorExternal_shader')
464
465 # skia:6189
466 bad_serialize_gms.append('shadow_utils')
467
Matt Sarett9f3dcb32017-05-04 08:53:32 -0400468 # Not expected to round trip encoding/decoding.
Mike Klein0b78a692017-10-31 17:31:17 -0400469 bad_serialize_gms.append('all_bitmap_configs')
Matt Sarett9f3dcb32017-05-04 08:53:32 -0400470 bad_serialize_gms.append('makecolorspace')
471
Brian Salomon7072e222017-11-29 15:12:45 -0500472 # This GM forces a path to be convex. That property doesn't survive
473 # serialization.
474 bad_serialize_gms.append('analytic_antialias_convex')
475
Eric Boren4c7754c2017-04-10 08:19:10 -0400476 for test in bad_serialize_gms:
477 blacklist(['serialize-8888', 'gm', '_', test])
478
479 if 'Mac' not in bot:
480 for test in ['bleed_alpha_image', 'bleed_alpha_image_shader']:
481 blacklist(['serialize-8888', 'gm', '_', test])
482 # It looks like we skip these only for out-of-memory concerns.
Kevin Lubick608c35a2018-01-16 16:15:57 -0500483 if 'Win' in bot or 'Android' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400484 for test in ['verylargebitmap', 'verylarge_picture_image']:
485 blacklist(['serialize-8888', 'gm', '_', test])
Ben Wagner2e4e73f2017-09-08 15:21:44 -0400486 if 'Mac' in bot and 'CPU' in bot:
Ben Wagner38db79f2017-08-23 15:05:50 -0400487 # skia:6992
Ben Wagner6f98bc62017-09-05 16:02:28 -0400488 blacklist(['pic-8888', 'gm', '_', 'encode-platform'])
Ben Wagner38db79f2017-08-23 15:05:50 -0400489 blacklist(['serialize-8888', 'gm', '_', 'encode-platform'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400490
491 # skia:4769
492 for test in ['drawfilter']:
Eric Boren4c7754c2017-04-10 08:19:10 -0400493 blacklist([ 'pic-8888', 'gm', '_', test])
Eric Boren4c7754c2017-04-10 08:19:10 -0400494 blacklist([ 'lite-8888', 'gm', '_', test])
495 # skia:4703
496 for test in ['image-cacherator-from-picture',
497 'image-cacherator-from-raster',
498 'image-cacherator-from-ctable']:
Eric Boren4c7754c2017-04-10 08:19:10 -0400499 blacklist([ 'pic-8888', 'gm', '_', test])
Eric Boren4c7754c2017-04-10 08:19:10 -0400500 blacklist(['serialize-8888', 'gm', '_', test])
501
502 # GM that requires raster-backed canvas
503 for test in ['gamut', 'complexclip4_bw', 'complexclip4_aa']:
Eric Boren4c7754c2017-04-10 08:19:10 -0400504 blacklist([ 'pic-8888', 'gm', '_', test])
505 blacklist([ 'lite-8888', 'gm', '_', test])
Eric Boren4c7754c2017-04-10 08:19:10 -0400506 blacklist(['serialize-8888', 'gm', '_', test])
507
508 # GM that not support tiles_rt
509 for test in ['complexclip4_bw', 'complexclip4_aa']:
510 blacklist([ 'tiles_rt-8888', 'gm', '_', test])
511
512 # Extensions for RAW images
Ben Wagner6e0a6b32017-09-26 14:11:15 -0400513 r = ['arw', 'cr2', 'dng', 'nef', 'nrw', 'orf', 'raf', 'rw2', 'pef', 'srw',
514 'ARW', 'CR2', 'DNG', 'NEF', 'NRW', 'ORF', 'RAF', 'RW2', 'PEF', 'SRW']
Eric Boren4c7754c2017-04-10 08:19:10 -0400515
516 # skbug.com/4888
517 # Blacklist RAW images (and a few large PNGs) on GPU bots
518 # until we can resolve failures.
Matt Sarett929bfeb2017-05-22 10:34:41 -0400519 if 'GPU' in bot:
520 blacklist('_ image _ interlaced1.png')
521 blacklist('_ image _ interlaced2.png')
522 blacklist('_ image _ interlaced3.png')
523 for raw_ext in r:
524 blacklist('_ image _ .%s' % raw_ext)
525
526 # Blacklist memory intensive tests on 32-bit bots.
Ben Wagnerfd66b5f2017-11-15 15:16:27 -0500527 if ('Win8' in bot or 'Win2016' in bot) and 'x86-' in bot:
Matt Sarett929bfeb2017-05-22 10:34:41 -0400528 blacklist('_ image f16 _')
Matt Sarett112565e2017-05-22 13:45:15 -0400529 blacklist('_ image _ abnormal.wbmp')
Eric Boren4c7754c2017-04-10 08:19:10 -0400530 blacklist('_ image _ interlaced1.png')
531 blacklist('_ image _ interlaced2.png')
532 blacklist('_ image _ interlaced3.png')
533 for raw_ext in r:
534 blacklist('_ image _ .%s' % raw_ext)
535
Ben Wagner3f330692017-12-07 15:14:54 -0500536 if 'Nexus5' in bot and 'GPU' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400537 # skia:5876
538 blacklist(['_', 'gm', '_', 'encode-platform'])
539
540 if 'AndroidOne-GPU' in bot: # skia:4697, skia:4704, skia:4694, skia:4705
541 blacklist(['_', 'gm', '_', 'bigblurs'])
542 blacklist(['_', 'gm', '_', 'bleed'])
543 blacklist(['_', 'gm', '_', 'bleed_alpha_bmp'])
544 blacklist(['_', 'gm', '_', 'bleed_alpha_bmp_shader'])
545 blacklist(['_', 'gm', '_', 'bleed_alpha_image'])
546 blacklist(['_', 'gm', '_', 'bleed_alpha_image_shader'])
547 blacklist(['_', 'gm', '_', 'bleed_image'])
548 blacklist(['_', 'gm', '_', 'dropshadowimagefilter'])
549 blacklist(['_', 'gm', '_', 'filterfastbounds'])
550 blacklist([gl_prefix, 'gm', '_', 'imageblurtiled'])
551 blacklist(['_', 'gm', '_', 'imagefiltersclipped'])
552 blacklist(['_', 'gm', '_', 'imagefiltersscaled'])
553 blacklist(['_', 'gm', '_', 'imageresizetiled'])
554 blacklist(['_', 'gm', '_', 'matrixconvolution'])
555 blacklist(['_', 'gm', '_', 'strokedlines'])
556 if sample_count is not '':
557 gl_msaa_config = gl_prefix + 'msaa' + sample_count
558 blacklist([gl_msaa_config, 'gm', '_', 'imageblurtiled'])
559 blacklist([gl_msaa_config, 'gm', '_', 'imagefiltersbase'])
560
561 match = []
562 if 'Valgrind' in bot: # skia:3021
563 match.append('~Threaded')
564
Ben Wagner6c126422017-06-19 12:45:54 -0400565 if 'Valgrind' in bot and 'PreAbandonGpuContext' in bot:
566 # skia:6575
567 match.append('~multipicturedraw_')
568
Ben Wagnerbb3e7ff2017-04-28 15:28:32 -0400569 if 'CommandBuffer' in bot:
570 # https://crbug.com/697030
571 match.append('~HalfFloatAlphaTextureTest')
572
Cary Clarka7c569d2018-02-14 11:31:25 -0500573 if 'AndroidOne' in bot:
574 match.append('~WritePixels') # skia:4711
575 match.append('~PremulAlphaRoundTrip_Gpu') # skia:7501
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
604 if 'GalaxyS7_G930A' in bot:
605 match.append('~WritePixels') # skia:6427
606
Eric Boren4c7754c2017-04-10 08:19:10 -0400607 if 'MSAN' in bot:
608 match.extend(['~Once', '~Shared']) # Not sure what's up with these tests.
609
610 if 'TSAN' in bot:
611 match.extend(['~ReadWriteAlpha']) # Flaky on TSAN-covered on nvidia bots.
612 match.extend(['~RGBA4444TextureTest', # Flakier than they are important.
613 '~RGB565TextureTest'])
614
Ben Wagnerdba0bc82017-12-11 13:27:27 -0500615 # By default, we test with GPU threading enabled, unless specifically
616 # disabled.
617 if 'NoGPUThreads' in bot:
618 args.extend(['--gpuThreads', '0'])
619
Greg Daniela86385d2017-06-05 11:34:29 -0400620 if 'Vulkan' in bot and 'Adreno530' in bot:
621 # skia:5777
622 match.extend(['~CopySurface'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400623
Brian Salomon3d86a192018-02-27 16:46:11 -0500624 if 'Vulkan' in bot and 'Adreno' in bot:
625 # skia:7663
626 match.extend(['~WritePixelsNonTextureMSAA_Gpu'])
627 match.extend(['~WritePixelsMSAA_Gpu'])
628
Eric Boren4c7754c2017-04-10 08:19:10 -0400629 if 'Vulkan' in bot and 'NexusPlayer' in bot:
Ben Wagner407a3b72017-09-07 22:14:07 -0400630 # skia:6132
Ben Wagner0ecc2b7e2017-11-09 22:10:44 -0500631 match.append('~^tilemodes$')
Greg Daniel4c723832017-11-13 12:59:08 -0500632 match.append('~tilemodes_npot$')
Greg Daniel41886c82017-11-15 09:20:13 -0500633 match.append('~scaled_tilemodes$')
634 match.append('~emboss')
Ben Wagner0ecc2b7e2017-11-09 22:10:44 -0500635 match.append('~^bitmapfilters$')
636 match.append('~^shadertext$')
637 match.append('~^FullScreenClearWithLayers$') #skia:7191
638 match.append('~^GrDefaultPathRendererTest$') #skia:7244
639 match.append('~^GrMSAAPathRendererTest$') #skia:7244
Ben Wagner407a3b72017-09-07 22:14:07 -0400640 # skia:7018
Ben Wagner0ecc2b7e2017-11-09 22:10:44 -0500641 match.extend(['~^ClearOp$',
642 '~^ComposedImageFilterBounds_Gpu$',
643 '~^ImageEncode_Gpu$',
644 '~^ImageFilterFailAffectsTransparentBlack_Gpu$',
645 '~^ImageFilterZeroBlurSigma_Gpu$',
646 '~^ImageNewShader_GPU$',
647 '~^ImageReadPixels_Gpu$',
648 '~^ImageScalePixels_Gpu$',
649 '~^ReadWriteAlpha$',
650 '~^SpecialImage_DeferredGpu$',
651 '~^SpecialImage_Gpu$',
652 '~^SurfaceSemaphores$'])
Robert Phillips9ad12132018-04-23 14:32:38 -0400653 # skia:7837
654 match.append('~BlurMaskBiggerThanDest')
Eric Boren4c7754c2017-04-10 08:19:10 -0400655
Ben Wagner63457572017-12-21 10:49:58 -0500656 if 'Vulkan' in bot and api.vars.is_linux and 'IntelIris640' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400657 match.extend(['~VkHeapTests']) # skia:6245
658
Kevin Lubickec4e7352018-04-25 07:46:55 -0400659 if api.vars.is_linux and 'IntelIris640' in bot:
660 match.extend(['~GLPrograms']) # skia:7849
661
Ben Wagnerb8427032017-11-18 19:04:25 -0500662 if 'Vulkan' in bot and api.vars.is_linux and 'IntelHD405' in bot:
Ben Wagner32eb5ba2017-11-20 13:46:20 -0500663 # skia:7322
Ben Wagnerb8427032017-11-18 19:04:25 -0500664 blacklist(['vk', 'gm', '_', 'skbug_257'])
Chris Dalton414be9b2018-04-26 14:37:01 -0600665 blacklist(['vk', 'gm', '_', 'filltypespersp'])
Ben Wagnerb8427032017-11-18 19:04:25 -0500666 match.append('~^ClearOp$')
Greg Danielec34a712017-12-06 12:06:26 -0500667 match.append('~^CopySurface$')
668 match.append('~^ImageNewShader_GPU$')
Ben Wagnerb8427032017-11-18 19:04:25 -0500669 match.append('~^InitialTextureClear$')
Greg Danielec34a712017-12-06 12:06:26 -0500670 match.append('~^PinnedImageTest$')
Ben Wagnerb8427032017-11-18 19:04:25 -0500671 match.append('~^ReadPixels_Gpu$')
672 match.append('~^ReadPixels_Texture$')
Greg Danielec34a712017-12-06 12:06:26 -0500673 match.append('~^SRGBReadWritePixels$')
Ben Wagnerb8427032017-11-18 19:04:25 -0500674 match.append('~^VkUploadPixelsTests$')
675 match.append('~^WritePixelsNonTexture_Gpu$')
Brian Salomon3d86a192018-02-27 16:46:11 -0500676 match.append('~^WritePixelsNonTextureMSAA_Gpu$')
Ben Wagnerb8427032017-11-18 19:04:25 -0500677 match.append('~^WritePixels_Gpu$')
Brian Salomon3d86a192018-02-27 16:46:11 -0500678 match.append('~^WritePixelsMSAA_Gpu$')
Ben Wagnerb8427032017-11-18 19:04:25 -0500679 match.append('~^skbug6653$')
680
Ben Wagnerf1debdf2017-06-13 13:37:05 -0400681 if 'Vulkan' in bot and 'IntelIris540' in bot and 'Win' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400682 # skia:6398
683 blacklist(['vk', 'gm', '_', 'aarectmodes'])
684 blacklist(['vk', 'gm', '_', 'aaxfermodes'])
Greg Daniel0eef6742017-11-20 16:05:04 -0500685 blacklist(['vk', 'gm', '_', 'dont_clip_to_layer'])
Mike Klein78932122017-11-15 13:21:40 -0500686 blacklist(['vk', 'gm', '_', 'dftext'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400687 blacklist(['vk', 'gm', '_', 'drawregionmodes'])
688 blacklist(['vk', 'gm', '_', 'filterfastbounds'])
Mike Klein0030c5e2017-11-13 13:27:48 -0500689 blacklist(['vk', 'gm', '_', 'fontmgr_iter'])
Mike Klein0030c5e2017-11-13 13:27:48 -0500690 blacklist(['vk', 'gm', '_', 'fontmgr_match'])
691 blacklist(['vk', 'gm', '_', 'fontscaler'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400692 blacklist(['vk', 'gm', '_', 'fontscalerdistortable'])
693 blacklist(['vk', 'gm', '_', 'gammagradienttext'])
Mike Klein0030c5e2017-11-13 13:27:48 -0500694 blacklist(['vk', 'gm', '_', 'gammatext'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400695 blacklist(['vk', 'gm', '_', 'gradtext'])
696 blacklist(['vk', 'gm', '_', 'hairmodes'])
697 blacklist(['vk', 'gm', '_', 'imagefilters_xfermodes'])
698 blacklist(['vk', 'gm', '_', 'imagefiltersclipped'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400699 blacklist(['vk', 'gm', '_', 'imagefiltersscaled'])
700 blacklist(['vk', 'gm', '_', 'imagefiltersstroked'])
701 blacklist(['vk', 'gm', '_', 'imagefilterstransformed'])
702 blacklist(['vk', 'gm', '_', 'imageresizetiled'])
703 blacklist(['vk', 'gm', '_', 'lcdblendmodes'])
704 blacklist(['vk', 'gm', '_', 'lcdoverlap'])
Mike Klein0030c5e2017-11-13 13:27:48 -0500705 blacklist(['vk', 'gm', '_', 'lcdtext'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400706 blacklist(['vk', 'gm', '_', 'lcdtextsize'])
707 blacklist(['vk', 'gm', '_', 'matriximagefilter'])
Mike Klein78932122017-11-15 13:21:40 -0500708 blacklist(['vk', 'gm', '_', 'mixedtextblobs'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400709 blacklist(['vk', 'gm', '_', 'resizeimagefilter'])
710 blacklist(['vk', 'gm', '_', 'rotate_imagefilter'])
711 blacklist(['vk', 'gm', '_', 'savelayer_lcdtext'])
Greg Daniel0c269d02018-02-08 15:26:49 -0500712 blacklist(['vk', 'gm', '_', 'shadermaskfilter_image'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400713 blacklist(['vk', 'gm', '_', 'srcmode'])
714 blacklist(['vk', 'gm', '_', 'surfaceprops'])
715 blacklist(['vk', 'gm', '_', 'textblobgeometrychange'])
716 blacklist(['vk', 'gm', '_', 'textbloblooper'])
717 blacklist(['vk', 'gm', '_', 'textblobmixedsizes'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400718 blacklist(['vk', 'gm', '_', 'textblobrandomfont'])
719 blacklist(['vk', 'gm', '_', 'textfilter_color'])
720 blacklist(['vk', 'gm', '_', 'textfilter_image'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400721 blacklist(['vk', 'gm', '_', 'varied_text_clipped_lcd'])
722 blacklist(['vk', 'gm', '_', 'varied_text_ignorable_clip_lcd'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400723
Ben Wagner2040ed22017-11-22 11:22:22 -0500724 if (('RadeonR9M470X' in bot or 'RadeonHD7770' in bot) and 'ANGLE' in bot):
Robert Phillips435db422017-10-04 09:38:11 -0400725 # skia:7096
726 match.append('~PinnedImageTest')
727
Robert Phillipsa96a1012018-04-23 10:46:09 -0400728 if 'ANGLE' in bot:
729 # skia:7835
730 match.append('~BlurMaskBiggerThanDest')
731
Eric Boren4c7754c2017-04-10 08:19:10 -0400732 if 'IntelIris540' in bot and 'ANGLE' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400733 for config in ['angle_d3d9_es2', 'angle_d3d11_es2', 'angle_gl_es2']:
Brian Salomon6e554e32017-06-23 12:08:10 -0400734 # skia:6103
Eric Boren4c7754c2017-04-10 08:19:10 -0400735 blacklist([config, 'gm', '_', 'multipicturedraw_invpathclip_simple'])
736 blacklist([config, 'gm', '_', 'multipicturedraw_noclip_simple'])
737 blacklist([config, 'gm', '_', 'multipicturedraw_pathclip_simple'])
738 blacklist([config, 'gm', '_', 'multipicturedraw_rectclip_simple'])
739 blacklist([config, 'gm', '_', 'multipicturedraw_rrectclip_simple'])
Brian Salomon6e554e32017-06-23 12:08:10 -0400740 # skia:6141
741 blacklist([config, 'gm', '_', 'discard'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400742
Ben Wagnerc6b2e6b2017-10-07 18:57:25 -0400743 if ('IntelIris6100' in bot or 'IntelHD4400' in bot) and 'ANGLE' in bot:
744 # skia:6857
745 blacklist(['angle_d3d9_es2', 'gm', '_', 'lighting'])
746
Kevin Lubickc14e5a72017-08-15 13:22:19 -0400747 if 'PowerVRGX6250' in bot:
748 match.append('~gradients_view_perspective_nodither') #skia:6972
749
Mike Klein3a3fbf12018-01-30 08:08:49 -0500750 if '-arm-' in bot and 'ASAN' in bot:
751 # TODO: can we run with env allocator_may_return_null=1 instead?
752 match.append('~BadImage')
753
Ben Wagner1d8726f2018-02-02 14:47:31 -0500754 if 'Mac' in bot and 'IntelHD6000' in bot:
Ben Wagnerdf430052018-02-08 16:57:04 -0500755 # skia:7574
Ben Wagner1d8726f2018-02-02 14:47:31 -0500756 match.append('~^ProcessorCloneTest$')
757 match.append('~^GrMeshTest$')
758
Ben Wagnerdf430052018-02-08 16:57:04 -0500759 if 'Mac' in bot and 'IntelHD615' in bot:
760 # skia:7603
761 match.append('~^GrMeshTest$')
762
Eric Borenfb20ac42018-04-24 14:48:19 -0400763 if api.vars.internal_hardware_label == '1':
Ben Wagner84660e92018-04-09 16:19:54 -0400764 match.append('~skbug6653') # skia:6653
765
Eric Boren4c7754c2017-04-10 08:19:10 -0400766 if blacklisted:
767 args.append('--blacklist')
768 args.extend(blacklisted)
769
770 if match:
771 args.append('--match')
772 args.extend(match)
773
774 # These bots run out of memory running RAW codec tests. Do not run them in
775 # parallel
Ben Wagner2040ed22017-11-22 11:22:22 -0500776 if 'NexusPlayer' in bot or 'Nexus5' in bot or 'Nexus9' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400777 args.append('--noRAW_threading')
778
Yuqian Li84be3ad2017-10-17 10:11:21 -0400779 if 'FSAA' in bot:
780 args.extend(['--analyticAA', 'false', '--deltaAA', 'false'])
781 if 'FAAA' in bot:
782 args.extend(['--deltaAA', 'false', '--forceAnalyticAA'])
783 if 'FDAA' in bot:
784 args.extend(['--deltaAA', '--forceDeltaAA'])
785
Mike Kleinc207da82017-11-10 14:24:34 -0500786 if 'NativeFonts' not in bot:
787 args.append('--nonativeFonts')
788
Mike Klein0c5fdcb2017-11-13 12:40:46 -0500789 if 'GDI' in bot:
790 args.append('--gdi')
791
Stephan Altmueller74dac542017-09-11 15:32:21 -0400792 # Let's make all bots produce verbose output by default.
793 args.append('--verbose')
Mike Kleinc9089062017-06-26 09:09:32 -0400794
Eric Boren4c7754c2017-04-10 08:19:10 -0400795 return args
796
797
798def key_params(api):
799 """Build a unique key from the builder name (as a list).
800
801 E.g. arch x86 gpu GeForce320M mode MacMini4.1 os Mac10.6
802 """
803 # Don't bother to include role, which is always Test.
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400804 blacklist = ['role', 'test_filter']
Eric Boren4c7754c2017-04-10 08:19:10 -0400805
806 flat = []
807 for k in sorted(api.vars.builder_cfg.keys()):
808 if k not in blacklist:
809 flat.append(k)
810 flat.append(api.vars.builder_cfg[k])
811 return flat
812
813
814def test_steps(api):
815 """Run the DM test."""
816 use_hash_file = False
817 if api.vars.upload_dm_results:
Eric Boren4c7754c2017-04-10 08:19:10 -0400818 host_dm_dir = str(api.vars.dm_dir)
Eric Boren9599b0f2018-04-17 15:55:57 -0400819 api.flavor.create_clean_host_dir(api.vars.test_dir)
Eric Boren4c7754c2017-04-10 08:19:10 -0400820 device_dm_dir = str(api.flavor.device_dirs.dm_dir)
821 if host_dm_dir != device_dm_dir:
822 api.flavor.create_clean_device_dir(device_dm_dir)
823
824 # Obtain the list of already-generated hashes.
825 hash_filename = 'uninteresting_hashes.txt'
826
Eric Boren4c7754c2017-04-10 08:19:10 -0400827 host_hashes_file = api.vars.tmp_dir.join(hash_filename)
828 hashes_file = api.flavor.device_path_join(
829 api.flavor.device_dirs.tmp_dir, hash_filename)
830 api.run(
831 api.python.inline,
832 'get uninteresting hashes',
833 program="""
834 import contextlib
835 import math
836 import socket
837 import sys
838 import time
839 import urllib2
840
Stephan Altmuellerc19ebc52017-05-30 16:39:17 -0400841 HASHES_URL = 'https://storage.googleapis.com/skia-infra-gm/hash_files/gold-prod-hashes.txt'
Eric Boren4c7754c2017-04-10 08:19:10 -0400842 RETRIES = 5
843 TIMEOUT = 60
844 WAIT_BASE = 15
845
846 socket.setdefaulttimeout(TIMEOUT)
847 for retry in range(RETRIES):
848 try:
849 with contextlib.closing(
850 urllib2.urlopen(HASHES_URL, timeout=TIMEOUT)) as w:
851 hashes = w.read()
852 with open(sys.argv[1], 'w') as f:
853 f.write(hashes)
854 break
855 except Exception as e:
856 print 'Failed to get uninteresting hashes from %s:' % HASHES_URL
857 print e
858 if retry == RETRIES:
859 raise
860 waittime = WAIT_BASE * math.pow(2, retry)
861 print 'Retry in %d seconds.' % waittime
862 time.sleep(waittime)
863 """,
864 args=[host_hashes_file],
865 abort_on_failure=False,
866 fail_build_on_failure=False,
867 infra_step=True)
868
869 if api.path.exists(host_hashes_file):
870 api.flavor.copy_file_to_device(host_hashes_file, hashes_file)
871 use_hash_file = True
872
873 # Run DM.
874 properties = [
Eric Boren9a9e3872017-11-29 12:33:22 -0500875 'gitHash', api.vars.got_revision,
876 'builder', api.vars.builder_name,
877 'buildbucket_build_id', api.properties.get('buildbucket_build_id', ''),
Eric Boren4c7754c2017-04-10 08:19:10 -0400878 ]
879 if api.vars.is_trybot:
880 properties.extend([
881 'issue', api.vars.issue,
882 'patchset', api.vars.patchset,
883 'patch_storage', api.vars.patch_storage,
884 ])
Eric Borenf9aa9e52017-04-10 09:56:10 -0400885 properties.extend(['swarming_bot_id', api.vars.swarming_bot_id])
886 properties.extend(['swarming_task_id', api.vars.swarming_task_id])
Eric Boren4c7754c2017-04-10 08:19:10 -0400887
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400888 if 'Chromecast' in api.vars.builder_cfg.get('os', ''):
889 # Due to limited disk space, we only deal with skps and one image.
890 args = [
891 'dm',
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400892 '--resourcePath', api.flavor.device_dirs.resource_dir,
893 '--skps', api.flavor.device_dirs.skp_dir,
894 '--images', api.flavor.device_path_join(
Kevin Lubickc2f3e8d2018-01-24 15:48:26 -0500895 api.flavor.device_dirs.resource_dir, 'images', 'color_wheel.jpg'),
Kevin Lubick608c35a2018-01-16 16:15:57 -0500896 '--nameByHash',
897 '--properties'
898 ] + properties
Kevin Lubick95379eb2018-01-17 11:20:19 -0500899 else:
900 args = [
901 'dm',
902 '--resourcePath', api.flavor.device_dirs.resource_dir,
903 '--skps', api.flavor.device_dirs.skp_dir,
904 '--images', api.flavor.device_path_join(
905 api.flavor.device_dirs.images_dir, 'dm'),
906 '--colorImages', api.flavor.device_path_join(
907 api.flavor.device_dirs.images_dir, 'colorspace'),
908 '--nameByHash',
909 '--properties'
910 ] + properties
911
912 args.extend(['--svgs', api.flavor.device_dirs.svg_dir])
913
914 args.append('--key')
915 args.extend(key_params(api))
Kevin Lubick608c35a2018-01-16 16:15:57 -0500916
917 if use_hash_file:
918 args.extend(['--uninterestingHashesFile', hashes_file])
919 if api.vars.upload_dm_results:
920 args.extend(['--writePath', api.flavor.device_dirs.dm_dir])
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400921
Eric Boren89cd3572017-06-28 13:50:22 -0400922 args.extend(dm_flags(api, api.vars.builder_name))
Eric Boren4c7754c2017-04-10 08:19:10 -0400923
Eric Boren4c7754c2017-04-10 08:19:10 -0400924 # See skia:2789.
Ben Wagner37491d22017-12-13 13:00:47 -0500925 if 'AbandonGpuContext' in api.vars.extra_tokens:
Eric Boren4c7754c2017-04-10 08:19:10 -0400926 args.append('--abandonGpuContext')
Ben Wagner37491d22017-12-13 13:00:47 -0500927 if 'PreAbandonGpuContext' in api.vars.extra_tokens:
Eric Boren4c7754c2017-04-10 08:19:10 -0400928 args.append('--preAbandonGpuContext')
Ben Wagner37491d22017-12-13 13:00:47 -0500929 if 'ReleaseAndAbandonGpuContext' in api.vars.extra_tokens:
Eric Boren6ec17e32017-04-26 14:25:29 -0400930 args.append('--releaseAndAbandonGpuContext')
Eric Boren4c7754c2017-04-10 08:19:10 -0400931
Ben Wagner5655ba42017-10-02 10:48:32 -0400932 api.run(api.flavor.step, 'dm', cmd=args, abort_on_failure=False)
Eric Boren4c7754c2017-04-10 08:19:10 -0400933
934 if api.vars.upload_dm_results:
935 # Copy images and JSON to host machine if needed.
936 api.flavor.copy_directory_contents_to_host(
937 api.flavor.device_dirs.dm_dir, api.vars.dm_dir)
938
939
borenet1ed2ae42016-07-26 11:52:17 -0700940def RunSteps(api):
Eric Borenb7023162018-05-04 13:46:15 -0400941 api.vars.setup()
942 api.file.ensure_directory('makedirs tmp_dir', api.vars.tmp_dir)
943 api.flavor.setup()
944
Robert Iannucci297a7ef2017-05-12 19:09:38 -0700945 env = {}
Eric Boren4c7754c2017-04-10 08:19:10 -0400946 if 'iOS' in api.vars.builder_name:
947 env['IOS_BUNDLE_ID'] = 'com.google.dm'
Stephan Altmueller63e843d2017-04-25 11:38:38 -0400948 env['IOS_MOUNT_POINT'] = api.vars.slave_dir.join('mnt_iosdevice')
Robert Iannucci297a7ef2017-05-12 19:09:38 -0700949 with api.context(env=env):
Eric Boren4c7754c2017-04-10 08:19:10 -0400950 try:
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400951 if 'Chromecast' in api.vars.builder_name:
952 api.flavor.install(resources=True, skps=True)
953 else:
954 api.flavor.install_everything()
Eric Boren4c7754c2017-04-10 08:19:10 -0400955 test_steps(api)
956 finally:
957 api.flavor.cleanup_steps()
958 api.run.check_failure()
959
960
Eric Borenf9aa9e52017-04-10 09:56:10 -0400961TEST_BUILDERS = [
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400962 'Test-Android-Clang-AndroidOne-GPU-Mali400MP2-arm-Release-All-Android',
963 'Test-Android-Clang-GalaxyS6-GPU-MaliT760-arm64-Debug-All-Android',
964 'Test-Android-Clang-GalaxyS7_G930A-GPU-Adreno530-arm64-Debug-All-Android',
965 'Test-Android-Clang-NVIDIA_Shield-GPU-TegraX1-arm64-Debug-All-Android',
966 'Test-Android-Clang-NVIDIA_Shield-GPU-TegraX1-arm64-Debug-All-Android_CCPR',
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400967 'Test-Android-Clang-Nexus5-GPU-Adreno330-arm-Release-All-Android',
Kevin Lubicke0b7f5c2018-05-07 15:10:17 -0400968 'Test-Android-Clang-Nexus5x-CPU-Snapdragon808-arm-Release-All-Android_ASAN',
Mike Klein3a3fbf12018-01-30 08:08:49 -0500969 'Test-Android-Clang-Nexus5x-GPU-Adreno418-arm-Debug-All-Android_ASAN',
970 'Test-Android-Clang-Nexus5x-GPU-Adreno418-arm64-Debug-All-Android_ASAN',
Kevin Lubick4f0f9332018-01-12 14:31:48 -0500971 ('Test-Android-Clang-Nexus5x-GPU-Adreno418-arm64-Debug-All'
Ben Wagnerdba0bc82017-12-11 13:27:27 -0500972 '-Android_NoGPUThreads'),
Ben Wagner5cf6d322017-12-07 10:23:07 -0500973 'Test-Android-Clang-Nexus7-CPU-Tegra3-arm-Release-All-Android',
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400974 'Test-Android-Clang-Nexus7-GPU-Tegra3-arm-Debug-All-Android',
975 'Test-Android-Clang-NexusPlayer-CPU-Moorefield-x86-Release-All-Android',
976 'Test-Android-Clang-NexusPlayer-GPU-PowerVR-x86-Release-All-Android_Vulkan',
Ben Wagner52423f32017-12-07 10:17:13 -0500977 'Test-Android-Clang-Pixel-GPU-Adreno530-arm64-Debug-All-Android_CCPR',
978 'Test-Android-Clang-Pixel-GPU-Adreno530-arm64-Debug-All-Android_Vulkan',
Robert Phillips5575ffe2018-05-07 11:18:25 -0400979 ('Test-Android-Clang-Pixel2XL-GPU-Adreno540-arm64-Debug-All'
980 '-Android_DDL1_Vulkan'),
981 ('Test-Android-Clang-Pixel2XL-GPU-Adreno540-arm64-Debug-All'
982 '-Android_DDL3_Vulkan'),
Kevin Lubickd7af1db2017-11-02 12:03:22 -0400983 'Test-ChromeOS-Clang-ASUSChromebookFlipC100-GPU-MaliT764-arm-Debug-All',
984 ('Test-ChromeOS-Clang-AcerChromebookR13Convertible-GPU-PowerVRGX6250-'
985 'arm-Debug-All'),
Kevin Lubick608c35a2018-01-16 16:15:57 -0500986 'Test-Chromecast-GCC-Chorizo-CPU-Cortex_A7-arm-Release-All',
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400987 'Test-Chromecast-GCC-Chorizo-GPU-Cortex_A7-arm-Release-All',
988 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All-ASAN',
Kevin Lubick32f318b2017-10-17 13:40:52 -0400989 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-shard_00_10-Coverage',
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400990 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All-MSAN',
991 ('Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All'
Ben Wagner9fb285e2017-10-02 16:53:07 -0400992 '-SK_USE_DISCARDABLE_SCALEDIMAGECACHE'),
Kevin Lubicka585f732018-05-07 12:08:58 -0400993 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All-T8888',
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400994 ('Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Release-All'
Ben Wagner6e0a6b32017-09-26 14:11:15 -0400995 '-SK_FORCE_RASTER_PIPELINE_BLITTER'),
Ben Wagner122b3852018-04-20 13:43:23 -0400996 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Release-All-SwiftShader',
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400997 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Release-All-TSAN',
Kevin Lubick88611a12018-04-26 09:46:45 -0400998 'Test-Debian9-Clang-NUC5PPYH-GPU-IntelHD405-x86_64-Debug-All',
999 'Test-Debian9-Clang-NUC5PPYH-GPU-IntelHD405-x86_64-Release-All-Vulkan',
1000 'Test-Debian9-Clang-NUC7i5BNK-GPU-IntelIris640-x86_64-Debug-All-Vulkan',
1001 'Test-Debian9-Clang-NUCDE3815TYKHE-GPU-IntelBayTrail-x86_64-Debug-All',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001002 'Test-Debian9-GCC-GCE-CPU-AVX2-x86-Debug-All',
1003 'Test-Debian9-GCC-GCE-CPU-AVX2-x86_64-Debug-All',
Ben Wagnerdf430052018-02-08 16:57:04 -05001004 'Test-Mac-Clang-MacBook10.1-GPU-IntelHD615-x86_64-Debug-All',
Ben Wagner1d8726f2018-02-02 14:47:31 -05001005 'Test-Mac-Clang-MacBookAir7.2-GPU-IntelHD6000-x86_64-Debug-All',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001006 'Test-Mac-Clang-MacMini7.1-CPU-AVX-x86_64-Release-All',
1007 'Test-Mac-Clang-MacMini7.1-GPU-IntelIris5100-x86_64-Debug-All-CommandBuffer',
Jim Van Verth1b6c75c2018-02-16 09:49:08 -05001008 'Test-Mac-Clang-MacBook10.1-GPU-IntelHD615-x86_64-Release-All-NativeFonts',
Ben Wagner9f553932017-11-27 22:18:12 -05001009 'Test-Ubuntu17-Clang-Golo-GPU-QuadroP400-x86_64-Debug-All-Vulkan_Coverage',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001010 ('Test-Ubuntu17-GCC-Golo-GPU-QuadroP400-x86_64-Release-All'
Ben Wagner6e0a6b32017-09-26 14:11:15 -04001011 '-Valgrind_AbandonGpuContext_SK_CPU_LIMIT_SSE41'),
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001012 ('Test-Ubuntu17-GCC-Golo-GPU-QuadroP400-x86_64-Release-All'
Ben Wagner6e0a6b32017-09-26 14:11:15 -04001013 '-Valgrind_PreAbandonGpuContext_SK_CPU_LIMIT_SSE41'),
Robert Phillips36150be2018-03-15 13:40:07 -04001014 ('Test-Ubuntu17-Clang-Golo-GPU-QuadroP400-x86_64-Debug-All-DDL1'),
1015 ('Test-Ubuntu17-Clang-Golo-GPU-QuadroP400-x86_64-Debug-All-DDL3'),
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001016 ('Test-Ubuntu17-GCC-Golo-GPU-QuadroP400-x86_64-Release-All'
Ben Wagner6e0a6b32017-09-26 14:11:15 -04001017 '-Valgrind_SK_CPU_LIMIT_SSE41'),
Ben Wagnerb2fd61a2017-10-23 16:01:44 -04001018 'Test-Win10-Clang-AlphaR2-GPU-RadeonR9M470X-x86_64-Debug-All-ANGLE',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001019 'Test-Win10-Clang-AlphaR2-GPU-RadeonR9M470X-x86_64-Debug-All-Vulkan',
1020 ('Test-Win10-Clang-Golo-GPU-QuadroP400-x86_64-Release-All'
Ben Wagner6e0a6b32017-09-26 14:11:15 -04001021 '-ReleaseAndAbandonGpuContext'),
Ben Wagnerfd66b5f2017-11-15 15:16:27 -05001022 'Test-Win10-Clang-NUC5i7RYH-CPU-AVX2-x86_64-Debug-All-NativeFonts',
1023 'Test-Win10-Clang-NUC5i7RYH-CPU-AVX2-x86_64-Debug-All-NativeFonts_GDI',
Ben Wagnerb2fd61a2017-10-23 16:01:44 -04001024 'Test-Win10-Clang-NUC6i5SYK-GPU-IntelIris540-x86_64-Debug-All-ANGLE',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001025 'Test-Win10-Clang-NUC6i5SYK-GPU-IntelIris540-x86_64-Debug-All-Vulkan',
Ben Wagnerb2fd61a2017-10-23 16:01:44 -04001026 'Test-Win10-Clang-NUCD34010WYKH-GPU-IntelHD4400-x86_64-Release-All-ANGLE',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001027 'Test-Win10-Clang-ShuttleA-GPU-GTX660-x86_64-Debug-All-Vulkan',
Ben Wagnerb2fd61a2017-10-23 16:01:44 -04001028 'Test-Win10-Clang-ShuttleC-GPU-GTX960-x86_64-Debug-All-ANGLE',
Brian Osmanf4a95bc2017-11-06 14:08:54 -05001029 'Test-Win10-Clang-ZBOX-GPU-GTX1070-x86_64-Debug-All',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001030 'Test-Win10-Clang-ZBOX-GPU-GTX1070-x86_64-Debug-All-Vulkan',
Ben Wagner78935c22017-11-15 13:21:03 -05001031 'Test-Win2016-Clang-GCE-CPU-AVX2-x86_64-Debug-All-FAAA',
1032 'Test-Win2016-Clang-GCE-CPU-AVX2-x86_64-Debug-All-FDAA',
1033 'Test-Win2016-Clang-GCE-CPU-AVX2-x86_64-Debug-All-FSAA',
Ben Wagner2a5931e2018-03-20 17:13:32 -04001034 'Test-Win8-Clang-Golo-CPU-AVX-x86-Debug-All',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001035 'Test-iOS-Clang-iPadPro-GPU-GT7800-arm64-Release-All',
Eric Borenf9aa9e52017-04-10 09:56:10 -04001036]
borenet1ed2ae42016-07-26 11:52:17 -07001037
1038
1039def GenTests(api):
Eric Borenf9aa9e52017-04-10 09:56:10 -04001040 for builder in TEST_BUILDERS:
1041 test = (
1042 api.test(builder) +
1043 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001044 buildbucket_build_id='123454321',
Eric Borenf9aa9e52017-04-10 09:56:10 -04001045 revision='abc123',
1046 path_config='kitchen',
1047 swarm_out_dir='[SWARM_OUT_DIR]') +
1048 api.path.exists(
1049 api.path['start_dir'].join('skia'),
1050 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1051 'skimage', 'VERSION'),
1052 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1053 'skp', 'VERSION'),
1054 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1055 'svg', 'VERSION'),
1056 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
Ben Wagnerf835c222017-04-30 11:14:51 -04001057 ) +
1058 api.step_data('get swarming bot id',
1059 stdout=api.raw_io.output('skia-bot-123')) +
1060 api.step_data('get swarming task id',
1061 stdout=api.raw_io.output('123456'))
Eric Borenf9aa9e52017-04-10 09:56:10 -04001062 )
Eric Borenf9aa9e52017-04-10 09:56:10 -04001063 if 'Win' in builder:
1064 test += api.platform('win', 64)
Eric Boren4c7754c2017-04-10 08:19:10 -04001065
Kevin Lubick2dafbd72017-08-31 10:39:05 -04001066 if 'Chromecast' in builder:
1067 test += api.step_data(
1068 'read chromecast ip',
1069 stdout=api.raw_io.output('192.168.1.2:5555'))
1070
Eric Borenf9aa9e52017-04-10 09:56:10 -04001071 if 'ChromeOS' in builder:
1072 test += api.step_data(
1073 'read chromeos ip',
1074 stdout=api.raw_io.output('{"user_ip":"foo@127.0.0.1"}'))
Eric Boren4c7754c2017-04-10 08:19:10 -04001075
Eric Borenf9aa9e52017-04-10 09:56:10 -04001076 yield test
Eric Boren4c7754c2017-04-10 08:19:10 -04001077
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001078 builder = 'Test-Win2k8-MSVC-GCE-CPU-AVX2-x86_64-Release-All'
Kevin Lubickfe079d42017-04-12 08:31:48 -04001079 yield (
1080 api.test('trybot') +
1081 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001082 buildbucket_build_id='123454321',
Kevin Lubickfe079d42017-04-12 08:31:48 -04001083 revision='abc123',
1084 path_config='kitchen',
1085 swarm_out_dir='[SWARM_OUT_DIR]') +
1086 api.properties(patch_storage='gerrit') +
1087 api.properties.tryserver(
1088 buildername=builder,
1089 gerrit_project='skia',
1090 gerrit_url='https://skia-review.googlesource.com/',
1091 )+
1092 api.path.exists(
1093 api.path['start_dir'].join('skia'),
1094 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1095 'skimage', 'VERSION'),
1096 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1097 'skp', 'VERSION'),
1098 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1099 'svg', 'VERSION'),
1100 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
1101 )
1102 )
1103
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001104 builder = 'Test-Debian9-GCC-GCE-CPU-AVX2-x86_64-Debug-All'
borenet1ed2ae42016-07-26 11:52:17 -07001105 yield (
Eric Boren4c7754c2017-04-10 08:19:10 -04001106 api.test('failed_dm') +
1107 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001108 buildbucket_build_id='123454321',
borenet1ed2ae42016-07-26 11:52:17 -07001109 revision='abc123',
1110 path_config='kitchen',
1111 swarm_out_dir='[SWARM_OUT_DIR]') +
1112 api.path.exists(
Ravi Mistry9bcca6a2016-11-21 16:06:19 -05001113 api.path['start_dir'].join('skia'),
1114 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
Eric Boren4c7754c2017-04-10 08:19:10 -04001115 'skimage', 'VERSION'),
Ravi Mistry9bcca6a2016-11-21 16:06:19 -05001116 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
Eric Boren4c7754c2017-04-10 08:19:10 -04001117 'skp', 'VERSION'),
Ravi Mistry9bcca6a2016-11-21 16:06:19 -05001118 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
Eric Boren4c7754c2017-04-10 08:19:10 -04001119 'svg', 'VERSION'),
Ravi Mistry9bcca6a2016-11-21 16:06:19 -05001120 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
Eric Boren4c7754c2017-04-10 08:19:10 -04001121 ) +
1122 api.step_data('symbolized dm', retcode=1)
1123 )
1124
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001125 builder = 'Test-Android-Clang-Nexus7-GPU-Tegra3-arm-Release-All-Android'
Eric Boren4c7754c2017-04-10 08:19:10 -04001126 yield (
1127 api.test('failed_get_hashes') +
1128 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001129 buildbucket_build_id='123454321',
Eric Boren4c7754c2017-04-10 08:19:10 -04001130 revision='abc123',
1131 path_config='kitchen',
1132 swarm_out_dir='[SWARM_OUT_DIR]') +
1133 api.path.exists(
1134 api.path['start_dir'].join('skia'),
1135 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1136 'skimage', 'VERSION'),
1137 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1138 'skp', 'VERSION'),
1139 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1140 'svg', 'VERSION'),
1141 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
1142 ) +
1143 api.step_data('get uninteresting hashes', retcode=1)
1144 )
1145
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001146 builder = ('Test-Android-Clang-NexusPlayer-CPU-Moorefield-x86-'
1147 'Debug-All-Android')
Eric Boren4c7754c2017-04-10 08:19:10 -04001148 yield (
1149 api.test('failed_push') +
1150 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001151 buildbucket_build_id='123454321',
Eric Boren4c7754c2017-04-10 08:19:10 -04001152 revision='abc123',
1153 path_config='kitchen',
1154 swarm_out_dir='[SWARM_OUT_DIR]') +
1155 api.path.exists(
1156 api.path['start_dir'].join('skia'),
1157 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1158 'skimage', 'VERSION'),
1159 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1160 'skp', 'VERSION'),
1161 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1162 'svg', 'VERSION'),
1163 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
1164 ) +
Kevin Lubickc6f74ca2018-03-01 09:21:38 -05001165 api.step_data('get swarming bot id',
1166 stdout=api.raw_io.output('build123-m2--device5')) +
Eric Boren4c7754c2017-04-10 08:19:10 -04001167 api.step_data('push [START_DIR]/skia/resources/* '+
1168 '/sdcard/revenge_of_the_skiabot/resources', retcode=1)
1169 )
1170
Ben Wagner1a2b3f02017-10-26 15:13:38 -04001171 builder = 'Test-Android-Clang-Nexus7-GPU-Tegra3-arm-Debug-All-Android'
Eric Boren4c7754c2017-04-10 08:19:10 -04001172 yield (
1173 api.test('failed_pull') +
1174 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001175 buildbucket_build_id='123454321',
Eric Boren4c7754c2017-04-10 08:19:10 -04001176 revision='abc123',
1177 path_config='kitchen',
1178 swarm_out_dir='[SWARM_OUT_DIR]') +
1179 api.path.exists(
1180 api.path['start_dir'].join('skia'),
1181 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1182 'skimage', 'VERSION'),
1183 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1184 'skp', 'VERSION'),
1185 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1186 'svg', 'VERSION'),
1187 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
1188 ) +
1189 api.step_data('dm', retcode=1) +
1190 api.step_data('pull /sdcard/revenge_of_the_skiabot/dm_out '+
Eric Boren9599b0f2018-04-17 15:55:57 -04001191 '[START_DIR]/[SWARM_OUT_DIR]/dm', retcode=1)
borenetbfa5b452016-10-19 10:13:32 -07001192 )
Eric Boren053d7a42017-09-15 08:35:31 -04001193
1194 yield (
Kevin Lubick451b7432017-09-15 14:44:12 -04001195 api.test('internal_bot_1') +
Eric Boren053d7a42017-09-15 08:35:31 -04001196 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001197 buildbucket_build_id='123454321',
Eric Boren053d7a42017-09-15 08:35:31 -04001198 revision='abc123',
1199 path_config='kitchen',
1200 swarm_out_dir='[SWARM_OUT_DIR]',
Eric Borenfb20ac42018-04-24 14:48:19 -04001201 internal_hardware_label='1') +
Eric Boren053d7a42017-09-15 08:35:31 -04001202 api.path.exists(
1203 api.path['start_dir'].join('skia'),
1204 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1205 'skimage', 'VERSION'),
1206 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1207 'skp', 'VERSION'),
1208 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1209 'svg', 'VERSION'),
1210 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
1211 )
1212 )
Kevin Lubickbd27d1d2017-10-13 08:01:49 -04001213
1214 yield (
1215 api.test('internal_bot_2') +
1216 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001217 buildbucket_build_id='123454321',
Kevin Lubickbd27d1d2017-10-13 08:01:49 -04001218 revision='abc123',
1219 path_config='kitchen',
1220 swarm_out_dir='[SWARM_OUT_DIR]',
Eric Borenfb20ac42018-04-24 14:48:19 -04001221 internal_hardware_label='2') +
Kevin Lubickbd27d1d2017-10-13 08:01:49 -04001222 api.path.exists(
1223 api.path['start_dir'].join('skia'),
1224 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1225 'skimage', 'VERSION'),
1226 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1227 'skp', 'VERSION'),
1228 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1229 'svg', 'VERSION'),
1230 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
Kevin Lubickd1bbd5f2017-11-21 16:47:16 -05001231 )
Kevin Lubickbd27d1d2017-10-13 08:01:49 -04001232 )