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