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

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

Issue 376593002: Fix name of dart2js full bots to be shorter (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.
11 """ 11 """
12 12
13 import os 13 import os
14 import platform 14 import platform
15 import re 15 import re
16 import shutil 16 import shutil
17 import socket 17 import socket
18 import string 18 import string
19 import subprocess 19 import subprocess
20 import sys 20 import sys
21 21
22 import bot 22 import bot
23 23
24 DARTIUM_BUILDER = r'none-dartium-(linux|mac|windows)' 24 DARTIUM_BUILDER = r'none-dartium-(linux|mac|windows)'
25 DART2JS_BUILDER = ( 25 DART2JS_BUILDER = (
26 r'dart2js-(linux|mac|windows)(-(jsshell))?-(debug|release)(-(checked|host-ch ecked))?(-(host-checked))?(-(minified))?(-(x64))?(-(batch))?-?(\d*)-?(\d*)') 26 r'dart2js-(linux|mac|windows)(-(jsshell))?-(debug|release)(-(checked|host-ch ecked))?(-(host-checked))?(-(minified))?(-(x64))?(-(batch))?-?(\d*)-?(\d*)')
27 DART2JS_FULL_BUILDER = r'dart2js-full-(linux|mac|windows-ie10|windows-ie11)(-che cked)?(-minified)?-(\d+)-(\d+)' 27 DART2JS_FULL_BUILDER = r'full-(linux|mac|win7|win8)(-(ie10|ie11))?(-checked)?(-m inified)?-(\d+)-(\d+)'
28 WEB_BUILDER = ( 28 WEB_BUILDER = (
29 r'dart2js-(ie9|ie10|ie11|ff|safari|chrome|chromeOnAndroid|safarimobilesim|op era|drt)-(win7|win8|mac10\.8|mac10\.7|linux)(-(all|html))?(-(csp))?(-(\d+)-(\d+) )?') 29 r'dart2js-(ie9|ie10|ie11|ff|safari|chrome|chromeOnAndroid|safarimobilesim|op era|drt)-(win7|win8|mac10\.8|mac10\.7|linux)(-(all|html))?(-(csp))?(-(\d+)-(\d+) )?')
30 30
31 IE_VERSIONS = ['ie10', 'ie11'] 31 IE_VERSIONS = ['ie10', 'ie11']
32 32
33 DART2JS_FULL_CONFIGURATIONS = { 33 DART2JS_FULL_CONFIGURATIONS = {
34 'linux' : [ ], 34 'linux' : [ ],
35 'mac' : [ ], 35 'mac' : [ ],
36 'windows-ie10' : [ 36 'windows-ie10' : [
37 {'runtime' : 'ie10'}, 37 {'runtime' : 'ie10'},
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 shard_index = web_pattern.group(8) 82 shard_index = web_pattern.group(8)
83 total_shards = web_pattern.group(9) 83 total_shards = web_pattern.group(9)
84 elif dart2js_full_pattern: 84 elif dart2js_full_pattern:
85 mode = 'release' 85 mode = 'release'
86 compiler = 'dart2js' 86 compiler = 'dart2js'
87 dart2js_full = True 87 dart2js_full = True
88 system = dart2js_full_pattern.group(1) 88 system = dart2js_full_pattern.group(1)
89 # windows-ie10 or windows-ie11 means a windows machine with that respective 89 # windows-ie10 or windows-ie11 means a windows machine with that respective
90 # version of ie installed. There is no difference in how we handle testing. 90 # version of ie installed. There is no difference in how we handle testing.
91 # We use the builder tag to pass along this information. 91 # We use the builder tag to pass along this information.
92 if system.startswith('windows'): 92 if system.startswith('win'):
93 system_and_ie = string.split(system, '-') 93 ie = dart2js_full_pattern.group(3)
94 assert len(system_and_ie) == 2 94 assert ie in IE_VERSIONS
95 assert system_and_ie[0] == 'windows' 95 builder_tag = 'windows-%s' % ie
96 assert system_and_ie[1] in IE_VERSIONS
97 builder_tag = system
98 system = 'windows' 96 system = 'windows'
99 if dart2js_full_pattern.group(2): 97 if dart2js_full_pattern.group(2):
100 checked = True 98 checked = True
101 if dart2js_full_pattern.group(3): 99 if dart2js_full_pattern.group(3):
102 minified = True 100 minified = True
103 shard_index = dart2js_full_pattern.group(4) 101 shard_index = dart2js_full_pattern.group(4)
104 total_shards = dart2js_full_pattern.group(5) 102 total_shards = dart2js_full_pattern.group(5)
105 elif dart2js_pattern: 103 elif dart2js_pattern:
106 compiler = 'dart2js' 104 compiler = 'dart2js'
107 system = dart2js_pattern.group(1) 105 system = dart2js_pattern.group(1)
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 if build_info.mode == 'debug': 399 if build_info.mode == 'debug':
402 target = 'dart2js_bot_debug' 400 target = 'dart2js_bot_debug'
403 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, 401 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode,
404 '--arch=' + build_info.arch, target] 402 '--arch=' + build_info.arch, target]
405 print 'Build SDK and d8: %s' % (' '.join(args)) 403 print 'Build SDK and d8: %s' % (' '.join(args))
406 bot.RunProcess(args) 404 bot.RunProcess(args)
407 405
408 406
409 if __name__ == '__main__': 407 if __name__ == '__main__':
410 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) 408 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