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

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

Issue 303483004: Add support for running dart2js in batch mode on the bots (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 6 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 | tools/bots/compiler.py » ('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 Shared code for use in the buildbot scripts. 8 Shared code for use in the buildbot scripts.
9 """ 9 """
10 10
(...skipping 27 matching lines...) Expand all
38 - test_set: Specification of a non standard test set or None. 38 - test_set: Specification of a non standard test set or None.
39 - csp: This is using csp when running 39 - csp: This is using csp when running
40 - arch: The architecture to build on. 40 - arch: The architecture to build on.
41 - dart2js_full: Boolean indicating whether this builder will run dart2js 41 - dart2js_full: Boolean indicating whether this builder will run dart2js
42 on several different runtimes. 42 on several different runtimes.
43 - builder_tag: A tag indicating a special builder setup. 43 - builder_tag: A tag indicating a special builder setup.
44 """ 44 """
45 def __init__(self, compiler, runtime, mode, system, checked=False, 45 def __init__(self, compiler, runtime, mode, system, checked=False,
46 host_checked=False, minified=False, shard_index=None, 46 host_checked=False, minified=False, shard_index=None,
47 total_shards=None, is_buildbot=False, test_set=None, 47 total_shards=None, is_buildbot=False, test_set=None,
48 csp=None, arch=None, dart2js_full=False, builder_tag=None): 48 csp=None, arch=None, dart2js_full=False, builder_tag=None,
49 batch=False):
49 self.compiler = compiler 50 self.compiler = compiler
50 self.runtime = runtime 51 self.runtime = runtime
51 self.mode = mode 52 self.mode = mode
52 self.system = system 53 self.system = system
53 self.checked = checked 54 self.checked = checked
54 self.host_checked = host_checked 55 self.host_checked = host_checked
55 self.minified = minified 56 self.minified = minified
56 self.shard_index = shard_index 57 self.shard_index = shard_index
57 self.total_shards = total_shards 58 self.total_shards = total_shards
58 self.is_buildbot = is_buildbot 59 self.is_buildbot = is_buildbot
59 self.test_set = test_set 60 self.test_set = test_set
60 self.csp = csp 61 self.csp = csp
61 self.dart2js_full = dart2js_full 62 self.dart2js_full = dart2js_full
62 self.builder_tag = builder_tag 63 self.builder_tag = builder_tag
64 self.batch = batch
63 if (arch == None): 65 if (arch == None):
64 self.arch = 'ia32' 66 self.arch = 'ia32'
65 else: 67 else:
66 self.arch = arch 68 self.arch = arch
67 69
68 def PrintBuildInfo(self): 70 def PrintBuildInfo(self):
69 shard_description = "" 71 shard_description = ""
70 if self.shard_index: 72 if self.shard_index:
71 shard_description = " shard %s of %s" % (self.shard_index, 73 shard_description = " shard %s of %s" % (self.shard_index,
72 self.total_shards) 74 self.total_shards)
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 if exit_code != 0: 252 if exit_code != 0:
251 raise OSError(exit_code) 253 raise OSError(exit_code)
252 254
253 255
254 def GetStepName(name, flags): 256 def GetStepName(name, flags):
255 """ 257 """
256 Filters out flags with '=' as this breaks the /stats feature of the buildbot. 258 Filters out flags with '=' as this breaks the /stats feature of the buildbot.
257 """ 259 """
258 flags = [x for x in flags if not '=' in x] 260 flags = [x for x in flags if not '=' in x]
259 return ('%s tests %s' % (name, ' '.join(flags))).strip() 261 return ('%s tests %s' % (name, ' '.join(flags))).strip()
OLDNEW
« no previous file with comments | « no previous file | tools/bots/compiler.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698