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

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

Issue 11946044: Added optional sharding for browser builders in the annotated steps scripts (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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.
11 """ 11 """
12 12
13 import platform 13 import platform
14 import os 14 import os
15 import re 15 import re
16 import shutil 16 import shutil
17 import subprocess 17 import subprocess
18 import sys 18 import sys
19 19
20 import bot 20 import bot
21 21
22 DART2JS_BUILDER = ( 22 DART2JS_BUILDER = (
23 r'dart2js-(linux|mac|windows)(-(jsshell))?-(debug|release)(-(checked|host-ch ecked))?(-(host-checked))?(-(minified))?-?(\d*)-?(\d*)') 23 r'dart2js-(linux|mac|windows)(-(jsshell))?-(debug|release)(-(checked|host-ch ecked))?(-(host-checked))?(-(minified))?-?(\d*)-?(\d*)')
24 WEB_BUILDER = ( 24 WEB_BUILDER = (
25 r'dart2js-(ie9|ie10|ff|safari|chrome|opera)-(win7|win8|mac|linux)(-(all|html ))?') 25 r'dart2js-(ie9|ie10|ff|safari|chrome|opera)-(win7|win8|mac|linux)(-(all|html ))?(-(\d+)-(\d+))?')
26 26
27 27
28 def GetBuildInfo(builder_name, is_buildbot): 28 def GetBuildInfo(builder_name, is_buildbot):
29 """Returns a BuildInfo object for the current buildbot based on the 29 """Returns a BuildInfo object for the current buildbot based on the
30 name of the builder. 30 name of the builder.
31 """ 31 """
32 compiler = None 32 compiler = None
33 runtime = None 33 runtime = None
34 mode = None 34 mode = None
35 system = None 35 system = None
36 checked = False 36 checked = False
37 host_checked = False 37 host_checked = False
38 minified = False 38 minified = False
39 shard_index = None 39 shard_index = None
40 total_shards = None 40 total_shards = None
41 test_set = None 41 test_set = None
42 42
43 dart2js_pattern = re.match(DART2JS_BUILDER, builder_name) 43 dart2js_pattern = re.match(DART2JS_BUILDER, builder_name)
44 web_pattern = re.match(WEB_BUILDER, builder_name) 44 web_pattern = re.match(WEB_BUILDER, builder_name)
45 45
46 if web_pattern: 46 if web_pattern:
47 compiler = 'dart2js' 47 compiler = 'dart2js'
48 runtime = web_pattern.group(1) 48 runtime = web_pattern.group(1)
49 system = web_pattern.group(2) 49 system = web_pattern.group(2)
50 mode = 'release' 50 mode = 'release'
51 test_set = web_pattern.group(4) 51 test_set = web_pattern.group(4)
52 shard_index = web_pattern.group(6)
53 total_shards = web_pattern.group(7)
52 elif dart2js_pattern: 54 elif dart2js_pattern:
53 compiler = 'dart2js' 55 compiler = 'dart2js'
54 system = dart2js_pattern.group(1) 56 system = dart2js_pattern.group(1)
55 runtime = 'd8' 57 runtime = 'd8'
56 if dart2js_pattern.group(3) == 'jsshell': 58 if dart2js_pattern.group(3) == 'jsshell':
57 runtime = 'jsshell' 59 runtime = 'jsshell'
58 mode = dart2js_pattern.group(4) 60 mode = dart2js_pattern.group(4)
59 # The valid naming parts for checked and host-checked are: 61 # The valid naming parts for checked and host-checked are:
60 # Empty: checked=False, host_checked=False 62 # Empty: checked=False, host_checked=False
61 # -checked: checked=True, host_checked=False 63 # -checked: checked=True, host_checked=False
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 """ 318 """
317 with bot.BuildStep('Build SDK and d8'): 319 with bot.BuildStep('Build SDK and d8'):
318 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, 320 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode,
319 'dart2js_bot'] 321 'dart2js_bot']
320 print 'Build SDK and d8: %s' % (' '.join(args)) 322 print 'Build SDK and d8: %s' % (' '.join(args))
321 bot.RunProcess(args) 323 bot.RunProcess(args)
322 324
323 325
324 if __name__ == '__main__': 326 if __name__ == '__main__':
325 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) 327 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