blob: 28ec6343d35b90ed9ef29bd0c173fd9424a0dda1 [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',
Eric Boren4c7754c2017-04-10 08:19:10 -040014 'recipe_engine/json',
borenet1ed2ae42016-07-26 11:52:17 -070015 'recipe_engine/path',
16 'recipe_engine/platform',
17 'recipe_engine/properties',
Eric Boren4c7754c2017-04-10 08:19:10 -040018 'recipe_engine/python',
borenet1ed2ae42016-07-26 11:52:17 -070019 'recipe_engine/raw_io',
Eric Boren4c7754c2017-04-10 08:19:10 -040020 'recipe_engine/step',
Eric Boren4c7754c2017-04-10 08:19:10 -040021 'run',
22 'vars',
borenet1ed2ae42016-07-26 11:52:17 -070023]
24
25
Eric Boren72f66682018-05-18 07:36:55 -040026def upload_dm_results(buildername):
27 skip_upload_bots = [
28 'ASAN',
29 'Coverage',
30 'MSAN',
31 'TSAN',
32 'UBSAN',
33 'Valgrind',
34 ]
35 for s in skip_upload_bots:
36 if s in buildername:
37 return False
38 return True
39
40
Eric Boren89cd3572017-06-28 13:50:22 -040041def dm_flags(api, bot):
Eric Boren4c7754c2017-04-10 08:19:10 -040042 args = []
Brian Osmanf9810662017-08-30 10:02:10 -040043 configs = []
44 blacklisted = []
45
46 def blacklist(quad):
Eric Borencd0a98c2018-06-20 13:23:16 -040047 config, src, options, name = (
48 quad.split(' ') if isinstance(quad, str) else quad)
Brian Osmanf9810662017-08-30 10:02:10 -040049 if (config == '_' or
50 config in configs or
51 (config[0] == '~' and config[1:] in configs)):
52 blacklisted.extend([config, src, options, name])
Eric Boren4c7754c2017-04-10 08:19:10 -040053
Mike Klein97d6a7a2017-07-24 10:37:19 -040054 # We've been spending lots of time writing out and especially uploading
55 # .pdfs, but not doing anything further with them. skia:6821
56 args.extend(['--dont_write', 'pdf'])
57
Eric Boren4c7754c2017-04-10 08:19:10 -040058 # This enables non-deterministic random seeding of the GPU FP optimization
Brian Osman7a34dca2017-04-13 13:40:29 -040059 # test.
Ben Wagner6da8f792017-08-10 12:22:56 -040060 # Not Android due to:
Ben Wagner11ab43c2017-08-09 18:05:59 -040061 # - https://skia.googlesource.com/skia/+/
62 # 5910ed347a638ded8cd4c06dbfda086695df1112/BUILD.gn#160
63 # - https://skia.googlesource.com/skia/+/
64 # ce06e261e68848ae21cac1052abc16bc07b961bf/tests/ProcessorTest.cpp#307
Ben Wagner6da8f792017-08-10 12:22:56 -040065 # Not MSAN due to:
66 # - https://skia.googlesource.com/skia/+/
67 # 0ac06e47269a40c177747310a613d213c95d1d6d/infra/bots/recipe_modules/
68 # flavor/gn_flavor.py#80
69 if 'Android' not in bot and 'MSAN' not in bot:
Ben Wagner11ab43c2017-08-09 18:05:59 -040070 args.append('--randomProcessorTest')
Eric Boren4c7754c2017-04-10 08:19:10 -040071
72 # 32-bit desktop bots tend to run out of memory, because they have relatively
73 # far more cores than RAM (e.g. 32 cores, 3G RAM). Hold them back a bit.
74 if '-x86-' in bot and not 'NexusPlayer' in bot:
Mike Kleindf669812017-06-23 13:30:17 -040075 args.extend(['--threads', '4'])
Eric Boren4c7754c2017-04-10 08:19:10 -040076
Ben Wagner5cf6d322017-12-07 10:23:07 -050077 # Nexus7 runs out of memory due to having 4 cores and only 1G RAM.
78 if 'CPU' in bot and 'Nexus7' in bot:
Ben Wagner1cfb6bc2017-12-07 12:19:30 -050079 args.extend(['--threads', '2'])
Ben Wagner5cf6d322017-12-07 10:23:07 -050080
Kevin Lubick2dafbd72017-08-31 10:39:05 -040081 if 'Chromecast' in bot:
82 args.extend(['--threads', '0'])
83
Eric Boren4c7754c2017-04-10 08:19:10 -040084 # Avoid issues with dynamically exceeding resource cache limits.
85 if 'Test' in bot and 'DISCARDABLE' in bot:
Mike Kleindf669812017-06-23 13:30:17 -040086 args.extend(['--threads', '0'])
87
88 # See if staying on the main thread helps skia:6748.
89 if 'Test-iOS' in bot:
90 args.extend(['--threads', '0'])
Eric Boren4c7754c2017-04-10 08:19:10 -040091
Derek Sollenbergeredfe3df2017-07-19 15:25:24 -040092 # Android's kernel will occasionally attempt to kill our process, using
93 # SIGINT, in an effort to free up resources. If requested, that signal
94 # is ignored and dm will keep attempting to proceed until we actually
95 # exhaust the available resources.
96 if ('NexusPlayer' in bot or
Kevin Lubick608c35a2018-01-16 16:15:57 -050097 'PixelC' in bot or
98 'Chromecast' in bot):
Derek Sollenbergeredfe3df2017-07-19 15:25:24 -040099 args.append('--ignoreSigInt')
100
Ben Wagner122b3852018-04-20 13:43:23 -0400101 if 'SwiftShader' in api.vars.extra_tokens:
102 configs.extend(['gles', 'glesdft'])
103 args.append('--disableDriverCorrectnessWorkarounds')
104
105 elif api.vars.builder_cfg.get('cpu_or_gpu') == 'CPU':
Ben Wagner32fa5102017-08-10 21:25:55 -0400106 args.append('--nogpu')
107
108 # These are the canonical configs that we would ideally run on all bots. We
109 # may opt out or substitute some below for specific bots
Mike Kleince4cf722018-05-10 11:29:15 -0400110 configs.extend(['8888', 'pdf'])
Ben Wagner32fa5102017-08-10 21:25:55 -0400111
112 # Runs out of memory on Android bots. Everyone else seems fine.
113 if 'Android' in bot:
114 configs.remove('pdf')
115
Ben Wagner4c9b7002018-05-15 11:10:17 -0400116 if '-GCE-' in bot and 'x86_64' in bot:
Mike Klein515bda62018-01-09 11:21:58 -0500117 configs.extend(['g8'])
Ben Wagner32fa5102017-08-10 21:25:55 -0400118 configs.extend(['565'])
Ben Wagner32fa5102017-08-10 21:25:55 -0400119 configs.extend(['lite-8888']) # Experimental display list.
Mike Kleinb7ea3da2017-10-31 17:42:08 +0000120 configs.extend(['gbr-8888'])
Mike Klein0e4041f2018-06-19 16:00:40 -0400121 configs.extend(['f16'])
122 configs.extend(['srgb'])
Mike Kleince4cf722018-05-10 11:29:15 -0400123 configs.extend(['esrgb'])
Mike Klein0e4041f2018-06-19 16:00:40 -0400124 configs.extend(['narrow'])
125 configs.extend(['enarrow'])
Ben Wagner32fa5102017-08-10 21:25:55 -0400126
Kevin Lubicke0b7f5c2018-05-07 15:10:17 -0400127 if 'SAN' in bot:
128 configs.extend(['t8888'])
Yuqian Licb312482018-04-27 15:52:40 -0400129
Ben Wagner0ecc2b7e2017-11-09 22:10:44 -0500130 configs.extend(mode + '-8888' for mode in ['serialize', 'tiles_rt', 'pic'])
Ben Wagner32fa5102017-08-10 21:25:55 -0400131
Kevin Lubicke0b7f5c2018-05-07 15:10:17 -0400132 if 'T8888' in bot:
133 configs = ['t8888']
134
Ben Wagner32fa5102017-08-10 21:25:55 -0400135 # This bot only differs from vanilla CPU bots in 8888 config.
136 if 'SK_FORCE_RASTER_PIPELINE_BLITTER' in bot:
Mike Kleince4cf722018-05-10 11:29:15 -0400137 configs = ['8888']
Ben Wagner32fa5102017-08-10 21:25:55 -0400138
Ben Wagner077710b2017-10-26 13:12:39 -0400139 if 'FSAA' in bot or 'FAAA' in bot or 'FDAA' in bot:
140 # Scan converters shouldn't really be sensitive to different color
141 # configurations.
142 configs = ['8888', 'tiles_rt-8888']
143
Mike Klein9a01a212017-11-03 12:19:54 -0400144 if 'NativeFonts' in bot:
145 configs = ['8888']
146
Kevin Lubick608c35a2018-01-16 16:15:57 -0500147 # Just do the basic config on Chromecast to avoid OOM.
148 if 'Chromecast' in bot:
Kevin Lubick8baaef92018-01-17 10:02:17 -0500149 configs = ['8888']
Kevin Lubick608c35a2018-01-16 16:15:57 -0500150
Ben Wagner32fa5102017-08-10 21:25:55 -0400151 elif api.vars.builder_cfg.get('cpu_or_gpu') == 'GPU':
152 args.append('--nocpu')
153
154 # Add in either gles or gl configs to the canonical set based on OS
155 sample_count = '8'
156 gl_prefix = 'gl'
157 if 'Android' in bot or 'iOS' in bot:
158 sample_count = '4'
159 # We want to test the OpenGL config not the GLES config on the Shield
160 if 'NVIDIA_Shield' not in bot:
161 gl_prefix = 'gles'
162 elif 'Intel' in bot:
163 sample_count = ''
164 elif 'ChromeOS' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400165 gl_prefix = 'gles'
Eric Boren4c7754c2017-04-10 08:19:10 -0400166
Jim Van Verth1b6c75c2018-02-16 09:49:08 -0500167 if 'NativeFonts' in bot:
168 configs.append(gl_prefix)
169 else:
Brian Osman5e117772018-06-20 14:53:06 -0400170 configs.extend([gl_prefix,
171 gl_prefix + 'dft',
172 gl_prefix + 'srgb',
173 gl_prefix + 'esrgb'])
Jim Van Verth240516f2018-02-15 09:55:24 -0500174 if sample_count is not '':
175 configs.append(gl_prefix + 'msaa' + sample_count)
Eric Boren4c7754c2017-04-10 08:19:10 -0400176
Ben Wagner32fa5102017-08-10 21:25:55 -0400177 # The NP produces a long error stream when we run with MSAA. The Tegra3 just
178 # doesn't support it.
179 if ('NexusPlayer' in bot or
180 'Tegra3' in bot or
181 # We aren't interested in fixing msaa bugs on current iOS devices.
182 'iPad4' in bot or
183 'iPadPro' in bot or
184 'iPhone6' in bot or
185 'iPhone7' in bot or
186 # skia:5792
187 'IntelHD530' in bot or
188 'IntelIris540' in bot):
189 configs = [x for x in configs if 'msaa' not in x]
Eric Boren4c7754c2017-04-10 08:19:10 -0400190
Ben Wagner32fa5102017-08-10 21:25:55 -0400191 # The NP produces different images for dft on every run.
192 if 'NexusPlayer' in bot:
193 configs = [x for x in configs if 'dft' not in x]
Eric Boren4c7754c2017-04-10 08:19:10 -0400194
Ben Wagner32fa5102017-08-10 21:25:55 -0400195 # We want to test both the OpenGL config and the GLES config on Linux Intel:
196 # GL is used by Chrome, GLES is used by ChromeOS.
Brian Osmanf9810662017-08-30 10:02:10 -0400197 # Also do the Ganesh threading verification test (render with and without
198 # worker threads, using only the SW path renderer, and compare the results).
Ben Wagner32fa5102017-08-10 21:25:55 -0400199 if 'Intel' in bot and api.vars.is_linux:
Brian Osman5e117772018-06-20 14:53:06 -0400200 configs.extend(['gles',
201 'glesdft',
202 'glessrgb',
203 'glesesrgb',
204 'gltestthreading'])
Brian Osmanf9810662017-08-30 10:02:10 -0400205 # skbug.com/6333, skbug.com/6419, skbug.com/6702
206 blacklist('gltestthreading gm _ lcdblendmodes')
207 blacklist('gltestthreading gm _ lcdoverlap')
Brian Osmanbef21ba2017-08-31 13:49:05 -0400208 blacklist('gltestthreading gm _ textbloblooper')
Brian Osman1e75f2a2017-09-07 09:30:44 -0400209 # All of these GMs are flaky, too:
210 blacklist('gltestthreading gm _ bleed_alpha_bmp')
211 blacklist('gltestthreading gm _ bleed_alpha_bmp_shader')
212 blacklist('gltestthreading gm _ bleed_alpha_image')
213 blacklist('gltestthreading gm _ bleed_alpha_image_shader')
214 blacklist('gltestthreading gm _ savelayer_with_backdrop')
215 blacklist('gltestthreading gm _ persp_shaders_bw')
Brian Salomon5c6ac642017-12-19 11:09:32 -0500216 blacklist('gltestthreading gm _ dftext_blob_persp')
Brian Salomon19eaf2d2018-03-19 16:06:44 -0400217 # skbug.com/7523 - Flaky on various GPUs
218 blacklist('gltestthreading gm _ orientation')
Mike Klein97627d42017-05-11 13:12:48 -0400219
Brian Osman09eba3c2017-11-06 14:39:18 -0500220 # Test SkColorSpaceXformCanvas on a few bots
221 if 'GTX1070' in bot:
222 configs.append('gbr-gl')
223
Ben Wagner32fa5102017-08-10 21:25:55 -0400224 # CommandBuffer bot *only* runs the command_buffer config.
225 if 'CommandBuffer' in bot:
226 configs = ['commandbuffer']
227
228 # ANGLE bot *only* runs the angle configs
229 if 'ANGLE' in bot:
230 configs = ['angle_d3d11_es2',
231 'angle_d3d9_es2',
232 'angle_gl_es2',
233 'angle_d3d11_es3']
234 if sample_count is not '':
235 configs.append('angle_d3d11_es2_msaa' + sample_count)
236 configs.append('angle_d3d11_es3_msaa' + sample_count)
Ben Wagner7464a262018-04-19 15:49:18 -0400237 if 'GTX' in bot or 'Quadro' in bot:
238 # See skia:7823 and chromium:693090.
239 configs.append('angle_gl_es3')
240 if sample_count is not '':
241 configs.append('angle_gl_es2_msaa' + sample_count)
242 configs.append('angle_gl_es3_msaa' + sample_count)
Ben Wagner32fa5102017-08-10 21:25:55 -0400243
244 # Vulkan bot *only* runs the vk config.
245 if 'Vulkan' in bot:
Chris Daltonaec79e62018-05-29 12:02:19 -0600246 configs = ['vk']
Ben Wagner32fa5102017-08-10 21:25:55 -0400247
Brian Osman10fc6fd2018-03-02 11:01:10 -0500248 # Test 1010102 on our Linux/NVIDIA bots
249 if 'QuadroP400' in bot and api.vars.is_linux:
250 if 'Vulkan' in bot:
251 configs.append('vk1010102')
Brian Osman419abf32018-03-02 14:56:15 -0500252 # Decoding transparent images to 1010102 just looks bad
253 blacklist('vk1010102 image _ _')
Brian Osman10fc6fd2018-03-02 11:01:10 -0500254 else:
255 configs.append('gl1010102')
Brian Osman419abf32018-03-02 14:56:15 -0500256 # Decoding transparent images to 1010102 just looks bad
257 blacklist('gl1010102 image _ _')
Brian Osman10fc6fd2018-03-02 11:01:10 -0500258
Ben Wagner32fa5102017-08-10 21:25:55 -0400259 if 'ChromeOS' in bot:
260 # Just run GLES for now - maybe add gles_msaa4 in the future
261 configs = ['gles']
262
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400263 if 'Chromecast' in bot:
Kevin Lubick608c35a2018-01-16 16:15:57 -0500264 configs = ['gles']
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400265
Ben Wagner32fa5102017-08-10 21:25:55 -0400266 # Test coverage counting path renderer.
267 if 'CCPR' in bot:
268 configs = [c for c in configs if c == 'gl' or c == 'gles']
Chris Dalton7a0ebfc2017-10-13 12:35:50 -0600269 args.extend(['--pr', 'ccpr', '--cachePathMasks', 'false'])
Chris Dalton97598a52017-07-18 10:49:07 -0600270
Robert Phillips36150be2018-03-15 13:40:07 -0400271 # DDL is a GPU-only feature
272 if 'DDL1' in bot:
Robert Phillips69eb8352018-04-11 13:45:08 -0400273 # This bot generates gl and vk comparison images for the large skps
274 configs = [c for c in configs if c == 'gl' or c == 'vk']
Robert Phillipsb7fafba2018-03-27 20:49:23 +0000275 args.extend(['--skpViewportSize', "2048"])
Robert Phillips21ca0432018-05-29 15:42:00 -0400276 args.extend(['--pr', '~small'])
Robert Phillips36150be2018-03-15 13:40:07 -0400277 if 'DDL3' in bot:
Robert Phillips69eb8352018-04-11 13:45:08 -0400278 # This bot generates the ddl-gl and ddl-vk images for the
279 # large skps and the gms
280 configs = ['ddl-' + c for c in configs if c == 'gl' or c == 'vk']
Robert Phillipsb7fafba2018-03-27 20:49:23 +0000281 args.extend(['--skpViewportSize', "2048"])
Robert Phillipse43ff782018-04-20 11:59:59 -0400282 args.extend(['--gpuThreads', "0"])
Robert Phillips36150be2018-03-15 13:40:07 -0400283
Kevin Lubick32f318b2017-10-17 13:40:52 -0400284 tf = api.vars.builder_cfg.get('test_filter')
285 if 'All' != tf:
286 # Expected format: shard_XX_YY
287 parts = tf.split('_')
288 if len(parts) == 3:
289 args.extend(['--shard', parts[1]])
290 args.extend(['--shards', parts[2]])
Eric Boren9599b0f2018-04-17 15:55:57 -0400291 else: # pragma: nocover
292 raise Exception('Invalid task name - bad shards: %s' % tf)
Kevin Lubick32f318b2017-10-17 13:40:52 -0400293
Chris Dalton80ace822017-07-20 10:54:04 -0600294 args.append('--config')
295 args.extend(configs)
296
Eric Boren4c7754c2017-04-10 08:19:10 -0400297 # Run tests, gms, and image decoding tests everywhere.
Robert Phillips36150be2018-03-15 13:40:07 -0400298 args.extend('--src tests gm image colorImage svg skp'.split(' '))
Ben Wagner0ecc2b7e2017-11-09 22:10:44 -0500299 if api.vars.builder_cfg.get('cpu_or_gpu') == 'GPU':
Chris Dalton7c304ba2017-09-07 11:57:16 -0600300 # Don't run the 'svgparse_*' svgs on GPU.
301 blacklist('_ svg _ svgparse_')
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400302 elif bot == 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All-ASAN':
Chris Dalton7c304ba2017-09-07 11:57:16 -0600303 # Only run the CPU SVGs on 8888.
304 blacklist('~8888 svg _ _')
305 else:
306 # On CPU SVGs we only care about parsing. Only run them on the above bot.
307 args.remove('svg')
Eric Boren4c7754c2017-04-10 08:19:10 -0400308
Mike Klein97627d42017-05-11 13:12:48 -0400309 # Eventually I'd like these to pass, but for now just skip 'em.
310 if 'SK_FORCE_RASTER_PIPELINE_BLITTER' in bot:
311 args.remove('tests')
312
Mike Klein9a01a212017-11-03 12:19:54 -0400313 if 'NativeFonts' in bot: # images won't exercise native font integration :)
314 args.remove('image')
315 args.remove('colorImage')
316
Kevin Lubicke0b7f5c2018-05-07 15:10:17 -0400317 if 'T8888' in bot:
318 args.remove('tests')
319 args.remove('image')
320 args.remove('colorImage')
321
Robert Phillips5f3ce3e2018-04-12 11:09:40 -0400322 if 'DDL' in bot:
323 # The DDL bots just render the large skps and the gms
Robert Phillipsb7fafba2018-03-27 20:49:23 +0000324 args.remove('tests')
325 args.remove('image')
326 args.remove('colorImage')
327 args.remove('svg')
Robert Phillips36150be2018-03-15 13:40:07 -0400328 else:
Robert Phillipsb7fafba2018-03-27 20:49:23 +0000329 # Currently, only the DDL bots render skps
Robert Phillips36150be2018-03-15 13:40:07 -0400330 args.remove('skp')
331
Eric Boren4c7754c2017-04-10 08:19:10 -0400332 # TODO: ???
333 blacklist('f16 _ _ dstreadshuffle')
334 blacklist('glsrgb image _ _')
335 blacklist('glessrgb image _ _')
336
Eric Boren4c7754c2017-04-10 08:19:10 -0400337 # Not any point to running these.
Mike Kleinb7ea3da2017-10-31 17:42:08 +0000338 blacklist('gbr-8888 image _ _')
339 blacklist('gbr-8888 colorImage _ _')
Eric Boren4c7754c2017-04-10 08:19:10 -0400340
Mike Klein515bda62018-01-09 11:21:58 -0500341 # --src image --config g8 means "decode into Gray8", which isn't supported.
342 blacklist('g8 image _ _')
343 blacklist('g8 colorImage _ _')
344
Eric Boren4c7754c2017-04-10 08:19:10 -0400345 if 'Valgrind' in bot:
346 # These take 18+ hours to run.
347 blacklist('pdf gm _ fontmgr_iter')
348 blacklist('pdf _ _ PANO_20121023_214540.jpg')
349 blacklist('pdf skp _ worldjournal')
350 blacklist('pdf skp _ desk_baidu.skp')
351 blacklist('pdf skp _ desk_wikipedia.skp')
352 blacklist('_ svg _ _')
353
354 if 'iOS' in bot:
355 blacklist(gl_prefix + ' skp _ _')
356
357 if 'Mac' in bot or 'iOS' in bot:
358 # CG fails on questionable bmps
359 blacklist('_ image gen_platf rgba32abf.bmp')
360 blacklist('_ image gen_platf rgb24prof.bmp')
361 blacklist('_ image gen_platf rgb24lprof.bmp')
362 blacklist('_ image gen_platf 8bpp-pixeldata-cropped.bmp')
363 blacklist('_ image gen_platf 4bpp-pixeldata-cropped.bmp')
364 blacklist('_ image gen_platf 32bpp-pixeldata-cropped.bmp')
365 blacklist('_ image gen_platf 24bpp-pixeldata-cropped.bmp')
366
367 # CG has unpredictable behavior on this questionable gif
368 # It's probably using uninitialized memory
369 blacklist('_ image gen_platf frame_larger_than_image.gif')
370
371 # CG has unpredictable behavior on incomplete pngs
372 # skbug.com/5774
373 blacklist('_ image gen_platf inc0.png')
374 blacklist('_ image gen_platf inc1.png')
375 blacklist('_ image gen_platf inc2.png')
376 blacklist('_ image gen_platf inc3.png')
377 blacklist('_ image gen_platf inc4.png')
378 blacklist('_ image gen_platf inc5.png')
379 blacklist('_ image gen_platf inc6.png')
380 blacklist('_ image gen_platf inc7.png')
381 blacklist('_ image gen_platf inc8.png')
382 blacklist('_ image gen_platf inc9.png')
383 blacklist('_ image gen_platf inc10.png')
384 blacklist('_ image gen_platf inc11.png')
385 blacklist('_ image gen_platf inc12.png')
386 blacklist('_ image gen_platf inc13.png')
387 blacklist('_ image gen_platf inc14.png')
388
Ben Wagner3f67914c2017-11-27 13:02:25 -0500389 # These images fail after Mac 10.13.1 upgrade.
390 blacklist('_ image gen_platf incInterlaced.gif')
391 blacklist('_ image gen_platf inc1.gif')
392 blacklist('_ image gen_platf inc0.gif')
393 blacklist('_ image gen_platf butterfly.gif')
394
Matt Sarett6c50a2e2017-05-01 09:13:05 -0400395 # WIC fails on questionable bmps
Eric Boren4c7754c2017-04-10 08:19:10 -0400396 if 'Win' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400397 blacklist('_ image gen_platf pal8os2v2.bmp')
398 blacklist('_ image gen_platf pal8os2v2-16.bmp')
399 blacklist('_ image gen_platf rgba32abf.bmp')
400 blacklist('_ image gen_platf rgb24prof.bmp')
401 blacklist('_ image gen_platf rgb24lprof.bmp')
402 blacklist('_ image gen_platf 8bpp-pixeldata-cropped.bmp')
403 blacklist('_ image gen_platf 4bpp-pixeldata-cropped.bmp')
404 blacklist('_ image gen_platf 32bpp-pixeldata-cropped.bmp')
405 blacklist('_ image gen_platf 24bpp-pixeldata-cropped.bmp')
Eric Boren4c7754c2017-04-10 08:19:10 -0400406 if 'x86_64' in bot and 'CPU' in bot:
407 # This GM triggers a SkSmallAllocator assert.
408 blacklist('_ gm _ composeshader_bitmap')
409
Matt Sarett6c50a2e2017-05-01 09:13:05 -0400410 if 'Win' in bot or 'Mac' in bot:
Leon Scroggins III3a3cf432017-08-18 13:08:16 -0400411 # WIC and CG fail on arithmetic jpegs
Matt Sarett6c50a2e2017-05-01 09:13:05 -0400412 blacklist('_ image gen_platf testimgari.jpg')
Leon Scroggins III3a3cf432017-08-18 13:08:16 -0400413 # More questionable bmps that fail on Mac, too. skbug.com/6984
414 blacklist('_ image gen_platf rle8-height-negative.bmp')
415 blacklist('_ image gen_platf rle4-height-negative.bmp')
Matt Sarett6c50a2e2017-05-01 09:13:05 -0400416
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400417 if 'Android' in bot or 'iOS' in bot or 'Chromecast' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400418 # This test crashes the N9 (perhaps because of large malloc/frees). It also
419 # is fairly slow and not platform-specific. So we just disable it on all of
420 # Android and iOS. skia:5438
421 blacklist('_ test _ GrShape')
422
Eric Borenfb20ac42018-04-24 14:48:19 -0400423 if api.vars.internal_hardware_label == '1':
Kevin Lubick451b7432017-09-15 14:44:12 -0400424 # skia:7046
Ben Wagner8e3bf092018-05-21 14:47:03 -0400425 blacklist('_ test _ EGLImageTest')
Kevin Lubick451b7432017-09-15 14:44:12 -0400426 blacklist('_ test _ ES2BlendWithNoTexture')
Ben Wagner8e3bf092018-05-21 14:47:03 -0400427 blacklist('_ test _ GrSurfaceRenderability')
428 blacklist('_ test _ WritePixelsMSAA_Gpu')
429 blacklist('_ test _ WritePixelsNonTextureMSAA_Gpu')
430 blacklist('_ test _ WritePixelsNonTexture_Gpu')
431 blacklist('_ test _ WritePixels_Gpu')
Kevin Lubick451b7432017-09-15 14:44:12 -0400432
Eric Borenfb20ac42018-04-24 14:48:19 -0400433 if api.vars.internal_hardware_label == '2':
Kevin Lubickbd27d1d2017-10-13 08:01:49 -0400434 # skia:7160
435 blacklist('_ test _ SRGBReadWritePixels')
436 blacklist('_ test _ SRGBMipMap')
437
Kevin Lubick451b7432017-09-15 14:44:12 -0400438
Eric Boren4c7754c2017-04-10 08:19:10 -0400439 # skia:4095
Mike Reedfb499092017-06-26 13:53:32 +0000440 bad_serialize_gms = ['bleed_image',
Eric Boren4c7754c2017-04-10 08:19:10 -0400441 'c_gms',
442 'colortype',
443 'colortype_xfermodes',
444 'drawfilter',
445 'fontmgr_bounds_0.75_0',
446 'fontmgr_bounds_1_-0.25',
447 'fontmgr_bounds',
448 'fontmgr_match',
449 'fontmgr_iter',
450 'imagemasksubset']
451
452 # skia:5589
453 bad_serialize_gms.extend(['bitmapfilters',
454 'bitmapshaders',
455 'bleed',
456 'bleed_alpha_bmp',
457 'bleed_alpha_bmp_shader',
458 'convex_poly_clip',
459 'extractalpha',
460 'filterbitmap_checkerboard_32_32_g8',
461 'filterbitmap_image_mandrill_64',
462 'shadows',
463 'simpleaaclip_aaclip'])
464 # skia:5595
465 bad_serialize_gms.extend(['composeshader_bitmap',
466 'scaled_tilemodes_npot',
467 'scaled_tilemodes'])
468
469 # skia:5778
470 bad_serialize_gms.append('typefacerendering_pfaMac')
471 # skia:5942
472 bad_serialize_gms.append('parsedpaths')
473
474 # these use a custom image generator which doesn't serialize
475 bad_serialize_gms.append('ImageGeneratorExternal_rect')
476 bad_serialize_gms.append('ImageGeneratorExternal_shader')
477
478 # skia:6189
479 bad_serialize_gms.append('shadow_utils')
480
Brian Salomonbe3c1d22018-05-21 12:54:39 -0400481 # skia:7938
482 bad_serialize_gms.append('persp_images')
483
Matt Sarett9f3dcb32017-05-04 08:53:32 -0400484 # Not expected to round trip encoding/decoding.
Mike Klein0b78a692017-10-31 17:31:17 -0400485 bad_serialize_gms.append('all_bitmap_configs')
Matt Sarett9f3dcb32017-05-04 08:53:32 -0400486 bad_serialize_gms.append('makecolorspace')
487
Brian Salomon7072e222017-11-29 15:12:45 -0500488 # This GM forces a path to be convex. That property doesn't survive
489 # serialization.
490 bad_serialize_gms.append('analytic_antialias_convex')
491
Eric Boren4c7754c2017-04-10 08:19:10 -0400492 for test in bad_serialize_gms:
493 blacklist(['serialize-8888', 'gm', '_', test])
494
495 if 'Mac' not in bot:
496 for test in ['bleed_alpha_image', 'bleed_alpha_image_shader']:
497 blacklist(['serialize-8888', 'gm', '_', test])
498 # It looks like we skip these only for out-of-memory concerns.
Kevin Lubick608c35a2018-01-16 16:15:57 -0500499 if 'Win' in bot or 'Android' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400500 for test in ['verylargebitmap', 'verylarge_picture_image']:
501 blacklist(['serialize-8888', 'gm', '_', test])
Ben Wagner2e4e73f2017-09-08 15:21:44 -0400502 if 'Mac' in bot and 'CPU' in bot:
Ben Wagner38db79f2017-08-23 15:05:50 -0400503 # skia:6992
Ben Wagner6f98bc62017-09-05 16:02:28 -0400504 blacklist(['pic-8888', 'gm', '_', 'encode-platform'])
Ben Wagner38db79f2017-08-23 15:05:50 -0400505 blacklist(['serialize-8888', 'gm', '_', 'encode-platform'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400506
507 # skia:4769
508 for test in ['drawfilter']:
Eric Boren4c7754c2017-04-10 08:19:10 -0400509 blacklist([ 'pic-8888', 'gm', '_', test])
Eric Boren4c7754c2017-04-10 08:19:10 -0400510 blacklist([ 'lite-8888', 'gm', '_', test])
511 # skia:4703
512 for test in ['image-cacherator-from-picture',
513 'image-cacherator-from-raster',
514 'image-cacherator-from-ctable']:
Eric Boren4c7754c2017-04-10 08:19:10 -0400515 blacklist([ 'pic-8888', 'gm', '_', test])
Eric Boren4c7754c2017-04-10 08:19:10 -0400516 blacklist(['serialize-8888', 'gm', '_', test])
517
518 # GM that requires raster-backed canvas
519 for test in ['gamut', 'complexclip4_bw', 'complexclip4_aa']:
Eric Boren4c7754c2017-04-10 08:19:10 -0400520 blacklist([ 'pic-8888', 'gm', '_', test])
521 blacklist([ 'lite-8888', 'gm', '_', test])
Eric Boren4c7754c2017-04-10 08:19:10 -0400522 blacklist(['serialize-8888', 'gm', '_', test])
523
524 # GM that not support tiles_rt
525 for test in ['complexclip4_bw', 'complexclip4_aa']:
526 blacklist([ 'tiles_rt-8888', 'gm', '_', test])
527
528 # Extensions for RAW images
Ben Wagner6e0a6b32017-09-26 14:11:15 -0400529 r = ['arw', 'cr2', 'dng', 'nef', 'nrw', 'orf', 'raf', 'rw2', 'pef', 'srw',
530 'ARW', 'CR2', 'DNG', 'NEF', 'NRW', 'ORF', 'RAF', 'RW2', 'PEF', 'SRW']
Eric Boren4c7754c2017-04-10 08:19:10 -0400531
532 # skbug.com/4888
533 # Blacklist RAW images (and a few large PNGs) on GPU bots
534 # until we can resolve failures.
Matt Sarett929bfeb2017-05-22 10:34:41 -0400535 if 'GPU' in bot:
536 blacklist('_ image _ interlaced1.png')
537 blacklist('_ image _ interlaced2.png')
538 blacklist('_ image _ interlaced3.png')
539 for raw_ext in r:
540 blacklist('_ image _ .%s' % raw_ext)
541
542 # Blacklist memory intensive tests on 32-bit bots.
Ben Wagnerfd66b5f2017-11-15 15:16:27 -0500543 if ('Win8' in bot or 'Win2016' in bot) and 'x86-' in bot:
Matt Sarett929bfeb2017-05-22 10:34:41 -0400544 blacklist('_ image f16 _')
Matt Sarett112565e2017-05-22 13:45:15 -0400545 blacklist('_ image _ abnormal.wbmp')
Eric Boren4c7754c2017-04-10 08:19:10 -0400546 blacklist('_ image _ interlaced1.png')
547 blacklist('_ image _ interlaced2.png')
548 blacklist('_ image _ interlaced3.png')
549 for raw_ext in r:
550 blacklist('_ image _ .%s' % raw_ext)
551
Ben Wagner3f330692017-12-07 15:14:54 -0500552 if 'Nexus5' in bot and 'GPU' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400553 # skia:5876
554 blacklist(['_', 'gm', '_', 'encode-platform'])
555
556 if 'AndroidOne-GPU' in bot: # skia:4697, skia:4704, skia:4694, skia:4705
557 blacklist(['_', 'gm', '_', 'bigblurs'])
558 blacklist(['_', 'gm', '_', 'bleed'])
559 blacklist(['_', 'gm', '_', 'bleed_alpha_bmp'])
560 blacklist(['_', 'gm', '_', 'bleed_alpha_bmp_shader'])
561 blacklist(['_', 'gm', '_', 'bleed_alpha_image'])
562 blacklist(['_', 'gm', '_', 'bleed_alpha_image_shader'])
563 blacklist(['_', 'gm', '_', 'bleed_image'])
564 blacklist(['_', 'gm', '_', 'dropshadowimagefilter'])
565 blacklist(['_', 'gm', '_', 'filterfastbounds'])
566 blacklist([gl_prefix, 'gm', '_', 'imageblurtiled'])
567 blacklist(['_', 'gm', '_', 'imagefiltersclipped'])
568 blacklist(['_', 'gm', '_', 'imagefiltersscaled'])
569 blacklist(['_', 'gm', '_', 'imageresizetiled'])
570 blacklist(['_', 'gm', '_', 'matrixconvolution'])
571 blacklist(['_', 'gm', '_', 'strokedlines'])
572 if sample_count is not '':
573 gl_msaa_config = gl_prefix + 'msaa' + sample_count
574 blacklist([gl_msaa_config, 'gm', '_', 'imageblurtiled'])
575 blacklist([gl_msaa_config, 'gm', '_', 'imagefiltersbase'])
576
577 match = []
578 if 'Valgrind' in bot: # skia:3021
579 match.append('~Threaded')
580
Ben Wagner6c126422017-06-19 12:45:54 -0400581 if 'Valgrind' in bot and 'PreAbandonGpuContext' in bot:
582 # skia:6575
583 match.append('~multipicturedraw_')
584
Ben Wagnerbb3e7ff2017-04-28 15:28:32 -0400585 if 'CommandBuffer' in bot:
586 # https://crbug.com/697030
587 match.append('~HalfFloatAlphaTextureTest')
588
Cary Clarka7c569d2018-02-14 11:31:25 -0500589 if 'AndroidOne' in bot:
590 match.append('~WritePixels') # skia:4711
591 match.append('~PremulAlphaRoundTrip_Gpu') # skia:7501
Eric Boren4c7754c2017-04-10 08:19:10 -0400592
Kevin Lubick608c35a2018-01-16 16:15:57 -0500593 if 'Chromecast' in bot:
Kevin Lubick6ea9fdf2018-01-17 08:54:21 -0500594 if 'GPU' in bot:
595 # skia:6687
Kevin Lubick6ea9fdf2018-01-17 08:54:21 -0500596 match.append('~animated-image-blurs')
Ben Wagnerd50a1932018-03-01 09:45:18 -0500597 match.append('~blur_0.01')
598 match.append('~blur_image_filter')
Eric Boren1e00d192018-04-13 15:59:02 -0400599 match.append('~check_small_sigma_offset')
Ben Wagnerd50a1932018-03-01 09:45:18 -0500600 match.append('~imageblur2')
601 match.append('~lighting')
602 match.append('~longpathdash')
603 match.append('~matrixconvolution')
Ben Wagnerdabef9d2018-02-27 16:36:12 -0500604 match.append('~textblobmixedsizes_df')
Ben Wagner98c3c612018-02-26 14:53:30 -0500605 match.append('~textblobrandomfont')
Kevin Lubick608c35a2018-01-16 16:15:57 -0500606 # Blacklisted to avoid OOM (we see DM just end with "broken pipe")
Kevin Lubick608c35a2018-01-16 16:15:57 -0500607 match.append('~bigbitmaprect_')
Kevin Lubick608c35a2018-01-16 16:15:57 -0500608 match.append('~DrawBitmapRect')
Kevin Lubick8684c712018-02-12 15:55:57 -0500609 match.append('~drawbitmaprect')
Ben Wagnerd50a1932018-03-01 09:45:18 -0500610 match.append('~GM_animated-image-blurs')
611 match.append('~ImageFilterBlurLargeImage')
612 match.append('~savelayer_clipmask')
613 match.append('~TextBlobCache')
614 match.append('~verylarge')
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400615
Eric Boren4c7754c2017-04-10 08:19:10 -0400616 if 'GalaxyS6' in bot:
617 match.append('~SpecialImage') # skia:6338
Brian Osmaneee3c092017-06-15 13:25:10 -0400618 match.append('~skbug6653') # skia:6653
Eric Boren4c7754c2017-04-10 08:19:10 -0400619
Eric Boren4c7754c2017-04-10 08:19:10 -0400620 if 'MSAN' in bot:
621 match.extend(['~Once', '~Shared']) # Not sure what's up with these tests.
622
623 if 'TSAN' in bot:
624 match.extend(['~ReadWriteAlpha']) # Flaky on TSAN-covered on nvidia bots.
625 match.extend(['~RGBA4444TextureTest', # Flakier than they are important.
626 '~RGB565TextureTest'])
627
Ben Wagnerdba0bc82017-12-11 13:27:27 -0500628 # By default, we test with GPU threading enabled, unless specifically
629 # disabled.
630 if 'NoGPUThreads' in bot:
631 args.extend(['--gpuThreads', '0'])
632
Greg Daniela86385d2017-06-05 11:34:29 -0400633 if 'Vulkan' in bot and 'Adreno530' in bot:
634 # skia:5777
635 match.extend(['~CopySurface'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400636
Brian Salomon3d86a192018-02-27 16:46:11 -0500637 if 'Vulkan' in bot and 'Adreno' in bot:
638 # skia:7663
639 match.extend(['~WritePixelsNonTextureMSAA_Gpu'])
640 match.extend(['~WritePixelsMSAA_Gpu'])
641
Eric Boren4c7754c2017-04-10 08:19:10 -0400642 if 'Vulkan' in bot and 'NexusPlayer' in bot:
Ben Wagner407a3b72017-09-07 22:14:07 -0400643 # skia:6132
Ben Wagner0ecc2b7e2017-11-09 22:10:44 -0500644 match.append('~^tilemodes$')
Greg Daniel4c723832017-11-13 12:59:08 -0500645 match.append('~tilemodes_npot$')
Greg Daniel41886c82017-11-15 09:20:13 -0500646 match.append('~scaled_tilemodes$')
647 match.append('~emboss')
Ben Wagner0ecc2b7e2017-11-09 22:10:44 -0500648 match.append('~^bitmapfilters$')
649 match.append('~^shadertext$')
650 match.append('~^FullScreenClearWithLayers$') #skia:7191
651 match.append('~^GrDefaultPathRendererTest$') #skia:7244
652 match.append('~^GrMSAAPathRendererTest$') #skia:7244
Ben Wagner407a3b72017-09-07 22:14:07 -0400653 # skia:7018
Ben Wagner0ecc2b7e2017-11-09 22:10:44 -0500654 match.extend(['~^ClearOp$',
655 '~^ComposedImageFilterBounds_Gpu$',
656 '~^ImageEncode_Gpu$',
657 '~^ImageFilterFailAffectsTransparentBlack_Gpu$',
658 '~^ImageFilterZeroBlurSigma_Gpu$',
659 '~^ImageNewShader_GPU$',
660 '~^ImageReadPixels_Gpu$',
661 '~^ImageScalePixels_Gpu$',
662 '~^ReadWriteAlpha$',
663 '~^SpecialImage_DeferredGpu$',
664 '~^SpecialImage_Gpu$',
665 '~^SurfaceSemaphores$'])
Robert Phillips9ad12132018-04-23 14:32:38 -0400666 # skia:7837
667 match.append('~BlurMaskBiggerThanDest')
Eric Boren4c7754c2017-04-10 08:19:10 -0400668
Ben Wagner2107bd82018-06-12 14:16:07 -0400669 if 'Vulkan' in bot and 'GalaxyS7_G930FD' in bot:
670 # skia:8064
671 match.append('~^WritePixelsNonTexture_Gpu$')
672
Ben Wagner63457572017-12-21 10:49:58 -0500673 if 'Vulkan' in bot and api.vars.is_linux and 'IntelIris640' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400674 match.extend(['~VkHeapTests']) # skia:6245
675
Kevin Lubickec4e7352018-04-25 07:46:55 -0400676 if api.vars.is_linux and 'IntelIris640' in bot:
677 match.extend(['~GLPrograms']) # skia:7849
678
Ben Wagnerb8427032017-11-18 19:04:25 -0500679 if 'Vulkan' in bot and api.vars.is_linux and 'IntelHD405' in bot:
Ben Wagner32eb5ba2017-11-20 13:46:20 -0500680 # skia:7322
Ben Wagnerb8427032017-11-18 19:04:25 -0500681 blacklist(['vk', 'gm', '_', 'skbug_257'])
Chris Dalton414be9b2018-04-26 14:37:01 -0600682 blacklist(['vk', 'gm', '_', 'filltypespersp'])
Ben Wagnerb8427032017-11-18 19:04:25 -0500683 match.append('~^ClearOp$')
Greg Danielec34a712017-12-06 12:06:26 -0500684 match.append('~^CopySurface$')
685 match.append('~^ImageNewShader_GPU$')
Ben Wagnerb8427032017-11-18 19:04:25 -0500686 match.append('~^InitialTextureClear$')
Greg Danielec34a712017-12-06 12:06:26 -0500687 match.append('~^PinnedImageTest$')
Ben Wagnerb8427032017-11-18 19:04:25 -0500688 match.append('~^ReadPixels_Gpu$')
689 match.append('~^ReadPixels_Texture$')
Greg Danielec34a712017-12-06 12:06:26 -0500690 match.append('~^SRGBReadWritePixels$')
Ben Wagnerb8427032017-11-18 19:04:25 -0500691 match.append('~^VkUploadPixelsTests$')
692 match.append('~^WritePixelsNonTexture_Gpu$')
Brian Salomon3d86a192018-02-27 16:46:11 -0500693 match.append('~^WritePixelsNonTextureMSAA_Gpu$')
Ben Wagnerb8427032017-11-18 19:04:25 -0500694 match.append('~^WritePixels_Gpu$')
Brian Salomon3d86a192018-02-27 16:46:11 -0500695 match.append('~^WritePixelsMSAA_Gpu$')
Ben Wagnerb8427032017-11-18 19:04:25 -0500696 match.append('~^skbug6653$')
697
Ben Wagnerf1debdf2017-06-13 13:37:05 -0400698 if 'Vulkan' in bot and 'IntelIris540' in bot and 'Win' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400699 # skia:6398
700 blacklist(['vk', 'gm', '_', 'aarectmodes'])
701 blacklist(['vk', 'gm', '_', 'aaxfermodes'])
Greg Daniel0eef6742017-11-20 16:05:04 -0500702 blacklist(['vk', 'gm', '_', 'dont_clip_to_layer'])
Mike Klein78932122017-11-15 13:21:40 -0500703 blacklist(['vk', 'gm', '_', 'dftext'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400704 blacklist(['vk', 'gm', '_', 'drawregionmodes'])
705 blacklist(['vk', 'gm', '_', 'filterfastbounds'])
Mike Klein0030c5e2017-11-13 13:27:48 -0500706 blacklist(['vk', 'gm', '_', 'fontmgr_iter'])
Mike Klein0030c5e2017-11-13 13:27:48 -0500707 blacklist(['vk', 'gm', '_', 'fontmgr_match'])
708 blacklist(['vk', 'gm', '_', 'fontscaler'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400709 blacklist(['vk', 'gm', '_', 'fontscalerdistortable'])
710 blacklist(['vk', 'gm', '_', 'gammagradienttext'])
Mike Klein0030c5e2017-11-13 13:27:48 -0500711 blacklist(['vk', 'gm', '_', 'gammatext'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400712 blacklist(['vk', 'gm', '_', 'gradtext'])
713 blacklist(['vk', 'gm', '_', 'hairmodes'])
714 blacklist(['vk', 'gm', '_', 'imagefilters_xfermodes'])
715 blacklist(['vk', 'gm', '_', 'imagefiltersclipped'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400716 blacklist(['vk', 'gm', '_', 'imagefiltersscaled'])
717 blacklist(['vk', 'gm', '_', 'imagefiltersstroked'])
718 blacklist(['vk', 'gm', '_', 'imagefilterstransformed'])
719 blacklist(['vk', 'gm', '_', 'imageresizetiled'])
720 blacklist(['vk', 'gm', '_', 'lcdblendmodes'])
721 blacklist(['vk', 'gm', '_', 'lcdoverlap'])
Mike Klein0030c5e2017-11-13 13:27:48 -0500722 blacklist(['vk', 'gm', '_', 'lcdtext'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400723 blacklist(['vk', 'gm', '_', 'lcdtextsize'])
724 blacklist(['vk', 'gm', '_', 'matriximagefilter'])
Mike Klein78932122017-11-15 13:21:40 -0500725 blacklist(['vk', 'gm', '_', 'mixedtextblobs'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400726 blacklist(['vk', 'gm', '_', 'resizeimagefilter'])
727 blacklist(['vk', 'gm', '_', 'rotate_imagefilter'])
728 blacklist(['vk', 'gm', '_', 'savelayer_lcdtext'])
Greg Daniel0c269d02018-02-08 15:26:49 -0500729 blacklist(['vk', 'gm', '_', 'shadermaskfilter_image'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400730 blacklist(['vk', 'gm', '_', 'srcmode'])
731 blacklist(['vk', 'gm', '_', 'surfaceprops'])
732 blacklist(['vk', 'gm', '_', 'textblobgeometrychange'])
733 blacklist(['vk', 'gm', '_', 'textbloblooper'])
734 blacklist(['vk', 'gm', '_', 'textblobmixedsizes'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400735 blacklist(['vk', 'gm', '_', 'textblobrandomfont'])
736 blacklist(['vk', 'gm', '_', 'textfilter_color'])
737 blacklist(['vk', 'gm', '_', 'textfilter_image'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400738 blacklist(['vk', 'gm', '_', 'varied_text_clipped_lcd'])
739 blacklist(['vk', 'gm', '_', 'varied_text_ignorable_clip_lcd'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400740
Greg Daniele5b7e6d2018-06-12 10:52:59 -0400741 if 'Vulkan' in bot and 'GTX660' in bot and 'Win' in bot:
742 # skbug.com/8047
743 match.append('~FloatingPointTextureTest$')
744
Chris Dalton2b937f52018-05-17 10:17:10 -0600745 if 'MoltenVK' in bot:
746 # skbug.com/7959
747 blacklist(['_', 'gm', '_', 'vertices_scaled_shader'])
748 blacklist(['_', 'gm', '_', 'vertices'])
749 match.append('~^InitialTextureClear$')
Chris Dalton2b937f52018-05-17 10:17:10 -0600750 match.append('~^RGB565TextureTest$')
751 match.append('~^RGBA4444TextureTest$')
752 match.append('~^WritePixelsNonTextureMSAA_Gpu$')
Chris Dalton2b937f52018-05-17 10:17:10 -0600753
Ben Wagner2040ed22017-11-22 11:22:22 -0500754 if (('RadeonR9M470X' in bot or 'RadeonHD7770' in bot) and 'ANGLE' in bot):
Robert Phillips435db422017-10-04 09:38:11 -0400755 # skia:7096
756 match.append('~PinnedImageTest')
757
Robert Phillipsa96a1012018-04-23 10:46:09 -0400758 if 'ANGLE' in bot:
759 # skia:7835
760 match.append('~BlurMaskBiggerThanDest')
761
Eric Boren4c7754c2017-04-10 08:19:10 -0400762 if 'IntelIris540' in bot and 'ANGLE' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400763 for config in ['angle_d3d9_es2', 'angle_d3d11_es2', 'angle_gl_es2']:
Brian Salomon6e554e32017-06-23 12:08:10 -0400764 # skia:6103
Eric Boren4c7754c2017-04-10 08:19:10 -0400765 blacklist([config, 'gm', '_', 'multipicturedraw_invpathclip_simple'])
766 blacklist([config, 'gm', '_', 'multipicturedraw_noclip_simple'])
767 blacklist([config, 'gm', '_', 'multipicturedraw_pathclip_simple'])
768 blacklist([config, 'gm', '_', 'multipicturedraw_rectclip_simple'])
769 blacklist([config, 'gm', '_', 'multipicturedraw_rrectclip_simple'])
Brian Salomon6e554e32017-06-23 12:08:10 -0400770 # skia:6141
771 blacklist([config, 'gm', '_', 'discard'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400772
Ben Wagnerc6b2e6b2017-10-07 18:57:25 -0400773 if ('IntelIris6100' in bot or 'IntelHD4400' in bot) and 'ANGLE' in bot:
774 # skia:6857
775 blacklist(['angle_d3d9_es2', 'gm', '_', 'lighting'])
776
Kevin Lubickc14e5a72017-08-15 13:22:19 -0400777 if 'PowerVRGX6250' in bot:
778 match.append('~gradients_view_perspective_nodither') #skia:6972
779
Mike Klein3a3fbf12018-01-30 08:08:49 -0500780 if '-arm-' in bot and 'ASAN' in bot:
781 # TODO: can we run with env allocator_may_return_null=1 instead?
782 match.append('~BadImage')
783
Ben Wagner1d8726f2018-02-02 14:47:31 -0500784 if 'Mac' in bot and 'IntelHD6000' in bot:
Ben Wagnerdf430052018-02-08 16:57:04 -0500785 # skia:7574
Ben Wagner1d8726f2018-02-02 14:47:31 -0500786 match.append('~^ProcessorCloneTest$')
787 match.append('~^GrMeshTest$')
788
Ben Wagnerdf430052018-02-08 16:57:04 -0500789 if 'Mac' in bot and 'IntelHD615' in bot:
790 # skia:7603
791 match.append('~^GrMeshTest$')
792
Eric Borenfb20ac42018-04-24 14:48:19 -0400793 if api.vars.internal_hardware_label == '1':
Ben Wagner84660e92018-04-09 16:19:54 -0400794 match.append('~skbug6653') # skia:6653
795
Eric Boren4c7754c2017-04-10 08:19:10 -0400796 if blacklisted:
797 args.append('--blacklist')
798 args.extend(blacklisted)
799
800 if match:
801 args.append('--match')
802 args.extend(match)
803
804 # These bots run out of memory running RAW codec tests. Do not run them in
805 # parallel
Ben Wagner2040ed22017-11-22 11:22:22 -0500806 if 'NexusPlayer' in bot or 'Nexus5' in bot or 'Nexus9' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400807 args.append('--noRAW_threading')
808
Yuqian Li84be3ad2017-10-17 10:11:21 -0400809 if 'FSAA' in bot:
810 args.extend(['--analyticAA', 'false', '--deltaAA', 'false'])
811 if 'FAAA' in bot:
812 args.extend(['--deltaAA', 'false', '--forceAnalyticAA'])
813 if 'FDAA' in bot:
814 args.extend(['--deltaAA', '--forceDeltaAA'])
815
Mike Kleinc207da82017-11-10 14:24:34 -0500816 if 'NativeFonts' not in bot:
817 args.append('--nonativeFonts')
818
Mike Klein0c5fdcb2017-11-13 12:40:46 -0500819 if 'GDI' in bot:
820 args.append('--gdi')
821
Stephan Altmueller74dac542017-09-11 15:32:21 -0400822 # Let's make all bots produce verbose output by default.
823 args.append('--verbose')
Mike Kleinc9089062017-06-26 09:09:32 -0400824
Eric Boren4c7754c2017-04-10 08:19:10 -0400825 return args
826
827
828def key_params(api):
829 """Build a unique key from the builder name (as a list).
830
831 E.g. arch x86 gpu GeForce320M mode MacMini4.1 os Mac10.6
832 """
833 # Don't bother to include role, which is always Test.
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400834 blacklist = ['role', 'test_filter']
Eric Boren4c7754c2017-04-10 08:19:10 -0400835
836 flat = []
837 for k in sorted(api.vars.builder_cfg.keys()):
838 if k not in blacklist:
839 flat.append(k)
840 flat.append(api.vars.builder_cfg[k])
841 return flat
842
843
844def test_steps(api):
845 """Run the DM test."""
Eric Boren72f66682018-05-18 07:36:55 -0400846 b = api.properties['buildername']
Eric Boren4c7754c2017-04-10 08:19:10 -0400847 use_hash_file = False
Eric Boren72f66682018-05-18 07:36:55 -0400848 if upload_dm_results(b):
849 host_dm_dir = str(api.flavor.host_dirs.dm_dir)
850 api.flavor.create_clean_host_dir(api.path['start_dir'].join('test'))
Eric Boren4c7754c2017-04-10 08:19:10 -0400851 device_dm_dir = str(api.flavor.device_dirs.dm_dir)
852 if host_dm_dir != device_dm_dir:
853 api.flavor.create_clean_device_dir(device_dm_dir)
854
855 # Obtain the list of already-generated hashes.
856 hash_filename = 'uninteresting_hashes.txt'
857
Eric Boren4c7754c2017-04-10 08:19:10 -0400858 host_hashes_file = api.vars.tmp_dir.join(hash_filename)
859 hashes_file = api.flavor.device_path_join(
860 api.flavor.device_dirs.tmp_dir, hash_filename)
861 api.run(
862 api.python.inline,
863 'get uninteresting hashes',
864 program="""
865 import contextlib
866 import math
867 import socket
868 import sys
869 import time
870 import urllib2
871
Stephan Altmuellerc19ebc52017-05-30 16:39:17 -0400872 HASHES_URL = 'https://storage.googleapis.com/skia-infra-gm/hash_files/gold-prod-hashes.txt'
Eric Boren4c7754c2017-04-10 08:19:10 -0400873 RETRIES = 5
874 TIMEOUT = 60
875 WAIT_BASE = 15
876
877 socket.setdefaulttimeout(TIMEOUT)
878 for retry in range(RETRIES):
879 try:
880 with contextlib.closing(
881 urllib2.urlopen(HASHES_URL, timeout=TIMEOUT)) as w:
882 hashes = w.read()
883 with open(sys.argv[1], 'w') as f:
884 f.write(hashes)
885 break
886 except Exception as e:
887 print 'Failed to get uninteresting hashes from %s:' % HASHES_URL
888 print e
889 if retry == RETRIES:
890 raise
891 waittime = WAIT_BASE * math.pow(2, retry)
892 print 'Retry in %d seconds.' % waittime
893 time.sleep(waittime)
894 """,
895 args=[host_hashes_file],
896 abort_on_failure=False,
897 fail_build_on_failure=False,
898 infra_step=True)
899
900 if api.path.exists(host_hashes_file):
901 api.flavor.copy_file_to_device(host_hashes_file, hashes_file)
902 use_hash_file = True
903
904 # Run DM.
905 properties = [
Eric Boren72f66682018-05-18 07:36:55 -0400906 'gitHash', api.properties['revision'],
Eric Boren9a9e3872017-11-29 12:33:22 -0500907 'builder', api.vars.builder_name,
908 'buildbucket_build_id', api.properties.get('buildbucket_build_id', ''),
Eric Boren4c7754c2017-04-10 08:19:10 -0400909 ]
910 if api.vars.is_trybot:
911 properties.extend([
912 'issue', api.vars.issue,
913 'patchset', api.vars.patchset,
914 'patch_storage', api.vars.patch_storage,
915 ])
Eric Borenf9aa9e52017-04-10 09:56:10 -0400916 properties.extend(['swarming_bot_id', api.vars.swarming_bot_id])
917 properties.extend(['swarming_task_id', api.vars.swarming_task_id])
Eric Boren4c7754c2017-04-10 08:19:10 -0400918
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400919 if 'Chromecast' in api.vars.builder_cfg.get('os', ''):
920 # Due to limited disk space, we only deal with skps and one image.
921 args = [
922 'dm',
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400923 '--resourcePath', api.flavor.device_dirs.resource_dir,
924 '--skps', api.flavor.device_dirs.skp_dir,
925 '--images', api.flavor.device_path_join(
Kevin Lubickc2f3e8d2018-01-24 15:48:26 -0500926 api.flavor.device_dirs.resource_dir, 'images', 'color_wheel.jpg'),
Kevin Lubick608c35a2018-01-16 16:15:57 -0500927 '--nameByHash',
928 '--properties'
929 ] + properties
Kevin Lubick95379eb2018-01-17 11:20:19 -0500930 else:
931 args = [
932 'dm',
933 '--resourcePath', api.flavor.device_dirs.resource_dir,
934 '--skps', api.flavor.device_dirs.skp_dir,
935 '--images', api.flavor.device_path_join(
936 api.flavor.device_dirs.images_dir, 'dm'),
937 '--colorImages', api.flavor.device_path_join(
938 api.flavor.device_dirs.images_dir, 'colorspace'),
939 '--nameByHash',
940 '--properties'
941 ] + properties
942
943 args.extend(['--svgs', api.flavor.device_dirs.svg_dir])
944
945 args.append('--key')
946 args.extend(key_params(api))
Kevin Lubick608c35a2018-01-16 16:15:57 -0500947
948 if use_hash_file:
949 args.extend(['--uninterestingHashesFile', hashes_file])
Eric Boren72f66682018-05-18 07:36:55 -0400950 if upload_dm_results(b):
Kevin Lubick608c35a2018-01-16 16:15:57 -0500951 args.extend(['--writePath', api.flavor.device_dirs.dm_dir])
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400952
Eric Boren89cd3572017-06-28 13:50:22 -0400953 args.extend(dm_flags(api, api.vars.builder_name))
Eric Boren4c7754c2017-04-10 08:19:10 -0400954
Eric Boren4c7754c2017-04-10 08:19:10 -0400955 # See skia:2789.
Ben Wagner37491d22017-12-13 13:00:47 -0500956 if 'AbandonGpuContext' in api.vars.extra_tokens:
Eric Boren4c7754c2017-04-10 08:19:10 -0400957 args.append('--abandonGpuContext')
Ben Wagner37491d22017-12-13 13:00:47 -0500958 if 'PreAbandonGpuContext' in api.vars.extra_tokens:
Eric Boren4c7754c2017-04-10 08:19:10 -0400959 args.append('--preAbandonGpuContext')
Ben Wagner37491d22017-12-13 13:00:47 -0500960 if 'ReleaseAndAbandonGpuContext' in api.vars.extra_tokens:
Eric Boren6ec17e32017-04-26 14:25:29 -0400961 args.append('--releaseAndAbandonGpuContext')
Eric Boren4c7754c2017-04-10 08:19:10 -0400962
Ben Wagner5655ba42017-10-02 10:48:32 -0400963 api.run(api.flavor.step, 'dm', cmd=args, abort_on_failure=False)
Eric Boren4c7754c2017-04-10 08:19:10 -0400964
Eric Boren72f66682018-05-18 07:36:55 -0400965 if upload_dm_results(b):
Eric Boren4c7754c2017-04-10 08:19:10 -0400966 # Copy images and JSON to host machine if needed.
967 api.flavor.copy_directory_contents_to_host(
Eric Boren72f66682018-05-18 07:36:55 -0400968 api.flavor.device_dirs.dm_dir, api.flavor.host_dirs.dm_dir)
Eric Boren4c7754c2017-04-10 08:19:10 -0400969
970
borenet1ed2ae42016-07-26 11:52:17 -0700971def RunSteps(api):
Eric Borenb7023162018-05-04 13:46:15 -0400972 api.vars.setup()
973 api.file.ensure_directory('makedirs tmp_dir', api.vars.tmp_dir)
974 api.flavor.setup()
975
Robert Iannucci297a7ef2017-05-12 19:09:38 -0700976 env = {}
Eric Boren4c7754c2017-04-10 08:19:10 -0400977 if 'iOS' in api.vars.builder_name:
978 env['IOS_BUNDLE_ID'] = 'com.google.dm'
Stephan Altmueller63e843d2017-04-25 11:38:38 -0400979 env['IOS_MOUNT_POINT'] = api.vars.slave_dir.join('mnt_iosdevice')
Robert Iannucci297a7ef2017-05-12 19:09:38 -0700980 with api.context(env=env):
Eric Boren4c7754c2017-04-10 08:19:10 -0400981 try:
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400982 if 'Chromecast' in api.vars.builder_name:
983 api.flavor.install(resources=True, skps=True)
984 else:
985 api.flavor.install_everything()
Eric Boren4c7754c2017-04-10 08:19:10 -0400986 test_steps(api)
987 finally:
988 api.flavor.cleanup_steps()
989 api.run.check_failure()
990
991
Eric Borenf9aa9e52017-04-10 09:56:10 -0400992TEST_BUILDERS = [
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400993 'Test-Android-Clang-AndroidOne-GPU-Mali400MP2-arm-Release-All-Android',
994 'Test-Android-Clang-GalaxyS6-GPU-MaliT760-arm64-Debug-All-Android',
Ben Wagner2107bd82018-06-12 14:16:07 -0400995 ('Test-Android-Clang-GalaxyS7_G930FD-GPU-MaliT880-arm64-Release-All'
996 '-Android_Vulkan'),
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400997 'Test-Android-Clang-NVIDIA_Shield-GPU-TegraX1-arm64-Debug-All-Android_CCPR',
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400998 'Test-Android-Clang-Nexus5-GPU-Adreno330-arm-Release-All-Android',
Mike Klein3a3fbf12018-01-30 08:08:49 -0500999 'Test-Android-Clang-Nexus5x-GPU-Adreno418-arm-Debug-All-Android_ASAN',
Kevin Lubick4f0f9332018-01-12 14:31:48 -05001000 ('Test-Android-Clang-Nexus5x-GPU-Adreno418-arm64-Debug-All'
Ben Wagnerdba0bc82017-12-11 13:27:27 -05001001 '-Android_NoGPUThreads'),
Ben Wagner5cf6d322017-12-07 10:23:07 -05001002 'Test-Android-Clang-Nexus7-CPU-Tegra3-arm-Release-All-Android',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001003 'Test-Android-Clang-NexusPlayer-GPU-PowerVR-x86-Release-All-Android_Vulkan',
Ben Wagner52423f32017-12-07 10:17:13 -05001004 'Test-Android-Clang-Pixel-GPU-Adreno530-arm64-Debug-All-Android_Vulkan',
Kevin Lubickd7af1db2017-11-02 12:03:22 -04001005 ('Test-ChromeOS-Clang-AcerChromebookR13Convertible-GPU-PowerVRGX6250-'
1006 'arm-Debug-All'),
Kevin Lubick608c35a2018-01-16 16:15:57 -05001007 'Test-Chromecast-GCC-Chorizo-CPU-Cortex_A7-arm-Release-All',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001008 'Test-Chromecast-GCC-Chorizo-GPU-Cortex_A7-arm-Release-All',
1009 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All-ASAN',
Kevin Lubick32f318b2017-10-17 13:40:52 -04001010 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-shard_00_10-Coverage',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001011 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All-MSAN',
1012 ('Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All'
Ben Wagner9fb285e2017-10-02 16:53:07 -04001013 '-SK_USE_DISCARDABLE_SCALEDIMAGECACHE'),
Kevin Lubicka585f732018-05-07 12:08:58 -04001014 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All-T8888',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001015 ('Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Release-All'
Ben Wagner6e0a6b32017-09-26 14:11:15 -04001016 '-SK_FORCE_RASTER_PIPELINE_BLITTER'),
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001017 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Release-All-TSAN',
Ben Wagnerd26e4462018-05-22 10:46:15 -04001018 'Test-Debian9-Clang-GCE-GPU-SwiftShader-x86_64-Release-All-SwiftShader',
Kevin Lubick88611a12018-04-26 09:46:45 -04001019 'Test-Debian9-Clang-NUC5PPYH-GPU-IntelHD405-x86_64-Release-All-Vulkan',
1020 'Test-Debian9-Clang-NUC7i5BNK-GPU-IntelIris640-x86_64-Debug-All-Vulkan',
Ben Wagner1d8726f2018-02-02 14:47:31 -05001021 'Test-Mac-Clang-MacBookAir7.2-GPU-IntelHD6000-x86_64-Debug-All',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001022 'Test-Mac-Clang-MacMini7.1-CPU-AVX-x86_64-Release-All',
1023 'Test-Mac-Clang-MacMini7.1-GPU-IntelIris5100-x86_64-Debug-All-CommandBuffer',
Jim Van Verth1b6c75c2018-02-16 09:49:08 -05001024 'Test-Mac-Clang-MacBook10.1-GPU-IntelHD615-x86_64-Release-All-NativeFonts',
Chris Dalton2b937f52018-05-17 10:17:10 -06001025 ('Test-Mac-Clang-MacBookPro11.5-GPU-RadeonHD8870M-x86_64-Release-All-'
1026 'MoltenVK_Vulkan'),
Ben Wagner9f553932017-11-27 22:18:12 -05001027 'Test-Ubuntu17-Clang-Golo-GPU-QuadroP400-x86_64-Debug-All-Vulkan_Coverage',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001028 ('Test-Ubuntu17-GCC-Golo-GPU-QuadroP400-x86_64-Release-All'
Ben Wagner6e0a6b32017-09-26 14:11:15 -04001029 '-Valgrind_AbandonGpuContext_SK_CPU_LIMIT_SSE41'),
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001030 ('Test-Ubuntu17-GCC-Golo-GPU-QuadroP400-x86_64-Release-All'
Ben Wagner6e0a6b32017-09-26 14:11:15 -04001031 '-Valgrind_PreAbandonGpuContext_SK_CPU_LIMIT_SSE41'),
Eric Borendd8b1fc2018-05-18 09:54:02 -04001032 'Test-Ubuntu17-Clang-Golo-GPU-QuadroP400-x86_64-Debug-All-DDL1',
1033 'Test-Ubuntu17-Clang-Golo-GPU-QuadroP400-x86_64-Debug-All-DDL3',
Ben Wagnerb2fd61a2017-10-23 16:01:44 -04001034 'Test-Win10-Clang-AlphaR2-GPU-RadeonR9M470X-x86_64-Debug-All-ANGLE',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001035 ('Test-Win10-Clang-Golo-GPU-QuadroP400-x86_64-Release-All'
Ben Wagner6e0a6b32017-09-26 14:11:15 -04001036 '-ReleaseAndAbandonGpuContext'),
Ben Wagnerfd66b5f2017-11-15 15:16:27 -05001037 'Test-Win10-Clang-NUC5i7RYH-CPU-AVX2-x86_64-Debug-All-NativeFonts_GDI',
Ben Wagnerb2fd61a2017-10-23 16:01:44 -04001038 'Test-Win10-Clang-NUC6i5SYK-GPU-IntelIris540-x86_64-Debug-All-ANGLE',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001039 'Test-Win10-Clang-NUC6i5SYK-GPU-IntelIris540-x86_64-Debug-All-Vulkan',
Ben Wagnerb2fd61a2017-10-23 16:01:44 -04001040 'Test-Win10-Clang-NUCD34010WYKH-GPU-IntelHD4400-x86_64-Release-All-ANGLE',
Greg Daniele5b7e6d2018-06-12 10:52:59 -04001041 'Test-Win10-Clang-ShuttleA-GPU-GTX660-x86_64-Release-All-Vulkan',
Ben Wagnerb2fd61a2017-10-23 16:01:44 -04001042 'Test-Win10-Clang-ShuttleC-GPU-GTX960-x86_64-Debug-All-ANGLE',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001043 'Test-Win10-Clang-ZBOX-GPU-GTX1070-x86_64-Debug-All-Vulkan',
Ben Wagner78935c22017-11-15 13:21:03 -05001044 'Test-Win2016-Clang-GCE-CPU-AVX2-x86_64-Debug-All-FAAA',
1045 'Test-Win2016-Clang-GCE-CPU-AVX2-x86_64-Debug-All-FDAA',
1046 'Test-Win2016-Clang-GCE-CPU-AVX2-x86_64-Debug-All-FSAA',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001047 'Test-iOS-Clang-iPadPro-GPU-GT7800-arm64-Release-All',
Eric Borenf9aa9e52017-04-10 09:56:10 -04001048]
borenet1ed2ae42016-07-26 11:52:17 -07001049
1050
1051def GenTests(api):
Eric Borenf9aa9e52017-04-10 09:56:10 -04001052 for builder in TEST_BUILDERS:
1053 test = (
1054 api.test(builder) +
1055 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001056 buildbucket_build_id='123454321',
Eric Borenf9aa9e52017-04-10 09:56:10 -04001057 revision='abc123',
1058 path_config='kitchen',
1059 swarm_out_dir='[SWARM_OUT_DIR]') +
1060 api.path.exists(
1061 api.path['start_dir'].join('skia'),
1062 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1063 'skimage', 'VERSION'),
1064 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1065 'skp', 'VERSION'),
1066 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1067 'svg', 'VERSION'),
1068 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
Ben Wagnerf835c222017-04-30 11:14:51 -04001069 ) +
1070 api.step_data('get swarming bot id',
1071 stdout=api.raw_io.output('skia-bot-123')) +
1072 api.step_data('get swarming task id',
1073 stdout=api.raw_io.output('123456'))
Eric Borenf9aa9e52017-04-10 09:56:10 -04001074 )
Eric Borenf9aa9e52017-04-10 09:56:10 -04001075 if 'Win' in builder:
1076 test += api.platform('win', 64)
Eric Boren4c7754c2017-04-10 08:19:10 -04001077
Kevin Lubick2dafbd72017-08-31 10:39:05 -04001078 if 'Chromecast' in builder:
1079 test += api.step_data(
1080 'read chromecast ip',
1081 stdout=api.raw_io.output('192.168.1.2:5555'))
1082
Eric Borenf9aa9e52017-04-10 09:56:10 -04001083 if 'ChromeOS' in builder:
1084 test += api.step_data(
1085 'read chromeos ip',
1086 stdout=api.raw_io.output('{"user_ip":"foo@127.0.0.1"}'))
Eric Boren4c7754c2017-04-10 08:19:10 -04001087
Eric Borenf9aa9e52017-04-10 09:56:10 -04001088 yield test
Eric Boren4c7754c2017-04-10 08:19:10 -04001089
Eric Borendd8b1fc2018-05-18 09:54:02 -04001090 builder = 'Test-Win8-Clang-Golo-CPU-AVX-x86-Debug-All'
Kevin Lubickfe079d42017-04-12 08:31:48 -04001091 yield (
1092 api.test('trybot') +
1093 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001094 buildbucket_build_id='123454321',
Kevin Lubickfe079d42017-04-12 08:31:48 -04001095 revision='abc123',
1096 path_config='kitchen',
1097 swarm_out_dir='[SWARM_OUT_DIR]') +
1098 api.properties(patch_storage='gerrit') +
1099 api.properties.tryserver(
1100 buildername=builder,
1101 gerrit_project='skia',
1102 gerrit_url='https://skia-review.googlesource.com/',
1103 )+
1104 api.path.exists(
1105 api.path['start_dir'].join('skia'),
1106 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1107 'skimage', 'VERSION'),
1108 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1109 'skp', 'VERSION'),
1110 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1111 'svg', 'VERSION'),
1112 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
1113 )
1114 )
1115
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001116 builder = 'Test-Debian9-GCC-GCE-CPU-AVX2-x86_64-Debug-All'
borenet1ed2ae42016-07-26 11:52:17 -07001117 yield (
Eric Boren4c7754c2017-04-10 08:19:10 -04001118 api.test('failed_dm') +
1119 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001120 buildbucket_build_id='123454321',
borenet1ed2ae42016-07-26 11:52:17 -07001121 revision='abc123',
1122 path_config='kitchen',
1123 swarm_out_dir='[SWARM_OUT_DIR]') +
1124 api.path.exists(
Ravi Mistry9bcca6a2016-11-21 16:06:19 -05001125 api.path['start_dir'].join('skia'),
1126 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
Eric Boren4c7754c2017-04-10 08:19:10 -04001127 'skimage', 'VERSION'),
Ravi Mistry9bcca6a2016-11-21 16:06:19 -05001128 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
Eric Boren4c7754c2017-04-10 08:19:10 -04001129 'skp', 'VERSION'),
Ravi Mistry9bcca6a2016-11-21 16:06:19 -05001130 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
Eric Boren4c7754c2017-04-10 08:19:10 -04001131 'svg', 'VERSION'),
Ravi Mistry9bcca6a2016-11-21 16:06:19 -05001132 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
Eric Boren4c7754c2017-04-10 08:19:10 -04001133 ) +
1134 api.step_data('symbolized dm', retcode=1)
1135 )
1136
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001137 builder = 'Test-Android-Clang-Nexus7-GPU-Tegra3-arm-Release-All-Android'
Eric Boren4c7754c2017-04-10 08:19:10 -04001138 yield (
1139 api.test('failed_get_hashes') +
1140 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001141 buildbucket_build_id='123454321',
Eric Boren4c7754c2017-04-10 08:19:10 -04001142 revision='abc123',
1143 path_config='kitchen',
1144 swarm_out_dir='[SWARM_OUT_DIR]') +
1145 api.path.exists(
1146 api.path['start_dir'].join('skia'),
1147 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1148 'skimage', 'VERSION'),
1149 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1150 'skp', 'VERSION'),
1151 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1152 'svg', 'VERSION'),
1153 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
1154 ) +
1155 api.step_data('get uninteresting hashes', retcode=1)
1156 )
1157
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001158 builder = ('Test-Android-Clang-NexusPlayer-CPU-Moorefield-x86-'
1159 'Debug-All-Android')
Eric Boren4c7754c2017-04-10 08:19:10 -04001160 yield (
1161 api.test('failed_push') +
1162 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001163 buildbucket_build_id='123454321',
Eric Boren4c7754c2017-04-10 08:19:10 -04001164 revision='abc123',
1165 path_config='kitchen',
1166 swarm_out_dir='[SWARM_OUT_DIR]') +
1167 api.path.exists(
1168 api.path['start_dir'].join('skia'),
1169 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1170 'skimage', 'VERSION'),
1171 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1172 'skp', 'VERSION'),
1173 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1174 'svg', 'VERSION'),
1175 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
1176 ) +
Kevin Lubickc6f74ca2018-03-01 09:21:38 -05001177 api.step_data('get swarming bot id',
1178 stdout=api.raw_io.output('build123-m2--device5')) +
Eric Boren4c7754c2017-04-10 08:19:10 -04001179 api.step_data('push [START_DIR]/skia/resources/* '+
1180 '/sdcard/revenge_of_the_skiabot/resources', retcode=1)
1181 )
1182
Ben Wagner1a2b3f02017-10-26 15:13:38 -04001183 builder = 'Test-Android-Clang-Nexus7-GPU-Tegra3-arm-Debug-All-Android'
Eric Borencd0a98c2018-06-20 13:23:16 -04001184 retry_step_name = 'adb pull.pull /sdcard/revenge_of_the_skiabot/dm_out'
Eric Boren4c7754c2017-04-10 08:19:10 -04001185 yield (
1186 api.test('failed_pull') +
1187 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001188 buildbucket_build_id='123454321',
Eric Boren4c7754c2017-04-10 08:19:10 -04001189 revision='abc123',
1190 path_config='kitchen',
1191 swarm_out_dir='[SWARM_OUT_DIR]') +
1192 api.path.exists(
1193 api.path['start_dir'].join('skia'),
1194 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1195 'skimage', 'VERSION'),
1196 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1197 'skp', 'VERSION'),
1198 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1199 'svg', 'VERSION'),
1200 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
1201 ) +
1202 api.step_data('dm', retcode=1) +
Ben Wagnere7e6e222018-05-25 09:47:37 -04001203 api.step_data(retry_step_name, retcode=1) +
1204 api.step_data(retry_step_name + ' (attempt 2)', retcode=1) +
1205 api.step_data(retry_step_name + ' (attempt 3)', retcode=1)
borenetbfa5b452016-10-19 10:13:32 -07001206 )
Eric Boren053d7a42017-09-15 08:35:31 -04001207
1208 yield (
Kevin Lubick451b7432017-09-15 14:44:12 -04001209 api.test('internal_bot_1') +
Eric Boren053d7a42017-09-15 08:35:31 -04001210 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001211 buildbucket_build_id='123454321',
Eric Boren053d7a42017-09-15 08:35:31 -04001212 revision='abc123',
1213 path_config='kitchen',
1214 swarm_out_dir='[SWARM_OUT_DIR]',
Eric Borenfb20ac42018-04-24 14:48:19 -04001215 internal_hardware_label='1') +
Eric Boren053d7a42017-09-15 08:35:31 -04001216 api.path.exists(
1217 api.path['start_dir'].join('skia'),
1218 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1219 'skimage', 'VERSION'),
1220 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1221 'skp', 'VERSION'),
1222 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1223 'svg', 'VERSION'),
1224 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
1225 )
1226 )
Kevin Lubickbd27d1d2017-10-13 08:01:49 -04001227
1228 yield (
1229 api.test('internal_bot_2') +
1230 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001231 buildbucket_build_id='123454321',
Kevin Lubickbd27d1d2017-10-13 08:01:49 -04001232 revision='abc123',
1233 path_config='kitchen',
1234 swarm_out_dir='[SWARM_OUT_DIR]',
Eric Borenfb20ac42018-04-24 14:48:19 -04001235 internal_hardware_label='2') +
Kevin Lubickbd27d1d2017-10-13 08:01:49 -04001236 api.path.exists(
1237 api.path['start_dir'].join('skia'),
1238 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1239 'skimage', 'VERSION'),
1240 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1241 'skp', 'VERSION'),
1242 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1243 'svg', 'VERSION'),
1244 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
Kevin Lubickd1bbd5f2017-11-21 16:47:16 -05001245 )
Kevin Lubickbd27d1d2017-10-13 08:01:49 -04001246 )