blob: 811282b57bedbba0ae725a6c98143519ec024173 [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 Wagner32fa5102017-08-10 21:25:55 -040086 if api.vars.builder_cfg.get('cpu_or_gpu') == 'CPU':
87 args.append('--nogpu')
88
89 # These are the canonical configs that we would ideally run on all bots. We
90 # may opt out or substitute some below for specific bots
Yuqian Liea513932018-04-06 16:59:04 +000091 configs.extend(['8888', 'srgb', 'pdf'])
Ben Wagner32fa5102017-08-10 21:25:55 -040092
93 # Runs out of memory on Android bots. Everyone else seems fine.
94 if 'Android' in bot:
95 configs.remove('pdf')
96
97 if '-GCE-' in bot:
Mike Klein515bda62018-01-09 11:21:58 -050098 configs.extend(['g8'])
Ben Wagner32fa5102017-08-10 21:25:55 -040099 configs.extend(['565'])
100 configs.extend(['f16'])
Ben Wagner32fa5102017-08-10 21:25:55 -0400101 configs.extend(['lite-8888']) # Experimental display list.
Mike Kleinb7ea3da2017-10-31 17:42:08 +0000102 configs.extend(['gbr-8888'])
Ben Wagner32fa5102017-08-10 21:25:55 -0400103
Ben Wagner0ecc2b7e2017-11-09 22:10:44 -0500104 configs.extend(mode + '-8888' for mode in ['serialize', 'tiles_rt', 'pic'])
Ben Wagner32fa5102017-08-10 21:25:55 -0400105
Ben Wagner32fa5102017-08-10 21:25:55 -0400106 # This bot only differs from vanilla CPU bots in 8888 config.
107 if 'SK_FORCE_RASTER_PIPELINE_BLITTER' in bot:
108 configs = ['8888', 'srgb']
109
Ben Wagner077710b2017-10-26 13:12:39 -0400110 if 'FSAA' in bot or 'FAAA' in bot or 'FDAA' in bot:
111 # Scan converters shouldn't really be sensitive to different color
112 # configurations.
113 configs = ['8888', 'tiles_rt-8888']
114
Mike Klein9a01a212017-11-03 12:19:54 -0400115 if 'NativeFonts' in bot:
116 configs = ['8888']
117
Kevin Lubick608c35a2018-01-16 16:15:57 -0500118 # Just do the basic config on Chromecast to avoid OOM.
119 if 'Chromecast' in bot:
Kevin Lubick8baaef92018-01-17 10:02:17 -0500120 configs = ['8888']
Kevin Lubick608c35a2018-01-16 16:15:57 -0500121
Ben Wagner32fa5102017-08-10 21:25:55 -0400122 elif api.vars.builder_cfg.get('cpu_or_gpu') == 'GPU':
123 args.append('--nocpu')
124
125 # Add in either gles or gl configs to the canonical set based on OS
126 sample_count = '8'
127 gl_prefix = 'gl'
128 if 'Android' in bot or 'iOS' in bot:
129 sample_count = '4'
130 # We want to test the OpenGL config not the GLES config on the Shield
131 if 'NVIDIA_Shield' not in bot:
132 gl_prefix = 'gles'
133 elif 'Intel' in bot:
134 sample_count = ''
135 elif 'ChromeOS' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400136 gl_prefix = 'gles'
Eric Boren4c7754c2017-04-10 08:19:10 -0400137
Jim Van Verth1b6c75c2018-02-16 09:49:08 -0500138 if 'NativeFonts' in bot:
139 configs.append(gl_prefix)
140 else:
Jim Van Verth240516f2018-02-15 09:55:24 -0500141 configs.extend([gl_prefix, gl_prefix + 'dft', gl_prefix + 'srgb'])
142 if sample_count is not '':
143 configs.append(gl_prefix + 'msaa' + sample_count)
Eric Boren4c7754c2017-04-10 08:19:10 -0400144
Ben Wagner32fa5102017-08-10 21:25:55 -0400145 # The NP produces a long error stream when we run with MSAA. The Tegra3 just
146 # doesn't support it.
147 if ('NexusPlayer' in bot or
148 'Tegra3' in bot or
149 # We aren't interested in fixing msaa bugs on current iOS devices.
150 'iPad4' in bot or
151 'iPadPro' in bot or
152 'iPhone6' in bot or
153 'iPhone7' in bot or
154 # skia:5792
155 'IntelHD530' in bot or
156 'IntelIris540' in bot):
157 configs = [x for x in configs if 'msaa' not in x]
Eric Boren4c7754c2017-04-10 08:19:10 -0400158
Ben Wagner32fa5102017-08-10 21:25:55 -0400159 # The NP produces different images for dft on every run.
160 if 'NexusPlayer' in bot:
161 configs = [x for x in configs if 'dft' not in x]
Eric Boren4c7754c2017-04-10 08:19:10 -0400162
Ben Wagner32fa5102017-08-10 21:25:55 -0400163 # We want to test both the OpenGL config and the GLES config on Linux Intel:
164 # GL is used by Chrome, GLES is used by ChromeOS.
Brian Osmanf9810662017-08-30 10:02:10 -0400165 # Also do the Ganesh threading verification test (render with and without
166 # worker threads, using only the SW path renderer, and compare the results).
Ben Wagner32fa5102017-08-10 21:25:55 -0400167 if 'Intel' in bot and api.vars.is_linux:
Brian Osmanf9810662017-08-30 10:02:10 -0400168 configs.extend(['gles', 'glesdft', 'glessrgb', 'gltestthreading'])
169 # skbug.com/6333, skbug.com/6419, skbug.com/6702
170 blacklist('gltestthreading gm _ lcdblendmodes')
171 blacklist('gltestthreading gm _ lcdoverlap')
Brian Osmanbef21ba2017-08-31 13:49:05 -0400172 blacklist('gltestthreading gm _ textbloblooper')
Brian Osman1e75f2a2017-09-07 09:30:44 -0400173 # All of these GMs are flaky, too:
174 blacklist('gltestthreading gm _ bleed_alpha_bmp')
175 blacklist('gltestthreading gm _ bleed_alpha_bmp_shader')
176 blacklist('gltestthreading gm _ bleed_alpha_image')
177 blacklist('gltestthreading gm _ bleed_alpha_image_shader')
178 blacklist('gltestthreading gm _ savelayer_with_backdrop')
179 blacklist('gltestthreading gm _ persp_shaders_bw')
Brian Salomon5c6ac642017-12-19 11:09:32 -0500180 blacklist('gltestthreading gm _ dftext_blob_persp')
Brian Salomon19eaf2d2018-03-19 16:06:44 -0400181 # skbug.com/7523 - Flaky on various GPUs
182 blacklist('gltestthreading gm _ orientation')
Mike Klein97627d42017-05-11 13:12:48 -0400183
Ben Wagner32fa5102017-08-10 21:25:55 -0400184 # The following devices do not support glessrgb.
185 if 'glessrgb' in configs:
186 if ('IntelHD405' in bot or
Ben Wagnerab10c822017-12-19 15:14:12 -0500187 'IntelIris640' in bot or
Ben Wagner32fa5102017-08-10 21:25:55 -0400188 'IntelBayTrail' in bot or
189 'IntelHD2000' in bot or
190 'AndroidOne' in bot or
191 'Nexus7' in bot or
192 'NexusPlayer' in bot):
193 configs.remove('glessrgb')
194
Brian Osman09eba3c2017-11-06 14:39:18 -0500195 # Test SkColorSpaceXformCanvas on a few bots
196 if 'GTX1070' in bot:
197 configs.append('gbr-gl')
198
Ben Wagner32fa5102017-08-10 21:25:55 -0400199 # CommandBuffer bot *only* runs the command_buffer config.
200 if 'CommandBuffer' in bot:
201 configs = ['commandbuffer']
202
203 # ANGLE bot *only* runs the angle configs
204 if 'ANGLE' in bot:
205 configs = ['angle_d3d11_es2',
206 'angle_d3d9_es2',
207 'angle_gl_es2',
208 'angle_d3d11_es3']
209 if sample_count is not '':
210 configs.append('angle_d3d11_es2_msaa' + sample_count)
211 configs.append('angle_d3d11_es3_msaa' + sample_count)
Ben Wagner7464a262018-04-19 15:49:18 -0400212 if 'GTX' in bot or 'Quadro' in bot:
213 # See skia:7823 and chromium:693090.
214 configs.append('angle_gl_es3')
215 if sample_count is not '':
216 configs.append('angle_gl_es2_msaa' + sample_count)
217 configs.append('angle_gl_es3_msaa' + sample_count)
Ben Wagner32fa5102017-08-10 21:25:55 -0400218
219 # Vulkan bot *only* runs the vk config.
220 if 'Vulkan' in bot:
221 configs = ['vk']
222
Brian Osman10fc6fd2018-03-02 11:01:10 -0500223 # Test 1010102 on our Linux/NVIDIA bots
224 if 'QuadroP400' in bot and api.vars.is_linux:
225 if 'Vulkan' in bot:
226 configs.append('vk1010102')
Brian Osman419abf32018-03-02 14:56:15 -0500227 # Decoding transparent images to 1010102 just looks bad
228 blacklist('vk1010102 image _ _')
Brian Osman10fc6fd2018-03-02 11:01:10 -0500229 else:
230 configs.append('gl1010102')
Brian Osman419abf32018-03-02 14:56:15 -0500231 # Decoding transparent images to 1010102 just looks bad
232 blacklist('gl1010102 image _ _')
Brian Osman10fc6fd2018-03-02 11:01:10 -0500233
Ben Wagner32fa5102017-08-10 21:25:55 -0400234 if 'ChromeOS' in bot:
235 # Just run GLES for now - maybe add gles_msaa4 in the future
236 configs = ['gles']
237
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400238 if 'Chromecast' in bot:
Kevin Lubick608c35a2018-01-16 16:15:57 -0500239 configs = ['gles']
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400240
Ben Wagner32fa5102017-08-10 21:25:55 -0400241 # Test coverage counting path renderer.
242 if 'CCPR' in bot:
243 configs = [c for c in configs if c == 'gl' or c == 'gles']
Chris Dalton7a0ebfc2017-10-13 12:35:50 -0600244 args.extend(['--pr', 'ccpr', '--cachePathMasks', 'false'])
Chris Dalton97598a52017-07-18 10:49:07 -0600245
Robert Phillips36150be2018-03-15 13:40:07 -0400246 # DDL is a GPU-only feature
247 if 'DDL1' in bot:
Robert Phillips69eb8352018-04-11 13:45:08 -0400248 # This bot generates gl and vk comparison images for the large skps
249 configs = [c for c in configs if c == 'gl' or c == 'vk']
Robert Phillipsb7fafba2018-03-27 20:49:23 +0000250 args.extend(['--skpViewportSize', "2048"])
Robert Phillips371001b2018-04-11 14:43:17 -0400251 args.extend(['--pr', '~ccpr', '~small'])
Robert Phillips36150be2018-03-15 13:40:07 -0400252 if 'DDL3' in bot:
Robert Phillips69eb8352018-04-11 13:45:08 -0400253 # This bot generates the ddl-gl and ddl-vk images for the
254 # large skps and the gms
255 configs = ['ddl-' + c for c in configs if c == 'gl' or c == 'vk']
Robert Phillipsb7fafba2018-03-27 20:49:23 +0000256 args.extend(['--skpViewportSize', "2048"])
Robert Phillipse43ff782018-04-20 11:59:59 -0400257 args.extend(['--gpuThreads', "0"])
Robert Phillips36150be2018-03-15 13:40:07 -0400258
Kevin Lubick32f318b2017-10-17 13:40:52 -0400259 tf = api.vars.builder_cfg.get('test_filter')
260 if 'All' != tf:
261 # Expected format: shard_XX_YY
262 parts = tf.split('_')
263 if len(parts) == 3:
264 args.extend(['--shard', parts[1]])
265 args.extend(['--shards', parts[2]])
Eric Boren9599b0f2018-04-17 15:55:57 -0400266 else: # pragma: nocover
267 raise Exception('Invalid task name - bad shards: %s' % tf)
Kevin Lubick32f318b2017-10-17 13:40:52 -0400268
Chris Dalton80ace822017-07-20 10:54:04 -0600269 args.append('--config')
270 args.extend(configs)
271
Eric Boren4c7754c2017-04-10 08:19:10 -0400272 # Run tests, gms, and image decoding tests everywhere.
Robert Phillips36150be2018-03-15 13:40:07 -0400273 args.extend('--src tests gm image colorImage svg skp'.split(' '))
Ben Wagner0ecc2b7e2017-11-09 22:10:44 -0500274 if api.vars.builder_cfg.get('cpu_or_gpu') == 'GPU':
Chris Dalton7c304ba2017-09-07 11:57:16 -0600275 # Don't run the 'svgparse_*' svgs on GPU.
276 blacklist('_ svg _ svgparse_')
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400277 elif bot == 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All-ASAN':
Chris Dalton7c304ba2017-09-07 11:57:16 -0600278 # Only run the CPU SVGs on 8888.
279 blacklist('~8888 svg _ _')
280 else:
281 # On CPU SVGs we only care about parsing. Only run them on the above bot.
282 args.remove('svg')
Eric Boren4c7754c2017-04-10 08:19:10 -0400283
Mike Klein97627d42017-05-11 13:12:48 -0400284 # Eventually I'd like these to pass, but for now just skip 'em.
285 if 'SK_FORCE_RASTER_PIPELINE_BLITTER' in bot:
286 args.remove('tests')
287
Mike Klein9a01a212017-11-03 12:19:54 -0400288 if 'NativeFonts' in bot: # images won't exercise native font integration :)
289 args.remove('image')
290 args.remove('colorImage')
291
Robert Phillips5f3ce3e2018-04-12 11:09:40 -0400292 if 'DDL' in bot:
293 # The DDL bots just render the large skps and the gms
Robert Phillipsb7fafba2018-03-27 20:49:23 +0000294 args.remove('tests')
295 args.remove('image')
296 args.remove('colorImage')
297 args.remove('svg')
Robert Phillips36150be2018-03-15 13:40:07 -0400298 else:
Robert Phillipsb7fafba2018-03-27 20:49:23 +0000299 # Currently, only the DDL bots render skps
Robert Phillips36150be2018-03-15 13:40:07 -0400300 args.remove('skp')
301
Eric Boren4c7754c2017-04-10 08:19:10 -0400302 # TODO: ???
303 blacklist('f16 _ _ dstreadshuffle')
304 blacklist('glsrgb image _ _')
305 blacklist('glessrgb image _ _')
306
Eric Boren4c7754c2017-04-10 08:19:10 -0400307 # Not any point to running these.
Mike Kleinb7ea3da2017-10-31 17:42:08 +0000308 blacklist('gbr-8888 image _ _')
309 blacklist('gbr-8888 colorImage _ _')
Eric Boren4c7754c2017-04-10 08:19:10 -0400310
Mike Klein515bda62018-01-09 11:21:58 -0500311 # --src image --config g8 means "decode into Gray8", which isn't supported.
312 blacklist('g8 image _ _')
313 blacklist('g8 colorImage _ _')
314
Eric Boren4c7754c2017-04-10 08:19:10 -0400315 if 'Valgrind' in bot:
316 # These take 18+ hours to run.
317 blacklist('pdf gm _ fontmgr_iter')
318 blacklist('pdf _ _ PANO_20121023_214540.jpg')
319 blacklist('pdf skp _ worldjournal')
320 blacklist('pdf skp _ desk_baidu.skp')
321 blacklist('pdf skp _ desk_wikipedia.skp')
322 blacklist('_ svg _ _')
323
324 if 'iOS' in bot:
325 blacklist(gl_prefix + ' skp _ _')
326
327 if 'Mac' in bot or 'iOS' in bot:
328 # CG fails on questionable bmps
329 blacklist('_ image gen_platf rgba32abf.bmp')
330 blacklist('_ image gen_platf rgb24prof.bmp')
331 blacklist('_ image gen_platf rgb24lprof.bmp')
332 blacklist('_ image gen_platf 8bpp-pixeldata-cropped.bmp')
333 blacklist('_ image gen_platf 4bpp-pixeldata-cropped.bmp')
334 blacklist('_ image gen_platf 32bpp-pixeldata-cropped.bmp')
335 blacklist('_ image gen_platf 24bpp-pixeldata-cropped.bmp')
336
337 # CG has unpredictable behavior on this questionable gif
338 # It's probably using uninitialized memory
339 blacklist('_ image gen_platf frame_larger_than_image.gif')
340
341 # CG has unpredictable behavior on incomplete pngs
342 # skbug.com/5774
343 blacklist('_ image gen_platf inc0.png')
344 blacklist('_ image gen_platf inc1.png')
345 blacklist('_ image gen_platf inc2.png')
346 blacklist('_ image gen_platf inc3.png')
347 blacklist('_ image gen_platf inc4.png')
348 blacklist('_ image gen_platf inc5.png')
349 blacklist('_ image gen_platf inc6.png')
350 blacklist('_ image gen_platf inc7.png')
351 blacklist('_ image gen_platf inc8.png')
352 blacklist('_ image gen_platf inc9.png')
353 blacklist('_ image gen_platf inc10.png')
354 blacklist('_ image gen_platf inc11.png')
355 blacklist('_ image gen_platf inc12.png')
356 blacklist('_ image gen_platf inc13.png')
357 blacklist('_ image gen_platf inc14.png')
358
Ben Wagner3f679142017-11-27 13:02:25 -0500359 # These images fail after Mac 10.13.1 upgrade.
360 blacklist('_ image gen_platf incInterlaced.gif')
361 blacklist('_ image gen_platf inc1.gif')
362 blacklist('_ image gen_platf inc0.gif')
363 blacklist('_ image gen_platf butterfly.gif')
364
Matt Sarett6c50a2e2017-05-01 09:13:05 -0400365 # WIC fails on questionable bmps
Eric Boren4c7754c2017-04-10 08:19:10 -0400366 if 'Win' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400367 blacklist('_ image gen_platf pal8os2v2.bmp')
368 blacklist('_ image gen_platf pal8os2v2-16.bmp')
369 blacklist('_ image gen_platf rgba32abf.bmp')
370 blacklist('_ image gen_platf rgb24prof.bmp')
371 blacklist('_ image gen_platf rgb24lprof.bmp')
372 blacklist('_ image gen_platf 8bpp-pixeldata-cropped.bmp')
373 blacklist('_ image gen_platf 4bpp-pixeldata-cropped.bmp')
374 blacklist('_ image gen_platf 32bpp-pixeldata-cropped.bmp')
375 blacklist('_ image gen_platf 24bpp-pixeldata-cropped.bmp')
Eric Boren4c7754c2017-04-10 08:19:10 -0400376 if 'x86_64' in bot and 'CPU' in bot:
377 # This GM triggers a SkSmallAllocator assert.
378 blacklist('_ gm _ composeshader_bitmap')
379
Matt Sarett6c50a2e2017-05-01 09:13:05 -0400380 if 'Win' in bot or 'Mac' in bot:
Leon Scroggins III3a3cf432017-08-18 13:08:16 -0400381 # WIC and CG fail on arithmetic jpegs
Matt Sarett6c50a2e2017-05-01 09:13:05 -0400382 blacklist('_ image gen_platf testimgari.jpg')
Leon Scroggins III3a3cf432017-08-18 13:08:16 -0400383 # More questionable bmps that fail on Mac, too. skbug.com/6984
384 blacklist('_ image gen_platf rle8-height-negative.bmp')
385 blacklist('_ image gen_platf rle4-height-negative.bmp')
Matt Sarett6c50a2e2017-05-01 09:13:05 -0400386
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400387 if 'Android' in bot or 'iOS' in bot or 'Chromecast' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400388 # This test crashes the N9 (perhaps because of large malloc/frees). It also
389 # is fairly slow and not platform-specific. So we just disable it on all of
390 # Android and iOS. skia:5438
391 blacklist('_ test _ GrShape')
392
Kevin Lubick451b7432017-09-15 14:44:12 -0400393 if api.vars.internal_hardware_label == 1:
394 # skia:7046
395 blacklist('_ test _ WritePixelsNonTexture_Gpu')
Brian Salomon3d86a192018-02-27 16:46:11 -0500396 blacklist('_ test _ WritePixelsNonTextureMSAA_Gpu')
Kevin Lubick451b7432017-09-15 14:44:12 -0400397 blacklist('_ test _ WritePixels_Gpu')
Brian Salomon3d86a192018-02-27 16:46:11 -0500398 blacklist('_ test _ WritePixelsMSAA_Gpu')
Kevin Lubick451b7432017-09-15 14:44:12 -0400399 blacklist('_ test _ GrSurfaceRenderability')
400 blacklist('_ test _ ES2BlendWithNoTexture')
401
Kevin Lubickbd27d1d2017-10-13 08:01:49 -0400402 if api.vars.internal_hardware_label == 2:
403 # skia:7160
404 blacklist('_ test _ SRGBReadWritePixels')
405 blacklist('_ test _ SRGBMipMap')
406
Kevin Lubick451b7432017-09-15 14:44:12 -0400407
Eric Boren4c7754c2017-04-10 08:19:10 -0400408 # skia:4095
Mike Reedfb499092017-06-26 13:53:32 +0000409 bad_serialize_gms = ['bleed_image',
Eric Boren4c7754c2017-04-10 08:19:10 -0400410 'c_gms',
411 'colortype',
412 'colortype_xfermodes',
413 'drawfilter',
414 'fontmgr_bounds_0.75_0',
415 'fontmgr_bounds_1_-0.25',
416 'fontmgr_bounds',
417 'fontmgr_match',
418 'fontmgr_iter',
419 'imagemasksubset']
420
421 # skia:5589
422 bad_serialize_gms.extend(['bitmapfilters',
423 'bitmapshaders',
424 'bleed',
425 'bleed_alpha_bmp',
426 'bleed_alpha_bmp_shader',
427 'convex_poly_clip',
428 'extractalpha',
429 'filterbitmap_checkerboard_32_32_g8',
430 'filterbitmap_image_mandrill_64',
431 'shadows',
432 'simpleaaclip_aaclip'])
433 # skia:5595
434 bad_serialize_gms.extend(['composeshader_bitmap',
435 'scaled_tilemodes_npot',
436 'scaled_tilemodes'])
437
438 # skia:5778
439 bad_serialize_gms.append('typefacerendering_pfaMac')
440 # skia:5942
441 bad_serialize_gms.append('parsedpaths')
442
443 # these use a custom image generator which doesn't serialize
444 bad_serialize_gms.append('ImageGeneratorExternal_rect')
445 bad_serialize_gms.append('ImageGeneratorExternal_shader')
446
447 # skia:6189
448 bad_serialize_gms.append('shadow_utils')
449
Matt Sarett9f3dcb32017-05-04 08:53:32 -0400450 # Not expected to round trip encoding/decoding.
Mike Klein0b78a692017-10-31 17:31:17 -0400451 bad_serialize_gms.append('all_bitmap_configs')
Matt Sarett9f3dcb32017-05-04 08:53:32 -0400452 bad_serialize_gms.append('makecolorspace')
453
Brian Salomon7072e222017-11-29 15:12:45 -0500454 # This GM forces a path to be convex. That property doesn't survive
455 # serialization.
456 bad_serialize_gms.append('analytic_antialias_convex')
457
Eric Boren4c7754c2017-04-10 08:19:10 -0400458 for test in bad_serialize_gms:
459 blacklist(['serialize-8888', 'gm', '_', test])
460
461 if 'Mac' not in bot:
462 for test in ['bleed_alpha_image', 'bleed_alpha_image_shader']:
463 blacklist(['serialize-8888', 'gm', '_', test])
464 # It looks like we skip these only for out-of-memory concerns.
Kevin Lubick608c35a2018-01-16 16:15:57 -0500465 if 'Win' in bot or 'Android' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400466 for test in ['verylargebitmap', 'verylarge_picture_image']:
467 blacklist(['serialize-8888', 'gm', '_', test])
Ben Wagner2e4e73f2017-09-08 15:21:44 -0400468 if 'Mac' in bot and 'CPU' in bot:
Ben Wagner38db79f2017-08-23 15:05:50 -0400469 # skia:6992
Ben Wagner6f98bc62017-09-05 16:02:28 -0400470 blacklist(['pic-8888', 'gm', '_', 'encode-platform'])
Ben Wagner38db79f2017-08-23 15:05:50 -0400471 blacklist(['serialize-8888', 'gm', '_', 'encode-platform'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400472
473 # skia:4769
474 for test in ['drawfilter']:
Eric Boren4c7754c2017-04-10 08:19:10 -0400475 blacklist([ 'pic-8888', 'gm', '_', test])
Eric Boren4c7754c2017-04-10 08:19:10 -0400476 blacklist([ 'lite-8888', 'gm', '_', test])
477 # skia:4703
478 for test in ['image-cacherator-from-picture',
479 'image-cacherator-from-raster',
480 'image-cacherator-from-ctable']:
Eric Boren4c7754c2017-04-10 08:19:10 -0400481 blacklist([ 'pic-8888', 'gm', '_', test])
Eric Boren4c7754c2017-04-10 08:19:10 -0400482 blacklist(['serialize-8888', 'gm', '_', test])
483
484 # GM that requires raster-backed canvas
485 for test in ['gamut', 'complexclip4_bw', 'complexclip4_aa']:
Eric Boren4c7754c2017-04-10 08:19:10 -0400486 blacklist([ 'pic-8888', 'gm', '_', test])
487 blacklist([ 'lite-8888', 'gm', '_', test])
Eric Boren4c7754c2017-04-10 08:19:10 -0400488 blacklist(['serialize-8888', 'gm', '_', test])
489
490 # GM that not support tiles_rt
491 for test in ['complexclip4_bw', 'complexclip4_aa']:
492 blacklist([ 'tiles_rt-8888', 'gm', '_', test])
493
494 # Extensions for RAW images
Ben Wagner6e0a6b32017-09-26 14:11:15 -0400495 r = ['arw', 'cr2', 'dng', 'nef', 'nrw', 'orf', 'raf', 'rw2', 'pef', 'srw',
496 'ARW', 'CR2', 'DNG', 'NEF', 'NRW', 'ORF', 'RAF', 'RW2', 'PEF', 'SRW']
Eric Boren4c7754c2017-04-10 08:19:10 -0400497
498 # skbug.com/4888
499 # Blacklist RAW images (and a few large PNGs) on GPU bots
500 # until we can resolve failures.
Matt Sarett929bfeb2017-05-22 10:34:41 -0400501 if 'GPU' in bot:
502 blacklist('_ image _ interlaced1.png')
503 blacklist('_ image _ interlaced2.png')
504 blacklist('_ image _ interlaced3.png')
505 for raw_ext in r:
506 blacklist('_ image _ .%s' % raw_ext)
507
508 # Blacklist memory intensive tests on 32-bit bots.
Ben Wagnerfd66b5f2017-11-15 15:16:27 -0500509 if ('Win8' in bot or 'Win2016' in bot) and 'x86-' in bot:
Matt Sarett929bfeb2017-05-22 10:34:41 -0400510 blacklist('_ image f16 _')
Matt Sarett112565e2017-05-22 13:45:15 -0400511 blacklist('_ image _ abnormal.wbmp')
Eric Boren4c7754c2017-04-10 08:19:10 -0400512 blacklist('_ image _ interlaced1.png')
513 blacklist('_ image _ interlaced2.png')
514 blacklist('_ image _ interlaced3.png')
515 for raw_ext in r:
516 blacklist('_ image _ .%s' % raw_ext)
517
Eric Boren4c7754c2017-04-10 08:19:10 -0400518 if 'IntelHD405' in bot and 'Ubuntu16' in bot:
519 # skia:6331
520 blacklist(['glmsaa8', 'image', 'gen_codec_gpu', 'abnormal.wbmp'])
521 blacklist(['glesmsaa4', 'image', 'gen_codec_gpu', 'abnormal.wbmp'])
522
Ben Wagner3f330692017-12-07 15:14:54 -0500523 if 'Nexus5' in bot and 'GPU' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400524 # skia:5876
525 blacklist(['_', 'gm', '_', 'encode-platform'])
526
527 if 'AndroidOne-GPU' in bot: # skia:4697, skia:4704, skia:4694, skia:4705
528 blacklist(['_', 'gm', '_', 'bigblurs'])
529 blacklist(['_', 'gm', '_', 'bleed'])
530 blacklist(['_', 'gm', '_', 'bleed_alpha_bmp'])
531 blacklist(['_', 'gm', '_', 'bleed_alpha_bmp_shader'])
532 blacklist(['_', 'gm', '_', 'bleed_alpha_image'])
533 blacklist(['_', 'gm', '_', 'bleed_alpha_image_shader'])
534 blacklist(['_', 'gm', '_', 'bleed_image'])
535 blacklist(['_', 'gm', '_', 'dropshadowimagefilter'])
536 blacklist(['_', 'gm', '_', 'filterfastbounds'])
537 blacklist([gl_prefix, 'gm', '_', 'imageblurtiled'])
538 blacklist(['_', 'gm', '_', 'imagefiltersclipped'])
539 blacklist(['_', 'gm', '_', 'imagefiltersscaled'])
540 blacklist(['_', 'gm', '_', 'imageresizetiled'])
541 blacklist(['_', 'gm', '_', 'matrixconvolution'])
542 blacklist(['_', 'gm', '_', 'strokedlines'])
543 if sample_count is not '':
544 gl_msaa_config = gl_prefix + 'msaa' + sample_count
545 blacklist([gl_msaa_config, 'gm', '_', 'imageblurtiled'])
546 blacklist([gl_msaa_config, 'gm', '_', 'imagefiltersbase'])
547
548 match = []
549 if 'Valgrind' in bot: # skia:3021
550 match.append('~Threaded')
551
Ben Wagner6c126422017-06-19 12:45:54 -0400552 if 'Valgrind' in bot and 'PreAbandonGpuContext' in bot:
553 # skia:6575
554 match.append('~multipicturedraw_')
555
Ben Wagnerbb3e7ff2017-04-28 15:28:32 -0400556 if 'CommandBuffer' in bot:
557 # https://crbug.com/697030
558 match.append('~HalfFloatAlphaTextureTest')
559
Cary Clarka7c569d2018-02-14 11:31:25 -0500560 if 'AndroidOne' in bot:
561 match.append('~WritePixels') # skia:4711
562 match.append('~PremulAlphaRoundTrip_Gpu') # skia:7501
Eric Boren4c7754c2017-04-10 08:19:10 -0400563
Kevin Lubick608c35a2018-01-16 16:15:57 -0500564 if 'Chromecast' in bot:
Kevin Lubick6ea9fdf2018-01-17 08:54:21 -0500565 if 'GPU' in bot:
566 # skia:6687
Kevin Lubick6ea9fdf2018-01-17 08:54:21 -0500567 match.append('~animated-image-blurs')
Ben Wagnerd50a1932018-03-01 09:45:18 -0500568 match.append('~blur_0.01')
569 match.append('~blur_image_filter')
Eric Boren1e00d192018-04-13 15:59:02 -0400570 match.append('~check_small_sigma_offset')
Ben Wagnerd50a1932018-03-01 09:45:18 -0500571 match.append('~imageblur2')
572 match.append('~lighting')
573 match.append('~longpathdash')
574 match.append('~matrixconvolution')
Ben Wagnerdabef9d2018-02-27 16:36:12 -0500575 match.append('~textblobmixedsizes_df')
Ben Wagner98c3c612018-02-26 14:53:30 -0500576 match.append('~textblobrandomfont')
Kevin Lubick608c35a2018-01-16 16:15:57 -0500577 # Blacklisted to avoid OOM (we see DM just end with "broken pipe")
Kevin Lubick608c35a2018-01-16 16:15:57 -0500578 match.append('~bigbitmaprect_')
Kevin Lubick608c35a2018-01-16 16:15:57 -0500579 match.append('~DrawBitmapRect')
Kevin Lubick8684c712018-02-12 15:55:57 -0500580 match.append('~drawbitmaprect')
Ben Wagnerd50a1932018-03-01 09:45:18 -0500581 match.append('~GM_animated-image-blurs')
582 match.append('~ImageFilterBlurLargeImage')
583 match.append('~savelayer_clipmask')
584 match.append('~TextBlobCache')
585 match.append('~verylarge')
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400586
Eric Boren4c7754c2017-04-10 08:19:10 -0400587 if 'GalaxyS6' in bot:
588 match.append('~SpecialImage') # skia:6338
Brian Osmaneee3c092017-06-15 13:25:10 -0400589 match.append('~skbug6653') # skia:6653
Eric Boren4c7754c2017-04-10 08:19:10 -0400590
591 if 'GalaxyS7_G930A' in bot:
592 match.append('~WritePixels') # skia:6427
593
Eric Boren4c7754c2017-04-10 08:19:10 -0400594 if 'MSAN' in bot:
595 match.extend(['~Once', '~Shared']) # Not sure what's up with these tests.
596
597 if 'TSAN' in bot:
598 match.extend(['~ReadWriteAlpha']) # Flaky on TSAN-covered on nvidia bots.
599 match.extend(['~RGBA4444TextureTest', # Flakier than they are important.
600 '~RGB565TextureTest'])
601
Ben Wagnerdba0bc82017-12-11 13:27:27 -0500602 # By default, we test with GPU threading enabled, unless specifically
603 # disabled.
604 if 'NoGPUThreads' in bot:
605 args.extend(['--gpuThreads', '0'])
606
Greg Daniela86385d2017-06-05 11:34:29 -0400607 if 'Vulkan' in bot and 'Adreno530' in bot:
608 # skia:5777
609 match.extend(['~CopySurface'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400610
Brian Salomon3d86a192018-02-27 16:46:11 -0500611 if 'Vulkan' in bot and 'Adreno' in bot:
612 # skia:7663
613 match.extend(['~WritePixelsNonTextureMSAA_Gpu'])
614 match.extend(['~WritePixelsMSAA_Gpu'])
615
Eric Boren4c7754c2017-04-10 08:19:10 -0400616 if 'Vulkan' in bot and 'NexusPlayer' in bot:
Ben Wagner407a3b72017-09-07 22:14:07 -0400617 # skia:6132
Ben Wagner0ecc2b7e2017-11-09 22:10:44 -0500618 match.append('~^tilemodes$')
Greg Daniel4c723832017-11-13 12:59:08 -0500619 match.append('~tilemodes_npot$')
Greg Daniel41886c82017-11-15 09:20:13 -0500620 match.append('~scaled_tilemodes$')
621 match.append('~emboss')
Ben Wagner0ecc2b7e2017-11-09 22:10:44 -0500622 match.append('~^bitmapfilters$')
623 match.append('~^shadertext$')
624 match.append('~^FullScreenClearWithLayers$') #skia:7191
625 match.append('~^GrDefaultPathRendererTest$') #skia:7244
626 match.append('~^GrMSAAPathRendererTest$') #skia:7244
Ben Wagner407a3b72017-09-07 22:14:07 -0400627 # skia:7018
Ben Wagner0ecc2b7e2017-11-09 22:10:44 -0500628 match.extend(['~^ClearOp$',
629 '~^ComposedImageFilterBounds_Gpu$',
630 '~^ImageEncode_Gpu$',
631 '~^ImageFilterFailAffectsTransparentBlack_Gpu$',
632 '~^ImageFilterZeroBlurSigma_Gpu$',
633 '~^ImageNewShader_GPU$',
634 '~^ImageReadPixels_Gpu$',
635 '~^ImageScalePixels_Gpu$',
636 '~^ReadWriteAlpha$',
637 '~^SpecialImage_DeferredGpu$',
638 '~^SpecialImage_Gpu$',
639 '~^SurfaceSemaphores$'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400640
Ben Wagner63457572017-12-21 10:49:58 -0500641 if 'Vulkan' in bot and api.vars.is_linux and 'IntelIris640' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400642 match.extend(['~VkHeapTests']) # skia:6245
643
Ben Wagnerb8427032017-11-18 19:04:25 -0500644 if 'Vulkan' in bot and api.vars.is_linux and 'IntelHD405' in bot:
Ben Wagner32eb5ba2017-11-20 13:46:20 -0500645 # skia:7322
Ben Wagnerb8427032017-11-18 19:04:25 -0500646 blacklist(['vk', 'gm', '_', 'skbug_257'])
647 match.append('~^ClearOp$')
Greg Danielec34a712017-12-06 12:06:26 -0500648 match.append('~^CopySurface$')
649 match.append('~^ImageNewShader_GPU$')
Ben Wagnerb8427032017-11-18 19:04:25 -0500650 match.append('~^InitialTextureClear$')
Greg Danielec34a712017-12-06 12:06:26 -0500651 match.append('~^PinnedImageTest$')
Ben Wagnerb8427032017-11-18 19:04:25 -0500652 match.append('~^ReadPixels_Gpu$')
653 match.append('~^ReadPixels_Texture$')
Greg Danielec34a712017-12-06 12:06:26 -0500654 match.append('~^SRGBReadWritePixels$')
Ben Wagnerb8427032017-11-18 19:04:25 -0500655 match.append('~^VkUploadPixelsTests$')
656 match.append('~^WritePixelsNonTexture_Gpu$')
Brian Salomon3d86a192018-02-27 16:46:11 -0500657 match.append('~^WritePixelsNonTextureMSAA_Gpu$')
Ben Wagnerb8427032017-11-18 19:04:25 -0500658 match.append('~^WritePixels_Gpu$')
Brian Salomon3d86a192018-02-27 16:46:11 -0500659 match.append('~^WritePixelsMSAA_Gpu$')
Ben Wagnerb8427032017-11-18 19:04:25 -0500660 match.append('~^skbug6653$')
661
Ben Wagnerf1debdf2017-06-13 13:37:05 -0400662 if 'Vulkan' in bot and 'IntelIris540' in bot and 'Win' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400663 # skia:6398
664 blacklist(['vk', 'gm', '_', 'aarectmodes'])
665 blacklist(['vk', 'gm', '_', 'aaxfermodes'])
Greg Daniel0eef6742017-11-20 16:05:04 -0500666 blacklist(['vk', 'gm', '_', 'dont_clip_to_layer'])
Mike Klein78932122017-11-15 13:21:40 -0500667 blacklist(['vk', 'gm', '_', 'dftext'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400668 blacklist(['vk', 'gm', '_', 'drawregionmodes'])
669 blacklist(['vk', 'gm', '_', 'filterfastbounds'])
Mike Klein0030c5e2017-11-13 13:27:48 -0500670 blacklist(['vk', 'gm', '_', 'fontmgr_iter'])
Mike Klein0030c5e2017-11-13 13:27:48 -0500671 blacklist(['vk', 'gm', '_', 'fontmgr_match'])
672 blacklist(['vk', 'gm', '_', 'fontscaler'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400673 blacklist(['vk', 'gm', '_', 'fontscalerdistortable'])
674 blacklist(['vk', 'gm', '_', 'gammagradienttext'])
Mike Klein0030c5e2017-11-13 13:27:48 -0500675 blacklist(['vk', 'gm', '_', 'gammatext'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400676 blacklist(['vk', 'gm', '_', 'gradtext'])
677 blacklist(['vk', 'gm', '_', 'hairmodes'])
678 blacklist(['vk', 'gm', '_', 'imagefilters_xfermodes'])
679 blacklist(['vk', 'gm', '_', 'imagefiltersclipped'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400680 blacklist(['vk', 'gm', '_', 'imagefiltersscaled'])
681 blacklist(['vk', 'gm', '_', 'imagefiltersstroked'])
682 blacklist(['vk', 'gm', '_', 'imagefilterstransformed'])
683 blacklist(['vk', 'gm', '_', 'imageresizetiled'])
684 blacklist(['vk', 'gm', '_', 'lcdblendmodes'])
685 blacklist(['vk', 'gm', '_', 'lcdoverlap'])
Mike Klein0030c5e2017-11-13 13:27:48 -0500686 blacklist(['vk', 'gm', '_', 'lcdtext'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400687 blacklist(['vk', 'gm', '_', 'lcdtextsize'])
688 blacklist(['vk', 'gm', '_', 'matriximagefilter'])
Mike Klein78932122017-11-15 13:21:40 -0500689 blacklist(['vk', 'gm', '_', 'mixedtextblobs'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400690 blacklist(['vk', 'gm', '_', 'resizeimagefilter'])
691 blacklist(['vk', 'gm', '_', 'rotate_imagefilter'])
692 blacklist(['vk', 'gm', '_', 'savelayer_lcdtext'])
Greg Daniel0c269d02018-02-08 15:26:49 -0500693 blacklist(['vk', 'gm', '_', 'shadermaskfilter_image'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400694 blacklist(['vk', 'gm', '_', 'srcmode'])
695 blacklist(['vk', 'gm', '_', 'surfaceprops'])
696 blacklist(['vk', 'gm', '_', 'textblobgeometrychange'])
697 blacklist(['vk', 'gm', '_', 'textbloblooper'])
698 blacklist(['vk', 'gm', '_', 'textblobmixedsizes'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400699 blacklist(['vk', 'gm', '_', 'textblobrandomfont'])
700 blacklist(['vk', 'gm', '_', 'textfilter_color'])
701 blacklist(['vk', 'gm', '_', 'textfilter_image'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400702 blacklist(['vk', 'gm', '_', 'varied_text_clipped_lcd'])
703 blacklist(['vk', 'gm', '_', 'varied_text_ignorable_clip_lcd'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400704
Ben Wagner2040ed22017-11-22 11:22:22 -0500705 if (('RadeonR9M470X' in bot or 'RadeonHD7770' in bot) and 'ANGLE' in bot):
Robert Phillips435db422017-10-04 09:38:11 -0400706 # skia:7096
707 match.append('~PinnedImageTest')
708
Eric Boren4c7754c2017-04-10 08:19:10 -0400709 if 'IntelIris540' in bot and 'ANGLE' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400710 for config in ['angle_d3d9_es2', 'angle_d3d11_es2', 'angle_gl_es2']:
Brian Salomon6e554e32017-06-23 12:08:10 -0400711 # skia:6103
Eric Boren4c7754c2017-04-10 08:19:10 -0400712 blacklist([config, 'gm', '_', 'multipicturedraw_invpathclip_simple'])
713 blacklist([config, 'gm', '_', 'multipicturedraw_noclip_simple'])
714 blacklist([config, 'gm', '_', 'multipicturedraw_pathclip_simple'])
715 blacklist([config, 'gm', '_', 'multipicturedraw_rectclip_simple'])
716 blacklist([config, 'gm', '_', 'multipicturedraw_rrectclip_simple'])
Brian Salomon6e554e32017-06-23 12:08:10 -0400717 # skia:6141
718 blacklist([config, 'gm', '_', 'discard'])
Eric Boren4c7754c2017-04-10 08:19:10 -0400719
Ben Wagnerc6b2e6b2017-10-07 18:57:25 -0400720 if ('IntelIris6100' in bot or 'IntelHD4400' in bot) and 'ANGLE' in bot:
721 # skia:6857
722 blacklist(['angle_d3d9_es2', 'gm', '_', 'lighting'])
723
Kevin Lubickc14e5a72017-08-15 13:22:19 -0400724 if 'PowerVRGX6250' in bot:
725 match.append('~gradients_view_perspective_nodither') #skia:6972
726
Mike Klein3a3fbf12018-01-30 08:08:49 -0500727 if '-arm-' in bot and 'ASAN' in bot:
728 # TODO: can we run with env allocator_may_return_null=1 instead?
729 match.append('~BadImage')
730
Ben Wagner1d8726f2018-02-02 14:47:31 -0500731 if 'Mac' in bot and 'IntelHD6000' in bot:
Ben Wagnerdf430052018-02-08 16:57:04 -0500732 # skia:7574
Ben Wagner1d8726f2018-02-02 14:47:31 -0500733 match.append('~^ProcessorCloneTest$')
734 match.append('~^GrMeshTest$')
735
Ben Wagnerdf430052018-02-08 16:57:04 -0500736 if 'Mac' in bot and 'IntelHD615' in bot:
737 # skia:7603
738 match.append('~^GrMeshTest$')
739
Ben Wagner84660e92018-04-09 16:19:54 -0400740 if api.vars.internal_hardware_label == 1:
741 match.append('~skbug6653') # skia:6653
742
Eric Boren4c7754c2017-04-10 08:19:10 -0400743 if blacklisted:
744 args.append('--blacklist')
745 args.extend(blacklisted)
746
747 if match:
748 args.append('--match')
749 args.extend(match)
750
751 # These bots run out of memory running RAW codec tests. Do not run them in
752 # parallel
Ben Wagner2040ed22017-11-22 11:22:22 -0500753 if 'NexusPlayer' in bot or 'Nexus5' in bot or 'Nexus9' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -0400754 args.append('--noRAW_threading')
755
Yuqian Li84be3ad2017-10-17 10:11:21 -0400756 if 'FSAA' in bot:
757 args.extend(['--analyticAA', 'false', '--deltaAA', 'false'])
758 if 'FAAA' in bot:
759 args.extend(['--deltaAA', 'false', '--forceAnalyticAA'])
760 if 'FDAA' in bot:
761 args.extend(['--deltaAA', '--forceDeltaAA'])
762
Mike Kleinc207da82017-11-10 14:24:34 -0500763 if 'NativeFonts' not in bot:
764 args.append('--nonativeFonts')
765
Mike Klein0c5fdcb2017-11-13 12:40:46 -0500766 if 'GDI' in bot:
767 args.append('--gdi')
768
Stephan Altmueller74dac542017-09-11 15:32:21 -0400769 # Let's make all bots produce verbose output by default.
770 args.append('--verbose')
Mike Kleinc9089062017-06-26 09:09:32 -0400771
Eric Boren4c7754c2017-04-10 08:19:10 -0400772 return args
773
774
775def key_params(api):
776 """Build a unique key from the builder name (as a list).
777
778 E.g. arch x86 gpu GeForce320M mode MacMini4.1 os Mac10.6
779 """
780 # Don't bother to include role, which is always Test.
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400781 blacklist = ['role', 'test_filter']
Eric Boren4c7754c2017-04-10 08:19:10 -0400782
783 flat = []
784 for k in sorted(api.vars.builder_cfg.keys()):
785 if k not in blacklist:
786 flat.append(k)
787 flat.append(api.vars.builder_cfg[k])
788 return flat
789
790
791def test_steps(api):
792 """Run the DM test."""
793 use_hash_file = False
794 if api.vars.upload_dm_results:
Eric Boren4c7754c2017-04-10 08:19:10 -0400795 host_dm_dir = str(api.vars.dm_dir)
Eric Boren9599b0f2018-04-17 15:55:57 -0400796 api.flavor.create_clean_host_dir(api.vars.test_dir)
Eric Boren4c7754c2017-04-10 08:19:10 -0400797 device_dm_dir = str(api.flavor.device_dirs.dm_dir)
798 if host_dm_dir != device_dm_dir:
799 api.flavor.create_clean_device_dir(device_dm_dir)
800
801 # Obtain the list of already-generated hashes.
802 hash_filename = 'uninteresting_hashes.txt'
803
804 # Ensure that the tmp_dir exists.
Robert Iannucci8cd50412017-07-07 14:36:58 -0700805 api.run.run_once(api.file.ensure_directory,
806 'makedirs tmp_dir',
807 api.vars.tmp_dir)
Eric Boren4c7754c2017-04-10 08:19:10 -0400808
809 host_hashes_file = api.vars.tmp_dir.join(hash_filename)
810 hashes_file = api.flavor.device_path_join(
811 api.flavor.device_dirs.tmp_dir, hash_filename)
812 api.run(
813 api.python.inline,
814 'get uninteresting hashes',
815 program="""
816 import contextlib
817 import math
818 import socket
819 import sys
820 import time
821 import urllib2
822
Stephan Altmuellerc19ebc52017-05-30 16:39:17 -0400823 HASHES_URL = 'https://storage.googleapis.com/skia-infra-gm/hash_files/gold-prod-hashes.txt'
Eric Boren4c7754c2017-04-10 08:19:10 -0400824 RETRIES = 5
825 TIMEOUT = 60
826 WAIT_BASE = 15
827
828 socket.setdefaulttimeout(TIMEOUT)
829 for retry in range(RETRIES):
830 try:
831 with contextlib.closing(
832 urllib2.urlopen(HASHES_URL, timeout=TIMEOUT)) as w:
833 hashes = w.read()
834 with open(sys.argv[1], 'w') as f:
835 f.write(hashes)
836 break
837 except Exception as e:
838 print 'Failed to get uninteresting hashes from %s:' % HASHES_URL
839 print e
840 if retry == RETRIES:
841 raise
842 waittime = WAIT_BASE * math.pow(2, retry)
843 print 'Retry in %d seconds.' % waittime
844 time.sleep(waittime)
845 """,
846 args=[host_hashes_file],
847 abort_on_failure=False,
848 fail_build_on_failure=False,
849 infra_step=True)
850
851 if api.path.exists(host_hashes_file):
852 api.flavor.copy_file_to_device(host_hashes_file, hashes_file)
853 use_hash_file = True
854
855 # Run DM.
856 properties = [
Eric Boren9a9e3872017-11-29 12:33:22 -0500857 'gitHash', api.vars.got_revision,
858 'builder', api.vars.builder_name,
859 'buildbucket_build_id', api.properties.get('buildbucket_build_id', ''),
Eric Boren4c7754c2017-04-10 08:19:10 -0400860 ]
861 if api.vars.is_trybot:
862 properties.extend([
863 'issue', api.vars.issue,
864 'patchset', api.vars.patchset,
865 'patch_storage', api.vars.patch_storage,
866 ])
Eric Borenf9aa9e52017-04-10 09:56:10 -0400867 properties.extend(['swarming_bot_id', api.vars.swarming_bot_id])
868 properties.extend(['swarming_task_id', api.vars.swarming_task_id])
Eric Boren4c7754c2017-04-10 08:19:10 -0400869
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400870 if 'Chromecast' in api.vars.builder_cfg.get('os', ''):
871 # Due to limited disk space, we only deal with skps and one image.
872 args = [
873 'dm',
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400874 '--resourcePath', api.flavor.device_dirs.resource_dir,
875 '--skps', api.flavor.device_dirs.skp_dir,
876 '--images', api.flavor.device_path_join(
Kevin Lubickc2f3e8d2018-01-24 15:48:26 -0500877 api.flavor.device_dirs.resource_dir, 'images', 'color_wheel.jpg'),
Kevin Lubick608c35a2018-01-16 16:15:57 -0500878 '--nameByHash',
879 '--properties'
880 ] + properties
Kevin Lubick95379eb2018-01-17 11:20:19 -0500881 else:
882 args = [
883 'dm',
884 '--resourcePath', api.flavor.device_dirs.resource_dir,
885 '--skps', api.flavor.device_dirs.skp_dir,
886 '--images', api.flavor.device_path_join(
887 api.flavor.device_dirs.images_dir, 'dm'),
888 '--colorImages', api.flavor.device_path_join(
889 api.flavor.device_dirs.images_dir, 'colorspace'),
890 '--nameByHash',
891 '--properties'
892 ] + properties
893
894 args.extend(['--svgs', api.flavor.device_dirs.svg_dir])
895
896 args.append('--key')
897 args.extend(key_params(api))
Kevin Lubick608c35a2018-01-16 16:15:57 -0500898
899 if use_hash_file:
900 args.extend(['--uninterestingHashesFile', hashes_file])
901 if api.vars.upload_dm_results:
902 args.extend(['--writePath', api.flavor.device_dirs.dm_dir])
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400903
Eric Boren89cd3572017-06-28 13:50:22 -0400904 args.extend(dm_flags(api, api.vars.builder_name))
Eric Boren4c7754c2017-04-10 08:19:10 -0400905
Eric Boren4c7754c2017-04-10 08:19:10 -0400906 # See skia:2789.
Ben Wagner37491d22017-12-13 13:00:47 -0500907 if 'AbandonGpuContext' in api.vars.extra_tokens:
Eric Boren4c7754c2017-04-10 08:19:10 -0400908 args.append('--abandonGpuContext')
Ben Wagner37491d22017-12-13 13:00:47 -0500909 if 'PreAbandonGpuContext' in api.vars.extra_tokens:
Eric Boren4c7754c2017-04-10 08:19:10 -0400910 args.append('--preAbandonGpuContext')
Ben Wagner37491d22017-12-13 13:00:47 -0500911 if 'ReleaseAndAbandonGpuContext' in api.vars.extra_tokens:
Eric Boren6ec17e32017-04-26 14:25:29 -0400912 args.append('--releaseAndAbandonGpuContext')
Eric Boren4c7754c2017-04-10 08:19:10 -0400913
Ben Wagner5655ba42017-10-02 10:48:32 -0400914 api.run(api.flavor.step, 'dm', cmd=args, abort_on_failure=False)
Eric Boren4c7754c2017-04-10 08:19:10 -0400915
916 if api.vars.upload_dm_results:
917 # Copy images and JSON to host machine if needed.
918 api.flavor.copy_directory_contents_to_host(
919 api.flavor.device_dirs.dm_dir, api.vars.dm_dir)
920
921
borenet1ed2ae42016-07-26 11:52:17 -0700922def RunSteps(api):
Eric Boren4c7754c2017-04-10 08:19:10 -0400923 api.core.setup()
Robert Iannucci297a7ef2017-05-12 19:09:38 -0700924 env = {}
Eric Boren4c7754c2017-04-10 08:19:10 -0400925 if 'iOS' in api.vars.builder_name:
926 env['IOS_BUNDLE_ID'] = 'com.google.dm'
Stephan Altmueller63e843d2017-04-25 11:38:38 -0400927 env['IOS_MOUNT_POINT'] = api.vars.slave_dir.join('mnt_iosdevice')
Robert Iannucci297a7ef2017-05-12 19:09:38 -0700928 with api.context(env=env):
Eric Boren4c7754c2017-04-10 08:19:10 -0400929 try:
Kevin Lubick2dafbd72017-08-31 10:39:05 -0400930 if 'Chromecast' in api.vars.builder_name:
931 api.flavor.install(resources=True, skps=True)
932 else:
933 api.flavor.install_everything()
Eric Boren4c7754c2017-04-10 08:19:10 -0400934 test_steps(api)
935 finally:
936 api.flavor.cleanup_steps()
937 api.run.check_failure()
938
939
Eric Borenf9aa9e52017-04-10 09:56:10 -0400940TEST_BUILDERS = [
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400941 'Test-Android-Clang-AndroidOne-GPU-Mali400MP2-arm-Release-All-Android',
942 'Test-Android-Clang-GalaxyS6-GPU-MaliT760-arm64-Debug-All-Android',
943 'Test-Android-Clang-GalaxyS7_G930A-GPU-Adreno530-arm64-Debug-All-Android',
944 'Test-Android-Clang-NVIDIA_Shield-GPU-TegraX1-arm64-Debug-All-Android',
945 'Test-Android-Clang-NVIDIA_Shield-GPU-TegraX1-arm64-Debug-All-Android_CCPR',
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400946 'Test-Android-Clang-Nexus5-GPU-Adreno330-arm-Release-All-Android',
Mike Klein3a3fbf12018-01-30 08:08:49 -0500947 'Test-Android-Clang-Nexus5x-GPU-Adreno418-arm-Debug-All-Android_ASAN',
948 'Test-Android-Clang-Nexus5x-GPU-Adreno418-arm64-Debug-All-Android_ASAN',
Kevin Lubick4f0f9332018-01-12 14:31:48 -0500949 ('Test-Android-Clang-Nexus5x-GPU-Adreno418-arm64-Debug-All'
Ben Wagnerdba0bc82017-12-11 13:27:27 -0500950 '-Android_NoGPUThreads'),
Ben Wagner5cf6d322017-12-07 10:23:07 -0500951 'Test-Android-Clang-Nexus7-CPU-Tegra3-arm-Release-All-Android',
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400952 'Test-Android-Clang-Nexus7-GPU-Tegra3-arm-Debug-All-Android',
953 'Test-Android-Clang-NexusPlayer-CPU-Moorefield-x86-Release-All-Android',
954 'Test-Android-Clang-NexusPlayer-GPU-PowerVR-x86-Release-All-Android_Vulkan',
Ben Wagner52423f32017-12-07 10:17:13 -0500955 'Test-Android-Clang-Pixel-GPU-Adreno530-arm64-Debug-All-Android_CCPR',
956 'Test-Android-Clang-Pixel-GPU-Adreno530-arm64-Debug-All-Android_Vulkan',
Kevin Lubickd7af1db2017-11-02 12:03:22 -0400957 'Test-ChromeOS-Clang-ASUSChromebookFlipC100-GPU-MaliT764-arm-Debug-All',
958 ('Test-ChromeOS-Clang-AcerChromebookR13Convertible-GPU-PowerVRGX6250-'
959 'arm-Debug-All'),
Kevin Lubick608c35a2018-01-16 16:15:57 -0500960 'Test-Chromecast-GCC-Chorizo-CPU-Cortex_A7-arm-Release-All',
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400961 'Test-Chromecast-GCC-Chorizo-GPU-Cortex_A7-arm-Release-All',
962 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All-ASAN',
Kevin Lubick32f318b2017-10-17 13:40:52 -0400963 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-shard_00_10-Coverage',
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400964 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All-MSAN',
965 ('Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All'
Ben Wagner9fb285e2017-10-02 16:53:07 -0400966 '-SK_USE_DISCARDABLE_SCALEDIMAGECACHE'),
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400967 ('Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Release-All'
Ben Wagner6e0a6b32017-09-26 14:11:15 -0400968 '-SK_FORCE_RASTER_PIPELINE_BLITTER'),
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400969 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Release-All-TSAN',
970 'Test-Debian9-GCC-GCE-CPU-AVX2-x86-Debug-All',
971 'Test-Debian9-GCC-GCE-CPU-AVX2-x86_64-Debug-All',
Ben Wagnerdf430052018-02-08 16:57:04 -0500972 'Test-Mac-Clang-MacBook10.1-GPU-IntelHD615-x86_64-Debug-All',
Ben Wagner1d8726f2018-02-02 14:47:31 -0500973 'Test-Mac-Clang-MacBookAir7.2-GPU-IntelHD6000-x86_64-Debug-All',
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400974 'Test-Mac-Clang-MacMini7.1-CPU-AVX-x86_64-Release-All',
975 'Test-Mac-Clang-MacMini7.1-GPU-IntelIris5100-x86_64-Debug-All-CommandBuffer',
Jim Van Verth1b6c75c2018-02-16 09:49:08 -0500976 'Test-Mac-Clang-MacBook10.1-GPU-IntelHD615-x86_64-Release-All-NativeFonts',
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400977 'Test-Ubuntu16-Clang-NUC5PPYH-GPU-IntelHD405-x86_64-Debug-All',
Ben Wagnerb8427032017-11-18 19:04:25 -0500978 'Test-Ubuntu16-Clang-NUC5PPYH-GPU-IntelHD405-x86_64-Release-All-Vulkan',
Ben Wagner63457572017-12-21 10:49:58 -0500979 'Test-Ubuntu16-Clang-NUC7i5BNK-GPU-IntelIris640-x86_64-Debug-All-Vulkan',
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400980 'Test-Ubuntu16-Clang-NUCDE3815TYKHE-GPU-IntelBayTrail-x86_64-Debug-All',
Ben Wagner9f553932017-11-27 22:18:12 -0500981 'Test-Ubuntu17-Clang-Golo-GPU-QuadroP400-x86_64-Debug-All-Vulkan_Coverage',
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400982 ('Test-Ubuntu17-GCC-Golo-GPU-QuadroP400-x86_64-Release-All'
Ben Wagner6e0a6b32017-09-26 14:11:15 -0400983 '-Valgrind_AbandonGpuContext_SK_CPU_LIMIT_SSE41'),
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400984 ('Test-Ubuntu17-GCC-Golo-GPU-QuadroP400-x86_64-Release-All'
Ben Wagner6e0a6b32017-09-26 14:11:15 -0400985 '-Valgrind_PreAbandonGpuContext_SK_CPU_LIMIT_SSE41'),
Robert Phillips36150be2018-03-15 13:40:07 -0400986 ('Test-Ubuntu17-Clang-Golo-GPU-QuadroP400-x86_64-Debug-All-DDL1'),
987 ('Test-Ubuntu17-Clang-Golo-GPU-QuadroP400-x86_64-Debug-All-DDL3'),
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400988 ('Test-Ubuntu17-GCC-Golo-GPU-QuadroP400-x86_64-Release-All'
Ben Wagner6e0a6b32017-09-26 14:11:15 -0400989 '-Valgrind_SK_CPU_LIMIT_SSE41'),
Ben Wagnerb2fd61a2017-10-23 16:01:44 -0400990 'Test-Win10-Clang-AlphaR2-GPU-RadeonR9M470X-x86_64-Debug-All-ANGLE',
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400991 'Test-Win10-Clang-AlphaR2-GPU-RadeonR9M470X-x86_64-Debug-All-Vulkan',
992 ('Test-Win10-Clang-Golo-GPU-QuadroP400-x86_64-Release-All'
Ben Wagner6e0a6b32017-09-26 14:11:15 -0400993 '-ReleaseAndAbandonGpuContext'),
Ben Wagnerfd66b5f2017-11-15 15:16:27 -0500994 'Test-Win10-Clang-NUC5i7RYH-CPU-AVX2-x86_64-Debug-All-NativeFonts',
995 'Test-Win10-Clang-NUC5i7RYH-CPU-AVX2-x86_64-Debug-All-NativeFonts_GDI',
Ben Wagnerb2fd61a2017-10-23 16:01:44 -0400996 'Test-Win10-Clang-NUC6i5SYK-GPU-IntelIris540-x86_64-Debug-All-ANGLE',
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400997 'Test-Win10-Clang-NUC6i5SYK-GPU-IntelIris540-x86_64-Debug-All-Vulkan',
Ben Wagnerb2fd61a2017-10-23 16:01:44 -0400998 'Test-Win10-Clang-NUCD34010WYKH-GPU-IntelHD4400-x86_64-Release-All-ANGLE',
Kevin Lubick9ef6de72017-10-15 21:05:58 -0400999 'Test-Win10-Clang-ShuttleA-GPU-GTX660-x86_64-Debug-All-Vulkan',
Ben Wagnerb2fd61a2017-10-23 16:01:44 -04001000 'Test-Win10-Clang-ShuttleC-GPU-GTX960-x86_64-Debug-All-ANGLE',
Brian Osmanf4a95bc2017-11-06 14:08:54 -05001001 'Test-Win10-Clang-ZBOX-GPU-GTX1070-x86_64-Debug-All',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001002 'Test-Win10-Clang-ZBOX-GPU-GTX1070-x86_64-Debug-All-Vulkan',
Ben Wagner78935c22017-11-15 13:21:03 -05001003 'Test-Win2016-Clang-GCE-CPU-AVX2-x86_64-Debug-All-FAAA',
1004 'Test-Win2016-Clang-GCE-CPU-AVX2-x86_64-Debug-All-FDAA',
1005 'Test-Win2016-Clang-GCE-CPU-AVX2-x86_64-Debug-All-FSAA',
Ben Wagner2a5931e2018-03-20 17:13:32 -04001006 'Test-Win8-Clang-Golo-CPU-AVX-x86-Debug-All',
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001007 'Test-iOS-Clang-iPadPro-GPU-GT7800-arm64-Release-All',
Eric Borenf9aa9e52017-04-10 09:56:10 -04001008]
borenet1ed2ae42016-07-26 11:52:17 -07001009
1010
1011def GenTests(api):
Eric Borenf9aa9e52017-04-10 09:56:10 -04001012 for builder in TEST_BUILDERS:
1013 test = (
1014 api.test(builder) +
1015 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001016 buildbucket_build_id='123454321',
Eric Borenf9aa9e52017-04-10 09:56:10 -04001017 revision='abc123',
1018 path_config='kitchen',
1019 swarm_out_dir='[SWARM_OUT_DIR]') +
1020 api.path.exists(
1021 api.path['start_dir'].join('skia'),
1022 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1023 'skimage', 'VERSION'),
1024 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1025 'skp', 'VERSION'),
1026 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1027 'svg', 'VERSION'),
1028 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
Ben Wagnerf835c222017-04-30 11:14:51 -04001029 ) +
1030 api.step_data('get swarming bot id',
1031 stdout=api.raw_io.output('skia-bot-123')) +
1032 api.step_data('get swarming task id',
1033 stdout=api.raw_io.output('123456'))
Eric Borenf9aa9e52017-04-10 09:56:10 -04001034 )
Eric Borenf9aa9e52017-04-10 09:56:10 -04001035 if 'Win' in builder:
1036 test += api.platform('win', 64)
Eric Boren4c7754c2017-04-10 08:19:10 -04001037
Kevin Lubick2dafbd72017-08-31 10:39:05 -04001038 if 'Chromecast' in builder:
1039 test += api.step_data(
1040 'read chromecast ip',
1041 stdout=api.raw_io.output('192.168.1.2:5555'))
1042
Eric Borenf9aa9e52017-04-10 09:56:10 -04001043 if 'ChromeOS' in builder:
1044 test += api.step_data(
1045 'read chromeos ip',
1046 stdout=api.raw_io.output('{"user_ip":"foo@127.0.0.1"}'))
Eric Boren4c7754c2017-04-10 08:19:10 -04001047
Eric Borenf9aa9e52017-04-10 09:56:10 -04001048 yield test
Eric Boren4c7754c2017-04-10 08:19:10 -04001049
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001050 builder = 'Test-Win2k8-MSVC-GCE-CPU-AVX2-x86_64-Release-All'
Kevin Lubickfe079d42017-04-12 08:31:48 -04001051 yield (
1052 api.test('trybot') +
1053 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001054 buildbucket_build_id='123454321',
Kevin Lubickfe079d42017-04-12 08:31:48 -04001055 revision='abc123',
1056 path_config='kitchen',
1057 swarm_out_dir='[SWARM_OUT_DIR]') +
1058 api.properties(patch_storage='gerrit') +
1059 api.properties.tryserver(
1060 buildername=builder,
1061 gerrit_project='skia',
1062 gerrit_url='https://skia-review.googlesource.com/',
1063 )+
1064 api.path.exists(
1065 api.path['start_dir'].join('skia'),
1066 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1067 'skimage', 'VERSION'),
1068 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1069 'skp', 'VERSION'),
1070 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1071 'svg', 'VERSION'),
1072 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
1073 )
1074 )
1075
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001076 builder = 'Test-Debian9-GCC-GCE-CPU-AVX2-x86_64-Debug-All'
borenet1ed2ae42016-07-26 11:52:17 -07001077 yield (
Eric Boren4c7754c2017-04-10 08:19:10 -04001078 api.test('failed_dm') +
1079 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001080 buildbucket_build_id='123454321',
borenet1ed2ae42016-07-26 11:52:17 -07001081 revision='abc123',
1082 path_config='kitchen',
1083 swarm_out_dir='[SWARM_OUT_DIR]') +
1084 api.path.exists(
Ravi Mistry9bcca6a2016-11-21 16:06:19 -05001085 api.path['start_dir'].join('skia'),
1086 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
Eric Boren4c7754c2017-04-10 08:19:10 -04001087 'skimage', 'VERSION'),
Ravi Mistry9bcca6a2016-11-21 16:06:19 -05001088 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
Eric Boren4c7754c2017-04-10 08:19:10 -04001089 'skp', 'VERSION'),
Ravi Mistry9bcca6a2016-11-21 16:06:19 -05001090 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
Eric Boren4c7754c2017-04-10 08:19:10 -04001091 'svg', 'VERSION'),
Ravi Mistry9bcca6a2016-11-21 16:06:19 -05001092 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
Eric Boren4c7754c2017-04-10 08:19:10 -04001093 ) +
1094 api.step_data('symbolized dm', retcode=1)
1095 )
1096
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001097 builder = 'Test-Android-Clang-Nexus7-GPU-Tegra3-arm-Release-All-Android'
Eric Boren4c7754c2017-04-10 08:19:10 -04001098 yield (
1099 api.test('failed_get_hashes') +
1100 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001101 buildbucket_build_id='123454321',
Eric Boren4c7754c2017-04-10 08:19:10 -04001102 revision='abc123',
1103 path_config='kitchen',
1104 swarm_out_dir='[SWARM_OUT_DIR]') +
1105 api.path.exists(
1106 api.path['start_dir'].join('skia'),
1107 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1108 'skimage', 'VERSION'),
1109 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1110 'skp', 'VERSION'),
1111 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1112 'svg', 'VERSION'),
1113 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
1114 ) +
1115 api.step_data('get uninteresting hashes', retcode=1)
1116 )
1117
Kevin Lubick9ef6de72017-10-15 21:05:58 -04001118 builder = ('Test-Android-Clang-NexusPlayer-CPU-Moorefield-x86-'
1119 'Debug-All-Android')
Eric Boren4c7754c2017-04-10 08:19:10 -04001120 yield (
1121 api.test('failed_push') +
1122 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001123 buildbucket_build_id='123454321',
Eric Boren4c7754c2017-04-10 08:19:10 -04001124 revision='abc123',
1125 path_config='kitchen',
1126 swarm_out_dir='[SWARM_OUT_DIR]') +
1127 api.path.exists(
1128 api.path['start_dir'].join('skia'),
1129 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1130 'skimage', 'VERSION'),
1131 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1132 'skp', 'VERSION'),
1133 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1134 'svg', 'VERSION'),
1135 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
1136 ) +
Kevin Lubickc6f74ca2018-03-01 09:21:38 -05001137 api.step_data('get swarming bot id',
1138 stdout=api.raw_io.output('build123-m2--device5')) +
Eric Boren4c7754c2017-04-10 08:19:10 -04001139 api.step_data('push [START_DIR]/skia/resources/* '+
1140 '/sdcard/revenge_of_the_skiabot/resources', retcode=1)
1141 )
1142
Ben Wagner1a2b3f02017-10-26 15:13:38 -04001143 builder = 'Test-Android-Clang-Nexus7-GPU-Tegra3-arm-Debug-All-Android'
Eric Boren4c7754c2017-04-10 08:19:10 -04001144 yield (
1145 api.test('failed_pull') +
1146 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001147 buildbucket_build_id='123454321',
Eric Boren4c7754c2017-04-10 08:19:10 -04001148 revision='abc123',
1149 path_config='kitchen',
1150 swarm_out_dir='[SWARM_OUT_DIR]') +
1151 api.path.exists(
1152 api.path['start_dir'].join('skia'),
1153 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1154 'skimage', 'VERSION'),
1155 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1156 'skp', 'VERSION'),
1157 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1158 'svg', 'VERSION'),
1159 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
1160 ) +
1161 api.step_data('dm', retcode=1) +
1162 api.step_data('pull /sdcard/revenge_of_the_skiabot/dm_out '+
Eric Boren9599b0f2018-04-17 15:55:57 -04001163 '[START_DIR]/[SWARM_OUT_DIR]/dm', retcode=1)
borenetbfa5b452016-10-19 10:13:32 -07001164 )
Eric Boren053d7a42017-09-15 08:35:31 -04001165
1166 yield (
Kevin Lubick451b7432017-09-15 14:44:12 -04001167 api.test('internal_bot_1') +
Eric Boren053d7a42017-09-15 08:35:31 -04001168 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001169 buildbucket_build_id='123454321',
Eric Boren053d7a42017-09-15 08:35:31 -04001170 revision='abc123',
1171 path_config='kitchen',
1172 swarm_out_dir='[SWARM_OUT_DIR]',
Kevin Lubick451b7432017-09-15 14:44:12 -04001173 internal_hardware_label=1) +
Eric Boren053d7a42017-09-15 08:35:31 -04001174 api.path.exists(
1175 api.path['start_dir'].join('skia'),
1176 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1177 'skimage', 'VERSION'),
1178 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1179 'skp', 'VERSION'),
1180 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1181 'svg', 'VERSION'),
1182 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
1183 )
1184 )
Kevin Lubickbd27d1d2017-10-13 08:01:49 -04001185
1186 yield (
1187 api.test('internal_bot_2') +
1188 api.properties(buildername=builder,
Eric Boren9a9e3872017-11-29 12:33:22 -05001189 buildbucket_build_id='123454321',
Kevin Lubickbd27d1d2017-10-13 08:01:49 -04001190 revision='abc123',
1191 path_config='kitchen',
1192 swarm_out_dir='[SWARM_OUT_DIR]',
1193 internal_hardware_label=2) +
1194 api.path.exists(
1195 api.path['start_dir'].join('skia'),
1196 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1197 'skimage', 'VERSION'),
1198 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1199 'skp', 'VERSION'),
1200 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
1201 'svg', 'VERSION'),
1202 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
Kevin Lubickd1bbd5f2017-11-21 16:47:16 -05001203 )
Kevin Lubickbd27d1d2017-10-13 08:01:49 -04001204 )