OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 | 5 |
6 # Recipe module for Skia Swarming test. | 6 # Recipe module for Skia Swarming test. |
7 | 7 |
8 | 8 |
9 DEPS = [ | 9 DEPS = [ |
10 'build/file', | 10 'build/file', |
11 'core', | 11 'core', |
12 'recipe_engine/json', | 12 'recipe_engine/json', |
13 'recipe_engine/path', | 13 'recipe_engine/path', |
14 'recipe_engine/platform', | 14 'recipe_engine/platform', |
15 'recipe_engine/properties', | 15 'recipe_engine/properties', |
16 'recipe_engine/python', | 16 'recipe_engine/python', |
17 'recipe_engine/raw_io', | 17 'recipe_engine/raw_io', |
18 'flavor', | 18 'flavor', |
19 'run', | 19 'run', |
20 'vars', | 20 'vars', |
21 ] | 21 ] |
22 | 22 |
23 | 23 |
24 TEST_BUILDERS = { | 24 TEST_BUILDERS = { |
25 'client.skia': { | 25 'client.skia': { |
26 'skiabot-linux-swarm-000': [ | 26 'skiabot-linux-swarm-000': [ |
| 27 #'Test-Android-GCC-AndroidOne-GPU-Mali400MP2-Arm7-Release', |
27 'Test-Android-GCC-GalaxyS3-GPU-Mali400-Arm7-Debug', | 28 'Test-Android-GCC-GalaxyS3-GPU-Mali400-Arm7-Debug', |
| 29 #'Test-Android-GCC-Nexus10-GPU-MaliT604-Arm7-Release', |
| 30 #'Test-Android-GCC-Nexus6-GPU-Adreno420-Arm7-Debug', |
28 'Test-Android-GCC-Nexus7-GPU-Tegra3-Arm7-Debug', | 31 'Test-Android-GCC-Nexus7-GPU-Tegra3-Arm7-Debug', |
| 32 #'Test-Android-GCC-Nexus9-CPU-Denver-Arm64-Debug', |
| 33 #'Test-Android-GCC-NexusPlayer-CPU-SSE4-x86-Release', |
| 34 #'Test-Android-GCC-NVIDIA_Shield-GPU-TegraX1-Arm64-Debug', |
29 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug', | 35 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug', |
| 36 #'Test-Mac-Clang-MacMini4.1-GPU-GeForce320M-x86_64-Debug', |
| 37 #'Test-Mac-Clang-MacMini6.2-CPU-AVX-x86_64-Debug', |
| 38 #'Test-Mac-Clang-MacMini6.2-GPU-HD4000-x86_64-Debug-CommandBuffer', |
30 'Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Coverage-Trybot', | 39 'Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Coverage-Trybot', |
| 40 #'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86-Debug', |
31 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug', | 41 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug', |
32 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-MSAN', | 42 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-MSAN', |
| 43 #'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-TSAN', |
33 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', | 44 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', |
| 45 #'Test-Win10-MSVC-ShuttleA-GPU-GTX660-x86_64-Debug-Vulkan', |
34 'Test-Win8-MSVC-ShuttleB-CPU-AVX2-x86_64-Release-Trybot', | 46 'Test-Win8-MSVC-ShuttleB-CPU-AVX2-x86_64-Release-Trybot', |
| 47 #'Test-Win8-MSVC-ShuttleB-GPU-GTX960-x86_64-Debug-ANGLE', |
35 ], | 48 ], |
36 }, | 49 }, |
37 } | 50 } |
38 | 51 |
39 | 52 |
| 53 def dm_flags(bot): |
| 54 args = [] |
| 55 |
| 56 # 32-bit desktop bots tend to run out of memory, because they have relatively |
| 57 # far more cores than RAM (e.g. 32 cores, 3G RAM). Hold them back a bit. |
| 58 if '-x86-' in bot and not 'NexusPlayer' in bot: |
| 59 args.extend('--threads 4'.split(' ')) # pragma: no cover |
| 60 |
| 61 # These are the canonical configs that we would ideally run on all bots. We |
| 62 # may opt out or substitute some below for specific bots |
| 63 configs = ['565', '8888', 'gpu', 'gpusrgb', 'pdf'] |
| 64 # Add in either msaa4 or msaa16 to the canonical set of configs to run |
| 65 if 'Android' in bot or 'iOS' in bot: |
| 66 configs.append('msaa4') |
| 67 else: |
| 68 configs.append('msaa16') |
| 69 |
| 70 # With msaa, the S4 crashes and the NP produces a long error stream when we |
| 71 # run with MSAA. The Tegra2 and Tegra3 just don't support it. No record of |
| 72 # why we're not running msaa on iOS, probably started with gpu config and just |
| 73 # haven't tried. |
| 74 if ('GalaxyS4' in bot or |
| 75 'NexusPlayer' in bot or |
| 76 'Tegra3' in bot or |
| 77 'iOS' in bot): |
| 78 configs = [x for x in configs if 'msaa' not in x] |
| 79 |
| 80 # Runs out of memory on Android bots and Daisy. Everyone else seems fine. |
| 81 if 'Android' in bot or 'Daisy' in bot: |
| 82 configs.remove('pdf') |
| 83 |
| 84 if '-GCE-' in bot: |
| 85 configs.extend(['f16', 'srgb']) # Gamma-correct formats. |
| 86 configs.extend(['sp-8888', '2ndpic-8888']) # Test niche uses of SkPicture. |
| 87 |
| 88 if '-TSAN' not in bot: |
| 89 if ('TegraK1' in bot or |
| 90 'TegraX1' in bot or |
| 91 'GTX550Ti' in bot or |
| 92 'GTX660' in bot or |
| 93 'GT610' in bot): |
| 94 if 'Android' in bot: |
| 95 configs.append('nvprdit4') # pragma: no cover |
| 96 else: |
| 97 configs.append('nvprdit16') |
| 98 |
| 99 # We want to test the OpenGL config not the GLES config on the X1 |
| 100 if 'TegraX1' in bot: # pragma: no cover |
| 101 configs = [x.replace('gpu', 'gl') for x in configs] |
| 102 configs = [x.replace('msaa', 'glmsaa') for x in configs] |
| 103 configs = [x.replace('nvpr', 'glnvpr') for x in configs] |
| 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 if 'ANGLE' in bot: |
| 111 configs.append('angle') # pragma: no cover |
| 112 |
| 113 # We want to run gpudft on atleast the mali 400 |
| 114 if 'GalaxyS3' in bot: |
| 115 configs.append('gpudft') |
| 116 |
| 117 # Test instanced rendering on a limited number of platforms |
| 118 if 'Nexus6' in bot: # pragma: no cover |
| 119 configs.append('esinst') # esinst4 isn't working yet on Adreno. |
| 120 elif 'TegraX1' in bot: # pragma: no cover |
| 121 # Multisampled instanced configs use nvpr. |
| 122 configs = [x.replace('glnvpr', 'glinst') for x in configs] |
| 123 configs.append('glinst') |
| 124 elif 'MacMini6.2' in bot: |
| 125 configs.extend(['glinst', 'glinst16']) # pragma: no cover |
| 126 |
| 127 # CommandBuffer bot *only* runs the command_buffer config. |
| 128 if 'CommandBuffer' in bot: |
| 129 configs = ['commandbuffer'] # pragma: no cover |
| 130 |
| 131 # Vulkan bot *only* runs the vk config. |
| 132 if 'Vulkan' in bot: |
| 133 configs = ['vk'] # pragma: no cover |
| 134 |
| 135 args.append('--config') |
| 136 args.extend(configs) |
| 137 |
| 138 # Run tests, gms, and image decoding tests everywhere. |
| 139 args.extend('--src tests gm image colorImage'.split(' ')) |
| 140 |
| 141 if 'GalaxyS' in bot: |
| 142 args.extend(('--threads', '0')) |
| 143 |
| 144 blacklist = [] |
| 145 |
| 146 # TODO: ??? |
| 147 blacklist.extend('f16 _ _ dstreadshuffle'.split(' ')) |
| 148 blacklist.extend('f16 image _ _'.split(' ')) |
| 149 blacklist.extend('srgb image _ _'.split(' ')) |
| 150 blacklist.extend('gpusrgb image _ _'.split(' ')) |
| 151 |
| 152 if 'Valgrind' in bot: |
| 153 # These take 18+ hours to run. |
| 154 blacklist.extend('pdf gm _ fontmgr_iter'.split(' ')) |
| 155 blacklist.extend('pdf _ _ PANO_20121023_214540.jpg'.split(' ')) |
| 156 blacklist.extend('pdf skp _ worldjournal'.split(' ')) |
| 157 blacklist.extend('pdf skp _ desk_baidu.skp'.split(' ')) |
| 158 blacklist.extend('pdf skp _ desk_wikipedia.skp'.split(' ')) |
| 159 |
| 160 if 'iOS' in bot: |
| 161 blacklist.extend('gpu skp _ _ msaa skp _ _'.split(' ')) |
| 162 blacklist.extend('msaa16 gm _ tilemodesProcess'.split(' ')) |
| 163 |
| 164 if 'Mac' in bot or 'iOS' in bot: |
| 165 # CG fails on questionable bmps |
| 166 blacklist.extend('_ image gen_platf rgba32abf.bmp'.split(' ')) |
| 167 blacklist.extend('_ image gen_platf rgb24prof.bmp'.split(' ')) |
| 168 blacklist.extend('_ image gen_platf rgb24lprof.bmp'.split(' ')) |
| 169 blacklist.extend('_ image gen_platf 8bpp-pixeldata-cropped.bmp'.split(' ')) |
| 170 blacklist.extend('_ image gen_platf 4bpp-pixeldata-cropped.bmp'.split(' ')) |
| 171 blacklist.extend('_ image gen_platf 32bpp-pixeldata-cropped.bmp'.split(' ')) |
| 172 blacklist.extend('_ image gen_platf 24bpp-pixeldata-cropped.bmp'.split(' ')) |
| 173 |
| 174 # CG has unpredictable behavior on this questionable gif |
| 175 # It's probably using uninitialized memory |
| 176 blacklist.extend('_ image gen_platf frame_larger_than_image.gif'.split(' ')) |
| 177 |
| 178 # WIC fails on questionable bmps |
| 179 if 'Win' in bot: |
| 180 blacklist.extend('_ image gen_platf rle8-height-negative.bmp'.split(' ')) |
| 181 blacklist.extend('_ image gen_platf rle4-height-negative.bmp'.split(' ')) |
| 182 blacklist.extend('_ image gen_platf pal8os2v2.bmp'.split(' ')) |
| 183 blacklist.extend('_ image gen_platf pal8os2v2-16.bmp'.split(' ')) |
| 184 blacklist.extend('_ image gen_platf rgba32abf.bmp'.split(' ')) |
| 185 blacklist.extend('_ image gen_platf rgb24prof.bmp'.split(' ')) |
| 186 blacklist.extend('_ image gen_platf rgb24lprof.bmp'.split(' ')) |
| 187 blacklist.extend('_ image gen_platf 8bpp-pixeldata-cropped.bmp'.split(' ')) |
| 188 blacklist.extend('_ image gen_platf 4bpp-pixeldata-cropped.bmp'.split(' ')) |
| 189 blacklist.extend('_ image gen_platf 32bpp-pixeldata-cropped.bmp'.split(' ')) |
| 190 blacklist.extend('_ image gen_platf 24bpp-pixeldata-cropped.bmp'.split(' ')) |
| 191 if 'x86_64' in bot and 'CPU' in bot: |
| 192 # This GM triggers a SkSmallAllocator assert. |
| 193 blacklist.extend('_ gm _ composeshader_bitmap'.split(' ')) |
| 194 |
| 195 if 'Android' in bot or 'iOS' in bot: |
| 196 # This test crashes the N9 (perhaps because of large malloc/frees). It also |
| 197 # is fairly slow and not platform-specific. So we just disable it on all of |
| 198 # Android and iOS. skia:5438 |
| 199 blacklist.extend('_ test _ GrShape'.split(' ')) |
| 200 |
| 201 if 'Win8' in bot: |
| 202 # bungeman: "Doesn't work on Windows anyway, produces unstable GMs with |
| 203 # 'Unexpected error' from DirectWrite" |
| 204 blacklist.extend('_ gm _ fontscalerdistortable'.split(' ')) |
| 205 |
| 206 # skia:4095 |
| 207 bad_serialize_gms = ['bleed_image', |
| 208 'c_gms', |
| 209 'colortype', |
| 210 'colortype_xfermodes', |
| 211 'drawfilter', |
| 212 'fontmgr_bounds_0.75_0', |
| 213 'fontmgr_bounds_1_-0.25', |
| 214 'fontmgr_bounds', |
| 215 'fontmgr_match', |
| 216 'fontmgr_iter'] |
| 217 |
| 218 # skia:5589 |
| 219 bad_serialize_gms.extend(['bitmapfilters', |
| 220 'bitmapshaders', |
| 221 'bleed', |
| 222 'bleed_alpha_bmp', |
| 223 'bleed_alpha_bmp_shader', |
| 224 'convex_poly_clip', |
| 225 'extractalpha', |
| 226 'filterbitmap_checkerboard_32_32_g8', |
| 227 'filterbitmap_image_mandrill_64', |
| 228 'shadows', |
| 229 'simpleaaclip_aaclip']) |
| 230 # skia:5595 |
| 231 bad_serialize_gms.extend(['composeshader_bitmap', |
| 232 'scaled_tilemodes_npot', |
| 233 'scaled_tilemodes']) |
| 234 for test in bad_serialize_gms: |
| 235 blacklist.extend(['serialize-8888', 'gm', '_', test]) |
| 236 |
| 237 if 'Mac' not in bot: |
| 238 for test in ['bleed_alpha_image', 'bleed_alpha_image_shader']: |
| 239 blacklist.extend(['serialize-8888', 'gm', '_', test]) |
| 240 # It looks like we skip these only for out-of-memory concerns. |
| 241 if 'Win' in bot or 'Android' in bot: |
| 242 for test in ['verylargebitmap', 'verylarge_picture_image']: |
| 243 blacklist.extend(['serialize-8888', 'gm', '_', test]) |
| 244 |
| 245 # skia:4769 |
| 246 for test in ['drawfilter']: |
| 247 blacklist.extend([ 'sp-8888', 'gm', '_', test]) |
| 248 blacklist.extend([ 'pic-8888', 'gm', '_', test]) |
| 249 blacklist.extend(['2ndpic-8888', 'gm', '_', test]) |
| 250 # skia:4703 |
| 251 for test in ['image-cacherator-from-picture', |
| 252 'image-cacherator-from-raster', |
| 253 'image-cacherator-from-ctable']: |
| 254 blacklist.extend([ 'sp-8888', 'gm', '_', test]) |
| 255 blacklist.extend([ 'pic-8888', 'gm', '_', test]) |
| 256 blacklist.extend([ '2ndpic-8888', 'gm', '_', test]) |
| 257 blacklist.extend(['serialize-8888', 'gm', '_', test]) |
| 258 |
| 259 # Extensions for RAW images |
| 260 r = ["arw", "cr2", "dng", "nef", "nrw", "orf", "raf", "rw2", "pef", "srw", |
| 261 "ARW", "CR2", "DNG", "NEF", "NRW", "ORF", "RAF", "RW2", "PEF", "SRW"] |
| 262 |
| 263 # skbug.com/4888 |
| 264 # Blacklist RAW images (and a few large PNGs) on GPU bots |
| 265 # until we can resolve failures |
| 266 if 'GPU' in bot: |
| 267 blacklist.extend('_ image _ interlaced1.png'.split(' ')) |
| 268 blacklist.extend('_ image _ interlaced2.png'.split(' ')) |
| 269 blacklist.extend('_ image _ interlaced3.png'.split(' ')) |
| 270 for raw_ext in r: |
| 271 blacklist.extend(('_ image _ .%s' % raw_ext).split(' ')) |
| 272 |
| 273 if 'Nexus9' in bot: # pragma: no cover |
| 274 for raw_ext in r: |
| 275 blacklist.extend(('_ image _ .%s' % raw_ext).split(' ')) |
| 276 |
| 277 # Large image that overwhelms older Mac bots |
| 278 if 'MacMini4.1-GPU' in bot: # pragma: no cover |
| 279 blacklist.extend('_ image _ abnormal.wbmp'.split(' ')) |
| 280 blacklist.extend(['msaa16', 'gm', '_', 'blurcircles']) |
| 281 |
| 282 match = [] |
| 283 if 'Valgrind' in bot: # skia:3021 |
| 284 match.append('~Threaded') |
| 285 |
| 286 if 'GalaxyS3' in bot: # skia:1699 |
| 287 match.append('~WritePixels') |
| 288 |
| 289 if 'AndroidOne' in bot: # skia:4711 |
| 290 match.append('~WritePixels') # pragma: no cover |
| 291 |
| 292 if 'NexusPlayer' in bot: |
| 293 match.append('~ResourceCache') # pragma: no cover |
| 294 |
| 295 if 'Nexus10' in bot: # skia:5509 |
| 296 match.append('~CopySurface') # pragma: no cover |
| 297 |
| 298 if 'ANGLE' in bot and 'Debug' in bot: # pragma: no cover |
| 299 match.append('~GLPrograms') # skia:4717 |
| 300 |
| 301 if 'MSAN' in bot: |
| 302 match.extend(['~Once', '~Shared']) # Not sure what's up with these tests. |
| 303 |
| 304 if 'TSAN' in bot: # pragma: no cover |
| 305 match.extend(['~ReadWriteAlpha']) # Flaky on TSAN-covered on nvidia bots. |
| 306 |
| 307 if blacklist: |
| 308 args.append('--blacklist') |
| 309 args.extend(blacklist) |
| 310 |
| 311 if match: |
| 312 args.append('--match') |
| 313 args.extend(match) |
| 314 |
| 315 # These bots run out of memory running RAW codec tests. Do not run them in |
| 316 # parallel |
| 317 if ('NexusPlayer' in bot or 'Nexus5' in bot or 'Nexus9' in bot |
| 318 or 'Win8-MSVC-ShuttleB' in bot): |
| 319 args.append('--noRAW_threading') |
| 320 |
| 321 return args |
| 322 |
| 323 |
40 def key_params(api): | 324 def key_params(api): |
41 """Build a unique key from the builder name (as a list). | 325 """Build a unique key from the builder name (as a list). |
42 | 326 |
43 E.g. arch x86 gpu GeForce320M mode MacMini4.1 os Mac10.6 | 327 E.g. arch x86 gpu GeForce320M mode MacMini4.1 os Mac10.6 |
44 """ | 328 """ |
45 # Don't bother to include role, which is always Test. | 329 # Don't bother to include role, which is always Test. |
46 # TryBots are uploaded elsewhere so they can use the same key. | 330 # TryBots are uploaded elsewhere so they can use the same key. |
47 blacklist = ['role', 'is_trybot'] | 331 blacklist = ['role', 'is_trybot'] |
48 | 332 |
49 flat = [] | 333 flat = [] |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 if api.vars.upload_dm_results: | 440 if api.vars.upload_dm_results: |
157 args.extend(['--writePath', api.flavor.device_dirs.dm_dir]) | 441 args.extend(['--writePath', api.flavor.device_dirs.dm_dir]) |
158 | 442 |
159 skip_flag = None | 443 skip_flag = None |
160 if api.vars.builder_cfg.get('cpu_or_gpu') == 'CPU': | 444 if api.vars.builder_cfg.get('cpu_or_gpu') == 'CPU': |
161 skip_flag = '--nogpu' | 445 skip_flag = '--nogpu' |
162 elif api.vars.builder_cfg.get('cpu_or_gpu') == 'GPU': | 446 elif api.vars.builder_cfg.get('cpu_or_gpu') == 'GPU': |
163 skip_flag = '--nocpu' | 447 skip_flag = '--nocpu' |
164 if skip_flag: | 448 if skip_flag: |
165 args.append(skip_flag) | 449 args.append(skip_flag) |
166 args.extend(api.vars.builder_spec['dm_flags']) | 450 args.extend(dm_flags(api.vars.builder_name)) |
167 | 451 |
168 api.run(api.flavor.step, 'dm', cmd=args, | 452 api.run(api.flavor.step, 'dm', cmd=args, |
169 abort_on_failure=False, | 453 abort_on_failure=False, |
170 env=api.vars.default_env) | 454 env=api.vars.default_env) |
171 | 455 |
172 if api.vars.upload_dm_results: | 456 if api.vars.upload_dm_results: |
173 # Copy images and JSON to host machine if needed. | 457 # Copy images and JSON to host machine if needed. |
174 api.flavor.copy_directory_contents_to_host( | 458 api.flavor.copy_directory_contents_to_host( |
175 api.flavor.device_dirs.dm_dir, api.vars.dm_dir) | 459 api.flavor.device_dirs.dm_dir, api.vars.dm_dir) |
176 | 460 |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
457 api.path.exists( | 741 api.path.exists( |
458 api.path['slave_build'].join('skia'), | 742 api.path['slave_build'].join('skia'), |
459 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', | 743 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', |
460 'skimage', 'VERSION'), | 744 'skimage', 'VERSION'), |
461 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', | 745 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', |
462 'skp', 'VERSION'), | 746 'skp', 'VERSION'), |
463 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') | 747 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') |
464 ) + | 748 ) + |
465 api.platform('win', 64) | 749 api.platform('win', 64) |
466 ) | 750 ) |
OLD | NEW |