Don't build dart2js_bot on debug dart2js bots
This is making the bots hit the 20 min timeout R=ahe@google.com Review URL: https://codereview.chromium.org//270593003 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35882 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
@@ -103,6 +103,19 @@
|
||||
'try',
|
||||
],
|
||||
},
|
||||
{
|
||||
# This is the target that is built on the dart2js debug build bots.
|
||||
# It must depend on anything that is required by the dart2js
|
||||
# test suites.
|
||||
# We have this additional target because the try target takes to long
|
||||
# to build in debug mode and will make the build step time out.
|
||||
'target_name': 'dart2js_bot_debug',
|
||||
'type': 'none',
|
||||
'dependencies': [
|
||||
'create_sdk',
|
||||
'packages',
|
||||
],
|
||||
},
|
||||
{
|
||||
'target_name': 'api_docs',
|
||||
'type': 'none',
|
||||
|
||||
@@ -281,9 +281,9 @@ def TestCompiler(runtime, mode, system, flags, is_buildbot, arch,
|
||||
extras_flags = extras_flags + ['--host-checked']
|
||||
TestStep('dart2js_extra', mode, system, 'dart2js', runtime, extras,
|
||||
extras_flags, arch)
|
||||
|
||||
TestStep('try_dart', mode, system, 'dart2js', runtime, ['try'],
|
||||
extras_flags, arch)
|
||||
if mode == 'release':
|
||||
TestStep('try_dart', mode, system, 'dart2js', runtime, ['try'],
|
||||
extras_flags, arch)
|
||||
|
||||
|
||||
def GetHasHardCodedCheckedMode(build_info):
|
||||
@@ -370,8 +370,13 @@ def BuildCompiler(build_info):
|
||||
build and test to be run.
|
||||
"""
|
||||
with bot.BuildStep('Build SDK'):
|
||||
target = 'dart2js_bot'
|
||||
# Try-dart takes more than 20 min in debug mode and makes the bot time out.
|
||||
# We use the debug target which does not include try
|
||||
if build_info.mode == 'debug':
|
||||
target = 'dart2js_bot_debug'
|
||||
args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode,
|
||||
'--arch=' + build_info.arch, 'dart2js_bot']
|
||||
'--arch=' + build_info.arch, target]
|
||||
print 'Build SDK and d8: %s' % (' '.join(args))
|
||||
bot.RunProcess(args)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user