borenet | 1ed2ae4 | 2016-07-26 11:52:17 -0700 | [diff] [blame] | 1 | # 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 | |
| 9 | DEPS = [ |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 10 | 'core', |
Eric Boren | 896af75 | 2017-04-24 13:22:56 -0400 | [diff] [blame] | 11 | 'env', |
Eric Boren | f94514b | 2017-05-22 08:35:36 -0400 | [diff] [blame] | 12 | 'file', |
Eric Boren | 896af75 | 2017-04-24 13:22:56 -0400 | [diff] [blame] | 13 | 'flavor', |
Robert Iannucci | 297a7ef | 2017-05-12 19:09:38 -0700 | [diff] [blame] | 14 | 'recipe_engine/context', |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 15 | 'recipe_engine/json', |
borenet | 1ed2ae4 | 2016-07-26 11:52:17 -0700 | [diff] [blame] | 16 | 'recipe_engine/path', |
| 17 | 'recipe_engine/platform', |
| 18 | 'recipe_engine/properties', |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 19 | 'recipe_engine/python', |
borenet | 1ed2ae4 | 2016-07-26 11:52:17 -0700 | [diff] [blame] | 20 | 'recipe_engine/raw_io', |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 21 | 'recipe_engine/step', |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 22 | 'run', |
| 23 | 'vars', |
borenet | 1ed2ae4 | 2016-07-26 11:52:17 -0700 | [diff] [blame] | 24 | ] |
| 25 | |
| 26 | |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 27 | def dm_flags(bot): |
| 28 | args = [] |
| 29 | |
| 30 | # This enables non-deterministic random seeding of the GPU FP optimization |
Brian Osman | 7a34dca | 2017-04-13 13:40:29 -0400 | [diff] [blame] | 31 | # test. |
| 32 | args.append('--randomProcessorTest') |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 33 | |
| 34 | # 32-bit desktop bots tend to run out of memory, because they have relatively |
| 35 | # far more cores than RAM (e.g. 32 cores, 3G RAM). Hold them back a bit. |
| 36 | if '-x86-' in bot and not 'NexusPlayer' in bot: |
| 37 | args.extend('--threads 4'.split(' ')) |
| 38 | |
| 39 | # Avoid issues with dynamically exceeding resource cache limits. |
| 40 | if 'Test' in bot and 'DISCARDABLE' in bot: |
| 41 | args.extend('--threads 0'.split(' ')) |
| 42 | |
| 43 | # These are the canonical configs that we would ideally run on all bots. We |
| 44 | # may opt out or substitute some below for specific bots |
| 45 | configs = ['8888', 'srgb', 'pdf'] |
| 46 | # Add in either gles or gl configs to the canonical set based on OS |
| 47 | sample_count = '8' |
| 48 | gl_prefix = 'gl' |
| 49 | if 'Android' in bot or 'iOS' in bot: |
| 50 | sample_count = '4' |
| 51 | # We want to test the OpenGL config not the GLES config on the Shield |
| 52 | if 'NVIDIA_Shield' not in bot: |
| 53 | gl_prefix = 'gles' |
| 54 | elif 'Intel' in bot: |
| 55 | sample_count = '' |
| 56 | elif 'ChromeOS' in bot: |
| 57 | gl_prefix = 'gles' |
| 58 | |
| 59 | configs.extend([gl_prefix, gl_prefix + 'dft', gl_prefix + 'srgb']) |
| 60 | if sample_count is not '': |
| 61 | configs.append(gl_prefix + 'msaa' + sample_count) |
| 62 | |
| 63 | # The NP produces a long error stream when we run with MSAA. The Tegra3 just |
| 64 | # doesn't support it. |
| 65 | if ('NexusPlayer' in bot or |
| 66 | 'Tegra3' in bot or |
Stephan Altmueller | 9378732 | 2017-04-25 14:40:10 -0400 | [diff] [blame] | 67 | # We aren't interested in fixing msaa bugs on current iOS devices. |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 68 | 'iPad4' in bot or |
Stephan Altmueller | 9378732 | 2017-04-25 14:40:10 -0400 | [diff] [blame] | 69 | 'iPadPro' in bot or |
| 70 | 'iPhone6' in bot or |
| 71 | 'iPhone7' in bot or |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 72 | # skia:5792 |
Robert Phillips | 985e192 | 2017-05-25 07:56:01 -0400 | [diff] [blame] | 73 | 'IntelHD530' in bot or |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 74 | 'IntelIris540' in bot): |
| 75 | configs = [x for x in configs if 'msaa' not in x] |
| 76 | |
| 77 | # The NP produces different images for dft on every run. |
| 78 | if 'NexusPlayer' in bot: |
| 79 | configs = [x for x in configs if 'dft' not in x] |
| 80 | |
| 81 | # Runs out of memory on Android bots. Everyone else seems fine. |
| 82 | if 'Android' in bot: |
| 83 | configs.remove('pdf') |
| 84 | |
| 85 | if '-GCE-' in bot: |
| 86 | configs.extend(['565']) |
| 87 | configs.extend(['f16']) |
| 88 | configs.extend(['sp-8888', '2ndpic-8888']) # Test niche uses of SkPicture. |
| 89 | configs.extend(['lite-8888']) # Experimental display list. |
| 90 | configs.extend(['gbr-8888']) |
| 91 | |
| 92 | if '-TSAN' not in bot and sample_count is not '': |
| 93 | if ('TegraK1' in bot or |
| 94 | 'TegraX1' in bot or |
| 95 | 'GTX550Ti' in bot or |
| 96 | 'GTX660' in bot or |
| 97 | 'GT610' in bot): |
| 98 | configs.append(gl_prefix + 'nvprdit' + sample_count) |
| 99 | |
| 100 | # We want to test both the OpenGL config and the GLES config on Linux Intel: |
| 101 | # GL is used by Chrome, GLES is used by ChromeOS. |
| 102 | if 'Intel' in bot and 'Ubuntu' in bot: |
| 103 | configs.extend(['gles', 'glesdft', 'glessrgb']) |
| 104 | |
| 105 | # NP is running out of RAM when we run all these modes. skia:3255 |
| 106 | if 'NexusPlayer' not in bot: |
| 107 | configs.extend(mode + '-8888' for mode in |
| 108 | ['serialize', 'tiles_rt', 'pic']) |
| 109 | |
| 110 | # Test instanced rendering on a limited number of platforms |
| 111 | if 'Nexus6' in bot: |
| 112 | configs.append(gl_prefix + 'inst') # inst msaa isn't working yet on Adreno. |
| 113 | elif 'NVIDIA_Shield' in bot or 'PixelC' in bot: |
| 114 | # Multisampled instanced configs use nvpr so we substitute inst msaa |
| 115 | # configs for nvpr msaa configs. |
| 116 | old = gl_prefix + 'nvpr' |
| 117 | new = gl_prefix + 'inst' |
| 118 | configs = [x.replace(old, new) for x in configs] |
| 119 | # We also test non-msaa instanced. |
| 120 | configs.append(new) |
| 121 | elif 'MacMini6.2' in bot and sample_count is not '': |
| 122 | configs.extend([gl_prefix + 'inst', gl_prefix + 'inst' + sample_count]) |
| 123 | |
| 124 | # CommandBuffer bot *only* runs the command_buffer config. |
| 125 | if 'CommandBuffer' in bot: |
| 126 | configs = ['commandbuffer'] |
| 127 | |
| 128 | # ANGLE bot *only* runs the angle configs |
| 129 | if 'ANGLE' in bot: |
| 130 | configs = ['angle_d3d11_es2', |
| 131 | 'angle_d3d9_es2', |
| 132 | 'angle_gl_es2'] |
| 133 | if sample_count is not '': |
| 134 | configs.append('angle_d3d11_es2_msaa' + sample_count) |
| 135 | |
| 136 | # Vulkan bot *only* runs the vk config. |
| 137 | if 'Vulkan' in bot: |
| 138 | configs = ['vk'] |
| 139 | |
| 140 | if 'ChromeOS' in bot: |
| 141 | # Just run GLES for now - maybe add gles_msaa4 in the future |
| 142 | configs = ['gles'] |
| 143 | |
Kevin Lubick | ae95db4 | 2017-04-10 13:05:49 -0400 | [diff] [blame] | 144 | if 'Ci20' in bot: |
| 145 | # This bot is really slow, cut it down to just 8888. |
| 146 | configs = ['8888'] |
| 147 | |
Mike Klein | 97627d4 | 2017-05-11 13:12:48 -0400 | [diff] [blame] | 148 | # This bot only differs from vanilla CPU bots in 8888 config. |
| 149 | if 'SK_FORCE_RASTER_PIPELINE_BLITTER' in bot: |
Mike Klein | f6ca16e | 2017-05-24 14:08:33 -0400 | [diff] [blame] | 150 | configs = ['8888', 'srgb'] |
Mike Klein | 97627d4 | 2017-05-11 13:12:48 -0400 | [diff] [blame] | 151 | |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 152 | args.append('--config') |
| 153 | args.extend(configs) |
| 154 | |
| 155 | # Run tests, gms, and image decoding tests everywhere. |
| 156 | args.extend('--src tests gm image colorImage svg'.split(' ')) |
| 157 | if 'Vulkan' in bot and 'NexusPlayer' in bot: |
| 158 | args.remove('svg') |
| 159 | args.remove('image') |
| 160 | |
Mike Klein | 97627d4 | 2017-05-11 13:12:48 -0400 | [diff] [blame] | 161 | # Eventually I'd like these to pass, but for now just skip 'em. |
| 162 | if 'SK_FORCE_RASTER_PIPELINE_BLITTER' in bot: |
| 163 | args.remove('tests') |
| 164 | |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 165 | blacklisted = [] |
| 166 | def blacklist(quad): |
| 167 | config, src, options, name = quad.split(' ') if type(quad) is str else quad |
| 168 | if config == '_' or config in configs: |
| 169 | blacklisted.extend([config, src, options, name]) |
| 170 | |
| 171 | # TODO: ??? |
| 172 | blacklist('f16 _ _ dstreadshuffle') |
| 173 | blacklist('glsrgb image _ _') |
| 174 | blacklist('glessrgb image _ _') |
| 175 | |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 176 | # Not any point to running these. |
| 177 | blacklist('gbr-8888 image _ _') |
| 178 | blacklist('gbr-8888 colorImage _ _') |
| 179 | |
| 180 | if 'Valgrind' in bot: |
| 181 | # These take 18+ hours to run. |
| 182 | blacklist('pdf gm _ fontmgr_iter') |
| 183 | blacklist('pdf _ _ PANO_20121023_214540.jpg') |
| 184 | blacklist('pdf skp _ worldjournal') |
| 185 | blacklist('pdf skp _ desk_baidu.skp') |
| 186 | blacklist('pdf skp _ desk_wikipedia.skp') |
| 187 | blacklist('_ svg _ _') |
| 188 | |
| 189 | if 'iOS' in bot: |
| 190 | blacklist(gl_prefix + ' skp _ _') |
| 191 | |
| 192 | if 'Mac' in bot or 'iOS' in bot: |
| 193 | # CG fails on questionable bmps |
| 194 | blacklist('_ image gen_platf rgba32abf.bmp') |
| 195 | blacklist('_ image gen_platf rgb24prof.bmp') |
| 196 | blacklist('_ image gen_platf rgb24lprof.bmp') |
| 197 | blacklist('_ image gen_platf 8bpp-pixeldata-cropped.bmp') |
| 198 | blacklist('_ image gen_platf 4bpp-pixeldata-cropped.bmp') |
| 199 | blacklist('_ image gen_platf 32bpp-pixeldata-cropped.bmp') |
| 200 | blacklist('_ image gen_platf 24bpp-pixeldata-cropped.bmp') |
| 201 | |
| 202 | # CG has unpredictable behavior on this questionable gif |
| 203 | # It's probably using uninitialized memory |
| 204 | blacklist('_ image gen_platf frame_larger_than_image.gif') |
| 205 | |
| 206 | # CG has unpredictable behavior on incomplete pngs |
| 207 | # skbug.com/5774 |
| 208 | blacklist('_ image gen_platf inc0.png') |
| 209 | blacklist('_ image gen_platf inc1.png') |
| 210 | blacklist('_ image gen_platf inc2.png') |
| 211 | blacklist('_ image gen_platf inc3.png') |
| 212 | blacklist('_ image gen_platf inc4.png') |
| 213 | blacklist('_ image gen_platf inc5.png') |
| 214 | blacklist('_ image gen_platf inc6.png') |
| 215 | blacklist('_ image gen_platf inc7.png') |
| 216 | blacklist('_ image gen_platf inc8.png') |
| 217 | blacklist('_ image gen_platf inc9.png') |
| 218 | blacklist('_ image gen_platf inc10.png') |
| 219 | blacklist('_ image gen_platf inc11.png') |
| 220 | blacklist('_ image gen_platf inc12.png') |
| 221 | blacklist('_ image gen_platf inc13.png') |
| 222 | blacklist('_ image gen_platf inc14.png') |
| 223 | |
Matt Sarett | 6c50a2e | 2017-05-01 09:13:05 -0400 | [diff] [blame] | 224 | # WIC fails on questionable bmps |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 225 | if 'Win' in bot: |
| 226 | blacklist('_ image gen_platf rle8-height-negative.bmp') |
| 227 | blacklist('_ image gen_platf rle4-height-negative.bmp') |
| 228 | blacklist('_ image gen_platf pal8os2v2.bmp') |
| 229 | blacklist('_ image gen_platf pal8os2v2-16.bmp') |
| 230 | blacklist('_ image gen_platf rgba32abf.bmp') |
| 231 | blacklist('_ image gen_platf rgb24prof.bmp') |
| 232 | blacklist('_ image gen_platf rgb24lprof.bmp') |
| 233 | blacklist('_ image gen_platf 8bpp-pixeldata-cropped.bmp') |
| 234 | blacklist('_ image gen_platf 4bpp-pixeldata-cropped.bmp') |
| 235 | blacklist('_ image gen_platf 32bpp-pixeldata-cropped.bmp') |
| 236 | blacklist('_ image gen_platf 24bpp-pixeldata-cropped.bmp') |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 237 | if 'x86_64' in bot and 'CPU' in bot: |
| 238 | # This GM triggers a SkSmallAllocator assert. |
| 239 | blacklist('_ gm _ composeshader_bitmap') |
| 240 | |
Matt Sarett | 6c50a2e | 2017-05-01 09:13:05 -0400 | [diff] [blame] | 241 | # WIC and CG fail on arithmetic jpegs |
| 242 | if 'Win' in bot or 'Mac' in bot: |
| 243 | blacklist('_ image gen_platf testimgari.jpg') |
| 244 | |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 245 | if 'Android' in bot or 'iOS' in bot: |
| 246 | # This test crashes the N9 (perhaps because of large malloc/frees). It also |
| 247 | # is fairly slow and not platform-specific. So we just disable it on all of |
| 248 | # Android and iOS. skia:5438 |
| 249 | blacklist('_ test _ GrShape') |
| 250 | |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 251 | # skia:4095 |
| 252 | bad_serialize_gms = ['bleed_image', |
| 253 | 'c_gms', |
| 254 | 'colortype', |
| 255 | 'colortype_xfermodes', |
| 256 | 'drawfilter', |
| 257 | 'fontmgr_bounds_0.75_0', |
| 258 | 'fontmgr_bounds_1_-0.25', |
| 259 | 'fontmgr_bounds', |
| 260 | 'fontmgr_match', |
| 261 | 'fontmgr_iter', |
| 262 | 'imagemasksubset'] |
| 263 | |
| 264 | # skia:5589 |
| 265 | bad_serialize_gms.extend(['bitmapfilters', |
| 266 | 'bitmapshaders', |
| 267 | 'bleed', |
| 268 | 'bleed_alpha_bmp', |
| 269 | 'bleed_alpha_bmp_shader', |
| 270 | 'convex_poly_clip', |
| 271 | 'extractalpha', |
| 272 | 'filterbitmap_checkerboard_32_32_g8', |
| 273 | 'filterbitmap_image_mandrill_64', |
| 274 | 'shadows', |
| 275 | 'simpleaaclip_aaclip']) |
| 276 | # skia:5595 |
| 277 | bad_serialize_gms.extend(['composeshader_bitmap', |
| 278 | 'scaled_tilemodes_npot', |
| 279 | 'scaled_tilemodes']) |
| 280 | |
| 281 | # skia:5778 |
| 282 | bad_serialize_gms.append('typefacerendering_pfaMac') |
| 283 | # skia:5942 |
| 284 | bad_serialize_gms.append('parsedpaths') |
| 285 | |
| 286 | # these use a custom image generator which doesn't serialize |
| 287 | bad_serialize_gms.append('ImageGeneratorExternal_rect') |
| 288 | bad_serialize_gms.append('ImageGeneratorExternal_shader') |
| 289 | |
| 290 | # skia:6189 |
| 291 | bad_serialize_gms.append('shadow_utils') |
| 292 | |
Matt Sarett | 9f3dcb3 | 2017-05-04 08:53:32 -0400 | [diff] [blame] | 293 | # Not expected to round trip encoding/decoding. |
| 294 | bad_serialize_gms.append('makecolorspace') |
| 295 | |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 296 | for test in bad_serialize_gms: |
| 297 | blacklist(['serialize-8888', 'gm', '_', test]) |
| 298 | |
| 299 | if 'Mac' not in bot: |
| 300 | for test in ['bleed_alpha_image', 'bleed_alpha_image_shader']: |
| 301 | blacklist(['serialize-8888', 'gm', '_', test]) |
| 302 | # It looks like we skip these only for out-of-memory concerns. |
| 303 | if 'Win' in bot or 'Android' in bot: |
| 304 | for test in ['verylargebitmap', 'verylarge_picture_image']: |
| 305 | blacklist(['serialize-8888', 'gm', '_', test]) |
| 306 | |
| 307 | # skia:4769 |
| 308 | for test in ['drawfilter']: |
| 309 | blacklist([ 'sp-8888', 'gm', '_', test]) |
| 310 | blacklist([ 'pic-8888', 'gm', '_', test]) |
| 311 | blacklist(['2ndpic-8888', 'gm', '_', test]) |
| 312 | blacklist([ 'lite-8888', 'gm', '_', test]) |
| 313 | # skia:4703 |
| 314 | for test in ['image-cacherator-from-picture', |
| 315 | 'image-cacherator-from-raster', |
| 316 | 'image-cacherator-from-ctable']: |
| 317 | blacklist([ 'sp-8888', 'gm', '_', test]) |
| 318 | blacklist([ 'pic-8888', 'gm', '_', test]) |
| 319 | blacklist([ '2ndpic-8888', 'gm', '_', test]) |
| 320 | blacklist(['serialize-8888', 'gm', '_', test]) |
| 321 | |
| 322 | # GM that requires raster-backed canvas |
| 323 | for test in ['gamut', 'complexclip4_bw', 'complexclip4_aa']: |
| 324 | blacklist([ 'sp-8888', 'gm', '_', test]) |
| 325 | blacklist([ 'pic-8888', 'gm', '_', test]) |
| 326 | blacklist([ 'lite-8888', 'gm', '_', test]) |
| 327 | blacklist([ '2ndpic-8888', 'gm', '_', test]) |
| 328 | blacklist(['serialize-8888', 'gm', '_', test]) |
| 329 | |
| 330 | # GM that not support tiles_rt |
| 331 | for test in ['complexclip4_bw', 'complexclip4_aa']: |
| 332 | blacklist([ 'tiles_rt-8888', 'gm', '_', test]) |
| 333 | |
| 334 | # Extensions for RAW images |
| 335 | r = ["arw", "cr2", "dng", "nef", "nrw", "orf", "raf", "rw2", "pef", "srw", |
| 336 | "ARW", "CR2", "DNG", "NEF", "NRW", "ORF", "RAF", "RW2", "PEF", "SRW"] |
| 337 | |
| 338 | # skbug.com/4888 |
| 339 | # Blacklist RAW images (and a few large PNGs) on GPU bots |
| 340 | # until we can resolve failures. |
Matt Sarett | 929bfeb | 2017-05-22 10:34:41 -0400 | [diff] [blame] | 341 | if 'GPU' in bot: |
| 342 | blacklist('_ image _ interlaced1.png') |
| 343 | blacklist('_ image _ interlaced2.png') |
| 344 | blacklist('_ image _ interlaced3.png') |
| 345 | for raw_ext in r: |
| 346 | blacklist('_ image _ .%s' % raw_ext) |
| 347 | |
| 348 | # Blacklist memory intensive tests on 32-bit bots. |
| 349 | if ('Win2k8' in bot or 'Win8' in bot) and 'x86-' in bot: |
| 350 | blacklist('_ image f16 _') |
Matt Sarett | 112565e | 2017-05-22 13:45:15 -0400 | [diff] [blame] | 351 | blacklist('_ image _ abnormal.wbmp') |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 352 | blacklist('_ image _ interlaced1.png') |
| 353 | blacklist('_ image _ interlaced2.png') |
| 354 | blacklist('_ image _ interlaced3.png') |
| 355 | for raw_ext in r: |
| 356 | blacklist('_ image _ .%s' % raw_ext) |
| 357 | |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 358 | if 'IntelHD405' in bot and 'Ubuntu16' in bot: |
| 359 | # skia:6331 |
| 360 | blacklist(['glmsaa8', 'image', 'gen_codec_gpu', 'abnormal.wbmp']) |
| 361 | blacklist(['glesmsaa4', 'image', 'gen_codec_gpu', 'abnormal.wbmp']) |
| 362 | |
| 363 | if 'Nexus5' in bot: |
| 364 | # skia:5876 |
| 365 | blacklist(['_', 'gm', '_', 'encode-platform']) |
| 366 | |
| 367 | if 'AndroidOne-GPU' in bot: # skia:4697, skia:4704, skia:4694, skia:4705 |
| 368 | blacklist(['_', 'gm', '_', 'bigblurs']) |
| 369 | blacklist(['_', 'gm', '_', 'bleed']) |
| 370 | blacklist(['_', 'gm', '_', 'bleed_alpha_bmp']) |
| 371 | blacklist(['_', 'gm', '_', 'bleed_alpha_bmp_shader']) |
| 372 | blacklist(['_', 'gm', '_', 'bleed_alpha_image']) |
| 373 | blacklist(['_', 'gm', '_', 'bleed_alpha_image_shader']) |
| 374 | blacklist(['_', 'gm', '_', 'bleed_image']) |
| 375 | blacklist(['_', 'gm', '_', 'dropshadowimagefilter']) |
| 376 | blacklist(['_', 'gm', '_', 'filterfastbounds']) |
| 377 | blacklist([gl_prefix, 'gm', '_', 'imageblurtiled']) |
| 378 | blacklist(['_', 'gm', '_', 'imagefiltersclipped']) |
| 379 | blacklist(['_', 'gm', '_', 'imagefiltersscaled']) |
| 380 | blacklist(['_', 'gm', '_', 'imageresizetiled']) |
| 381 | blacklist(['_', 'gm', '_', 'matrixconvolution']) |
| 382 | blacklist(['_', 'gm', '_', 'strokedlines']) |
| 383 | if sample_count is not '': |
| 384 | gl_msaa_config = gl_prefix + 'msaa' + sample_count |
| 385 | blacklist([gl_msaa_config, 'gm', '_', 'imageblurtiled']) |
| 386 | blacklist([gl_msaa_config, 'gm', '_', 'imagefiltersbase']) |
| 387 | |
| 388 | match = [] |
| 389 | if 'Valgrind' in bot: # skia:3021 |
| 390 | match.append('~Threaded') |
| 391 | |
Ben Wagner | bb3e7ff | 2017-04-28 15:28:32 -0400 | [diff] [blame] | 392 | if 'CommandBuffer' in bot: |
| 393 | # https://crbug.com/697030 |
| 394 | match.append('~HalfFloatAlphaTextureTest') |
| 395 | |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 396 | if 'AndroidOne' in bot: # skia:4711 |
| 397 | match.append('~WritePixels') |
| 398 | |
| 399 | if 'NexusPlayer' in bot: |
| 400 | match.append('~ResourceCache') |
| 401 | |
| 402 | if 'Nexus10' in bot: |
| 403 | match.append('~CopySurface') # skia:5509 |
| 404 | match.append('~SRGBReadWritePixels') # skia:6097 |
| 405 | |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 406 | if 'GalaxyS6' in bot: |
| 407 | match.append('~SpecialImage') # skia:6338 |
| 408 | |
| 409 | if 'GalaxyS7_G930A' in bot: |
| 410 | match.append('~WritePixels') # skia:6427 |
| 411 | |
| 412 | if 'ANGLE' in bot and 'Debug' in bot: |
| 413 | match.append('~GLPrograms') # skia:4717 |
| 414 | |
| 415 | if 'MSAN' in bot: |
| 416 | match.extend(['~Once', '~Shared']) # Not sure what's up with these tests. |
| 417 | |
| 418 | if 'TSAN' in bot: |
| 419 | match.extend(['~ReadWriteAlpha']) # Flaky on TSAN-covered on nvidia bots. |
| 420 | match.extend(['~RGBA4444TextureTest', # Flakier than they are important. |
| 421 | '~RGB565TextureTest']) |
| 422 | |
| 423 | if 'Vulkan' in bot and 'Adreno' in bot: |
| 424 | # skia:5777 |
| 425 | match.extend(['~XfermodeImageFilterCroppedInput', |
| 426 | '~GrTextureStripAtlasFlush', |
| 427 | '~CopySurface']) |
| 428 | |
| 429 | if 'Vulkan' in bot and 'NexusPlayer' in bot: |
| 430 | match.extend(['~hardstop_gradient', # skia:6037 |
| 431 | '~gradients_dup_color_stops', # skia:6037 |
| 432 | '~gradients_no_texture$', # skia:6132 |
| 433 | '~tilemodes', # skia:6132 |
| 434 | '~shadertext$', # skia:6132 |
| 435 | '~bitmapfilters', # skia:6132 |
| 436 | '~GrContextFactory_abandon']) #skia:6209 |
| 437 | |
| 438 | if 'Vulkan' in bot and 'IntelIris540' in bot and 'Ubuntu' in bot: |
| 439 | match.extend(['~VkHeapTests']) # skia:6245 |
| 440 | |
| 441 | if 'Vulkan' in bot and 'IntelIris540' in bot and 'Win' in bot: |
| 442 | # skia:6398 |
| 443 | blacklist(['vk', 'gm', '_', 'aarectmodes']) |
| 444 | blacklist(['vk', 'gm', '_', 'aaxfermodes']) |
| 445 | blacklist(['vk', 'gm', '_', 'arithmode']) |
| 446 | blacklist(['vk', 'gm', '_', 'composeshader_bitmap']) |
| 447 | blacklist(['vk', 'gm', '_', 'composeshader_bitmap2']) |
| 448 | blacklist(['vk', 'gm', '_', 'dftextCOLR']) |
| 449 | blacklist(['vk', 'gm', '_', 'drawregionmodes']) |
| 450 | blacklist(['vk', 'gm', '_', 'filterfastbounds']) |
| 451 | blacklist(['vk', 'gm', '_', 'fontcache']) |
| 452 | blacklist(['vk', 'gm', '_', 'fontmgr_iterWin10']) |
| 453 | blacklist(['vk', 'gm', '_', 'fontmgr_iter_factoryWin10']) |
| 454 | blacklist(['vk', 'gm', '_', 'fontmgr_matchWin10']) |
| 455 | blacklist(['vk', 'gm', '_', 'fontscalerWin']) |
| 456 | blacklist(['vk', 'gm', '_', 'fontscalerdistortable']) |
| 457 | blacklist(['vk', 'gm', '_', 'gammagradienttext']) |
| 458 | blacklist(['vk', 'gm', '_', 'gammatextWin']) |
| 459 | blacklist(['vk', 'gm', '_', 'gradtext']) |
| 460 | blacklist(['vk', 'gm', '_', 'hairmodes']) |
| 461 | blacklist(['vk', 'gm', '_', 'imagefilters_xfermodes']) |
| 462 | blacklist(['vk', 'gm', '_', 'imagefiltersclipped']) |
| 463 | blacklist(['vk', 'gm', '_', 'imagefiltersgraph']) |
| 464 | blacklist(['vk', 'gm', '_', 'imagefiltersscaled']) |
| 465 | blacklist(['vk', 'gm', '_', 'imagefiltersstroked']) |
| 466 | blacklist(['vk', 'gm', '_', 'imagefilterstransformed']) |
| 467 | blacklist(['vk', 'gm', '_', 'imageresizetiled']) |
| 468 | blacklist(['vk', 'gm', '_', 'lcdblendmodes']) |
| 469 | blacklist(['vk', 'gm', '_', 'lcdoverlap']) |
| 470 | blacklist(['vk', 'gm', '_', 'lcdtextWin']) |
| 471 | blacklist(['vk', 'gm', '_', 'lcdtextsize']) |
| 472 | blacklist(['vk', 'gm', '_', 'matriximagefilter']) |
| 473 | blacklist(['vk', 'gm', '_', 'mixedtextblobsCOLR']) |
| 474 | blacklist(['vk', 'gm', '_', 'pictureimagefilter']) |
| 475 | blacklist(['vk', 'gm', '_', 'resizeimagefilter']) |
| 476 | blacklist(['vk', 'gm', '_', 'rotate_imagefilter']) |
| 477 | blacklist(['vk', 'gm', '_', 'savelayer_lcdtext']) |
| 478 | blacklist(['vk', 'gm', '_', 'srcmode']) |
| 479 | blacklist(['vk', 'gm', '_', 'surfaceprops']) |
| 480 | blacklist(['vk', 'gm', '_', 'textblobgeometrychange']) |
| 481 | blacklist(['vk', 'gm', '_', 'textbloblooper']) |
| 482 | blacklist(['vk', 'gm', '_', 'textblobmixedsizes']) |
| 483 | blacklist(['vk', 'gm', '_', 'textblobmixedsizes_df']) |
| 484 | blacklist(['vk', 'gm', '_', 'textblobrandomfont']) |
| 485 | blacklist(['vk', 'gm', '_', 'textfilter_color']) |
| 486 | blacklist(['vk', 'gm', '_', 'textfilter_image']) |
| 487 | blacklist(['vk', 'gm', '_', 'typefacerenderingWin']) |
| 488 | blacklist(['vk', 'gm', '_', 'varied_text_clipped_lcd']) |
| 489 | blacklist(['vk', 'gm', '_', 'varied_text_ignorable_clip_lcd']) |
| 490 | blacklist(['vk', 'gm', '_', 'xfermodeimagefilter']) |
| 491 | match.append('~ApplyGamma') |
| 492 | match.append('~ComposedImageFilterBounds_Gpu') |
Matt Sarett | 7744397 | 2017-04-11 11:25:37 -0400 | [diff] [blame] | 493 | match.append('~DeferredTextureImage') |
Chris Dalton | 114a3c0 | 2017-05-26 15:17:19 -0600 | [diff] [blame^] | 494 | match.append('~GrMeshTest') |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 495 | match.append('~ImageFilterFailAffectsTransparentBlack_Gpu') |
| 496 | match.append('~ImageFilterZeroBlurSigma_Gpu') |
| 497 | match.append('~ImageNewShader_GPU') |
| 498 | match.append('~NewTextureFromPixmap') |
| 499 | match.append('~ReadPixels_Gpu') |
| 500 | match.append('~ReadPixels_Texture') |
| 501 | match.append('~ReadWriteAlpha') |
| 502 | match.append('~SRGBReadWritePixels') |
| 503 | match.append('~SpecialImage_DeferredGpu') |
| 504 | match.append('~SpecialImage_Gpu') |
| 505 | match.append('~WritePixels_Gpu') |
Brian Osman | 33ea136 | 2017-04-19 10:51:39 -0400 | [diff] [blame] | 506 | match.append('~WritePixelsNonTexture_Gpu') |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 507 | match.append('~XfermodeImageFilterCroppedInput_Gpu') |
| 508 | |
| 509 | if 'IntelIris540' in bot and 'ANGLE' in bot: |
| 510 | match.append('~IntTexture') # skia:6086 |
| 511 | blacklist(['_', 'gm', '_', 'discard']) # skia:6141 |
| 512 | # skia:6103 |
| 513 | for config in ['angle_d3d9_es2', 'angle_d3d11_es2', 'angle_gl_es2']: |
| 514 | blacklist([config, 'gm', '_', 'multipicturedraw_invpathclip_simple']) |
| 515 | blacklist([config, 'gm', '_', 'multipicturedraw_noclip_simple']) |
| 516 | blacklist([config, 'gm', '_', 'multipicturedraw_pathclip_simple']) |
| 517 | blacklist([config, 'gm', '_', 'multipicturedraw_rectclip_simple']) |
| 518 | blacklist([config, 'gm', '_', 'multipicturedraw_rrectclip_simple']) |
| 519 | |
| 520 | if 'IntelBayTrail' in bot and 'Ubuntu' in bot: |
| 521 | match.append('~ImageStorageLoad') # skia:6358 |
| 522 | |
Kevin Lubick | ae95db4 | 2017-04-10 13:05:49 -0400 | [diff] [blame] | 523 | if 'Ci20' in bot: |
| 524 | match.append('~Codec_Dimensions') # skia:6477 |
| 525 | match.append('~FontMgrAndroidParser') # skia:6478 |
| 526 | match.append('~PathOpsSimplify') # skia:6479 |
| 527 | blacklist(['_', 'gm', '_', 'fast_slow_blurimagefilter']) # skia:6480 |
| 528 | |
Leon Scroggins III | 2005d77 | 2017-05-01 13:09:42 -0400 | [diff] [blame] | 529 | if ('Win10' in bot and 'Vulkan' in bot |
| 530 | and ('GTX1070' in bot or 'GTX660' in bot)): |
| 531 | blacklist('_ test _ SkImage_makeTextureImage') # skia:6554 |
Kevin Lubick | ae95db4 | 2017-04-10 13:05:49 -0400 | [diff] [blame] | 532 | |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 533 | if blacklisted: |
| 534 | args.append('--blacklist') |
| 535 | args.extend(blacklisted) |
| 536 | |
| 537 | if match: |
| 538 | args.append('--match') |
| 539 | args.extend(match) |
| 540 | |
| 541 | # These bots run out of memory running RAW codec tests. Do not run them in |
| 542 | # parallel |
| 543 | if ('NexusPlayer' in bot or 'Nexus5' in bot or 'Nexus9' in bot |
| 544 | or 'Win8-MSVC-ShuttleB' in bot): |
| 545 | args.append('--noRAW_threading') |
| 546 | |
Ben Wagner | 40c0f24 | 2017-04-28 15:55:35 -0400 | [diff] [blame] | 547 | if 'Valgrind' in bot and 'PreAbandonGpuContext' in bot: |
| 548 | args.append('--verbose') |
| 549 | |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 550 | return args |
| 551 | |
| 552 | |
| 553 | def key_params(api): |
| 554 | """Build a unique key from the builder name (as a list). |
| 555 | |
| 556 | E.g. arch x86 gpu GeForce320M mode MacMini4.1 os Mac10.6 |
| 557 | """ |
| 558 | # Don't bother to include role, which is always Test. |
| 559 | # TryBots are uploaded elsewhere so they can use the same key. |
| 560 | blacklist = ['role', 'is_trybot'] |
| 561 | |
| 562 | flat = [] |
| 563 | for k in sorted(api.vars.builder_cfg.keys()): |
| 564 | if k not in blacklist: |
| 565 | flat.append(k) |
| 566 | flat.append(api.vars.builder_cfg[k]) |
| 567 | return flat |
| 568 | |
| 569 | |
| 570 | def test_steps(api): |
| 571 | """Run the DM test.""" |
| 572 | use_hash_file = False |
| 573 | if api.vars.upload_dm_results: |
| 574 | # This must run before we write anything into |
| 575 | # api.flavor.device_dirs.dm_dir or we may end up deleting our |
| 576 | # output on machines where they're the same. |
| 577 | api.flavor.create_clean_host_dir(api.vars.dm_dir) |
| 578 | host_dm_dir = str(api.vars.dm_dir) |
| 579 | device_dm_dir = str(api.flavor.device_dirs.dm_dir) |
| 580 | if host_dm_dir != device_dm_dir: |
| 581 | api.flavor.create_clean_device_dir(device_dm_dir) |
| 582 | |
| 583 | # Obtain the list of already-generated hashes. |
| 584 | hash_filename = 'uninteresting_hashes.txt' |
| 585 | |
| 586 | # Ensure that the tmp_dir exists. |
| 587 | api.run.run_once(api.file.makedirs, |
| 588 | 'tmp_dir', |
| 589 | api.vars.tmp_dir, |
| 590 | infra_step=True) |
| 591 | |
| 592 | host_hashes_file = api.vars.tmp_dir.join(hash_filename) |
| 593 | hashes_file = api.flavor.device_path_join( |
| 594 | api.flavor.device_dirs.tmp_dir, hash_filename) |
| 595 | api.run( |
| 596 | api.python.inline, |
| 597 | 'get uninteresting hashes', |
| 598 | program=""" |
| 599 | import contextlib |
| 600 | import math |
| 601 | import socket |
| 602 | import sys |
| 603 | import time |
| 604 | import urllib2 |
| 605 | |
| 606 | HASHES_URL = 'https://gold.skia.org/_/hashes' |
| 607 | RETRIES = 5 |
| 608 | TIMEOUT = 60 |
| 609 | WAIT_BASE = 15 |
| 610 | |
| 611 | socket.setdefaulttimeout(TIMEOUT) |
| 612 | for retry in range(RETRIES): |
| 613 | try: |
| 614 | with contextlib.closing( |
| 615 | urllib2.urlopen(HASHES_URL, timeout=TIMEOUT)) as w: |
| 616 | hashes = w.read() |
| 617 | with open(sys.argv[1], 'w') as f: |
| 618 | f.write(hashes) |
| 619 | break |
| 620 | except Exception as e: |
| 621 | print 'Failed to get uninteresting hashes from %s:' % HASHES_URL |
| 622 | print e |
| 623 | if retry == RETRIES: |
| 624 | raise |
| 625 | waittime = WAIT_BASE * math.pow(2, retry) |
| 626 | print 'Retry in %d seconds.' % waittime |
| 627 | time.sleep(waittime) |
| 628 | """, |
| 629 | args=[host_hashes_file], |
| 630 | abort_on_failure=False, |
| 631 | fail_build_on_failure=False, |
| 632 | infra_step=True) |
| 633 | |
| 634 | if api.path.exists(host_hashes_file): |
| 635 | api.flavor.copy_file_to_device(host_hashes_file, hashes_file) |
| 636 | use_hash_file = True |
| 637 | |
| 638 | # Run DM. |
| 639 | properties = [ |
| 640 | 'gitHash', api.vars.got_revision, |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 641 | 'builder', api.vars.builder_name, |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 642 | ] |
| 643 | if api.vars.is_trybot: |
| 644 | properties.extend([ |
| 645 | 'issue', api.vars.issue, |
| 646 | 'patchset', api.vars.patchset, |
| 647 | 'patch_storage', api.vars.patch_storage, |
| 648 | ]) |
Eric Boren | f9aa9e5 | 2017-04-10 09:56:10 -0400 | [diff] [blame] | 649 | properties.extend(['swarming_bot_id', api.vars.swarming_bot_id]) |
| 650 | properties.extend(['swarming_task_id', api.vars.swarming_task_id]) |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 651 | |
| 652 | args = [ |
| 653 | 'dm', |
| 654 | '--undefok', # This helps branches that may not know new flags. |
| 655 | '--resourcePath', api.flavor.device_dirs.resource_dir, |
| 656 | '--skps', api.flavor.device_dirs.skp_dir, |
| 657 | '--images', api.flavor.device_path_join( |
| 658 | api.flavor.device_dirs.images_dir, 'dm'), |
| 659 | '--colorImages', api.flavor.device_path_join( |
| 660 | api.flavor.device_dirs.images_dir, 'colorspace'), |
| 661 | '--nameByHash', |
| 662 | '--properties' |
| 663 | ] + properties |
| 664 | |
| 665 | args.extend(['--svgs', api.flavor.device_dirs.svg_dir]) |
| 666 | |
| 667 | args.append('--key') |
| 668 | args.extend(key_params(api)) |
| 669 | if use_hash_file: |
| 670 | args.extend(['--uninterestingHashesFile', hashes_file]) |
| 671 | if api.vars.upload_dm_results: |
| 672 | args.extend(['--writePath', api.flavor.device_dirs.dm_dir]) |
| 673 | |
| 674 | skip_flag = None |
| 675 | if api.vars.builder_cfg.get('cpu_or_gpu') == 'CPU': |
| 676 | skip_flag = '--nogpu' |
| 677 | elif api.vars.builder_cfg.get('cpu_or_gpu') == 'GPU': |
| 678 | skip_flag = '--nocpu' |
| 679 | if skip_flag: |
| 680 | args.append(skip_flag) |
| 681 | args.extend(dm_flags(api.vars.builder_name)) |
| 682 | |
Eric Boren | 896af75 | 2017-04-24 13:22:56 -0400 | [diff] [blame] | 683 | env = {} |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 684 | if 'Ubuntu16' in api.vars.builder_name: |
| 685 | # The vulkan in this asset name simply means that the graphics driver |
| 686 | # supports Vulkan. It is also the driver used for GL code. |
| 687 | dri_path = api.vars.slave_dir.join('linux_vulkan_intel_driver_release') |
| 688 | if 'Debug' in api.vars.builder_name: |
| 689 | dri_path = api.vars.slave_dir.join('linux_vulkan_intel_driver_debug') |
| 690 | |
| 691 | if 'Vulkan' in api.vars.builder_name: |
| 692 | sdk_path = api.vars.slave_dir.join('linux_vulkan_sdk', 'bin') |
| 693 | lib_path = api.vars.slave_dir.join('linux_vulkan_sdk', 'lib') |
| 694 | env.update({ |
| 695 | 'PATH':'%%(PATH)s:%s' % sdk_path, |
| 696 | 'LD_LIBRARY_PATH': '%s:%s' % (lib_path, dri_path), |
| 697 | 'LIBGL_DRIVERS_PATH': dri_path, |
| 698 | 'VK_ICD_FILENAMES':'%s' % dri_path.join('intel_icd.x86_64.json'), |
| 699 | }) |
| 700 | else: |
| 701 | # Even the non-vulkan NUC jobs could benefit from the newer drivers. |
| 702 | env.update({ |
| 703 | 'LD_LIBRARY_PATH': dri_path, |
| 704 | 'LIBGL_DRIVERS_PATH': dri_path, |
| 705 | }) |
| 706 | |
| 707 | # See skia:2789. |
Ben Wagner | 988d15e | 2017-04-27 13:08:50 -0400 | [diff] [blame] | 708 | extra_config_parts = api.vars.builder_cfg.get('extra_config', '').split('_') |
| 709 | if 'AbandonGpuContext' in extra_config_parts: |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 710 | args.append('--abandonGpuContext') |
Ben Wagner | 988d15e | 2017-04-27 13:08:50 -0400 | [diff] [blame] | 711 | if 'PreAbandonGpuContext' in extra_config_parts: |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 712 | args.append('--preAbandonGpuContext') |
Ben Wagner | 988d15e | 2017-04-27 13:08:50 -0400 | [diff] [blame] | 713 | if 'ReleaseAndAbandonGpuContext' in extra_config_parts: |
Eric Boren | 6ec17e3 | 2017-04-26 14:25:29 -0400 | [diff] [blame] | 714 | args.append('--releaseAndAbandonGpuContext') |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 715 | |
Eric Boren | 896af75 | 2017-04-24 13:22:56 -0400 | [diff] [blame] | 716 | with api.env(env): |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 717 | api.run(api.flavor.step, 'dm', cmd=args, abort_on_failure=False) |
| 718 | |
| 719 | if api.vars.upload_dm_results: |
| 720 | # Copy images and JSON to host machine if needed. |
| 721 | api.flavor.copy_directory_contents_to_host( |
| 722 | api.flavor.device_dirs.dm_dir, api.vars.dm_dir) |
| 723 | |
| 724 | |
borenet | 1ed2ae4 | 2016-07-26 11:52:17 -0700 | [diff] [blame] | 725 | def RunSteps(api): |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 726 | api.core.setup() |
Robert Iannucci | 297a7ef | 2017-05-12 19:09:38 -0700 | [diff] [blame] | 727 | env = {} |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 728 | if 'iOS' in api.vars.builder_name: |
| 729 | env['IOS_BUNDLE_ID'] = 'com.google.dm' |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 730 | env['IOS_MOUNT_POINT'] = api.vars.slave_dir.join('mnt_iosdevice') |
Robert Iannucci | 297a7ef | 2017-05-12 19:09:38 -0700 | [diff] [blame] | 731 | with api.context(env=env): |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 732 | try: |
| 733 | api.flavor.install_everything() |
| 734 | test_steps(api) |
| 735 | finally: |
| 736 | api.flavor.cleanup_steps() |
| 737 | api.run.check_failure() |
| 738 | |
| 739 | |
Eric Boren | f9aa9e5 | 2017-04-10 09:56:10 -0400 | [diff] [blame] | 740 | TEST_BUILDERS = [ |
Kevin Lubick | fe079d4 | 2017-04-12 08:31:48 -0400 | [diff] [blame] | 741 | 'Test-Android-Clang-AndroidOne-GPU-Mali400MP2-arm-Release-Android', |
Kevin Lubick | ae95db4 | 2017-04-10 13:05:49 -0400 | [diff] [blame] | 742 | 'Test-Android-Clang-Ci20-CPU-IngenicJZ4780-mipsel-Release-Android', |
Eric Boren | f9aa9e5 | 2017-04-10 09:56:10 -0400 | [diff] [blame] | 743 | 'Test-Android-Clang-GalaxyS6-GPU-MaliT760-arm64-Debug-Android', |
| 744 | 'Test-Android-Clang-GalaxyS7_G930A-GPU-Adreno530-arm64-Debug-Android', |
Kevin Lubick | fe079d4 | 2017-04-12 08:31:48 -0400 | [diff] [blame] | 745 | 'Test-Android-Clang-NVIDIA_Shield-GPU-TegraX1-arm64-Debug-Android', |
| 746 | 'Test-Android-Clang-Nexus10-GPU-MaliT604-arm-Release-Android', |
Eric Boren | f9aa9e5 | 2017-04-10 09:56:10 -0400 | [diff] [blame] | 747 | 'Test-Android-Clang-Nexus5-GPU-Adreno330-arm-Release-Android', |
Kevin Lubick | fe079d4 | 2017-04-12 08:31:48 -0400 | [diff] [blame] | 748 | 'Test-Android-Clang-Nexus6p-GPU-Adreno430-arm64-Debug-Android_Vulkan', |
| 749 | 'Test-Android-Clang-Nexus7-GPU-Tegra3-arm-Debug-Android', |
| 750 | 'Test-Android-Clang-NexusPlayer-CPU-SSE4-x86-Release-Android', |
| 751 | 'Test-Android-Clang-NexusPlayer-GPU-PowerVR-x86-Release-Android_Vulkan', |
| 752 | 'Test-Android-Clang-PixelC-CPU-TegraX1-arm64-Debug-Android', |
Eric Boren | f9aa9e5 | 2017-04-10 09:56:10 -0400 | [diff] [blame] | 753 | 'Test-ChromeOS-Clang-Chromebook_C100p-GPU-MaliT764-arm-Debug', |
Eric Boren | f9aa9e5 | 2017-04-10 09:56:10 -0400 | [diff] [blame] | 754 | 'Test-Mac-Clang-MacMini6.2-CPU-AVX-x86_64-Debug', |
Robert Phillips | 985e192 | 2017-05-25 07:56:01 -0400 | [diff] [blame] | 755 | 'Test-Mac-Clang-MacMini6.2-GPU-IntelHD4000-x86_64-Debug-CommandBuffer', |
Kevin Lubick | fe079d4 | 2017-04-12 08:31:48 -0400 | [diff] [blame] | 756 | 'Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Debug-ASAN', |
| 757 | 'Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Debug-MSAN', |
| 758 | 'Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Release-TSAN', |
Eric Boren | f9aa9e5 | 2017-04-10 09:56:10 -0400 | [diff] [blame] | 759 | 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86-Debug', |
| 760 | 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug', |
Eric Boren | f9aa9e5 | 2017-04-10 09:56:10 -0400 | [diff] [blame] | 761 | 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', |
| 762 | ('Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind' + |
| 763 | '_AbandonGpuContext'), |
| 764 | ('Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind' + |
| 765 | '_PreAbandonGpuContext'), |
Eric Boren | f9aa9e5 | 2017-04-10 09:56:10 -0400 | [diff] [blame] | 766 | ('Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-SK_USE_DISCARDABLE_' + |
| 767 | 'SCALEDIMAGECACHE'), |
Kevin Lubick | fe079d4 | 2017-04-12 08:31:48 -0400 | [diff] [blame] | 768 | 'Test-Ubuntu16-Clang-NUC5PPYH-GPU-IntelHD405-x86_64-Debug', |
| 769 | 'Test-Ubuntu16-Clang-NUC6i5SYK-GPU-IntelIris540-x86_64-Debug-Vulkan', |
| 770 | 'Test-Ubuntu16-Clang-NUC6i5SYK-GPU-IntelIris540-x86_64-Release', |
| 771 | 'Test-Ubuntu16-Clang-NUCDE3815TYKHE-GPU-IntelBayTrail-x86_64-Debug', |
Leon Scroggins III | bb8126d | 2017-05-02 11:14:31 -0400 | [diff] [blame] | 772 | 'Test-Win8-MSVC-Golo-CPU-AVX-x86-Debug', |
Kevin Lubick | fe079d4 | 2017-04-12 08:31:48 -0400 | [diff] [blame] | 773 | 'Test-Win10-MSVC-AlphaR2-GPU-RadeonR9M470X-x86_64-Debug-Vulkan', |
Eric Boren | 6ec17e3 | 2017-04-26 14:25:29 -0400 | [diff] [blame] | 774 | ('Test-Win10-MSVC-NUC5i7RYH-GPU-IntelIris6100-x86_64-Release-' |
| 775 | 'ReleaseAndAbandonGpuContext'), |
Kevin Lubick | fe079d4 | 2017-04-12 08:31:48 -0400 | [diff] [blame] | 776 | 'Test-Win10-MSVC-NUC6i5SYK-GPU-IntelIris540-x86_64-Debug-ANGLE', |
| 777 | 'Test-Win10-MSVC-NUC6i5SYK-GPU-IntelIris540-x86_64-Debug-Vulkan', |
| 778 | 'Test-Win10-MSVC-ShuttleA-GPU-GTX660-x86_64-Debug-Vulkan', |
| 779 | 'Test-Win10-MSVC-ShuttleC-GPU-GTX960-x86_64-Debug-ANGLE', |
| 780 | 'Test-Win10-MSVC-ZBOX-GPU-GTX1070-x86_64-Debug-Vulkan', |
| 781 | 'Test-iOS-Clang-iPadMini4-GPU-GX6450-arm-Release', |
Mike Klein | 97627d4 | 2017-05-11 13:12:48 -0400 | [diff] [blame] | 782 | ('Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Release-' |
| 783 | 'SK_FORCE_RASTER_PIPELINE_BLITTER'), |
Eric Boren | f9aa9e5 | 2017-04-10 09:56:10 -0400 | [diff] [blame] | 784 | ] |
borenet | 1ed2ae4 | 2016-07-26 11:52:17 -0700 | [diff] [blame] | 785 | |
| 786 | |
| 787 | def GenTests(api): |
Eric Boren | f9aa9e5 | 2017-04-10 09:56:10 -0400 | [diff] [blame] | 788 | for builder in TEST_BUILDERS: |
| 789 | test = ( |
| 790 | api.test(builder) + |
| 791 | api.properties(buildername=builder, |
| 792 | revision='abc123', |
| 793 | path_config='kitchen', |
| 794 | swarm_out_dir='[SWARM_OUT_DIR]') + |
| 795 | api.path.exists( |
| 796 | api.path['start_dir'].join('skia'), |
| 797 | api.path['start_dir'].join('skia', 'infra', 'bots', 'assets', |
| 798 | 'skimage', 'VERSION'), |
| 799 | api.path['start_dir'].join('skia', 'infra', 'bots', 'assets', |
| 800 | 'skp', 'VERSION'), |
| 801 | api.path['start_dir'].join('skia', 'infra', 'bots', 'assets', |
| 802 | 'svg', 'VERSION'), |
| 803 | api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt') |
Ben Wagner | f835c22 | 2017-04-30 11:14:51 -0400 | [diff] [blame] | 804 | ) + |
| 805 | api.step_data('get swarming bot id', |
| 806 | stdout=api.raw_io.output('skia-bot-123')) + |
| 807 | api.step_data('get swarming task id', |
| 808 | stdout=api.raw_io.output('123456')) |
Eric Boren | f9aa9e5 | 2017-04-10 09:56:10 -0400 | [diff] [blame] | 809 | ) |
Eric Boren | f9aa9e5 | 2017-04-10 09:56:10 -0400 | [diff] [blame] | 810 | if 'Win' in builder: |
| 811 | test += api.platform('win', 64) |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 812 | |
Eric Boren | f9aa9e5 | 2017-04-10 09:56:10 -0400 | [diff] [blame] | 813 | if 'ChromeOS' in builder: |
| 814 | test += api.step_data( |
| 815 | 'read chromeos ip', |
| 816 | stdout=api.raw_io.output('{"user_ip":"foo@127.0.0.1"}')) |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 817 | |
| 818 | |
Eric Boren | f9aa9e5 | 2017-04-10 09:56:10 -0400 | [diff] [blame] | 819 | yield test |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 820 | |
Kevin Lubick | fe079d4 | 2017-04-12 08:31:48 -0400 | [diff] [blame] | 821 | builder = 'Test-Win2k8-MSVC-GCE-CPU-AVX2-x86_64-Release' |
| 822 | yield ( |
| 823 | api.test('trybot') + |
| 824 | api.properties(buildername=builder, |
| 825 | revision='abc123', |
| 826 | path_config='kitchen', |
| 827 | swarm_out_dir='[SWARM_OUT_DIR]') + |
| 828 | api.properties(patch_storage='gerrit') + |
| 829 | api.properties.tryserver( |
| 830 | buildername=builder, |
| 831 | gerrit_project='skia', |
| 832 | gerrit_url='https://skia-review.googlesource.com/', |
| 833 | )+ |
| 834 | api.path.exists( |
| 835 | api.path['start_dir'].join('skia'), |
| 836 | api.path['start_dir'].join('skia', 'infra', 'bots', 'assets', |
| 837 | 'skimage', 'VERSION'), |
| 838 | api.path['start_dir'].join('skia', 'infra', 'bots', 'assets', |
| 839 | 'skp', 'VERSION'), |
| 840 | api.path['start_dir'].join('skia', 'infra', 'bots', 'assets', |
| 841 | 'svg', 'VERSION'), |
| 842 | api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt') |
| 843 | ) |
| 844 | ) |
| 845 | |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 846 | builder = 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug' |
borenet | 1ed2ae4 | 2016-07-26 11:52:17 -0700 | [diff] [blame] | 847 | yield ( |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 848 | api.test('failed_dm') + |
| 849 | api.properties(buildername=builder, |
borenet | 1ed2ae4 | 2016-07-26 11:52:17 -0700 | [diff] [blame] | 850 | revision='abc123', |
| 851 | path_config='kitchen', |
| 852 | swarm_out_dir='[SWARM_OUT_DIR]') + |
| 853 | api.path.exists( |
Ravi Mistry | 9bcca6a | 2016-11-21 16:06:19 -0500 | [diff] [blame] | 854 | api.path['start_dir'].join('skia'), |
| 855 | api.path['start_dir'].join('skia', 'infra', 'bots', 'assets', |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 856 | 'skimage', 'VERSION'), |
Ravi Mistry | 9bcca6a | 2016-11-21 16:06:19 -0500 | [diff] [blame] | 857 | api.path['start_dir'].join('skia', 'infra', 'bots', 'assets', |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 858 | 'skp', 'VERSION'), |
Ravi Mistry | 9bcca6a | 2016-11-21 16:06:19 -0500 | [diff] [blame] | 859 | api.path['start_dir'].join('skia', 'infra', 'bots', 'assets', |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 860 | 'svg', 'VERSION'), |
Ravi Mistry | 9bcca6a | 2016-11-21 16:06:19 -0500 | [diff] [blame] | 861 | api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt') |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 862 | ) + |
| 863 | api.step_data('symbolized dm', retcode=1) |
| 864 | ) |
| 865 | |
Kevin Lubick | fe079d4 | 2017-04-12 08:31:48 -0400 | [diff] [blame] | 866 | builder = 'Test-Android-Clang-Nexus7-GPU-Tegra3-arm-Debug-Android' |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 867 | yield ( |
| 868 | api.test('failed_get_hashes') + |
| 869 | api.properties(buildername=builder, |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 870 | revision='abc123', |
| 871 | path_config='kitchen', |
| 872 | swarm_out_dir='[SWARM_OUT_DIR]') + |
| 873 | api.path.exists( |
| 874 | api.path['start_dir'].join('skia'), |
| 875 | api.path['start_dir'].join('skia', 'infra', 'bots', 'assets', |
| 876 | 'skimage', 'VERSION'), |
| 877 | api.path['start_dir'].join('skia', 'infra', 'bots', 'assets', |
| 878 | 'skp', 'VERSION'), |
| 879 | api.path['start_dir'].join('skia', 'infra', 'bots', 'assets', |
| 880 | 'svg', 'VERSION'), |
| 881 | api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt') |
| 882 | ) + |
| 883 | api.step_data('get uninteresting hashes', retcode=1) |
| 884 | ) |
| 885 | |
Kevin Lubick | fe079d4 | 2017-04-12 08:31:48 -0400 | [diff] [blame] | 886 | builder = 'Test-Android-Clang-NexusPlayer-CPU-SSE4-x86-Debug-Android' |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 887 | yield ( |
| 888 | api.test('failed_push') + |
| 889 | api.properties(buildername=builder, |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 890 | revision='abc123', |
| 891 | path_config='kitchen', |
| 892 | swarm_out_dir='[SWARM_OUT_DIR]') + |
| 893 | api.path.exists( |
| 894 | api.path['start_dir'].join('skia'), |
| 895 | api.path['start_dir'].join('skia', 'infra', 'bots', 'assets', |
| 896 | 'skimage', 'VERSION'), |
| 897 | api.path['start_dir'].join('skia', 'infra', 'bots', 'assets', |
| 898 | 'skp', 'VERSION'), |
| 899 | api.path['start_dir'].join('skia', 'infra', 'bots', 'assets', |
| 900 | 'svg', 'VERSION'), |
| 901 | api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt') |
| 902 | ) + |
| 903 | api.step_data('push [START_DIR]/skia/resources/* '+ |
| 904 | '/sdcard/revenge_of_the_skiabot/resources', retcode=1) |
| 905 | ) |
| 906 | |
| 907 | builder = 'Test-Android-Clang-Nexus10-GPU-MaliT604-arm-Debug-Android' |
| 908 | yield ( |
| 909 | api.test('failed_pull') + |
| 910 | api.properties(buildername=builder, |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 911 | revision='abc123', |
| 912 | path_config='kitchen', |
| 913 | swarm_out_dir='[SWARM_OUT_DIR]') + |
| 914 | api.path.exists( |
| 915 | api.path['start_dir'].join('skia'), |
| 916 | api.path['start_dir'].join('skia', 'infra', 'bots', 'assets', |
| 917 | 'skimage', 'VERSION'), |
| 918 | api.path['start_dir'].join('skia', 'infra', 'bots', 'assets', |
| 919 | 'skp', 'VERSION'), |
| 920 | api.path['start_dir'].join('skia', 'infra', 'bots', 'assets', |
| 921 | 'svg', 'VERSION'), |
| 922 | api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt') |
| 923 | ) + |
| 924 | api.step_data('dm', retcode=1) + |
| 925 | api.step_data('pull /sdcard/revenge_of_the_skiabot/dm_out '+ |
| 926 | '[CUSTOM_[SWARM_OUT_DIR]]/dm', retcode=1) |
borenet | bfa5b45 | 2016-10-19 10:13:32 -0700 | [diff] [blame] | 927 | ) |