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

Side by Side Diff: tools/dm_flags.py

Issue 986583004: Run Valgrind bots with --nogpu and --nocpu as appropriate (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: nanobench Created 5 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') | tools/nanobench_flags.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 2
3 usage = ''' 3 usage = '''
4 Write extra flags to outfile for DM based on the bot name: 4 Write extra flags to outfile for DM based on the bot name:
5 $ python dm_flags.py outfile Test-Mac10.9-MacMini6.2-HD4000-x86_64-Release 5 $ python dm_flags.py outfile Test-Mac10.9-MacMini6.2-HD4000-x86_64-Release
6 Or run self-tests: 6 Or run self-tests:
7 $ python dm_flags.py test 7 $ python dm_flags.py test
8 ''' 8 '''
9 9
10 import inspect 10 import inspect
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 # Drawing SKPs or images into GPU canvases is a New Thing. 54 # Drawing SKPs or images into GPU canvases is a New Thing.
55 # It seems like we're running out of RAM on some Android bots, so start off 55 # It seems like we're running out of RAM on some Android bots, so start off
56 # with a very wide blacklist disabling all these tests on all Android bots. 56 # with a very wide blacklist disabling all these tests on all Android bots.
57 if 'Android' in bot: # skia:3255 57 if 'Android' in bot: # skia:3255
58 blacklist.extend('gpu skp _ gpu image _ gpu subset _'.split(' ')) 58 blacklist.extend('gpu skp _ gpu image _ gpu subset _'.split(' '))
59 blacklist.extend('msaa skp _ msaa image _ gpu subset _'.split(' ')) 59 blacklist.extend('msaa skp _ msaa image _ gpu subset _'.split(' '))
60 60
61 # PDF + .webp -> jumps depending on uninitialized memory. skia:3505 61 # PDF + .webp -> jumps depending on uninitialized memory. skia:3505
62 if 'Valgrind' in bot: 62 if 'Valgrind' in bot:
63 blacklist.extend('pdf _ .webp'.split(' ')) 63 blacklist.extend('pdf _ .webp'.split(' '))
64 if 'GPU' in bot:
65 args.append('--nocpu')
66 elif 'CPU' in bot:
67 args.append('--nogpu')
64 68
65 if blacklist: 69 if blacklist:
66 args.append('--blacklist') 70 args.append('--blacklist')
67 args.extend(blacklist) 71 args.extend(blacklist)
68 72
69 match = [] 73 match = []
70 if 'Alex' in bot: # skia:2793 74 if 'Alex' in bot: # skia:2793
71 # This machine looks to be running out of heap. 75 # This machine looks to be running out of heap.
72 # Running with fewer threads may help. 76 # Running with fewer threads may help.
73 args.extend(['--threads', '1']) 77 args.extend(['--threads', '1'])
(...skipping 22 matching lines...) Expand all
96 cov_end = lineno() # Don't care about code coverage past here. 100 cov_end = lineno() # Don't care about code coverage past here.
97 101
98 102
99 def self_test(): 103 def self_test():
100 import coverage # This way the bots don't need coverage.py to be installed. 104 import coverage # This way the bots don't need coverage.py to be installed.
101 args = {} 105 args = {}
102 cases = [ 106 cases = [
103 'Test-Android-Nexus7-Tegra3-Arm7-Release', 107 'Test-Android-Nexus7-Tegra3-Arm7-Release',
104 'Test-Android-Xoom-Tegra2-Arm7-Release', 108 'Test-Android-Xoom-Tegra2-Arm7-Release',
105 'Test-ChromeOS-Alex-GMA3150-x86-Debug', 109 'Test-ChromeOS-Alex-GMA3150-x86-Debug',
106 'Test-Ubuntu12-ShuttleA-GTX550Ti-x86_64-Release-Valgrind', 110 'Test-Ubuntu12-ShuttleA-GTX550Ti-x86_64-Release-Valgrind_CPU',
111 'Test-Ubuntu12-ShuttleA-GTX550Ti-x86_64-Release-Valgrind_GPU',
107 'Test-Win7-ShuttleA-HD2000-x86-Debug-ANGLE', 112 'Test-Win7-ShuttleA-HD2000-x86-Debug-ANGLE',
108 ] 113 ]
109 114
110 cov = coverage.coverage() 115 cov = coverage.coverage()
111 cov.start() 116 cov.start()
112 for case in cases: 117 for case in cases:
113 args[case] = get_args(case) 118 args[case] = get_args(case)
114 cov.stop() 119 cov.stop()
115 120
116 this_file = os.path.basename(__file__) 121 this_file = os.path.basename(__file__)
(...skipping 12 matching lines...) Expand all
129 if len(sys.argv) == 2 and sys.argv[1] == 'test': 134 if len(sys.argv) == 2 and sys.argv[1] == 'test':
130 self_test() 135 self_test()
131 sys.exit(0) 136 sys.exit(0)
132 137
133 if len(sys.argv) != 3: 138 if len(sys.argv) != 3:
134 print usage 139 print usage
135 sys.exit(1) 140 sys.exit(1)
136 141
137 with open(sys.argv[1], 'w') as out: 142 with open(sys.argv[1], 'w') as out:
138 json.dump(get_args(sys.argv[2]), out) 143 json.dump(get_args(sys.argv[2]), out)
OLDNEW
« no previous file with comments | « tools/dm_flags.json ('k') | tools/nanobench_flags.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698