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

Side by Side Diff: tools/bots/compiler.py

Issue 381363003: Start running in batch mode as default for dart2js. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4 # for details. All rights reserved. Use of this source code is governed by a 4 # for details. All rights reserved. Use of this source code is governed by a
5 # BSD-style license that can be found in the LICENSE file. 5 # BSD-style license that can be found in the LICENSE file.
6 6
7 """ 7 """
8 Dart2js buildbot steps 8 Dart2js buildbot steps
9 9
10 Runs tests for the dart2js compiler. 10 Runs tests for the dart2js compiler.
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 system = None 56 system = None
57 checked = False 57 checked = False
58 host_checked = False 58 host_checked = False
59 minified = False 59 minified = False
60 shard_index = None 60 shard_index = None
61 total_shards = None 61 total_shards = None
62 test_set = None 62 test_set = None
63 csp = None 63 csp = None
64 arch = None 64 arch = None
65 dart2js_full = False 65 dart2js_full = False
66 batch = False 66 # We default to true for running in batch mode on dart2js
67 batch = True
67 builder_tag = None 68 builder_tag = None
68 69
69 dart2js_pattern = re.match(DART2JS_BUILDER, builder_name) 70 dart2js_pattern = re.match(DART2JS_BUILDER, builder_name)
70 dart2js_full_pattern = re.match(DART2JS_FULL_BUILDER, builder_name) 71 dart2js_full_pattern = re.match(DART2JS_FULL_BUILDER, builder_name)
71 web_pattern = re.match(WEB_BUILDER, builder_name) 72 web_pattern = re.match(WEB_BUILDER, builder_name)
72 dartium_pattern = re.match(DARTIUM_BUILDER, builder_name) 73 dartium_pattern = re.match(DARTIUM_BUILDER, builder_name)
73 74
74 if web_pattern: 75 if web_pattern:
75 compiler = 'dart2js' 76 compiler = 'dart2js'
76 runtime = web_pattern.group(1) 77 runtime = web_pattern.group(1)
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 if dart2js_pattern.group(6) == 'checked': 117 if dart2js_pattern.group(6) == 'checked':
117 checked = True 118 checked = True
118 if dart2js_pattern.group(6) == 'host-checked': 119 if dart2js_pattern.group(6) == 'host-checked':
119 host_checked = True 120 host_checked = True
120 if dart2js_pattern.group(8) == 'host-checked': 121 if dart2js_pattern.group(8) == 'host-checked':
121 host_checked = True 122 host_checked = True
122 if dart2js_pattern.group(10) == 'minified': 123 if dart2js_pattern.group(10) == 'minified':
123 minified = True 124 minified = True
124 if dart2js_pattern.group(12) == 'x64': 125 if dart2js_pattern.group(12) == 'x64':
125 arch = 'x64' 126 arch = 'x64'
126 if dart2js_pattern.group(14) == 'batch':
127 batch = True
128 shard_index = dart2js_pattern.group(15) 127 shard_index = dart2js_pattern.group(15)
129 total_shards = dart2js_pattern.group(16) 128 total_shards = dart2js_pattern.group(16)
130 elif dartium_pattern: 129 elif dartium_pattern:
131 compiler = 'none' 130 compiler = 'none'
132 runtime = 'dartium' 131 runtime = 'dartium'
133 mode = 'release' 132 mode = 'release'
134 system = dartium_pattern.group(1) 133 system = dartium_pattern.group(1)
135 else : 134 else :
136 return None 135 return None
137 136
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 if build_info.mode == 'debug': 398 if build_info.mode == 'debug':
400 target = 'dart2js_bot_debug' 399 target = 'dart2js_bot_debug'
401 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, 400 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode,
402 '--arch=' + build_info.arch, target] 401 '--arch=' + build_info.arch, target]
403 print 'Build SDK and d8: %s' % (' '.join(args)) 402 print 'Build SDK and d8: %s' % (' '.join(args))
404 bot.RunProcess(args) 403 bot.RunProcess(args)
405 404
406 405
407 if __name__ == '__main__': 406 if __name__ == '__main__':
408 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) 407 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698