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