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

Side by Side Diff: tools/dm_flags.py

Issue 1827543002: fix --threads 4, blacklist interlaced1,2,3 on GPU (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « tools/dm_flags.json ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # 1 #
2 # Copyright 2015 Google Inc. 2 # Copyright 2015 Google Inc.
3 # 3 #
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 # 6 #
7 7
8 #!/usr/bin/env python 8 #!/usr/bin/env python
9 9
10 usage = ''' 10 usage = '''
(...skipping 14 matching lines...) Expand all
25 return inspect.getframeinfo(caller[0]).lineno 25 return inspect.getframeinfo(caller[0]).lineno
26 26
27 27
28 cov_start = lineno()+1 # We care about coverage starting just past this def. 28 cov_start = lineno()+1 # We care about coverage starting just past this def.
29 def get_args(bot): 29 def get_args(bot):
30 args = [] 30 args = []
31 31
32 # 32-bit desktop bots tend to run out of memory, because they have relatively 32 # 32-bit desktop bots tend to run out of memory, because they have relatively
33 # far more cores than RAM (e.g. 32 cores, 3G RAM). Hold them back a bit. 33 # far more cores than RAM (e.g. 32 cores, 3G RAM). Hold them back a bit.
34 if '-x86-' in bot and not 'NexusPlayer' in bot: 34 if '-x86-' in bot and not 'NexusPlayer' in bot:
35 args.append('--threads 4') 35 args.extend('--threads 4'.split(' '))
36 36
37 configs = ['565', '8888', 'gpu'] 37 configs = ['565', '8888', 'gpu']
38 38
39 if '-GCE-' in bot: 39 if '-GCE-' in bot:
40 configs.extend(['f16', 'srgb']) # Gamma-correct formats. 40 configs.extend(['f16', 'srgb']) # Gamma-correct formats.
41 configs.extend(['sp-8888', '2ndpic-8888']) # Test niche uses of SkPicture. 41 configs.extend(['sp-8888', '2ndpic-8888']) # Test niche uses of SkPicture.
42 42
43 if '-TSAN' not in bot: 43 if '-TSAN' not in bot:
44 if ('TegraK1' in bot or 44 if ('TegraK1' in bot or
45 'GTX550Ti' in bot or 45 'GTX550Ti' in bot or
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 blacklist.extend([ 'sp-8888', 'gm', '_', test]) 180 blacklist.extend([ 'sp-8888', 'gm', '_', test])
181 blacklist.extend([ 'pic-8888', 'gm', '_', test]) 181 blacklist.extend([ 'pic-8888', 'gm', '_', test])
182 blacklist.extend([ '2ndpic-8888', 'gm', '_', test]) 182 blacklist.extend([ '2ndpic-8888', 'gm', '_', test])
183 blacklist.extend(['serialize-8888', 'gm', '_', test]) 183 blacklist.extend(['serialize-8888', 'gm', '_', test])
184 184
185 # Extensions for RAW images 185 # Extensions for RAW images
186 r = ["arw", "cr2", "dng", "nef", "nrw", "orf", "raf", "rw2", "pef", "srw", 186 r = ["arw", "cr2", "dng", "nef", "nrw", "orf", "raf", "rw2", "pef", "srw",
187 "ARW", "CR2", "DNG", "NEF", "NRW", "ORF", "RAF", "RW2", "PEF", "SRW"] 187 "ARW", "CR2", "DNG", "NEF", "NRW", "ORF", "RAF", "RW2", "PEF", "SRW"]
188 188
189 # skbug.com/4888 189 # skbug.com/4888
190 # Blacklist RAW images on GPU tests until we can resolve failures 190 # Blacklist RAW images (and a few large PNGs) on GPU bots
191 # until we can resolve failures
191 if 'GPU' in bot: 192 if 'GPU' in bot:
193 blacklist.extend('_ image _ interlaced1.png'.split(' '))
194 blacklist.extend('_ image _ interlaced2.png'.split(' '))
195 blacklist.extend('_ image _ interlaced3.png'.split(' '))
192 for raw_ext in r: 196 for raw_ext in r:
193 blacklist.extend(('_ image _ .%s' % raw_ext).split(' ')) 197 blacklist.extend(('_ image _ .%s' % raw_ext).split(' '))
194 198
195 match = [] 199 match = []
196 if 'Valgrind' in bot: # skia:3021 200 if 'Valgrind' in bot: # skia:3021
197 match.append('~Threaded') 201 match.append('~Threaded')
198 202
199 if 'GalaxyS3' in bot: # skia:1699 203 if 'GalaxyS3' in bot: # skia:1699
200 match.append('~WritePixels') 204 match.append('~WritePixels')
201 205
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 if len(sys.argv) == 2 and sys.argv[1] == 'test': 280 if len(sys.argv) == 2 and sys.argv[1] == 'test':
277 self_test() 281 self_test()
278 sys.exit(0) 282 sys.exit(0)
279 283
280 if len(sys.argv) != 3: 284 if len(sys.argv) != 3:
281 print usage 285 print usage
282 sys.exit(1) 286 sys.exit(1)
283 287
284 with open(sys.argv[1], 'w') as out: 288 with open(sys.argv[1], 'w') as out:
285 json.dump(get_args(sys.argv[2]), out) 289 json.dump(get_args(sys.argv[2]), out)
OLDNEW
« no previous file with comments | « tools/dm_flags.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698