Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(252)

Side by Side Diff: infra/bots/recipes/swarm_test.py

Issue 2215443003: [recipes] Increase test coverage (Closed) Base URL: https://skia.googlesource.com/skia.git@merge_buildbot_spec
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 5
6 # Recipe module for Skia Swarming test. 6 # Recipe module for Skia Swarming test.
7 7
8 8
9 DEPS = [ 9 DEPS = [
10 'build/file', 10 'build/file',
11 'core', 11 'core',
12 'recipe_engine/json', 12 'recipe_engine/json',
13 'recipe_engine/path', 13 'recipe_engine/path',
14 'recipe_engine/platform', 14 'recipe_engine/platform',
15 'recipe_engine/properties', 15 'recipe_engine/properties',
16 'recipe_engine/python', 16 'recipe_engine/python',
17 'recipe_engine/raw_io', 17 'recipe_engine/raw_io',
18 'flavor', 18 'flavor',
19 'run', 19 'run',
20 'vars', 20 'vars',
21 ] 21 ]
22 22
23 23
24 TEST_BUILDERS = { 24 TEST_BUILDERS = {
25 'client.skia': { 25 'client.skia': {
26 'skiabot-linux-swarm-000': [ 26 'skiabot-linux-swarm-000': [
27 #'Test-Android-GCC-AndroidOne-GPU-Mali400MP2-Arm7-Release', 27 'Test-Android-GCC-AndroidOne-GPU-Mali400MP2-Arm7-Release',
28 'Test-Android-GCC-GalaxyS3-GPU-Mali400-Arm7-Debug', 28 'Test-Android-GCC-GalaxyS3-GPU-Mali400-Arm7-Debug',
29 #'Test-Android-GCC-Nexus10-GPU-MaliT604-Arm7-Release', 29 'Test-Android-GCC-Nexus10-GPU-MaliT604-Arm7-Release',
30 #'Test-Android-GCC-Nexus6-GPU-Adreno420-Arm7-Debug', 30 'Test-Android-GCC-Nexus6-GPU-Adreno420-Arm7-Debug',
31 'Test-Android-GCC-Nexus7-GPU-Tegra3-Arm7-Debug', 31 'Test-Android-GCC-Nexus7-GPU-Tegra3-Arm7-Debug',
32 #'Test-Android-GCC-Nexus9-CPU-Denver-Arm64-Debug', 32 'Test-Android-GCC-Nexus9-CPU-Denver-Arm64-Debug',
33 #'Test-Android-GCC-NexusPlayer-CPU-SSE4-x86-Release', 33 'Test-Android-GCC-NexusPlayer-CPU-SSE4-x86-Release',
34 #'Test-Android-GCC-NVIDIA_Shield-GPU-TegraX1-Arm64-Debug', 34 'Test-Android-GCC-NVIDIA_Shield-GPU-TegraX1-Arm64-Debug',
35 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug', 35 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug',
36 #'Test-Mac-Clang-MacMini4.1-GPU-GeForce320M-x86_64-Debug', 36 'Test-Mac-Clang-MacMini4.1-GPU-GeForce320M-x86_64-Debug',
37 #'Test-Mac-Clang-MacMini6.2-CPU-AVX-x86_64-Debug', 37 'Test-Mac-Clang-MacMini6.2-CPU-AVX-x86_64-Debug',
38 #'Test-Mac-Clang-MacMini6.2-GPU-HD4000-x86_64-Debug-CommandBuffer', 38 'Test-Mac-Clang-MacMini6.2-GPU-HD4000-x86_64-Debug-CommandBuffer',
39 'Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Coverage-Trybot', 39 'Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Coverage-Trybot',
40 #'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86-Debug', 40 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86-Debug',
41 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug', 41 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug',
42 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-MSAN', 42 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-MSAN',
43 #'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-TSAN', 43 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-TSAN',
44 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', 44 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind',
45 #'Test-Win10-MSVC-ShuttleA-GPU-GTX660-x86_64-Debug-Vulkan', 45 'Test-Win10-MSVC-ShuttleA-GPU-GTX660-x86_64-Debug-Vulkan',
46 'Test-Win8-MSVC-ShuttleB-CPU-AVX2-x86_64-Release-Trybot', 46 'Test-Win8-MSVC-ShuttleB-CPU-AVX2-x86_64-Release-Trybot',
47 #'Test-Win8-MSVC-ShuttleB-GPU-GTX960-x86_64-Debug-ANGLE', 47 'Test-Win8-MSVC-ShuttleB-GPU-GTX960-x86_64-Debug-ANGLE',
48 ], 48 ],
49 }, 49 },
50 } 50 }
51 51
52 52
53 def dm_flags(bot): 53 def dm_flags(bot):
54 args = [] 54 args = []
55 55
56 # 32-bit desktop bots tend to run out of memory, because they have relatively 56 # 32-bit desktop bots tend to run out of memory, because they have relatively
57 # far more cores than RAM (e.g. 32 cores, 3G RAM). Hold them back a bit. 57 # far more cores than RAM (e.g. 32 cores, 3G RAM). Hold them back a bit.
58 if '-x86-' in bot and not 'NexusPlayer' in bot: 58 if '-x86-' in bot and not 'NexusPlayer' in bot:
59 args.extend('--threads 4'.split(' ')) # pragma: no cover 59 args.extend('--threads 4'.split(' '))
60 60
61 # These are the canonical configs that we would ideally run on all bots. We 61 # These are the canonical configs that we would ideally run on all bots. We
62 # may opt out or substitute some below for specific bots 62 # may opt out or substitute some below for specific bots
63 configs = ['565', '8888', 'gpu', 'gpusrgb', 'pdf'] 63 configs = ['565', '8888', 'gpu', 'gpusrgb', 'pdf']
64 # Add in either msaa4 or msaa16 to the canonical set of configs to run 64 # Add in either msaa4 or msaa16 to the canonical set of configs to run
65 if 'Android' in bot or 'iOS' in bot: 65 if 'Android' in bot or 'iOS' in bot:
66 configs.append('msaa4') 66 configs.append('msaa4')
67 else: 67 else:
68 configs.append('msaa16') 68 configs.append('msaa16')
69 69
(...skipping 15 matching lines...) Expand all
85 configs.extend(['f16', 'srgb']) # Gamma-correct formats. 85 configs.extend(['f16', 'srgb']) # Gamma-correct formats.
86 configs.extend(['sp-8888', '2ndpic-8888']) # Test niche uses of SkPicture. 86 configs.extend(['sp-8888', '2ndpic-8888']) # Test niche uses of SkPicture.
87 87
88 if '-TSAN' not in bot: 88 if '-TSAN' not in bot:
89 if ('TegraK1' in bot or 89 if ('TegraK1' in bot or
90 'TegraX1' in bot or 90 'TegraX1' in bot or
91 'GTX550Ti' in bot or 91 'GTX550Ti' in bot or
92 'GTX660' in bot or 92 'GTX660' in bot or
93 'GT610' in bot): 93 'GT610' in bot):
94 if 'Android' in bot: 94 if 'Android' in bot:
95 configs.append('nvprdit4') # pragma: no cover 95 configs.append('nvprdit4')
96 else: 96 else:
97 configs.append('nvprdit16') 97 configs.append('nvprdit16')
98 98
99 # We want to test the OpenGL config not the GLES config on the X1 99 # We want to test the OpenGL config not the GLES config on the X1
100 if 'TegraX1' in bot: # pragma: no cover 100 if 'TegraX1' in bot:
101 configs = [x.replace('gpu', 'gl') for x in configs] 101 configs = [x.replace('gpu', 'gl') for x in configs]
102 configs = [x.replace('msaa', 'glmsaa') for x in configs] 102 configs = [x.replace('msaa', 'glmsaa') for x in configs]
103 configs = [x.replace('nvpr', 'glnvpr') for x in configs] 103 configs = [x.replace('nvpr', 'glnvpr') for x in configs]
104 104
105 # NP is running out of RAM when we run all these modes. skia:3255 105 # NP is running out of RAM when we run all these modes. skia:3255
106 if 'NexusPlayer' not in bot: 106 if 'NexusPlayer' not in bot:
107 configs.extend(mode + '-8888' for mode in 107 configs.extend(mode + '-8888' for mode in
108 ['serialize', 'tiles_rt', 'pic']) 108 ['serialize', 'tiles_rt', 'pic'])
109 109
110 if 'ANGLE' in bot: 110 if 'ANGLE' in bot:
111 configs.append('angle') # pragma: no cover 111 configs.append('angle')
112 112
113 # We want to run gpudft on atleast the mali 400 113 # We want to run gpudft on atleast the mali 400
114 if 'GalaxyS3' in bot: 114 if 'GalaxyS3' in bot:
115 configs.append('gpudft') 115 configs.append('gpudft')
116 116
117 # Test instanced rendering on a limited number of platforms 117 # Test instanced rendering on a limited number of platforms
118 if 'Nexus6' in bot: # pragma: no cover 118 if 'Nexus6' in bot:
119 configs.append('esinst') # esinst4 isn't working yet on Adreno. 119 configs.append('esinst') # esinst4 isn't working yet on Adreno.
120 elif 'TegraX1' in bot: # pragma: no cover 120 elif 'TegraX1' in bot:
121 # Multisampled instanced configs use nvpr. 121 # Multisampled instanced configs use nvpr.
122 configs = [x.replace('glnvpr', 'glinst') for x in configs] 122 configs = [x.replace('glnvpr', 'glinst') for x in configs]
123 configs.append('glinst') 123 configs.append('glinst')
124 elif 'MacMini6.2' in bot: 124 elif 'MacMini6.2' in bot:
125 configs.extend(['glinst', 'glinst16']) # pragma: no cover 125 configs.extend(['glinst', 'glinst16'])
126 126
127 # CommandBuffer bot *only* runs the command_buffer config. 127 # CommandBuffer bot *only* runs the command_buffer config.
128 if 'CommandBuffer' in bot: 128 if 'CommandBuffer' in bot:
129 configs = ['commandbuffer'] # pragma: no cover 129 configs = ['commandbuffer']
130 130
131 # Vulkan bot *only* runs the vk config. 131 # Vulkan bot *only* runs the vk config.
132 if 'Vulkan' in bot: 132 if 'Vulkan' in bot:
133 configs = ['vk'] # pragma: no cover 133 configs = ['vk']
134 134
135 args.append('--config') 135 args.append('--config')
136 args.extend(configs) 136 args.extend(configs)
137 137
138 # Run tests, gms, and image decoding tests everywhere. 138 # Run tests, gms, and image decoding tests everywhere.
139 args.extend('--src tests gm image colorImage'.split(' ')) 139 args.extend('--src tests gm image colorImage'.split(' '))
140 140
141 if 'GalaxyS' in bot: 141 if 'GalaxyS' in bot:
142 args.extend(('--threads', '0')) 142 args.extend(('--threads', '0'))
143 143
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 # skbug.com/4888 263 # skbug.com/4888
264 # Blacklist RAW images (and a few large PNGs) on GPU bots 264 # Blacklist RAW images (and a few large PNGs) on GPU bots
265 # until we can resolve failures 265 # until we can resolve failures
266 if 'GPU' in bot: 266 if 'GPU' in bot:
267 blacklist.extend('_ image _ interlaced1.png'.split(' ')) 267 blacklist.extend('_ image _ interlaced1.png'.split(' '))
268 blacklist.extend('_ image _ interlaced2.png'.split(' ')) 268 blacklist.extend('_ image _ interlaced2.png'.split(' '))
269 blacklist.extend('_ image _ interlaced3.png'.split(' ')) 269 blacklist.extend('_ image _ interlaced3.png'.split(' '))
270 for raw_ext in r: 270 for raw_ext in r:
271 blacklist.extend(('_ image _ .%s' % raw_ext).split(' ')) 271 blacklist.extend(('_ image _ .%s' % raw_ext).split(' '))
272 272
273 if 'Nexus9' in bot: # pragma: no cover 273 if 'Nexus9' in bot:
274 for raw_ext in r: 274 for raw_ext in r:
275 blacklist.extend(('_ image _ .%s' % raw_ext).split(' ')) 275 blacklist.extend(('_ image _ .%s' % raw_ext).split(' '))
276 276
277 # Large image that overwhelms older Mac bots 277 # Large image that overwhelms older Mac bots
278 if 'MacMini4.1-GPU' in bot: # pragma: no cover 278 if 'MacMini4.1-GPU' in bot:
279 blacklist.extend('_ image _ abnormal.wbmp'.split(' ')) 279 blacklist.extend('_ image _ abnormal.wbmp'.split(' '))
280 blacklist.extend(['msaa16', 'gm', '_', 'blurcircles']) 280 blacklist.extend(['msaa16', 'gm', '_', 'blurcircles'])
281 281
282 match = [] 282 match = []
283 if 'Valgrind' in bot: # skia:3021 283 if 'Valgrind' in bot: # skia:3021
284 match.append('~Threaded') 284 match.append('~Threaded')
285 285
286 if 'GalaxyS3' in bot: # skia:1699 286 if 'GalaxyS3' in bot: # skia:1699
287 match.append('~WritePixels') 287 match.append('~WritePixels')
288 288
289 if 'AndroidOne' in bot: # skia:4711 289 if 'AndroidOne' in bot: # skia:4711
290 match.append('~WritePixels') # pragma: no cover 290 match.append('~WritePixels')
291 291
292 if 'NexusPlayer' in bot: 292 if 'NexusPlayer' in bot:
293 match.append('~ResourceCache') # pragma: no cover 293 match.append('~ResourceCache')
294 294
295 if 'Nexus10' in bot: # skia:5509 295 if 'Nexus10' in bot: # skia:5509
296 match.append('~CopySurface') # pragma: no cover 296 match.append('~CopySurface')
297 297
298 if 'ANGLE' in bot and 'Debug' in bot: # pragma: no cover 298 if 'ANGLE' in bot and 'Debug' in bot:
299 match.append('~GLPrograms') # skia:4717 299 match.append('~GLPrograms') # skia:4717
300 300
301 if 'MSAN' in bot: 301 if 'MSAN' in bot:
302 match.extend(['~Once', '~Shared']) # Not sure what's up with these tests. 302 match.extend(['~Once', '~Shared']) # Not sure what's up with these tests.
303 303
304 if 'TSAN' in bot: # pragma: no cover 304 if 'TSAN' in bot:
305 match.extend(['~ReadWriteAlpha']) # Flaky on TSAN-covered on nvidia bots. 305 match.extend(['~ReadWriteAlpha']) # Flaky on TSAN-covered on nvidia bots.
306 306
307 if blacklist: 307 if blacklist:
308 args.append('--blacklist') 308 args.append('--blacklist')
309 args.extend(blacklist) 309 args.extend(blacklist)
310 310
311 if match: 311 if match:
312 args.append('--match') 312 args.append('--match')
313 args.extend(match) 313 args.extend(match)
314 314
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 api.path.exists( 741 api.path.exists(
742 api.path['slave_build'].join('skia'), 742 api.path['slave_build'].join('skia'),
743 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', 743 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
744 'skimage', 'VERSION'), 744 'skimage', 'VERSION'),
745 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', 745 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
746 'skp', 'VERSION'), 746 'skp', 'VERSION'),
747 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') 747 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt')
748 ) + 748 ) +
749 api.platform('win', 64) 749 api.platform('win', 64)
750 ) 750 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698