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

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

Issue 687213002: Retry flaky tests on Safari. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comment. Created 6 years, 1 month 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 | tools/testing/dart/test_runner.dart » ('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/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'full-(linux|mac|win7|win8)(-(ie10|ie11))?(-checked)?(-m inified)?-(\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\.7|mac10\.8|mac10\.9|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'},
38 {'runtime' : 'ie10', 'additional_flags' : ['--checked']}, 38 {'runtime' : 'ie10', 'additional_flags' : ['--checked']},
39 {'runtime' : 'chrome'}, 39 {'runtime' : 'chrome'},
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 mode = 'release' 131 mode = 'release'
132 system = dartium_pattern.group(1) 132 system = dartium_pattern.group(1)
133 else : 133 else :
134 return None 134 return None
135 135
136 # We have both win7 and win8 bots, functionality is the same. 136 # We have both win7 and win8 bots, functionality is the same.
137 if system.startswith('win'): 137 if system.startswith('win'):
138 system = 'windows' 138 system = 'windows'
139 139
140 # We have both 10.8 and 10.7 bots, functionality is the same. 140 # We have both 10.8 and 10.7 bots, functionality is the same.
141 if system == 'mac10.8' or system == 'mac10.7': 141 if system == 'mac10.7' or system == 'mac10.8' or system == 'mac10.9':
142 builder_tag = system.replace('.', '_') 142 builder_tag = system.replace('.', '_')
143 system = 'mac' 143 system = 'mac'
144 144
145 if (system == 'windows' and platform.system() != 'Windows') or ( 145 if (system == 'windows' and platform.system() != 'Windows') or (
146 system == 'mac' and platform.system() != 'Darwin') or ( 146 system == 'mac' and platform.system() != 'Darwin') or (
147 system == 'linux' and platform.system() != 'Linux'): 147 system == 'linux' and platform.system() != 'Linux'):
148 print ('Error: You cannot emulate a buildbot with a platform different ' 148 print ('Error: You cannot emulate a buildbot with a platform different '
149 'from your own.') 149 'from your own.')
150 return None 150 return None
151 return bot.BuildInfo(compiler, runtime, mode, system, checked, host_checked, 151 return bot.BuildInfo(compiler, runtime, mode, system, checked, host_checked,
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 if build_info.mode == 'debug': 400 if build_info.mode == 'debug':
401 target = 'dart2js_bot_debug' 401 target = 'dart2js_bot_debug'
402 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, 402 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode,
403 '--arch=' + build_info.arch, target] 403 '--arch=' + build_info.arch, target]
404 print 'Build SDK and d8: %s' % (' '.join(args)) 404 print 'Build SDK and d8: %s' % (' '.join(args))
405 bot.RunProcess(args) 405 bot.RunProcess(args)
406 406
407 407
408 if __name__ == '__main__': 408 if __name__ == '__main__':
409 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) 409 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler)
OLDNEW
« no previous file with comments | « no previous file | tools/testing/dart/test_runner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698