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