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

Side by Side Diff: tools/dm_flags.py

Issue 1825163002: Try throttling x86 desktop bots down with fewer threads. (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 11 matching lines...) Expand all
22 22
23 def lineno(): 23 def lineno():
24 caller = inspect.stack()[1] # Up one level to our caller. 24 caller = inspect.stack()[1] # Up one level to our caller.
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
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:
35 args.append('--threads 4')
36
32 configs = ['565', '8888', 'gpu'] 37 configs = ['565', '8888', 'gpu']
33 38
34 if '-GCE-' in bot: 39 if '-GCE-' in bot:
35 configs.extend(['f16', 'srgb']) # Gamma-correct formats. 40 configs.extend(['f16', 'srgb']) # Gamma-correct formats.
36 configs.extend(['sp-8888', '2ndpic-8888']) # Test niche uses of SkPicture. 41 configs.extend(['sp-8888', '2ndpic-8888']) # Test niche uses of SkPicture.
37 42
38 if '-TSAN' not in bot: 43 if '-TSAN' not in bot:
39 if ('TegraK1' in bot or 44 if ('TegraK1' in bot or
40 'GTX550Ti' in bot or 45 'GTX550Ti' in bot or
41 'GTX660' in bot or 46 'GTX660' in bot or
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 blacklist.extend('pdf gm _ fontmgr_iter'.split(' ')) 105 blacklist.extend('pdf gm _ fontmgr_iter'.split(' '))
101 blacklist.extend('pdf _ _ PANO_20121023_214540.jpg'.split(' ')) 106 blacklist.extend('pdf _ _ PANO_20121023_214540.jpg'.split(' '))
102 blacklist.extend('pdf skp _ worldjournal'.split(' ')) 107 blacklist.extend('pdf skp _ worldjournal'.split(' '))
103 blacklist.extend('pdf skp _ desk_baidu.skp'.split(' ')) 108 blacklist.extend('pdf skp _ desk_baidu.skp'.split(' '))
104 blacklist.extend('pdf skp _ desk_wikipedia.skp'.split(' ')) 109 blacklist.extend('pdf skp _ desk_wikipedia.skp'.split(' '))
105 110
106 if 'iOS' in bot: 111 if 'iOS' in bot:
107 blacklist.extend('gpu skp _ _ msaa skp _ _'.split(' ')) 112 blacklist.extend('gpu skp _ _ msaa skp _ _'.split(' '))
108 blacklist.extend('msaa16 gm _ tilemodesProcess'.split(' ')) 113 blacklist.extend('msaa16 gm _ tilemodesProcess'.split(' '))
109 114
110 # the 32-bit GCE bots run out of memory in DM when running these large images
111 if 'x86' in bot and not 'x86-64' in bot:
112 blacklist.extend('_ image _ interlaced1.png'.split(' '))
113 blacklist.extend('_ image _ interlaced2.png'.split(' '))
114 blacklist.extend('_ image _ interlaced3.png'.split(' '))
115
116 if 'Mac' in bot or 'iOS' in bot: 115 if 'Mac' in bot or 'iOS' in bot:
117 # CG fails on questionable bmps 116 # CG fails on questionable bmps
118 blacklist.extend('_ image gen_platf rgba32abf.bmp'.split(' ')) 117 blacklist.extend('_ image gen_platf rgba32abf.bmp'.split(' '))
119 blacklist.extend('_ image gen_platf rgb24prof.bmp'.split(' ')) 118 blacklist.extend('_ image gen_platf rgb24prof.bmp'.split(' '))
120 blacklist.extend('_ image gen_platf rgb24lprof.bmp'.split(' ')) 119 blacklist.extend('_ image gen_platf rgb24lprof.bmp'.split(' '))
121 blacklist.extend('_ image gen_platf 8bpp-pixeldata-cropped.bmp'.split(' ')) 120 blacklist.extend('_ image gen_platf 8bpp-pixeldata-cropped.bmp'.split(' '))
122 blacklist.extend('_ image gen_platf 4bpp-pixeldata-cropped.bmp'.split(' ')) 121 blacklist.extend('_ image gen_platf 4bpp-pixeldata-cropped.bmp'.split(' '))
123 blacklist.extend('_ image gen_platf 32bpp-pixeldata-cropped.bmp'.split(' ')) 122 blacklist.extend('_ image gen_platf 32bpp-pixeldata-cropped.bmp'.split(' '))
124 blacklist.extend('_ image gen_platf 24bpp-pixeldata-cropped.bmp'.split(' ')) 123 blacklist.extend('_ image gen_platf 24bpp-pixeldata-cropped.bmp'.split(' '))
125 124
126 # CG has unpredictable behavior on this questionable gif 125 # CG has unpredictable behavior on this questionable gif
127 # It's probably using uninitialized memory 126 # It's probably using uninitialized memory
128 blacklist.extend('_ image gen_platf frame_larger_than_image.gif'.split(' ')) 127 blacklist.extend('_ image gen_platf frame_larger_than_image.gif'.split(' '))
129 128
130 # WIC fails on questionable bmps 129 # WIC fails on questionable bmps
131 if 'Win' in bot: 130 if 'Win' in bot:
132 blacklist.extend('_ image gen_platf rle8-height-negative.bmp'.split(' ')) 131 blacklist.extend('_ image gen_platf rle8-height-negative.bmp'.split(' '))
133 blacklist.extend('_ image gen_platf rle4-height-negative.bmp'.split(' ')) 132 blacklist.extend('_ image gen_platf rle4-height-negative.bmp'.split(' '))
134 blacklist.extend('_ image gen_platf pal8os2v2.bmp'.split(' ')) 133 blacklist.extend('_ image gen_platf pal8os2v2.bmp'.split(' '))
135 blacklist.extend('_ image gen_platf pal8os2v2-16.bmp'.split(' ')) 134 blacklist.extend('_ image gen_platf pal8os2v2-16.bmp'.split(' '))
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 # Extensions for RAW images 185 # Extensions for RAW images
187 r = ["arw", "cr2", "dng", "nef", "nrw", "orf", "raf", "rw2", "pef", "srw", 186 r = ["arw", "cr2", "dng", "nef", "nrw", "orf", "raf", "rw2", "pef", "srw",
188 "ARW", "CR2", "DNG", "NEF", "NRW", "ORF", "RAF", "RW2", "PEF", "SRW"] 187 "ARW", "CR2", "DNG", "NEF", "NRW", "ORF", "RAF", "RW2", "PEF", "SRW"]
189 188
190 # skbug.com/4888 189 # skbug.com/4888
191 # Blacklist RAW images on GPU tests until we can resolve failures 190 # Blacklist RAW images on GPU tests until we can resolve failures
192 if 'GPU' in bot: 191 if 'GPU' in bot:
193 for raw_ext in r: 192 for raw_ext in r:
194 blacklist.extend(('_ image _ .%s' % raw_ext).split(' ')) 193 blacklist.extend(('_ image _ .%s' % raw_ext).split(' '))
195 194
196 # Blacklist RAW images on some 32-bit machines due to out-of-memory issues
197 if (('Win' in bot or 'Ubuntu' in bot) and not '64' in bot):
198 for raw_ext in r:
199 blacklist.extend(('_ image _ .%s' % raw_ext).split(' '))
200
201 match = [] 195 match = []
202 if 'Valgrind' in bot: # skia:3021 196 if 'Valgrind' in bot: # skia:3021
203 match.append('~Threaded') 197 match.append('~Threaded')
204 198
205 if 'GalaxyS3' in bot: # skia:1699 199 if 'GalaxyS3' in bot: # skia:1699
206 match.append('~WritePixels') 200 match.append('~WritePixels')
207 201
208 if 'AndroidOne' in bot: # skia:4711 202 if 'AndroidOne' in bot: # skia:4711
209 match.append('~WritePixels') 203 match.append('~WritePixels')
210 204
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 if len(sys.argv) == 2 and sys.argv[1] == 'test': 276 if len(sys.argv) == 2 and sys.argv[1] == 'test':
283 self_test() 277 self_test()
284 sys.exit(0) 278 sys.exit(0)
285 279
286 if len(sys.argv) != 3: 280 if len(sys.argv) != 3:
287 print usage 281 print usage
288 sys.exit(1) 282 sys.exit(1)
289 283
290 with open(sys.argv[1], 'w') as out: 284 with open(sys.argv[1], 'w') as out:
291 json.dump(get_args(sys.argv[2]), out) 285 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