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 | 896af75 | 2017-04-24 13:22:56 -0400 | [diff] [blame] | 10 | 'env', |
| 11 | 'flavor', |
Robert Iannucci | 297a7ef | 2017-05-12 19:09:38 -0700 | [diff] [blame] | 12 | 'recipe_engine/context', |
Robert Iannucci | 8cd5041 | 2017-07-07 14:36:58 -0700 | [diff] [blame] | 13 | 'recipe_engine/file', |
borenet | 1ed2ae4 | 2016-07-26 11:52:17 -0700 | [diff] [blame] | 14 | 'recipe_engine/path', |
| 15 | 'recipe_engine/platform', |
| 16 | 'recipe_engine/properties', |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 17 | 'recipe_engine/python', |
borenet | 1ed2ae4 | 2016-07-26 11:52:17 -0700 | [diff] [blame] | 18 | 'recipe_engine/raw_io', |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 19 | 'recipe_engine/step', |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 20 | 'run', |
| 21 | 'vars', |
borenet | 1ed2ae4 | 2016-07-26 11:52:17 -0700 | [diff] [blame] | 22 | ] |
| 23 | |
| 24 | |
Eric Boren | 72f6668 | 2018-05-18 07:36:55 -0400 | [diff] [blame] | 25 | def upload_dm_results(buildername): |
| 26 | skip_upload_bots = [ |
| 27 | 'ASAN', |
| 28 | 'Coverage', |
| 29 | 'MSAN', |
| 30 | 'TSAN', |
| 31 | 'UBSAN', |
| 32 | 'Valgrind', |
| 33 | ] |
| 34 | for s in skip_upload_bots: |
| 35 | if s in buildername: |
| 36 | return False |
| 37 | return True |
| 38 | |
| 39 | |
Eric Boren | 89cd357 | 2017-06-28 13:50:22 -0400 | [diff] [blame] | 40 | def dm_flags(api, bot): |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 41 | args = [] |
Brian Osman | f981066 | 2017-08-30 10:02:10 -0400 | [diff] [blame] | 42 | configs = [] |
| 43 | blacklisted = [] |
| 44 | |
| 45 | def blacklist(quad): |
Eric Boren | cd0a98c | 2018-06-20 13:23:16 -0400 | [diff] [blame] | 46 | config, src, options, name = ( |
| 47 | quad.split(' ') if isinstance(quad, str) else quad) |
Brian Osman | f981066 | 2017-08-30 10:02:10 -0400 | [diff] [blame] | 48 | if (config == '_' or |
| 49 | config in configs or |
| 50 | (config[0] == '~' and config[1:] in configs)): |
| 51 | blacklisted.extend([config, src, options, name]) |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 52 | |
Mike Klein | 97d6a7a | 2017-07-24 10:37:19 -0400 | [diff] [blame] | 53 | # We've been spending lots of time writing out and especially uploading |
| 54 | # .pdfs, but not doing anything further with them. skia:6821 |
| 55 | args.extend(['--dont_write', 'pdf']) |
| 56 | |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 57 | # This enables non-deterministic random seeding of the GPU FP optimization |
Brian Osman | 7a34dca | 2017-04-13 13:40:29 -0400 | [diff] [blame] | 58 | # test. |
Ben Wagner | 6da8f79 | 2017-08-10 12:22:56 -0400 | [diff] [blame] | 59 | # Not Android due to: |
Ben Wagner | 11ab43c | 2017-08-09 18:05:59 -0400 | [diff] [blame] | 60 | # - https://skia.googlesource.com/skia/+/ |
| 61 | # 5910ed347a638ded8cd4c06dbfda086695df1112/BUILD.gn#160 |
| 62 | # - https://skia.googlesource.com/skia/+/ |
| 63 | # ce06e261e68848ae21cac1052abc16bc07b961bf/tests/ProcessorTest.cpp#307 |
Ben Wagner | 6da8f79 | 2017-08-10 12:22:56 -0400 | [diff] [blame] | 64 | # Not MSAN due to: |
| 65 | # - https://skia.googlesource.com/skia/+/ |
| 66 | # 0ac06e47269a40c177747310a613d213c95d1d6d/infra/bots/recipe_modules/ |
| 67 | # flavor/gn_flavor.py#80 |
| 68 | if 'Android' not in bot and 'MSAN' not in bot: |
Ben Wagner | 11ab43c | 2017-08-09 18:05:59 -0400 | [diff] [blame] | 69 | args.append('--randomProcessorTest') |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 70 | |
| 71 | # 32-bit desktop bots tend to run out of memory, because they have relatively |
| 72 | # far more cores than RAM (e.g. 32 cores, 3G RAM). Hold them back a bit. |
| 73 | if '-x86-' in bot and not 'NexusPlayer' in bot: |
Mike Klein | df66981 | 2017-06-23 13:30:17 -0400 | [diff] [blame] | 74 | args.extend(['--threads', '4']) |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 75 | |
Ben Wagner | 5cf6d32 | 2017-12-07 10:23:07 -0500 | [diff] [blame] | 76 | # Nexus7 runs out of memory due to having 4 cores and only 1G RAM. |
| 77 | if 'CPU' in bot and 'Nexus7' in bot: |
Ben Wagner | 1cfb6bc | 2017-12-07 12:19:30 -0500 | [diff] [blame] | 78 | args.extend(['--threads', '2']) |
Ben Wagner | 5cf6d32 | 2017-12-07 10:23:07 -0500 | [diff] [blame] | 79 | |
Ben Wagner | 12e69e7 | 2018-07-15 15:12:01 -0400 | [diff] [blame] | 80 | # MotoG4 occasionally fails when multiple threads read the same image file. |
| 81 | if 'CPU' in bot and 'MotoG4' in bot: |
| 82 | args.extend(['--threads', '0']) |
| 83 | |
Kevin Lubick | 2dafbd7 | 2017-08-31 10:39:05 -0400 | [diff] [blame] | 84 | if 'Chromecast' in bot: |
| 85 | args.extend(['--threads', '0']) |
| 86 | |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 87 | # Avoid issues with dynamically exceeding resource cache limits. |
| 88 | if 'Test' in bot and 'DISCARDABLE' in bot: |
Mike Klein | df66981 | 2017-06-23 13:30:17 -0400 | [diff] [blame] | 89 | args.extend(['--threads', '0']) |
| 90 | |
| 91 | # See if staying on the main thread helps skia:6748. |
| 92 | if 'Test-iOS' in bot: |
| 93 | args.extend(['--threads', '0']) |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 94 | |
Derek Sollenberger | edfe3df | 2017-07-19 15:25:24 -0400 | [diff] [blame] | 95 | # Android's kernel will occasionally attempt to kill our process, using |
| 96 | # SIGINT, in an effort to free up resources. If requested, that signal |
| 97 | # is ignored and dm will keep attempting to proceed until we actually |
| 98 | # exhaust the available resources. |
| 99 | if ('NexusPlayer' in bot or |
Kevin Lubick | 608c35a | 2018-01-16 16:15:57 -0500 | [diff] [blame] | 100 | 'Chromecast' in bot): |
Derek Sollenberger | edfe3df | 2017-07-19 15:25:24 -0400 | [diff] [blame] | 101 | args.append('--ignoreSigInt') |
| 102 | |
Ben Wagner | 122b385 | 2018-04-20 13:43:23 -0400 | [diff] [blame] | 103 | if 'SwiftShader' in api.vars.extra_tokens: |
| 104 | configs.extend(['gles', 'glesdft']) |
| 105 | args.append('--disableDriverCorrectnessWorkarounds') |
| 106 | |
| 107 | elif api.vars.builder_cfg.get('cpu_or_gpu') == 'CPU': |
Ben Wagner | 32fa510 | 2017-08-10 21:25:55 -0400 | [diff] [blame] | 108 | args.append('--nogpu') |
| 109 | |
| 110 | # These are the canonical configs that we would ideally run on all bots. We |
| 111 | # may opt out or substitute some below for specific bots |
Mike Klein | ce4cf72 | 2018-05-10 11:29:15 -0400 | [diff] [blame] | 112 | configs.extend(['8888', 'pdf']) |
Ben Wagner | 32fa510 | 2017-08-10 21:25:55 -0400 | [diff] [blame] | 113 | |
| 114 | # Runs out of memory on Android bots. Everyone else seems fine. |
| 115 | if 'Android' in bot: |
| 116 | configs.remove('pdf') |
| 117 | |
Ben Wagner | 4c9b700 | 2018-05-15 11:10:17 -0400 | [diff] [blame] | 118 | if '-GCE-' in bot and 'x86_64' in bot: |
Mike Klein | 515bda6 | 2018-01-09 11:21:58 -0500 | [diff] [blame] | 119 | configs.extend(['g8']) |
Ben Wagner | 32fa510 | 2017-08-10 21:25:55 -0400 | [diff] [blame] | 120 | configs.extend(['565']) |
Ben Wagner | 32fa510 | 2017-08-10 21:25:55 -0400 | [diff] [blame] | 121 | configs.extend(['lite-8888']) # Experimental display list. |
Mike Klein | b7ea3da | 2017-10-31 17:42:08 +0000 | [diff] [blame] | 122 | configs.extend(['gbr-8888']) |
Mike Klein | 0e4041f | 2018-06-19 16:00:40 -0400 | [diff] [blame] | 123 | configs.extend(['f16']) |
| 124 | configs.extend(['srgb']) |
Mike Klein | ce4cf72 | 2018-05-10 11:29:15 -0400 | [diff] [blame] | 125 | configs.extend(['esrgb']) |
Mike Klein | 0e4041f | 2018-06-19 16:00:40 -0400 | [diff] [blame] | 126 | configs.extend(['narrow']) |
| 127 | configs.extend(['enarrow']) |
Ben Wagner | 32fa510 | 2017-08-10 21:25:55 -0400 | [diff] [blame] | 128 | |
Kevin Lubick | e0b7f5c | 2018-05-07 15:10:17 -0400 | [diff] [blame] | 129 | if 'SAN' in bot: |
| 130 | configs.extend(['t8888']) |
Yuqian Li | cb31248 | 2018-04-27 15:52:40 -0400 | [diff] [blame] | 131 | |
Ben Wagner | 0ecc2b7e | 2017-11-09 22:10:44 -0500 | [diff] [blame] | 132 | configs.extend(mode + '-8888' for mode in ['serialize', 'tiles_rt', 'pic']) |
Ben Wagner | 32fa510 | 2017-08-10 21:25:55 -0400 | [diff] [blame] | 133 | |
Kevin Lubick | e0b7f5c | 2018-05-07 15:10:17 -0400 | [diff] [blame] | 134 | if 'T8888' in bot: |
| 135 | configs = ['t8888'] |
| 136 | |
Ben Wagner | 32fa510 | 2017-08-10 21:25:55 -0400 | [diff] [blame] | 137 | # This bot only differs from vanilla CPU bots in 8888 config. |
| 138 | if 'SK_FORCE_RASTER_PIPELINE_BLITTER' in bot: |
Mike Klein | ce4cf72 | 2018-05-10 11:29:15 -0400 | [diff] [blame] | 139 | configs = ['8888'] |
Ben Wagner | 32fa510 | 2017-08-10 21:25:55 -0400 | [diff] [blame] | 140 | |
Ben Wagner | 077710b | 2017-10-26 13:12:39 -0400 | [diff] [blame] | 141 | if 'FSAA' in bot or 'FAAA' in bot or 'FDAA' in bot: |
| 142 | # Scan converters shouldn't really be sensitive to different color |
| 143 | # configurations. |
| 144 | configs = ['8888', 'tiles_rt-8888'] |
| 145 | |
Mike Klein | 9a01a21 | 2017-11-03 12:19:54 -0400 | [diff] [blame] | 146 | if 'NativeFonts' in bot: |
| 147 | configs = ['8888'] |
| 148 | |
Kevin Lubick | 608c35a | 2018-01-16 16:15:57 -0500 | [diff] [blame] | 149 | # Just do the basic config on Chromecast to avoid OOM. |
| 150 | if 'Chromecast' in bot: |
Kevin Lubick | 8baaef9 | 2018-01-17 10:02:17 -0500 | [diff] [blame] | 151 | configs = ['8888'] |
Kevin Lubick | 608c35a | 2018-01-16 16:15:57 -0500 | [diff] [blame] | 152 | |
Eric Boren | 9f4efd3 | 2018-07-20 08:25:42 -0400 | [diff] [blame] | 153 | if 'Lottie' in bot: |
| 154 | configs = ['8888'] |
| 155 | |
Ben Wagner | 32fa510 | 2017-08-10 21:25:55 -0400 | [diff] [blame] | 156 | elif api.vars.builder_cfg.get('cpu_or_gpu') == 'GPU': |
| 157 | args.append('--nocpu') |
| 158 | |
| 159 | # Add in either gles or gl configs to the canonical set based on OS |
| 160 | sample_count = '8' |
| 161 | gl_prefix = 'gl' |
| 162 | if 'Android' in bot or 'iOS' in bot: |
| 163 | sample_count = '4' |
| 164 | # We want to test the OpenGL config not the GLES config on the Shield |
| 165 | if 'NVIDIA_Shield' not in bot: |
| 166 | gl_prefix = 'gles' |
| 167 | elif 'Intel' in bot: |
| 168 | sample_count = '' |
| 169 | elif 'ChromeOS' in bot: |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 170 | gl_prefix = 'gles' |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 171 | |
Jim Van Verth | 1b6c75c | 2018-02-16 09:49:08 -0500 | [diff] [blame] | 172 | if 'NativeFonts' in bot: |
| 173 | configs.append(gl_prefix) |
| 174 | else: |
Brian Osman | a66f4da | 2018-06-28 17:52:02 +0000 | [diff] [blame] | 175 | configs.extend([gl_prefix, |
| 176 | gl_prefix + 'dft', |
| 177 | gl_prefix + 'srgb']) |
Jim Van Verth | 240516f | 2018-02-15 09:55:24 -0500 | [diff] [blame] | 178 | if sample_count is not '': |
| 179 | configs.append(gl_prefix + 'msaa' + sample_count) |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 180 | |
Ben Wagner | 32fa510 | 2017-08-10 21:25:55 -0400 | [diff] [blame] | 181 | # The NP produces a long error stream when we run with MSAA. The Tegra3 just |
| 182 | # doesn't support it. |
| 183 | if ('NexusPlayer' in bot or |
| 184 | 'Tegra3' in bot or |
| 185 | # We aren't interested in fixing msaa bugs on current iOS devices. |
| 186 | 'iPad4' in bot or |
| 187 | 'iPadPro' in bot or |
| 188 | 'iPhone6' in bot or |
| 189 | 'iPhone7' in bot or |
| 190 | # skia:5792 |
| 191 | 'IntelHD530' in bot or |
| 192 | 'IntelIris540' in bot): |
| 193 | configs = [x for x in configs if 'msaa' not in x] |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 194 | |
Ben Wagner | 32fa510 | 2017-08-10 21:25:55 -0400 | [diff] [blame] | 195 | # The NP produces different images for dft on every run. |
| 196 | if 'NexusPlayer' in bot: |
| 197 | configs = [x for x in configs if 'dft' not in x] |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 198 | |
Ben Wagner | 32fa510 | 2017-08-10 21:25:55 -0400 | [diff] [blame] | 199 | # We want to test both the OpenGL config and the GLES config on Linux Intel: |
| 200 | # GL is used by Chrome, GLES is used by ChromeOS. |
Brian Osman | f981066 | 2017-08-30 10:02:10 -0400 | [diff] [blame] | 201 | # Also do the Ganesh threading verification test (render with and without |
| 202 | # worker threads, using only the SW path renderer, and compare the results). |
Ben Wagner | 32fa510 | 2017-08-10 21:25:55 -0400 | [diff] [blame] | 203 | if 'Intel' in bot and api.vars.is_linux: |
Brian Osman | a66f4da | 2018-06-28 17:52:02 +0000 | [diff] [blame] | 204 | configs.extend(['gles', |
| 205 | 'glesdft', |
| 206 | 'glessrgb', |
| 207 | 'gltestthreading']) |
Brian Osman | f981066 | 2017-08-30 10:02:10 -0400 | [diff] [blame] | 208 | # skbug.com/6333, skbug.com/6419, skbug.com/6702 |
| 209 | blacklist('gltestthreading gm _ lcdblendmodes') |
| 210 | blacklist('gltestthreading gm _ lcdoverlap') |
Brian Osman | bef21ba | 2017-08-31 13:49:05 -0400 | [diff] [blame] | 211 | blacklist('gltestthreading gm _ textbloblooper') |
Brian Osman | 1e75f2a | 2017-09-07 09:30:44 -0400 | [diff] [blame] | 212 | # All of these GMs are flaky, too: |
| 213 | blacklist('gltestthreading gm _ bleed_alpha_bmp') |
| 214 | blacklist('gltestthreading gm _ bleed_alpha_bmp_shader') |
| 215 | blacklist('gltestthreading gm _ bleed_alpha_image') |
| 216 | blacklist('gltestthreading gm _ bleed_alpha_image_shader') |
| 217 | blacklist('gltestthreading gm _ savelayer_with_backdrop') |
| 218 | blacklist('gltestthreading gm _ persp_shaders_bw') |
Brian Salomon | 5c6ac64 | 2017-12-19 11:09:32 -0500 | [diff] [blame] | 219 | blacklist('gltestthreading gm _ dftext_blob_persp') |
Brian Salomon | 19eaf2d | 2018-03-19 16:06:44 -0400 | [diff] [blame] | 220 | # skbug.com/7523 - Flaky on various GPUs |
| 221 | blacklist('gltestthreading gm _ orientation') |
Mike Klein | 97627d4 | 2017-05-11 13:12:48 -0400 | [diff] [blame] | 222 | |
Brian Osman | 09eba3c | 2017-11-06 14:39:18 -0500 | [diff] [blame] | 223 | # Test SkColorSpaceXformCanvas on a few bots |
| 224 | if 'GTX1070' in bot: |
| 225 | configs.append('gbr-gl') |
| 226 | |
Ben Wagner | 32fa510 | 2017-08-10 21:25:55 -0400 | [diff] [blame] | 227 | # CommandBuffer bot *only* runs the command_buffer config. |
| 228 | if 'CommandBuffer' in bot: |
| 229 | configs = ['commandbuffer'] |
| 230 | |
| 231 | # ANGLE bot *only* runs the angle configs |
| 232 | if 'ANGLE' in bot: |
| 233 | configs = ['angle_d3d11_es2', |
| 234 | 'angle_d3d9_es2', |
| 235 | 'angle_gl_es2', |
| 236 | 'angle_d3d11_es3'] |
| 237 | if sample_count is not '': |
| 238 | configs.append('angle_d3d11_es2_msaa' + sample_count) |
| 239 | configs.append('angle_d3d11_es3_msaa' + sample_count) |
Ben Wagner | 7464a26 | 2018-04-19 15:49:18 -0400 | [diff] [blame] | 240 | if 'GTX' in bot or 'Quadro' in bot: |
| 241 | # See skia:7823 and chromium:693090. |
| 242 | configs.append('angle_gl_es3') |
| 243 | if sample_count is not '': |
| 244 | configs.append('angle_gl_es2_msaa' + sample_count) |
| 245 | configs.append('angle_gl_es3_msaa' + sample_count) |
Ben Wagner | 32fa510 | 2017-08-10 21:25:55 -0400 | [diff] [blame] | 246 | |
| 247 | # Vulkan bot *only* runs the vk config. |
| 248 | if 'Vulkan' in bot: |
Chris Dalton | aec79e6 | 2018-05-29 12:02:19 -0600 | [diff] [blame] | 249 | configs = ['vk'] |
Ben Wagner | 32fa510 | 2017-08-10 21:25:55 -0400 | [diff] [blame] | 250 | |
Greg Daniel | b95d278 | 2018-07-24 11:35:18 -0400 | [diff] [blame^] | 251 | if 'Metal' in bot: |
| 252 | configs = ['mtl'] |
| 253 | |
Brian Salomon | 7fc5299 | 2018-07-12 16:20:23 -0400 | [diff] [blame] | 254 | # Test 1010102 on our Linux/NVIDIA bots and the persistent cache config |
| 255 | # on the GL bots. |
Brian Salomon | bfc63c1 | 2018-07-16 15:48:22 -0400 | [diff] [blame] | 256 | if ('QuadroP400' in bot and 'PreAbandonGpuContext' not in bot and |
Brian Salomon | 6a3957c | 2018-07-19 17:01:09 -0400 | [diff] [blame] | 257 | 'TSAN' not in bot and api.vars.is_linux): |
Brian Osman | 10fc6fd | 2018-03-02 11:01:10 -0500 | [diff] [blame] | 258 | if 'Vulkan' in bot: |
| 259 | configs.append('vk1010102') |
Brian Osman | 419abf3 | 2018-03-02 14:56:15 -0500 | [diff] [blame] | 260 | # Decoding transparent images to 1010102 just looks bad |
| 261 | blacklist('vk1010102 image _ _') |
Brian Osman | 10fc6fd | 2018-03-02 11:01:10 -0500 | [diff] [blame] | 262 | else: |
Brian Salomon | 7fc5299 | 2018-07-12 16:20:23 -0400 | [diff] [blame] | 263 | configs.extend(['gl1010102', 'gltestpersistentcache']) |
Brian Osman | 419abf3 | 2018-03-02 14:56:15 -0500 | [diff] [blame] | 264 | # Decoding transparent images to 1010102 just looks bad |
| 265 | blacklist('gl1010102 image _ _') |
Brian Salomon | 0938759 | 2018-07-16 15:34:16 -0400 | [diff] [blame] | 266 | # These tests produce slightly different pixels run to run on NV. |
Brian Salomon | 7fc5299 | 2018-07-12 16:20:23 -0400 | [diff] [blame] | 267 | blacklist('gltestpersistentcache gm _ atlastext') |
Brian Salomon | 0938759 | 2018-07-16 15:34:16 -0400 | [diff] [blame] | 268 | blacklist('gltestpersistentcache gm _ dftext') |
Brian Osman | 10fc6fd | 2018-03-02 11:01:10 -0500 | [diff] [blame] | 269 | |
Ben Wagner | 32fa510 | 2017-08-10 21:25:55 -0400 | [diff] [blame] | 270 | if 'ChromeOS' in bot: |
| 271 | # Just run GLES for now - maybe add gles_msaa4 in the future |
| 272 | configs = ['gles'] |
| 273 | |
Kevin Lubick | 2dafbd7 | 2017-08-31 10:39:05 -0400 | [diff] [blame] | 274 | if 'Chromecast' in bot: |
Kevin Lubick | 608c35a | 2018-01-16 16:15:57 -0500 | [diff] [blame] | 275 | configs = ['gles'] |
Kevin Lubick | 2dafbd7 | 2017-08-31 10:39:05 -0400 | [diff] [blame] | 276 | |
Ben Wagner | 32fa510 | 2017-08-10 21:25:55 -0400 | [diff] [blame] | 277 | # Test coverage counting path renderer. |
| 278 | if 'CCPR' in bot: |
| 279 | configs = [c for c in configs if c == 'gl' or c == 'gles'] |
Chris Dalton | 7a0ebfc | 2017-10-13 12:35:50 -0600 | [diff] [blame] | 280 | args.extend(['--pr', 'ccpr', '--cachePathMasks', 'false']) |
Chris Dalton | 97598a5 | 2017-07-18 10:49:07 -0600 | [diff] [blame] | 281 | |
Robert Phillips | 36150be | 2018-03-15 13:40:07 -0400 | [diff] [blame] | 282 | # DDL is a GPU-only feature |
| 283 | if 'DDL1' in bot: |
Robert Phillips | 69eb835 | 2018-04-11 13:45:08 -0400 | [diff] [blame] | 284 | # This bot generates gl and vk comparison images for the large skps |
| 285 | configs = [c for c in configs if c == 'gl' or c == 'vk'] |
Robert Phillips | b7fafba | 2018-03-27 20:49:23 +0000 | [diff] [blame] | 286 | args.extend(['--skpViewportSize', "2048"]) |
Robert Phillips | 21ca043 | 2018-05-29 15:42:00 -0400 | [diff] [blame] | 287 | args.extend(['--pr', '~small']) |
Robert Phillips | 36150be | 2018-03-15 13:40:07 -0400 | [diff] [blame] | 288 | if 'DDL3' in bot: |
Robert Phillips | 69eb835 | 2018-04-11 13:45:08 -0400 | [diff] [blame] | 289 | # This bot generates the ddl-gl and ddl-vk images for the |
| 290 | # large skps and the gms |
| 291 | configs = ['ddl-' + c for c in configs if c == 'gl' or c == 'vk'] |
Robert Phillips | b7fafba | 2018-03-27 20:49:23 +0000 | [diff] [blame] | 292 | args.extend(['--skpViewportSize', "2048"]) |
Robert Phillips | e43ff78 | 2018-04-20 11:59:59 -0400 | [diff] [blame] | 293 | args.extend(['--gpuThreads', "0"]) |
Robert Phillips | 36150be | 2018-03-15 13:40:07 -0400 | [diff] [blame] | 294 | |
Eric Boren | 9f4efd3 | 2018-07-20 08:25:42 -0400 | [diff] [blame] | 295 | if 'Lottie' in bot: |
| 296 | configs = ['gl'] |
| 297 | |
Kevin Lubick | 32f318b | 2017-10-17 13:40:52 -0400 | [diff] [blame] | 298 | tf = api.vars.builder_cfg.get('test_filter') |
| 299 | if 'All' != tf: |
| 300 | # Expected format: shard_XX_YY |
| 301 | parts = tf.split('_') |
| 302 | if len(parts) == 3: |
| 303 | args.extend(['--shard', parts[1]]) |
| 304 | args.extend(['--shards', parts[2]]) |
Eric Boren | 9599b0f | 2018-04-17 15:55:57 -0400 | [diff] [blame] | 305 | else: # pragma: nocover |
| 306 | raise Exception('Invalid task name - bad shards: %s' % tf) |
Kevin Lubick | 32f318b | 2017-10-17 13:40:52 -0400 | [diff] [blame] | 307 | |
Chris Dalton | 80ace82 | 2017-07-20 10:54:04 -0600 | [diff] [blame] | 308 | args.append('--config') |
| 309 | args.extend(configs) |
| 310 | |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 311 | # Run tests, gms, and image decoding tests everywhere. |
Eric Boren | 8c172ba | 2018-07-19 13:27:49 -0400 | [diff] [blame] | 312 | args.extend('--src tests gm image lottie colorImage svg skp'.split(' ')) |
Ben Wagner | 0ecc2b7e | 2017-11-09 22:10:44 -0500 | [diff] [blame] | 313 | if api.vars.builder_cfg.get('cpu_or_gpu') == 'GPU': |
Chris Dalton | 7c304ba | 2017-09-07 11:57:16 -0600 | [diff] [blame] | 314 | # Don't run the 'svgparse_*' svgs on GPU. |
| 315 | blacklist('_ svg _ svgparse_') |
Kevin Lubick | 9ef6de7 | 2017-10-15 21:05:58 -0400 | [diff] [blame] | 316 | elif bot == 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All-ASAN': |
Chris Dalton | 7c304ba | 2017-09-07 11:57:16 -0600 | [diff] [blame] | 317 | # Only run the CPU SVGs on 8888. |
| 318 | blacklist('~8888 svg _ _') |
| 319 | else: |
| 320 | # On CPU SVGs we only care about parsing. Only run them on the above bot. |
| 321 | args.remove('svg') |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 322 | |
Mike Klein | 97627d4 | 2017-05-11 13:12:48 -0400 | [diff] [blame] | 323 | # Eventually I'd like these to pass, but for now just skip 'em. |
| 324 | if 'SK_FORCE_RASTER_PIPELINE_BLITTER' in bot: |
| 325 | args.remove('tests') |
| 326 | |
Mike Klein | 9a01a21 | 2017-11-03 12:19:54 -0400 | [diff] [blame] | 327 | if 'NativeFonts' in bot: # images won't exercise native font integration :) |
| 328 | args.remove('image') |
| 329 | args.remove('colorImage') |
| 330 | |
Kevin Lubick | e0b7f5c | 2018-05-07 15:10:17 -0400 | [diff] [blame] | 331 | if 'T8888' in bot: |
| 332 | args.remove('tests') |
| 333 | args.remove('image') |
| 334 | args.remove('colorImage') |
| 335 | |
Eric Boren | 8c172ba | 2018-07-19 13:27:49 -0400 | [diff] [blame] | 336 | def remove_from_args(arg): |
| 337 | if arg in args: |
| 338 | args.remove(arg) |
| 339 | |
Robert Phillips | 5f3ce3e | 2018-04-12 11:09:40 -0400 | [diff] [blame] | 340 | if 'DDL' in bot: |
| 341 | # The DDL bots just render the large skps and the gms |
Eric Boren | 8c172ba | 2018-07-19 13:27:49 -0400 | [diff] [blame] | 342 | remove_from_args('tests') |
| 343 | remove_from_args('image') |
| 344 | remove_from_args('colorImage') |
| 345 | remove_from_args('svg') |
Robert Phillips | 36150be | 2018-03-15 13:40:07 -0400 | [diff] [blame] | 346 | else: |
Robert Phillips | b7fafba | 2018-03-27 20:49:23 +0000 | [diff] [blame] | 347 | # Currently, only the DDL bots render skps |
Eric Boren | 8c172ba | 2018-07-19 13:27:49 -0400 | [diff] [blame] | 348 | remove_from_args('skp') |
| 349 | |
| 350 | if 'Lottie' in api.vars.builder_cfg.get('extra_config', ''): |
| 351 | # Only run the lotties on Lottie bots. |
| 352 | remove_from_args('tests') |
| 353 | remove_from_args('gm') |
| 354 | remove_from_args('image') |
| 355 | remove_from_args('colorImage') |
| 356 | remove_from_args('svg') |
| 357 | remove_from_args('skp') |
| 358 | else: |
| 359 | remove_from_args('lottie') |
Robert Phillips | 36150be | 2018-03-15 13:40:07 -0400 | [diff] [blame] | 360 | |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 361 | # TODO: ??? |
| 362 | blacklist('f16 _ _ dstreadshuffle') |
| 363 | blacklist('glsrgb image _ _') |
| 364 | blacklist('glessrgb image _ _') |
| 365 | |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 366 | # Not any point to running these. |
Mike Klein | b7ea3da | 2017-10-31 17:42:08 +0000 | [diff] [blame] | 367 | blacklist('gbr-8888 image _ _') |
| 368 | blacklist('gbr-8888 colorImage _ _') |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 369 | |
Mike Klein | 515bda6 | 2018-01-09 11:21:58 -0500 | [diff] [blame] | 370 | # --src image --config g8 means "decode into Gray8", which isn't supported. |
| 371 | blacklist('g8 image _ _') |
| 372 | blacklist('g8 colorImage _ _') |
| 373 | |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 374 | if 'Valgrind' in bot: |
| 375 | # These take 18+ hours to run. |
| 376 | blacklist('pdf gm _ fontmgr_iter') |
| 377 | blacklist('pdf _ _ PANO_20121023_214540.jpg') |
| 378 | blacklist('pdf skp _ worldjournal') |
| 379 | blacklist('pdf skp _ desk_baidu.skp') |
| 380 | blacklist('pdf skp _ desk_wikipedia.skp') |
| 381 | blacklist('_ svg _ _') |
| 382 | |
| 383 | if 'iOS' in bot: |
| 384 | blacklist(gl_prefix + ' skp _ _') |
| 385 | |
| 386 | if 'Mac' in bot or 'iOS' in bot: |
| 387 | # CG fails on questionable bmps |
| 388 | blacklist('_ image gen_platf rgba32abf.bmp') |
| 389 | blacklist('_ image gen_platf rgb24prof.bmp') |
| 390 | blacklist('_ image gen_platf rgb24lprof.bmp') |
| 391 | blacklist('_ image gen_platf 8bpp-pixeldata-cropped.bmp') |
| 392 | blacklist('_ image gen_platf 4bpp-pixeldata-cropped.bmp') |
| 393 | blacklist('_ image gen_platf 32bpp-pixeldata-cropped.bmp') |
| 394 | blacklist('_ image gen_platf 24bpp-pixeldata-cropped.bmp') |
| 395 | |
| 396 | # CG has unpredictable behavior on this questionable gif |
| 397 | # It's probably using uninitialized memory |
| 398 | blacklist('_ image gen_platf frame_larger_than_image.gif') |
| 399 | |
| 400 | # CG has unpredictable behavior on incomplete pngs |
| 401 | # skbug.com/5774 |
| 402 | blacklist('_ image gen_platf inc0.png') |
| 403 | blacklist('_ image gen_platf inc1.png') |
| 404 | blacklist('_ image gen_platf inc2.png') |
| 405 | blacklist('_ image gen_platf inc3.png') |
| 406 | blacklist('_ image gen_platf inc4.png') |
| 407 | blacklist('_ image gen_platf inc5.png') |
| 408 | blacklist('_ image gen_platf inc6.png') |
| 409 | blacklist('_ image gen_platf inc7.png') |
| 410 | blacklist('_ image gen_platf inc8.png') |
| 411 | blacklist('_ image gen_platf inc9.png') |
| 412 | blacklist('_ image gen_platf inc10.png') |
| 413 | blacklist('_ image gen_platf inc11.png') |
| 414 | blacklist('_ image gen_platf inc12.png') |
| 415 | blacklist('_ image gen_platf inc13.png') |
| 416 | blacklist('_ image gen_platf inc14.png') |
| 417 | |
Ben Wagner | 3f67914 | 2017-11-27 13:02:25 -0500 | [diff] [blame] | 418 | # These images fail after Mac 10.13.1 upgrade. |
| 419 | blacklist('_ image gen_platf incInterlaced.gif') |
| 420 | blacklist('_ image gen_platf inc1.gif') |
| 421 | blacklist('_ image gen_platf inc0.gif') |
| 422 | blacklist('_ image gen_platf butterfly.gif') |
| 423 | |
Matt Sarett | 6c50a2e | 2017-05-01 09:13:05 -0400 | [diff] [blame] | 424 | # WIC fails on questionable bmps |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 425 | if 'Win' in bot: |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 426 | blacklist('_ image gen_platf pal8os2v2.bmp') |
| 427 | blacklist('_ image gen_platf pal8os2v2-16.bmp') |
| 428 | blacklist('_ image gen_platf rgba32abf.bmp') |
| 429 | blacklist('_ image gen_platf rgb24prof.bmp') |
| 430 | blacklist('_ image gen_platf rgb24lprof.bmp') |
| 431 | blacklist('_ image gen_platf 8bpp-pixeldata-cropped.bmp') |
| 432 | blacklist('_ image gen_platf 4bpp-pixeldata-cropped.bmp') |
| 433 | blacklist('_ image gen_platf 32bpp-pixeldata-cropped.bmp') |
| 434 | blacklist('_ image gen_platf 24bpp-pixeldata-cropped.bmp') |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 435 | if 'x86_64' in bot and 'CPU' in bot: |
| 436 | # This GM triggers a SkSmallAllocator assert. |
| 437 | blacklist('_ gm _ composeshader_bitmap') |
| 438 | |
Matt Sarett | 6c50a2e | 2017-05-01 09:13:05 -0400 | [diff] [blame] | 439 | if 'Win' in bot or 'Mac' in bot: |
Leon Scroggins III | 3a3cf43 | 2017-08-18 13:08:16 -0400 | [diff] [blame] | 440 | # WIC and CG fail on arithmetic jpegs |
Matt Sarett | 6c50a2e | 2017-05-01 09:13:05 -0400 | [diff] [blame] | 441 | blacklist('_ image gen_platf testimgari.jpg') |
Leon Scroggins III | 3a3cf43 | 2017-08-18 13:08:16 -0400 | [diff] [blame] | 442 | # More questionable bmps that fail on Mac, too. skbug.com/6984 |
| 443 | blacklist('_ image gen_platf rle8-height-negative.bmp') |
| 444 | blacklist('_ image gen_platf rle4-height-negative.bmp') |
Matt Sarett | 6c50a2e | 2017-05-01 09:13:05 -0400 | [diff] [blame] | 445 | |
Kevin Lubick | 2dafbd7 | 2017-08-31 10:39:05 -0400 | [diff] [blame] | 446 | if 'Android' in bot or 'iOS' in bot or 'Chromecast' in bot: |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 447 | # This test crashes the N9 (perhaps because of large malloc/frees). It also |
| 448 | # is fairly slow and not platform-specific. So we just disable it on all of |
| 449 | # Android and iOS. skia:5438 |
| 450 | blacklist('_ test _ GrShape') |
| 451 | |
Eric Boren | fb20ac4 | 2018-04-24 14:48:19 -0400 | [diff] [blame] | 452 | if api.vars.internal_hardware_label == '2': |
Kevin Lubick | bd27d1d | 2017-10-13 08:01:49 -0400 | [diff] [blame] | 453 | # skia:7160 |
| 454 | blacklist('_ test _ SRGBReadWritePixels') |
| 455 | blacklist('_ test _ SRGBMipMap') |
| 456 | |
Kevin Lubick | 451b743 | 2017-09-15 14:44:12 -0400 | [diff] [blame] | 457 | |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 458 | # skia:4095 |
Mike Reed | fb49909 | 2017-06-26 13:53:32 +0000 | [diff] [blame] | 459 | bad_serialize_gms = ['bleed_image', |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 460 | 'c_gms', |
| 461 | 'colortype', |
| 462 | 'colortype_xfermodes', |
| 463 | 'drawfilter', |
| 464 | 'fontmgr_bounds_0.75_0', |
| 465 | 'fontmgr_bounds_1_-0.25', |
| 466 | 'fontmgr_bounds', |
| 467 | 'fontmgr_match', |
| 468 | 'fontmgr_iter', |
| 469 | 'imagemasksubset'] |
| 470 | |
| 471 | # skia:5589 |
| 472 | bad_serialize_gms.extend(['bitmapfilters', |
| 473 | 'bitmapshaders', |
| 474 | 'bleed', |
| 475 | 'bleed_alpha_bmp', |
| 476 | 'bleed_alpha_bmp_shader', |
| 477 | 'convex_poly_clip', |
| 478 | 'extractalpha', |
| 479 | 'filterbitmap_checkerboard_32_32_g8', |
| 480 | 'filterbitmap_image_mandrill_64', |
| 481 | 'shadows', |
| 482 | 'simpleaaclip_aaclip']) |
| 483 | # skia:5595 |
| 484 | bad_serialize_gms.extend(['composeshader_bitmap', |
| 485 | 'scaled_tilemodes_npot', |
| 486 | 'scaled_tilemodes']) |
| 487 | |
| 488 | # skia:5778 |
| 489 | bad_serialize_gms.append('typefacerendering_pfaMac') |
| 490 | # skia:5942 |
| 491 | bad_serialize_gms.append('parsedpaths') |
| 492 | |
| 493 | # these use a custom image generator which doesn't serialize |
| 494 | bad_serialize_gms.append('ImageGeneratorExternal_rect') |
| 495 | bad_serialize_gms.append('ImageGeneratorExternal_shader') |
| 496 | |
| 497 | # skia:6189 |
| 498 | bad_serialize_gms.append('shadow_utils') |
| 499 | |
Brian Salomon | be3c1d2 | 2018-05-21 12:54:39 -0400 | [diff] [blame] | 500 | # skia:7938 |
| 501 | bad_serialize_gms.append('persp_images') |
| 502 | |
Matt Sarett | 9f3dcb3 | 2017-05-04 08:53:32 -0400 | [diff] [blame] | 503 | # Not expected to round trip encoding/decoding. |
Mike Klein | 0b78a69 | 2017-10-31 17:31:17 -0400 | [diff] [blame] | 504 | bad_serialize_gms.append('all_bitmap_configs') |
Matt Sarett | 9f3dcb3 | 2017-05-04 08:53:32 -0400 | [diff] [blame] | 505 | bad_serialize_gms.append('makecolorspace') |
| 506 | |
Brian Salomon | 7072e22 | 2017-11-29 15:12:45 -0500 | [diff] [blame] | 507 | # This GM forces a path to be convex. That property doesn't survive |
| 508 | # serialization. |
| 509 | bad_serialize_gms.append('analytic_antialias_convex') |
| 510 | |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 511 | for test in bad_serialize_gms: |
| 512 | blacklist(['serialize-8888', 'gm', '_', test]) |
| 513 | |
| 514 | if 'Mac' not in bot: |
| 515 | for test in ['bleed_alpha_image', 'bleed_alpha_image_shader']: |
| 516 | blacklist(['serialize-8888', 'gm', '_', test]) |
| 517 | # It looks like we skip these only for out-of-memory concerns. |
Kevin Lubick | 608c35a | 2018-01-16 16:15:57 -0500 | [diff] [blame] | 518 | if 'Win' in bot or 'Android' in bot: |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 519 | for test in ['verylargebitmap', 'verylarge_picture_image']: |
| 520 | blacklist(['serialize-8888', 'gm', '_', test]) |
Ben Wagner | 2e4e73f | 2017-09-08 15:21:44 -0400 | [diff] [blame] | 521 | if 'Mac' in bot and 'CPU' in bot: |
Ben Wagner | 38db79f | 2017-08-23 15:05:50 -0400 | [diff] [blame] | 522 | # skia:6992 |
Ben Wagner | 6f98bc6 | 2017-09-05 16:02:28 -0400 | [diff] [blame] | 523 | blacklist(['pic-8888', 'gm', '_', 'encode-platform']) |
Ben Wagner | 38db79f | 2017-08-23 15:05:50 -0400 | [diff] [blame] | 524 | blacklist(['serialize-8888', 'gm', '_', 'encode-platform']) |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 525 | |
| 526 | # skia:4769 |
| 527 | for test in ['drawfilter']: |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 528 | blacklist([ 'pic-8888', 'gm', '_', test]) |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 529 | blacklist([ 'lite-8888', 'gm', '_', test]) |
| 530 | # skia:4703 |
| 531 | for test in ['image-cacherator-from-picture', |
| 532 | 'image-cacherator-from-raster', |
| 533 | 'image-cacherator-from-ctable']: |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 534 | blacklist([ 'pic-8888', 'gm', '_', test]) |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 535 | blacklist(['serialize-8888', 'gm', '_', test]) |
| 536 | |
| 537 | # GM that requires raster-backed canvas |
| 538 | for test in ['gamut', 'complexclip4_bw', 'complexclip4_aa']: |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 539 | blacklist([ 'pic-8888', 'gm', '_', test]) |
| 540 | blacklist([ 'lite-8888', 'gm', '_', test]) |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 541 | blacklist(['serialize-8888', 'gm', '_', test]) |
| 542 | |
| 543 | # GM that not support tiles_rt |
| 544 | for test in ['complexclip4_bw', 'complexclip4_aa']: |
| 545 | blacklist([ 'tiles_rt-8888', 'gm', '_', test]) |
| 546 | |
| 547 | # Extensions for RAW images |
Ben Wagner | 6e0a6b3 | 2017-09-26 14:11:15 -0400 | [diff] [blame] | 548 | r = ['arw', 'cr2', 'dng', 'nef', 'nrw', 'orf', 'raf', 'rw2', 'pef', 'srw', |
| 549 | 'ARW', 'CR2', 'DNG', 'NEF', 'NRW', 'ORF', 'RAF', 'RW2', 'PEF', 'SRW'] |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 550 | |
| 551 | # skbug.com/4888 |
| 552 | # Blacklist RAW images (and a few large PNGs) on GPU bots |
| 553 | # until we can resolve failures. |
Matt Sarett | 929bfeb | 2017-05-22 10:34:41 -0400 | [diff] [blame] | 554 | if 'GPU' in bot: |
| 555 | blacklist('_ image _ interlaced1.png') |
| 556 | blacklist('_ image _ interlaced2.png') |
| 557 | blacklist('_ image _ interlaced3.png') |
| 558 | for raw_ext in r: |
| 559 | blacklist('_ image _ .%s' % raw_ext) |
| 560 | |
| 561 | # Blacklist memory intensive tests on 32-bit bots. |
Ben Wagner | fd66b5f | 2017-11-15 15:16:27 -0500 | [diff] [blame] | 562 | if ('Win8' in bot or 'Win2016' in bot) and 'x86-' in bot: |
Matt Sarett | 929bfeb | 2017-05-22 10:34:41 -0400 | [diff] [blame] | 563 | blacklist('_ image f16 _') |
Matt Sarett | 112565e | 2017-05-22 13:45:15 -0400 | [diff] [blame] | 564 | blacklist('_ image _ abnormal.wbmp') |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 565 | blacklist('_ image _ interlaced1.png') |
| 566 | blacklist('_ image _ interlaced2.png') |
| 567 | blacklist('_ image _ interlaced3.png') |
| 568 | for raw_ext in r: |
| 569 | blacklist('_ image _ .%s' % raw_ext) |
| 570 | |
Ben Wagner | 3f33069 | 2017-12-07 15:14:54 -0500 | [diff] [blame] | 571 | if 'Nexus5' in bot and 'GPU' in bot: |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 572 | # skia:5876 |
| 573 | blacklist(['_', 'gm', '_', 'encode-platform']) |
| 574 | |
| 575 | if 'AndroidOne-GPU' in bot: # skia:4697, skia:4704, skia:4694, skia:4705 |
| 576 | blacklist(['_', 'gm', '_', 'bigblurs']) |
| 577 | blacklist(['_', 'gm', '_', 'bleed']) |
| 578 | blacklist(['_', 'gm', '_', 'bleed_alpha_bmp']) |
| 579 | blacklist(['_', 'gm', '_', 'bleed_alpha_bmp_shader']) |
| 580 | blacklist(['_', 'gm', '_', 'bleed_alpha_image']) |
| 581 | blacklist(['_', 'gm', '_', 'bleed_alpha_image_shader']) |
| 582 | blacklist(['_', 'gm', '_', 'bleed_image']) |
| 583 | blacklist(['_', 'gm', '_', 'dropshadowimagefilter']) |
| 584 | blacklist(['_', 'gm', '_', 'filterfastbounds']) |
| 585 | blacklist([gl_prefix, 'gm', '_', 'imageblurtiled']) |
| 586 | blacklist(['_', 'gm', '_', 'imagefiltersclipped']) |
| 587 | blacklist(['_', 'gm', '_', 'imagefiltersscaled']) |
| 588 | blacklist(['_', 'gm', '_', 'imageresizetiled']) |
| 589 | blacklist(['_', 'gm', '_', 'matrixconvolution']) |
| 590 | blacklist(['_', 'gm', '_', 'strokedlines']) |
| 591 | if sample_count is not '': |
| 592 | gl_msaa_config = gl_prefix + 'msaa' + sample_count |
| 593 | blacklist([gl_msaa_config, 'gm', '_', 'imageblurtiled']) |
| 594 | blacklist([gl_msaa_config, 'gm', '_', 'imagefiltersbase']) |
| 595 | |
| 596 | match = [] |
| 597 | if 'Valgrind' in bot: # skia:3021 |
| 598 | match.append('~Threaded') |
| 599 | |
Ben Wagner | 6c12642 | 2017-06-19 12:45:54 -0400 | [diff] [blame] | 600 | if 'Valgrind' in bot and 'PreAbandonGpuContext' in bot: |
| 601 | # skia:6575 |
| 602 | match.append('~multipicturedraw_') |
| 603 | |
Ben Wagner | bb3e7ff | 2017-04-28 15:28:32 -0400 | [diff] [blame] | 604 | if 'CommandBuffer' in bot: |
| 605 | # https://crbug.com/697030 |
| 606 | match.append('~HalfFloatAlphaTextureTest') |
| 607 | |
Cary Clark | a7c569d | 2018-02-14 11:31:25 -0500 | [diff] [blame] | 608 | if 'AndroidOne' in bot: |
| 609 | match.append('~WritePixels') # skia:4711 |
| 610 | match.append('~PremulAlphaRoundTrip_Gpu') # skia:7501 |
Brian Salomon | f42a776 | 2018-06-21 11:14:51 -0400 | [diff] [blame] | 611 | match.append('~ReimportImageTextureWithMipLevels') # skia:8090 |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 612 | |
Kevin Lubick | 608c35a | 2018-01-16 16:15:57 -0500 | [diff] [blame] | 613 | if 'Chromecast' in bot: |
Kevin Lubick | 6ea9fdf | 2018-01-17 08:54:21 -0500 | [diff] [blame] | 614 | if 'GPU' in bot: |
| 615 | # skia:6687 |
Kevin Lubick | 6ea9fdf | 2018-01-17 08:54:21 -0500 | [diff] [blame] | 616 | match.append('~animated-image-blurs') |
Ben Wagner | d50a193 | 2018-03-01 09:45:18 -0500 | [diff] [blame] | 617 | match.append('~blur_0.01') |
| 618 | match.append('~blur_image_filter') |
Eric Boren | 1e00d19 | 2018-04-13 15:59:02 -0400 | [diff] [blame] | 619 | match.append('~check_small_sigma_offset') |
Ben Wagner | d50a193 | 2018-03-01 09:45:18 -0500 | [diff] [blame] | 620 | match.append('~imageblur2') |
| 621 | match.append('~lighting') |
| 622 | match.append('~longpathdash') |
| 623 | match.append('~matrixconvolution') |
Ben Wagner | dabef9d | 2018-02-27 16:36:12 -0500 | [diff] [blame] | 624 | match.append('~textblobmixedsizes_df') |
Ben Wagner | 98c3c61 | 2018-02-26 14:53:30 -0500 | [diff] [blame] | 625 | match.append('~textblobrandomfont') |
Kevin Lubick | 608c35a | 2018-01-16 16:15:57 -0500 | [diff] [blame] | 626 | # Blacklisted to avoid OOM (we see DM just end with "broken pipe") |
Kevin Lubick | 608c35a | 2018-01-16 16:15:57 -0500 | [diff] [blame] | 627 | match.append('~bigbitmaprect_') |
Kevin Lubick | 608c35a | 2018-01-16 16:15:57 -0500 | [diff] [blame] | 628 | match.append('~DrawBitmapRect') |
Kevin Lubick | 8684c71 | 2018-02-12 15:55:57 -0500 | [diff] [blame] | 629 | match.append('~drawbitmaprect') |
Ben Wagner | d50a193 | 2018-03-01 09:45:18 -0500 | [diff] [blame] | 630 | match.append('~GM_animated-image-blurs') |
| 631 | match.append('~ImageFilterBlurLargeImage') |
| 632 | match.append('~savelayer_clipmask') |
| 633 | match.append('~TextBlobCache') |
| 634 | match.append('~verylarge') |
Kevin Lubick | 2dafbd7 | 2017-08-31 10:39:05 -0400 | [diff] [blame] | 635 | |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 636 | if 'GalaxyS6' in bot: |
| 637 | match.append('~SpecialImage') # skia:6338 |
Brian Osman | eee3c09 | 2017-06-15 13:25:10 -0400 | [diff] [blame] | 638 | match.append('~skbug6653') # skia:6653 |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 639 | |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 640 | if 'MSAN' in bot: |
| 641 | match.extend(['~Once', '~Shared']) # Not sure what's up with these tests. |
| 642 | |
| 643 | if 'TSAN' in bot: |
| 644 | match.extend(['~ReadWriteAlpha']) # Flaky on TSAN-covered on nvidia bots. |
| 645 | match.extend(['~RGBA4444TextureTest', # Flakier than they are important. |
| 646 | '~RGB565TextureTest']) |
| 647 | |
Ben Wagner | dba0bc8 | 2017-12-11 13:27:27 -0500 | [diff] [blame] | 648 | # By default, we test with GPU threading enabled, unless specifically |
| 649 | # disabled. |
| 650 | if 'NoGPUThreads' in bot: |
| 651 | args.extend(['--gpuThreads', '0']) |
| 652 | |
Greg Daniel | a86385d | 2017-06-05 11:34:29 -0400 | [diff] [blame] | 653 | if 'Vulkan' in bot and 'Adreno530' in bot: |
| 654 | # skia:5777 |
| 655 | match.extend(['~CopySurface']) |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 656 | |
Brian Salomon | 3d86a19 | 2018-02-27 16:46:11 -0500 | [diff] [blame] | 657 | if 'Vulkan' in bot and 'Adreno' in bot: |
| 658 | # skia:7663 |
| 659 | match.extend(['~WritePixelsNonTextureMSAA_Gpu']) |
| 660 | match.extend(['~WritePixelsMSAA_Gpu']) |
| 661 | |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 662 | if 'Vulkan' in bot and 'NexusPlayer' in bot: |
Ben Wagner | 407a3b7 | 2017-09-07 22:14:07 -0400 | [diff] [blame] | 663 | # skia:6132 |
Ben Wagner | 0ecc2b7e | 2017-11-09 22:10:44 -0500 | [diff] [blame] | 664 | match.append('~^tilemodes$') |
Greg Daniel | 4c72383 | 2017-11-13 12:59:08 -0500 | [diff] [blame] | 665 | match.append('~tilemodes_npot$') |
Greg Daniel | 41886c8 | 2017-11-15 09:20:13 -0500 | [diff] [blame] | 666 | match.append('~scaled_tilemodes$') |
| 667 | match.append('~emboss') |
Ben Wagner | 0ecc2b7e | 2017-11-09 22:10:44 -0500 | [diff] [blame] | 668 | match.append('~^bitmapfilters$') |
| 669 | match.append('~^shadertext$') |
| 670 | match.append('~^FullScreenClearWithLayers$') #skia:7191 |
| 671 | match.append('~^GrDefaultPathRendererTest$') #skia:7244 |
| 672 | match.append('~^GrMSAAPathRendererTest$') #skia:7244 |
Ben Wagner | 407a3b7 | 2017-09-07 22:14:07 -0400 | [diff] [blame] | 673 | # skia:7018 |
Ben Wagner | 0ecc2b7e | 2017-11-09 22:10:44 -0500 | [diff] [blame] | 674 | match.extend(['~^ClearOp$', |
| 675 | '~^ComposedImageFilterBounds_Gpu$', |
| 676 | '~^ImageEncode_Gpu$', |
| 677 | '~^ImageFilterFailAffectsTransparentBlack_Gpu$', |
| 678 | '~^ImageFilterZeroBlurSigma_Gpu$', |
| 679 | '~^ImageNewShader_GPU$', |
| 680 | '~^ImageReadPixels_Gpu$', |
| 681 | '~^ImageScalePixels_Gpu$', |
| 682 | '~^ReadWriteAlpha$', |
| 683 | '~^SpecialImage_DeferredGpu$', |
| 684 | '~^SpecialImage_Gpu$', |
| 685 | '~^SurfaceSemaphores$']) |
Robert Phillips | 9ad1213 | 2018-04-23 14:32:38 -0400 | [diff] [blame] | 686 | # skia:7837 |
| 687 | match.append('~BlurMaskBiggerThanDest') |
Greg Daniel | 6f6de65 | 2018-07-20 17:04:01 -0400 | [diff] [blame] | 688 | # skia:8166 |
| 689 | match.extend(['~SkRemoteGlyphCache_DrawTextXY', |
| 690 | '~SkRemoteGlyphCache_DrawTextAsPath', |
| 691 | '~SkRemoteGlyphCache_StrikeSerialization']) |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 692 | |
Ben Wagner | 2107bd8 | 2018-06-12 14:16:07 -0400 | [diff] [blame] | 693 | if 'Vulkan' in bot and 'GalaxyS7_G930FD' in bot: |
| 694 | # skia:8064 |
| 695 | match.append('~^WritePixelsNonTexture_Gpu$') |
| 696 | |
Ben Wagner | 6345757 | 2017-12-21 10:49:58 -0500 | [diff] [blame] | 697 | if 'Vulkan' in bot and api.vars.is_linux and 'IntelIris640' in bot: |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 698 | match.extend(['~VkHeapTests']) # skia:6245 |
| 699 | |
Kevin Lubick | ec4e735 | 2018-04-25 07:46:55 -0400 | [diff] [blame] | 700 | if api.vars.is_linux and 'IntelIris640' in bot: |
| 701 | match.extend(['~GLPrograms']) # skia:7849 |
| 702 | |
Ben Wagner | b842703 | 2017-11-18 19:04:25 -0500 | [diff] [blame] | 703 | if 'Vulkan' in bot and api.vars.is_linux and 'IntelHD405' in bot: |
Ben Wagner | 32eb5ba | 2017-11-20 13:46:20 -0500 | [diff] [blame] | 704 | # skia:7322 |
Ben Wagner | b842703 | 2017-11-18 19:04:25 -0500 | [diff] [blame] | 705 | blacklist(['vk', 'gm', '_', 'skbug_257']) |
Chris Dalton | 414be9b | 2018-04-26 14:37:01 -0600 | [diff] [blame] | 706 | blacklist(['vk', 'gm', '_', 'filltypespersp']) |
Ben Wagner | b842703 | 2017-11-18 19:04:25 -0500 | [diff] [blame] | 707 | match.append('~^ClearOp$') |
Greg Daniel | ec34a71 | 2017-12-06 12:06:26 -0500 | [diff] [blame] | 708 | match.append('~^CopySurface$') |
| 709 | match.append('~^ImageNewShader_GPU$') |
Ben Wagner | b842703 | 2017-11-18 19:04:25 -0500 | [diff] [blame] | 710 | match.append('~^InitialTextureClear$') |
Greg Daniel | ec34a71 | 2017-12-06 12:06:26 -0500 | [diff] [blame] | 711 | match.append('~^PinnedImageTest$') |
Ben Wagner | b842703 | 2017-11-18 19:04:25 -0500 | [diff] [blame] | 712 | match.append('~^ReadPixels_Gpu$') |
| 713 | match.append('~^ReadPixels_Texture$') |
Greg Daniel | ec34a71 | 2017-12-06 12:06:26 -0500 | [diff] [blame] | 714 | match.append('~^SRGBReadWritePixels$') |
Ben Wagner | b842703 | 2017-11-18 19:04:25 -0500 | [diff] [blame] | 715 | match.append('~^VkUploadPixelsTests$') |
| 716 | match.append('~^WritePixelsNonTexture_Gpu$') |
Brian Salomon | 3d86a19 | 2018-02-27 16:46:11 -0500 | [diff] [blame] | 717 | match.append('~^WritePixelsNonTextureMSAA_Gpu$') |
Ben Wagner | b842703 | 2017-11-18 19:04:25 -0500 | [diff] [blame] | 718 | match.append('~^WritePixels_Gpu$') |
Brian Salomon | 3d86a19 | 2018-02-27 16:46:11 -0500 | [diff] [blame] | 719 | match.append('~^WritePixelsMSAA_Gpu$') |
Ben Wagner | b842703 | 2017-11-18 19:04:25 -0500 | [diff] [blame] | 720 | match.append('~^skbug6653$') |
| 721 | |
Ben Wagner | f1debdf | 2017-06-13 13:37:05 -0400 | [diff] [blame] | 722 | if 'Vulkan' in bot and 'IntelIris540' in bot and 'Win' in bot: |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 723 | # skia:6398 |
| 724 | blacklist(['vk', 'gm', '_', 'aarectmodes']) |
| 725 | blacklist(['vk', 'gm', '_', 'aaxfermodes']) |
Greg Daniel | 0eef674 | 2017-11-20 16:05:04 -0500 | [diff] [blame] | 726 | blacklist(['vk', 'gm', '_', 'dont_clip_to_layer']) |
Mike Klein | 7893212 | 2017-11-15 13:21:40 -0500 | [diff] [blame] | 727 | blacklist(['vk', 'gm', '_', 'dftext']) |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 728 | blacklist(['vk', 'gm', '_', 'drawregionmodes']) |
| 729 | blacklist(['vk', 'gm', '_', 'filterfastbounds']) |
Mike Klein | 0030c5e | 2017-11-13 13:27:48 -0500 | [diff] [blame] | 730 | blacklist(['vk', 'gm', '_', 'fontmgr_iter']) |
Mike Klein | 0030c5e | 2017-11-13 13:27:48 -0500 | [diff] [blame] | 731 | blacklist(['vk', 'gm', '_', 'fontmgr_match']) |
| 732 | blacklist(['vk', 'gm', '_', 'fontscaler']) |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 733 | blacklist(['vk', 'gm', '_', 'fontscalerdistortable']) |
| 734 | blacklist(['vk', 'gm', '_', 'gammagradienttext']) |
Mike Klein | 0030c5e | 2017-11-13 13:27:48 -0500 | [diff] [blame] | 735 | blacklist(['vk', 'gm', '_', 'gammatext']) |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 736 | blacklist(['vk', 'gm', '_', 'gradtext']) |
| 737 | blacklist(['vk', 'gm', '_', 'hairmodes']) |
| 738 | blacklist(['vk', 'gm', '_', 'imagefilters_xfermodes']) |
| 739 | blacklist(['vk', 'gm', '_', 'imagefiltersclipped']) |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 740 | blacklist(['vk', 'gm', '_', 'imagefiltersscaled']) |
| 741 | blacklist(['vk', 'gm', '_', 'imagefiltersstroked']) |
| 742 | blacklist(['vk', 'gm', '_', 'imagefilterstransformed']) |
| 743 | blacklist(['vk', 'gm', '_', 'imageresizetiled']) |
| 744 | blacklist(['vk', 'gm', '_', 'lcdblendmodes']) |
| 745 | blacklist(['vk', 'gm', '_', 'lcdoverlap']) |
Mike Klein | 0030c5e | 2017-11-13 13:27:48 -0500 | [diff] [blame] | 746 | blacklist(['vk', 'gm', '_', 'lcdtext']) |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 747 | blacklist(['vk', 'gm', '_', 'lcdtextsize']) |
| 748 | blacklist(['vk', 'gm', '_', 'matriximagefilter']) |
Mike Klein | 7893212 | 2017-11-15 13:21:40 -0500 | [diff] [blame] | 749 | blacklist(['vk', 'gm', '_', 'mixedtextblobs']) |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 750 | blacklist(['vk', 'gm', '_', 'resizeimagefilter']) |
| 751 | blacklist(['vk', 'gm', '_', 'rotate_imagefilter']) |
| 752 | blacklist(['vk', 'gm', '_', 'savelayer_lcdtext']) |
Greg Daniel | 0c269d0 | 2018-02-08 15:26:49 -0500 | [diff] [blame] | 753 | blacklist(['vk', 'gm', '_', 'shadermaskfilter_image']) |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 754 | blacklist(['vk', 'gm', '_', 'srcmode']) |
| 755 | blacklist(['vk', 'gm', '_', 'surfaceprops']) |
| 756 | blacklist(['vk', 'gm', '_', 'textblobgeometrychange']) |
| 757 | blacklist(['vk', 'gm', '_', 'textbloblooper']) |
| 758 | blacklist(['vk', 'gm', '_', 'textblobmixedsizes']) |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 759 | blacklist(['vk', 'gm', '_', 'textblobrandomfont']) |
| 760 | blacklist(['vk', 'gm', '_', 'textfilter_color']) |
| 761 | blacklist(['vk', 'gm', '_', 'textfilter_image']) |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 762 | blacklist(['vk', 'gm', '_', 'varied_text_clipped_lcd']) |
| 763 | blacklist(['vk', 'gm', '_', 'varied_text_ignorable_clip_lcd']) |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 764 | |
Greg Daniel | e5b7e6d | 2018-06-12 10:52:59 -0400 | [diff] [blame] | 765 | if 'Vulkan' in bot and 'GTX660' in bot and 'Win' in bot: |
| 766 | # skbug.com/8047 |
| 767 | match.append('~FloatingPointTextureTest$') |
| 768 | |
Chris Dalton | 2b937f5 | 2018-05-17 10:17:10 -0600 | [diff] [blame] | 769 | if 'MoltenVK' in bot: |
| 770 | # skbug.com/7959 |
| 771 | blacklist(['_', 'gm', '_', 'vertices_scaled_shader']) |
| 772 | blacklist(['_', 'gm', '_', 'vertices']) |
| 773 | match.append('~^InitialTextureClear$') |
Chris Dalton | 2b937f5 | 2018-05-17 10:17:10 -0600 | [diff] [blame] | 774 | match.append('~^RGB565TextureTest$') |
| 775 | match.append('~^RGBA4444TextureTest$') |
| 776 | match.append('~^WritePixelsNonTextureMSAA_Gpu$') |
Chris Dalton | 2b937f5 | 2018-05-17 10:17:10 -0600 | [diff] [blame] | 777 | |
Ben Wagner | 2040ed2 | 2017-11-22 11:22:22 -0500 | [diff] [blame] | 778 | if (('RadeonR9M470X' in bot or 'RadeonHD7770' in bot) and 'ANGLE' in bot): |
Robert Phillips | 435db42 | 2017-10-04 09:38:11 -0400 | [diff] [blame] | 779 | # skia:7096 |
| 780 | match.append('~PinnedImageTest') |
| 781 | |
Robert Phillips | a96a101 | 2018-04-23 10:46:09 -0400 | [diff] [blame] | 782 | if 'ANGLE' in bot: |
| 783 | # skia:7835 |
| 784 | match.append('~BlurMaskBiggerThanDest') |
| 785 | |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 786 | if 'IntelIris540' in bot and 'ANGLE' in bot: |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 787 | for config in ['angle_d3d9_es2', 'angle_d3d11_es2', 'angle_gl_es2']: |
Brian Salomon | 6e554e3 | 2017-06-23 12:08:10 -0400 | [diff] [blame] | 788 | # skia:6103 |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 789 | blacklist([config, 'gm', '_', 'multipicturedraw_invpathclip_simple']) |
| 790 | blacklist([config, 'gm', '_', 'multipicturedraw_noclip_simple']) |
| 791 | blacklist([config, 'gm', '_', 'multipicturedraw_pathclip_simple']) |
| 792 | blacklist([config, 'gm', '_', 'multipicturedraw_rectclip_simple']) |
| 793 | blacklist([config, 'gm', '_', 'multipicturedraw_rrectclip_simple']) |
Brian Salomon | 6e554e3 | 2017-06-23 12:08:10 -0400 | [diff] [blame] | 794 | # skia:6141 |
| 795 | blacklist([config, 'gm', '_', 'discard']) |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 796 | |
Ben Wagner | 1c4668d | 2018-07-23 14:25:02 -0400 | [diff] [blame] | 797 | if 'IntelIris6100' in bot and 'ANGLE' in bot: |
| 798 | # skia:7376 |
| 799 | match.append('~^ProcessorOptimizationValidationTest$') |
| 800 | |
Ben Wagner | c6b2e6b | 2017-10-07 18:57:25 -0400 | [diff] [blame] | 801 | if ('IntelIris6100' in bot or 'IntelHD4400' in bot) and 'ANGLE' in bot: |
| 802 | # skia:6857 |
| 803 | blacklist(['angle_d3d9_es2', 'gm', '_', 'lighting']) |
| 804 | |
Kevin Lubick | c14e5a7 | 2017-08-15 13:22:19 -0400 | [diff] [blame] | 805 | if 'PowerVRGX6250' in bot: |
| 806 | match.append('~gradients_view_perspective_nodither') #skia:6972 |
| 807 | |
Mike Klein | 3a3fbf1 | 2018-01-30 08:08:49 -0500 | [diff] [blame] | 808 | if '-arm-' in bot and 'ASAN' in bot: |
| 809 | # TODO: can we run with env allocator_may_return_null=1 instead? |
| 810 | match.append('~BadImage') |
| 811 | |
Ben Wagner | 1d8726f | 2018-02-02 14:47:31 -0500 | [diff] [blame] | 812 | if 'Mac' in bot and 'IntelHD6000' in bot: |
Ben Wagner | df43005 | 2018-02-08 16:57:04 -0500 | [diff] [blame] | 813 | # skia:7574 |
Ben Wagner | 1d8726f | 2018-02-02 14:47:31 -0500 | [diff] [blame] | 814 | match.append('~^ProcessorCloneTest$') |
| 815 | match.append('~^GrMeshTest$') |
| 816 | |
Ben Wagner | df43005 | 2018-02-08 16:57:04 -0500 | [diff] [blame] | 817 | if 'Mac' in bot and 'IntelHD615' in bot: |
| 818 | # skia:7603 |
| 819 | match.append('~^GrMeshTest$') |
| 820 | |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 821 | if blacklisted: |
| 822 | args.append('--blacklist') |
| 823 | args.extend(blacklisted) |
| 824 | |
Greg Daniel | b95d278 | 2018-07-24 11:35:18 -0400 | [diff] [blame^] | 825 | if 'Metal' in bot: |
| 826 | match = ['GrUploadPixelsTests'] |
| 827 | |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 828 | if match: |
| 829 | args.append('--match') |
| 830 | args.extend(match) |
| 831 | |
| 832 | # These bots run out of memory running RAW codec tests. Do not run them in |
| 833 | # parallel |
Ben Wagner | 2040ed2 | 2017-11-22 11:22:22 -0500 | [diff] [blame] | 834 | if 'NexusPlayer' in bot or 'Nexus5' in bot or 'Nexus9' in bot: |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 835 | args.append('--noRAW_threading') |
| 836 | |
Yuqian Li | 84be3ad | 2017-10-17 10:11:21 -0400 | [diff] [blame] | 837 | if 'FSAA' in bot: |
| 838 | args.extend(['--analyticAA', 'false', '--deltaAA', 'false']) |
| 839 | if 'FAAA' in bot: |
| 840 | args.extend(['--deltaAA', 'false', '--forceAnalyticAA']) |
| 841 | if 'FDAA' in bot: |
| 842 | args.extend(['--deltaAA', '--forceDeltaAA']) |
| 843 | |
Mike Klein | c207da8 | 2017-11-10 14:24:34 -0500 | [diff] [blame] | 844 | if 'NativeFonts' not in bot: |
| 845 | args.append('--nonativeFonts') |
| 846 | |
Mike Klein | 0c5fdcb | 2017-11-13 12:40:46 -0500 | [diff] [blame] | 847 | if 'GDI' in bot: |
| 848 | args.append('--gdi') |
| 849 | |
Stephan Altmueller | 74dac54 | 2017-09-11 15:32:21 -0400 | [diff] [blame] | 850 | # Let's make all bots produce verbose output by default. |
| 851 | args.append('--verbose') |
Mike Klein | c908906 | 2017-06-26 09:09:32 -0400 | [diff] [blame] | 852 | |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 853 | return args |
| 854 | |
| 855 | |
| 856 | def key_params(api): |
| 857 | """Build a unique key from the builder name (as a list). |
| 858 | |
| 859 | E.g. arch x86 gpu GeForce320M mode MacMini4.1 os Mac10.6 |
| 860 | """ |
| 861 | # Don't bother to include role, which is always Test. |
Kevin Lubick | 9ef6de7 | 2017-10-15 21:05:58 -0400 | [diff] [blame] | 862 | blacklist = ['role', 'test_filter'] |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 863 | |
| 864 | flat = [] |
| 865 | for k in sorted(api.vars.builder_cfg.keys()): |
| 866 | if k not in blacklist: |
| 867 | flat.append(k) |
| 868 | flat.append(api.vars.builder_cfg[k]) |
| 869 | return flat |
| 870 | |
| 871 | |
| 872 | def test_steps(api): |
| 873 | """Run the DM test.""" |
Eric Boren | 72f6668 | 2018-05-18 07:36:55 -0400 | [diff] [blame] | 874 | b = api.properties['buildername'] |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 875 | use_hash_file = False |
Eric Boren | 72f6668 | 2018-05-18 07:36:55 -0400 | [diff] [blame] | 876 | if upload_dm_results(b): |
| 877 | host_dm_dir = str(api.flavor.host_dirs.dm_dir) |
| 878 | api.flavor.create_clean_host_dir(api.path['start_dir'].join('test')) |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 879 | device_dm_dir = str(api.flavor.device_dirs.dm_dir) |
| 880 | if host_dm_dir != device_dm_dir: |
| 881 | api.flavor.create_clean_device_dir(device_dm_dir) |
| 882 | |
| 883 | # Obtain the list of already-generated hashes. |
| 884 | hash_filename = 'uninteresting_hashes.txt' |
| 885 | |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 886 | host_hashes_file = api.vars.tmp_dir.join(hash_filename) |
| 887 | hashes_file = api.flavor.device_path_join( |
| 888 | api.flavor.device_dirs.tmp_dir, hash_filename) |
| 889 | api.run( |
| 890 | api.python.inline, |
| 891 | 'get uninteresting hashes', |
| 892 | program=""" |
| 893 | import contextlib |
| 894 | import math |
| 895 | import socket |
| 896 | import sys |
| 897 | import time |
| 898 | import urllib2 |
| 899 | |
Stephan Altmueller | c19ebc5 | 2017-05-30 16:39:17 -0400 | [diff] [blame] | 900 | HASHES_URL = 'https://storage.googleapis.com/skia-infra-gm/hash_files/gold-prod-hashes.txt' |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 901 | RETRIES = 5 |
| 902 | TIMEOUT = 60 |
| 903 | WAIT_BASE = 15 |
| 904 | |
| 905 | socket.setdefaulttimeout(TIMEOUT) |
| 906 | for retry in range(RETRIES): |
| 907 | try: |
| 908 | with contextlib.closing( |
| 909 | urllib2.urlopen(HASHES_URL, timeout=TIMEOUT)) as w: |
| 910 | hashes = w.read() |
| 911 | with open(sys.argv[1], 'w') as f: |
| 912 | f.write(hashes) |
| 913 | break |
| 914 | except Exception as e: |
| 915 | print 'Failed to get uninteresting hashes from %s:' % HASHES_URL |
| 916 | print e |
| 917 | if retry == RETRIES: |
| 918 | raise |
| 919 | waittime = WAIT_BASE * math.pow(2, retry) |
| 920 | print 'Retry in %d seconds.' % waittime |
| 921 | time.sleep(waittime) |
| 922 | """, |
| 923 | args=[host_hashes_file], |
| 924 | abort_on_failure=False, |
| 925 | fail_build_on_failure=False, |
| 926 | infra_step=True) |
| 927 | |
| 928 | if api.path.exists(host_hashes_file): |
| 929 | api.flavor.copy_file_to_device(host_hashes_file, hashes_file) |
| 930 | use_hash_file = True |
| 931 | |
| 932 | # Run DM. |
| 933 | properties = [ |
Eric Boren | 72f6668 | 2018-05-18 07:36:55 -0400 | [diff] [blame] | 934 | 'gitHash', api.properties['revision'], |
Eric Boren | 9a9e387 | 2017-11-29 12:33:22 -0500 | [diff] [blame] | 935 | 'builder', api.vars.builder_name, |
| 936 | 'buildbucket_build_id', api.properties.get('buildbucket_build_id', ''), |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 937 | ] |
| 938 | if api.vars.is_trybot: |
| 939 | properties.extend([ |
| 940 | 'issue', api.vars.issue, |
| 941 | 'patchset', api.vars.patchset, |
| 942 | 'patch_storage', api.vars.patch_storage, |
| 943 | ]) |
Eric Boren | f9aa9e5 | 2017-04-10 09:56:10 -0400 | [diff] [blame] | 944 | properties.extend(['swarming_bot_id', api.vars.swarming_bot_id]) |
| 945 | properties.extend(['swarming_task_id', api.vars.swarming_task_id]) |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 946 | |
Kevin Lubick | 2dafbd7 | 2017-08-31 10:39:05 -0400 | [diff] [blame] | 947 | if 'Chromecast' in api.vars.builder_cfg.get('os', ''): |
| 948 | # Due to limited disk space, we only deal with skps and one image. |
| 949 | args = [ |
| 950 | 'dm', |
Kevin Lubick | 2dafbd7 | 2017-08-31 10:39:05 -0400 | [diff] [blame] | 951 | '--resourcePath', api.flavor.device_dirs.resource_dir, |
| 952 | '--skps', api.flavor.device_dirs.skp_dir, |
| 953 | '--images', api.flavor.device_path_join( |
Kevin Lubick | c2f3e8d | 2018-01-24 15:48:26 -0500 | [diff] [blame] | 954 | api.flavor.device_dirs.resource_dir, 'images', 'color_wheel.jpg'), |
Kevin Lubick | 608c35a | 2018-01-16 16:15:57 -0500 | [diff] [blame] | 955 | '--nameByHash', |
| 956 | '--properties' |
| 957 | ] + properties |
Kevin Lubick | 95379eb | 2018-01-17 11:20:19 -0500 | [diff] [blame] | 958 | else: |
| 959 | args = [ |
| 960 | 'dm', |
| 961 | '--resourcePath', api.flavor.device_dirs.resource_dir, |
| 962 | '--skps', api.flavor.device_dirs.skp_dir, |
| 963 | '--images', api.flavor.device_path_join( |
| 964 | api.flavor.device_dirs.images_dir, 'dm'), |
| 965 | '--colorImages', api.flavor.device_path_join( |
| 966 | api.flavor.device_dirs.images_dir, 'colorspace'), |
| 967 | '--nameByHash', |
| 968 | '--properties' |
| 969 | ] + properties |
| 970 | |
| 971 | args.extend(['--svgs', api.flavor.device_dirs.svg_dir]) |
Eric Boren | 8c172ba | 2018-07-19 13:27:49 -0400 | [diff] [blame] | 972 | if 'Lottie' in api.vars.builder_cfg.get('extra_config', ''): |
| 973 | args.extend(['--lotties', api.flavor.device_dirs.lotties_dir]) |
Kevin Lubick | 95379eb | 2018-01-17 11:20:19 -0500 | [diff] [blame] | 974 | |
| 975 | args.append('--key') |
| 976 | args.extend(key_params(api)) |
Kevin Lubick | 608c35a | 2018-01-16 16:15:57 -0500 | [diff] [blame] | 977 | |
| 978 | if use_hash_file: |
| 979 | args.extend(['--uninterestingHashesFile', hashes_file]) |
Eric Boren | 72f6668 | 2018-05-18 07:36:55 -0400 | [diff] [blame] | 980 | if upload_dm_results(b): |
Kevin Lubick | 608c35a | 2018-01-16 16:15:57 -0500 | [diff] [blame] | 981 | args.extend(['--writePath', api.flavor.device_dirs.dm_dir]) |
Kevin Lubick | 2dafbd7 | 2017-08-31 10:39:05 -0400 | [diff] [blame] | 982 | |
Eric Boren | 89cd357 | 2017-06-28 13:50:22 -0400 | [diff] [blame] | 983 | args.extend(dm_flags(api, api.vars.builder_name)) |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 984 | |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 985 | # See skia:2789. |
Ben Wagner | 37491d2 | 2017-12-13 13:00:47 -0500 | [diff] [blame] | 986 | if 'AbandonGpuContext' in api.vars.extra_tokens: |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 987 | args.append('--abandonGpuContext') |
Ben Wagner | 37491d2 | 2017-12-13 13:00:47 -0500 | [diff] [blame] | 988 | if 'PreAbandonGpuContext' in api.vars.extra_tokens: |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 989 | args.append('--preAbandonGpuContext') |
Ben Wagner | 37491d2 | 2017-12-13 13:00:47 -0500 | [diff] [blame] | 990 | if 'ReleaseAndAbandonGpuContext' in api.vars.extra_tokens: |
Eric Boren | 6ec17e3 | 2017-04-26 14:25:29 -0400 | [diff] [blame] | 991 | args.append('--releaseAndAbandonGpuContext') |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 992 | |
Ben Wagner | 5655ba4 | 2017-10-02 10:48:32 -0400 | [diff] [blame] | 993 | api.run(api.flavor.step, 'dm', cmd=args, abort_on_failure=False) |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 994 | |
Eric Boren | 72f6668 | 2018-05-18 07:36:55 -0400 | [diff] [blame] | 995 | if upload_dm_results(b): |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 996 | # Copy images and JSON to host machine if needed. |
| 997 | api.flavor.copy_directory_contents_to_host( |
Eric Boren | 72f6668 | 2018-05-18 07:36:55 -0400 | [diff] [blame] | 998 | api.flavor.device_dirs.dm_dir, api.flavor.host_dirs.dm_dir) |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 999 | |
| 1000 | |
borenet | 1ed2ae4 | 2016-07-26 11:52:17 -0700 | [diff] [blame] | 1001 | def RunSteps(api): |
Eric Boren | b702316 | 2018-05-04 13:46:15 -0400 | [diff] [blame] | 1002 | api.vars.setup() |
| 1003 | api.file.ensure_directory('makedirs tmp_dir', api.vars.tmp_dir) |
| 1004 | api.flavor.setup() |
| 1005 | |
Robert Iannucci | 297a7ef | 2017-05-12 19:09:38 -0700 | [diff] [blame] | 1006 | env = {} |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 1007 | if 'iOS' in api.vars.builder_name: |
| 1008 | env['IOS_BUNDLE_ID'] = 'com.google.dm' |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 1009 | env['IOS_MOUNT_POINT'] = api.vars.slave_dir.join('mnt_iosdevice') |
Robert Iannucci | 297a7ef | 2017-05-12 19:09:38 -0700 | [diff] [blame] | 1010 | with api.context(env=env): |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 1011 | try: |
Kevin Lubick | 2dafbd7 | 2017-08-31 10:39:05 -0400 | [diff] [blame] | 1012 | if 'Chromecast' in api.vars.builder_name: |
| 1013 | api.flavor.install(resources=True, skps=True) |
Eric Boren | 8c172ba | 2018-07-19 13:27:49 -0400 | [diff] [blame] | 1014 | elif 'Lottie' in api.vars.builder_name: |
| 1015 | api.flavor.install(resources=True, lotties=True) |
Kevin Lubick | 2dafbd7 | 2017-08-31 10:39:05 -0400 | [diff] [blame] | 1016 | else: |
Eric Boren | 8c172ba | 2018-07-19 13:27:49 -0400 | [diff] [blame] | 1017 | api.flavor.install(skps=True, images=True, svgs=True, resources=True) |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 1018 | test_steps(api) |
| 1019 | finally: |
| 1020 | api.flavor.cleanup_steps() |
| 1021 | api.run.check_failure() |
| 1022 | |
| 1023 | |
Eric Boren | f9aa9e5 | 2017-04-10 09:56:10 -0400 | [diff] [blame] | 1024 | TEST_BUILDERS = [ |
Kevin Lubick | 9ef6de7 | 2017-10-15 21:05:58 -0400 | [diff] [blame] | 1025 | 'Test-Android-Clang-AndroidOne-GPU-Mali400MP2-arm-Release-All-Android', |
| 1026 | 'Test-Android-Clang-GalaxyS6-GPU-MaliT760-arm64-Debug-All-Android', |
Ben Wagner | 12e69e7 | 2018-07-15 15:12:01 -0400 | [diff] [blame] | 1027 | ('Test-Android-Clang-GalaxyS6-GPU-MaliT760-arm64-Debug-All' |
| 1028 | '-Android_NoGPUThreads'), |
Ben Wagner | 2107bd8 | 2018-06-12 14:16:07 -0400 | [diff] [blame] | 1029 | ('Test-Android-Clang-GalaxyS7_G930FD-GPU-MaliT880-arm64-Release-All' |
| 1030 | '-Android_Vulkan'), |
Ben Wagner | 12e69e7 | 2018-07-15 15:12:01 -0400 | [diff] [blame] | 1031 | 'Test-Android-Clang-MotoG4-CPU-Snapdragon617-arm-Release-All-Android', |
Kevin Lubick | 9ef6de7 | 2017-10-15 21:05:58 -0400 | [diff] [blame] | 1032 | 'Test-Android-Clang-NVIDIA_Shield-GPU-TegraX1-arm64-Debug-All-Android_CCPR', |
Kevin Lubick | 9ef6de7 | 2017-10-15 21:05:58 -0400 | [diff] [blame] | 1033 | 'Test-Android-Clang-Nexus5-GPU-Adreno330-arm-Release-All-Android', |
Ben Wagner | 5cf6d32 | 2017-12-07 10:23:07 -0500 | [diff] [blame] | 1034 | 'Test-Android-Clang-Nexus7-CPU-Tegra3-arm-Release-All-Android', |
Kevin Lubick | 9ef6de7 | 2017-10-15 21:05:58 -0400 | [diff] [blame] | 1035 | 'Test-Android-Clang-NexusPlayer-GPU-PowerVR-x86-Release-All-Android_Vulkan', |
Ben Wagner | 52423f3 | 2017-12-07 10:17:13 -0500 | [diff] [blame] | 1036 | 'Test-Android-Clang-Pixel-GPU-Adreno530-arm64-Debug-All-Android_Vulkan', |
Ben Wagner | 12e69e7 | 2018-07-15 15:12:01 -0400 | [diff] [blame] | 1037 | 'Test-Android-Clang-Pixel-GPU-Adreno530-arm-Debug-All-Android_ASAN', |
Kevin Lubick | d7af1db | 2017-11-02 12:03:22 -0400 | [diff] [blame] | 1038 | ('Test-ChromeOS-Clang-AcerChromebookR13Convertible-GPU-PowerVRGX6250-' |
| 1039 | 'arm-Debug-All'), |
Mike Klein | 54d7b31 | 2018-06-27 13:43:51 -0400 | [diff] [blame] | 1040 | 'Test-Chromecast-Clang-Chorizo-CPU-Cortex_A7-arm-Release-All', |
| 1041 | 'Test-Chromecast-Clang-Chorizo-GPU-Cortex_A7-arm-Release-All', |
Kevin Lubick | 9ef6de7 | 2017-10-15 21:05:58 -0400 | [diff] [blame] | 1042 | 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All-ASAN', |
Kevin Lubick | 32f318b | 2017-10-17 13:40:52 -0400 | [diff] [blame] | 1043 | 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-shard_00_10-Coverage', |
Kevin Lubick | 9ef6de7 | 2017-10-15 21:05:58 -0400 | [diff] [blame] | 1044 | 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All-MSAN', |
| 1045 | ('Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All' |
Ben Wagner | 9fb285e | 2017-10-02 16:53:07 -0400 | [diff] [blame] | 1046 | '-SK_USE_DISCARDABLE_SCALEDIMAGECACHE'), |
Kevin Lubick | a585f73 | 2018-05-07 12:08:58 -0400 | [diff] [blame] | 1047 | 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Debug-All-T8888', |
Eric Boren | 8c172ba | 2018-07-19 13:27:49 -0400 | [diff] [blame] | 1048 | 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Release-All-Lottie', |
Kevin Lubick | 9ef6de7 | 2017-10-15 21:05:58 -0400 | [diff] [blame] | 1049 | ('Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Release-All' |
Ben Wagner | 6e0a6b3 | 2017-09-26 14:11:15 -0400 | [diff] [blame] | 1050 | '-SK_FORCE_RASTER_PIPELINE_BLITTER'), |
Kevin Lubick | 9ef6de7 | 2017-10-15 21:05:58 -0400 | [diff] [blame] | 1051 | 'Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Release-All-TSAN', |
Ben Wagner | d26e446 | 2018-05-22 10:46:15 -0400 | [diff] [blame] | 1052 | 'Test-Debian9-Clang-GCE-GPU-SwiftShader-x86_64-Release-All-SwiftShader', |
Kevin Lubick | 88611a1 | 2018-04-26 09:46:45 -0400 | [diff] [blame] | 1053 | 'Test-Debian9-Clang-NUC5PPYH-GPU-IntelHD405-x86_64-Release-All-Vulkan', |
| 1054 | 'Test-Debian9-Clang-NUC7i5BNK-GPU-IntelIris640-x86_64-Debug-All-Vulkan', |
Ben Wagner | 1d8726f | 2018-02-02 14:47:31 -0500 | [diff] [blame] | 1055 | 'Test-Mac-Clang-MacBookAir7.2-GPU-IntelHD6000-x86_64-Debug-All', |
Kevin Lubick | 9ef6de7 | 2017-10-15 21:05:58 -0400 | [diff] [blame] | 1056 | 'Test-Mac-Clang-MacMini7.1-CPU-AVX-x86_64-Release-All', |
| 1057 | 'Test-Mac-Clang-MacMini7.1-GPU-IntelIris5100-x86_64-Debug-All-CommandBuffer', |
Jim Van Verth | 1b6c75c | 2018-02-16 09:49:08 -0500 | [diff] [blame] | 1058 | 'Test-Mac-Clang-MacBook10.1-GPU-IntelHD615-x86_64-Release-All-NativeFonts', |
Greg Daniel | b95d278 | 2018-07-24 11:35:18 -0400 | [diff] [blame^] | 1059 | 'Test-Mac-Clang-MacBookPro11.5-GPU-RadeonHD8870M-x86_64-Debug-All-Metal', |
Chris Dalton | 2b937f5 | 2018-05-17 10:17:10 -0600 | [diff] [blame] | 1060 | ('Test-Mac-Clang-MacBookPro11.5-GPU-RadeonHD8870M-x86_64-Release-All-' |
| 1061 | 'MoltenVK_Vulkan'), |
Ben Wagner | 9f55393 | 2017-11-27 22:18:12 -0500 | [diff] [blame] | 1062 | 'Test-Ubuntu17-Clang-Golo-GPU-QuadroP400-x86_64-Debug-All-Vulkan_Coverage', |
Kevin Lubick | 9ef6de7 | 2017-10-15 21:05:58 -0400 | [diff] [blame] | 1063 | ('Test-Ubuntu17-GCC-Golo-GPU-QuadroP400-x86_64-Release-All' |
Ben Wagner | 6e0a6b3 | 2017-09-26 14:11:15 -0400 | [diff] [blame] | 1064 | '-Valgrind_AbandonGpuContext_SK_CPU_LIMIT_SSE41'), |
Kevin Lubick | 9ef6de7 | 2017-10-15 21:05:58 -0400 | [diff] [blame] | 1065 | ('Test-Ubuntu17-GCC-Golo-GPU-QuadroP400-x86_64-Release-All' |
Ben Wagner | 6e0a6b3 | 2017-09-26 14:11:15 -0400 | [diff] [blame] | 1066 | '-Valgrind_PreAbandonGpuContext_SK_CPU_LIMIT_SSE41'), |
Eric Boren | dd8b1fc | 2018-05-18 09:54:02 -0400 | [diff] [blame] | 1067 | 'Test-Ubuntu17-Clang-Golo-GPU-QuadroP400-x86_64-Debug-All-DDL1', |
| 1068 | 'Test-Ubuntu17-Clang-Golo-GPU-QuadroP400-x86_64-Debug-All-DDL3', |
Eric Boren | 9f4efd3 | 2018-07-20 08:25:42 -0400 | [diff] [blame] | 1069 | 'Test-Ubuntu17-Clang-Golo-GPU-QuadroP400-x86_64-Debug-All-Lottie', |
Ben Wagner | b2fd61a | 2017-10-23 16:01:44 -0400 | [diff] [blame] | 1070 | 'Test-Win10-Clang-AlphaR2-GPU-RadeonR9M470X-x86_64-Debug-All-ANGLE', |
Kevin Lubick | 9ef6de7 | 2017-10-15 21:05:58 -0400 | [diff] [blame] | 1071 | ('Test-Win10-Clang-Golo-GPU-QuadroP400-x86_64-Release-All' |
Ben Wagner | 6e0a6b3 | 2017-09-26 14:11:15 -0400 | [diff] [blame] | 1072 | '-ReleaseAndAbandonGpuContext'), |
Ben Wagner | fd66b5f | 2017-11-15 15:16:27 -0500 | [diff] [blame] | 1073 | 'Test-Win10-Clang-NUC5i7RYH-CPU-AVX2-x86_64-Debug-All-NativeFonts_GDI', |
Ben Wagner | 1c4668d | 2018-07-23 14:25:02 -0400 | [diff] [blame] | 1074 | 'Test-Win10-Clang-NUC5i7RYH-GPU-IntelIris6100-x86_64-Debug-All-ANGLE', |
Ben Wagner | b2fd61a | 2017-10-23 16:01:44 -0400 | [diff] [blame] | 1075 | 'Test-Win10-Clang-NUC6i5SYK-GPU-IntelIris540-x86_64-Debug-All-ANGLE', |
Kevin Lubick | 9ef6de7 | 2017-10-15 21:05:58 -0400 | [diff] [blame] | 1076 | 'Test-Win10-Clang-NUC6i5SYK-GPU-IntelIris540-x86_64-Debug-All-Vulkan', |
Ben Wagner | b2fd61a | 2017-10-23 16:01:44 -0400 | [diff] [blame] | 1077 | 'Test-Win10-Clang-NUCD34010WYKH-GPU-IntelHD4400-x86_64-Release-All-ANGLE', |
Greg Daniel | e5b7e6d | 2018-06-12 10:52:59 -0400 | [diff] [blame] | 1078 | 'Test-Win10-Clang-ShuttleA-GPU-GTX660-x86_64-Release-All-Vulkan', |
Ben Wagner | b2fd61a | 2017-10-23 16:01:44 -0400 | [diff] [blame] | 1079 | 'Test-Win10-Clang-ShuttleC-GPU-GTX960-x86_64-Debug-All-ANGLE', |
Kevin Lubick | 9ef6de7 | 2017-10-15 21:05:58 -0400 | [diff] [blame] | 1080 | 'Test-Win10-Clang-ZBOX-GPU-GTX1070-x86_64-Debug-All-Vulkan', |
Ben Wagner | 78935c2 | 2017-11-15 13:21:03 -0500 | [diff] [blame] | 1081 | 'Test-Win2016-Clang-GCE-CPU-AVX2-x86_64-Debug-All-FAAA', |
| 1082 | 'Test-Win2016-Clang-GCE-CPU-AVX2-x86_64-Debug-All-FDAA', |
| 1083 | 'Test-Win2016-Clang-GCE-CPU-AVX2-x86_64-Debug-All-FSAA', |
Kevin Lubick | 9ef6de7 | 2017-10-15 21:05:58 -0400 | [diff] [blame] | 1084 | 'Test-iOS-Clang-iPadPro-GPU-GT7800-arm64-Release-All', |
Eric Boren | f9aa9e5 | 2017-04-10 09:56:10 -0400 | [diff] [blame] | 1085 | ] |
borenet | 1ed2ae4 | 2016-07-26 11:52:17 -0700 | [diff] [blame] | 1086 | |
| 1087 | |
| 1088 | def GenTests(api): |
Eric Boren | f9aa9e5 | 2017-04-10 09:56:10 -0400 | [diff] [blame] | 1089 | for builder in TEST_BUILDERS: |
| 1090 | test = ( |
| 1091 | api.test(builder) + |
| 1092 | api.properties(buildername=builder, |
Eric Boren | 9a9e387 | 2017-11-29 12:33:22 -0500 | [diff] [blame] | 1093 | buildbucket_build_id='123454321', |
Eric Boren | f9aa9e5 | 2017-04-10 09:56:10 -0400 | [diff] [blame] | 1094 | revision='abc123', |
| 1095 | path_config='kitchen', |
| 1096 | swarm_out_dir='[SWARM_OUT_DIR]') + |
| 1097 | api.path.exists( |
| 1098 | api.path['start_dir'].join('skia'), |
| 1099 | api.path['start_dir'].join('skia', 'infra', 'bots', 'assets', |
| 1100 | 'skimage', 'VERSION'), |
| 1101 | api.path['start_dir'].join('skia', 'infra', 'bots', 'assets', |
| 1102 | 'skp', 'VERSION'), |
| 1103 | api.path['start_dir'].join('skia', 'infra', 'bots', 'assets', |
| 1104 | 'svg', 'VERSION'), |
| 1105 | api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt') |
Ben Wagner | f835c22 | 2017-04-30 11:14:51 -0400 | [diff] [blame] | 1106 | ) + |
| 1107 | api.step_data('get swarming bot id', |
| 1108 | stdout=api.raw_io.output('skia-bot-123')) + |
| 1109 | api.step_data('get swarming task id', |
| 1110 | stdout=api.raw_io.output('123456')) |
Eric Boren | f9aa9e5 | 2017-04-10 09:56:10 -0400 | [diff] [blame] | 1111 | ) |
Eric Boren | f9aa9e5 | 2017-04-10 09:56:10 -0400 | [diff] [blame] | 1112 | if 'Win' in builder: |
| 1113 | test += api.platform('win', 64) |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 1114 | |
Kevin Lubick | 2dafbd7 | 2017-08-31 10:39:05 -0400 | [diff] [blame] | 1115 | if 'Chromecast' in builder: |
| 1116 | test += api.step_data( |
| 1117 | 'read chromecast ip', |
| 1118 | stdout=api.raw_io.output('192.168.1.2:5555')) |
| 1119 | |
Eric Boren | f9aa9e5 | 2017-04-10 09:56:10 -0400 | [diff] [blame] | 1120 | if 'ChromeOS' in builder: |
| 1121 | test += api.step_data( |
| 1122 | 'read chromeos ip', |
| 1123 | stdout=api.raw_io.output('{"user_ip":"foo@127.0.0.1"}')) |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 1124 | |
Eric Boren | f9aa9e5 | 2017-04-10 09:56:10 -0400 | [diff] [blame] | 1125 | yield test |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 1126 | |
Eric Boren | dd8b1fc | 2018-05-18 09:54:02 -0400 | [diff] [blame] | 1127 | builder = 'Test-Win8-Clang-Golo-CPU-AVX-x86-Debug-All' |
Kevin Lubick | fe079d4 | 2017-04-12 08:31:48 -0400 | [diff] [blame] | 1128 | yield ( |
| 1129 | api.test('trybot') + |
| 1130 | api.properties(buildername=builder, |
Eric Boren | 9a9e387 | 2017-11-29 12:33:22 -0500 | [diff] [blame] | 1131 | buildbucket_build_id='123454321', |
Kevin Lubick | fe079d4 | 2017-04-12 08:31:48 -0400 | [diff] [blame] | 1132 | revision='abc123', |
| 1133 | path_config='kitchen', |
| 1134 | swarm_out_dir='[SWARM_OUT_DIR]') + |
| 1135 | api.properties(patch_storage='gerrit') + |
| 1136 | api.properties.tryserver( |
| 1137 | buildername=builder, |
| 1138 | gerrit_project='skia', |
| 1139 | gerrit_url='https://skia-review.googlesource.com/', |
| 1140 | )+ |
| 1141 | api.path.exists( |
| 1142 | api.path['start_dir'].join('skia'), |
| 1143 | api.path['start_dir'].join('skia', 'infra', 'bots', 'assets', |
| 1144 | 'skimage', 'VERSION'), |
| 1145 | api.path['start_dir'].join('skia', 'infra', 'bots', 'assets', |
| 1146 | 'skp', 'VERSION'), |
| 1147 | api.path['start_dir'].join('skia', 'infra', 'bots', 'assets', |
| 1148 | 'svg', 'VERSION'), |
| 1149 | api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt') |
| 1150 | ) |
| 1151 | ) |
| 1152 | |
Kevin Lubick | 9ef6de7 | 2017-10-15 21:05:58 -0400 | [diff] [blame] | 1153 | builder = 'Test-Debian9-GCC-GCE-CPU-AVX2-x86_64-Debug-All' |
borenet | 1ed2ae4 | 2016-07-26 11:52:17 -0700 | [diff] [blame] | 1154 | yield ( |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 1155 | api.test('failed_dm') + |
| 1156 | api.properties(buildername=builder, |
Eric Boren | 9a9e387 | 2017-11-29 12:33:22 -0500 | [diff] [blame] | 1157 | buildbucket_build_id='123454321', |
borenet | 1ed2ae4 | 2016-07-26 11:52:17 -0700 | [diff] [blame] | 1158 | revision='abc123', |
| 1159 | path_config='kitchen', |
| 1160 | swarm_out_dir='[SWARM_OUT_DIR]') + |
| 1161 | api.path.exists( |
Ravi Mistry | 9bcca6a | 2016-11-21 16:06:19 -0500 | [diff] [blame] | 1162 | api.path['start_dir'].join('skia'), |
| 1163 | api.path['start_dir'].join('skia', 'infra', 'bots', 'assets', |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 1164 | 'skimage', 'VERSION'), |
Ravi Mistry | 9bcca6a | 2016-11-21 16:06:19 -0500 | [diff] [blame] | 1165 | api.path['start_dir'].join('skia', 'infra', 'bots', 'assets', |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 1166 | 'skp', 'VERSION'), |
Ravi Mistry | 9bcca6a | 2016-11-21 16:06:19 -0500 | [diff] [blame] | 1167 | api.path['start_dir'].join('skia', 'infra', 'bots', 'assets', |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 1168 | 'svg', 'VERSION'), |
Ravi Mistry | 9bcca6a | 2016-11-21 16:06:19 -0500 | [diff] [blame] | 1169 | api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt') |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 1170 | ) + |
| 1171 | api.step_data('symbolized dm', retcode=1) |
| 1172 | ) |
| 1173 | |
Kevin Lubick | 9ef6de7 | 2017-10-15 21:05:58 -0400 | [diff] [blame] | 1174 | builder = 'Test-Android-Clang-Nexus7-GPU-Tegra3-arm-Release-All-Android' |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 1175 | yield ( |
| 1176 | api.test('failed_get_hashes') + |
| 1177 | api.properties(buildername=builder, |
Eric Boren | 9a9e387 | 2017-11-29 12:33:22 -0500 | [diff] [blame] | 1178 | buildbucket_build_id='123454321', |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 1179 | revision='abc123', |
| 1180 | path_config='kitchen', |
| 1181 | swarm_out_dir='[SWARM_OUT_DIR]') + |
| 1182 | api.path.exists( |
| 1183 | api.path['start_dir'].join('skia'), |
| 1184 | api.path['start_dir'].join('skia', 'infra', 'bots', 'assets', |
| 1185 | 'skimage', 'VERSION'), |
| 1186 | api.path['start_dir'].join('skia', 'infra', 'bots', 'assets', |
| 1187 | 'skp', 'VERSION'), |
| 1188 | api.path['start_dir'].join('skia', 'infra', 'bots', 'assets', |
| 1189 | 'svg', 'VERSION'), |
| 1190 | api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt') |
| 1191 | ) + |
| 1192 | api.step_data('get uninteresting hashes', retcode=1) |
| 1193 | ) |
| 1194 | |
Kevin Lubick | 9ef6de7 | 2017-10-15 21:05:58 -0400 | [diff] [blame] | 1195 | builder = ('Test-Android-Clang-NexusPlayer-CPU-Moorefield-x86-' |
| 1196 | 'Debug-All-Android') |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 1197 | yield ( |
| 1198 | api.test('failed_push') + |
| 1199 | api.properties(buildername=builder, |
Eric Boren | 9a9e387 | 2017-11-29 12:33:22 -0500 | [diff] [blame] | 1200 | buildbucket_build_id='123454321', |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 1201 | revision='abc123', |
| 1202 | path_config='kitchen', |
| 1203 | swarm_out_dir='[SWARM_OUT_DIR]') + |
| 1204 | api.path.exists( |
| 1205 | api.path['start_dir'].join('skia'), |
| 1206 | api.path['start_dir'].join('skia', 'infra', 'bots', 'assets', |
| 1207 | 'skimage', 'VERSION'), |
| 1208 | api.path['start_dir'].join('skia', 'infra', 'bots', 'assets', |
| 1209 | 'skp', 'VERSION'), |
| 1210 | api.path['start_dir'].join('skia', 'infra', 'bots', 'assets', |
| 1211 | 'svg', 'VERSION'), |
| 1212 | api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt') |
| 1213 | ) + |
Kevin Lubick | c6f74ca | 2018-03-01 09:21:38 -0500 | [diff] [blame] | 1214 | api.step_data('get swarming bot id', |
| 1215 | stdout=api.raw_io.output('build123-m2--device5')) + |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 1216 | api.step_data('push [START_DIR]/skia/resources/* '+ |
| 1217 | '/sdcard/revenge_of_the_skiabot/resources', retcode=1) |
| 1218 | ) |
| 1219 | |
Ben Wagner | 1a2b3f0 | 2017-10-26 15:13:38 -0400 | [diff] [blame] | 1220 | builder = 'Test-Android-Clang-Nexus7-GPU-Tegra3-arm-Debug-All-Android' |
Eric Boren | cd0a98c | 2018-06-20 13:23:16 -0400 | [diff] [blame] | 1221 | retry_step_name = 'adb pull.pull /sdcard/revenge_of_the_skiabot/dm_out' |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 1222 | yield ( |
| 1223 | api.test('failed_pull') + |
| 1224 | api.properties(buildername=builder, |
Eric Boren | 9a9e387 | 2017-11-29 12:33:22 -0500 | [diff] [blame] | 1225 | buildbucket_build_id='123454321', |
Eric Boren | 4c7754c | 2017-04-10 08:19:10 -0400 | [diff] [blame] | 1226 | revision='abc123', |
| 1227 | path_config='kitchen', |
| 1228 | swarm_out_dir='[SWARM_OUT_DIR]') + |
| 1229 | api.path.exists( |
| 1230 | api.path['start_dir'].join('skia'), |
| 1231 | api.path['start_dir'].join('skia', 'infra', 'bots', 'assets', |
| 1232 | 'skimage', 'VERSION'), |
| 1233 | api.path['start_dir'].join('skia', 'infra', 'bots', 'assets', |
| 1234 | 'skp', 'VERSION'), |
| 1235 | api.path['start_dir'].join('skia', 'infra', 'bots', 'assets', |
| 1236 | 'svg', 'VERSION'), |
| 1237 | api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt') |
| 1238 | ) + |
| 1239 | api.step_data('dm', retcode=1) + |
Ben Wagner | e7e6e22 | 2018-05-25 09:47:37 -0400 | [diff] [blame] | 1240 | api.step_data(retry_step_name, retcode=1) + |
| 1241 | api.step_data(retry_step_name + ' (attempt 2)', retcode=1) + |
| 1242 | api.step_data(retry_step_name + ' (attempt 3)', retcode=1) |
borenet | bfa5b45 | 2016-10-19 10:13:32 -0700 | [diff] [blame] | 1243 | ) |
Eric Boren | 053d7a4 | 2017-09-15 08:35:31 -0400 | [diff] [blame] | 1244 | |
| 1245 | yield ( |
Kevin Lubick | bd27d1d | 2017-10-13 08:01:49 -0400 | [diff] [blame] | 1246 | api.test('internal_bot_2') + |
| 1247 | api.properties(buildername=builder, |
Eric Boren | 9a9e387 | 2017-11-29 12:33:22 -0500 | [diff] [blame] | 1248 | buildbucket_build_id='123454321', |
Kevin Lubick | bd27d1d | 2017-10-13 08:01:49 -0400 | [diff] [blame] | 1249 | revision='abc123', |
| 1250 | path_config='kitchen', |
| 1251 | swarm_out_dir='[SWARM_OUT_DIR]', |
Eric Boren | fb20ac4 | 2018-04-24 14:48:19 -0400 | [diff] [blame] | 1252 | internal_hardware_label='2') + |
Kevin Lubick | bd27d1d | 2017-10-13 08:01:49 -0400 | [diff] [blame] | 1253 | api.path.exists( |
| 1254 | api.path['start_dir'].join('skia'), |
| 1255 | api.path['start_dir'].join('skia', 'infra', 'bots', 'assets', |
| 1256 | 'skimage', 'VERSION'), |
| 1257 | api.path['start_dir'].join('skia', 'infra', 'bots', 'assets', |
| 1258 | 'skp', 'VERSION'), |
| 1259 | api.path['start_dir'].join('skia', 'infra', 'bots', 'assets', |
| 1260 | 'svg', 'VERSION'), |
| 1261 | api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt') |
Kevin Lubick | d1bbd5f | 2017-11-21 16:47:16 -0500 | [diff] [blame] | 1262 | ) |
Kevin Lubick | bd27d1d | 2017-10-13 08:01:49 -0400 | [diff] [blame] | 1263 | ) |