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

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

Issue 2895973002: Remove old annotated_steps buildbot scripts and dispatcher (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « tools/bots/packages.py ('k') | tools/bots/set_reference_build_revision.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/python
2
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
5 # BSD-style license that can be found in the LICENSE file.
6
7 """
8 Pkg buildbot steps.
9
10 Runs tests for packages that are hosted in the main Dart repo and in
11 third_party/pkg_tested.
12 """
13
14 import os
15 import re
16 import sys
17
18 import bot
19
20 PKG_BUILDER = r'pkg-(linux|mac|win)(-(russian))?'
21
22 def PkgConfig(name, is_buildbot):
23 """Returns info for the current buildbot based on the name of the builder.
24
25 Currently, this is just:
26 - system: "linux", "mac", or "win"
27 """
28 pkg_pattern = re.match(PKG_BUILDER, name)
29 if not pkg_pattern:
30 return None
31
32 system = pkg_pattern.group(1)
33 locale = pkg_pattern.group(3)
34 if system == 'win': system = 'windows'
35
36 return bot.BuildInfo('none', 'vm', 'release', system, checked=True,
37 builder_tag=locale)
38
39 def PkgSteps(build_info):
40 common_args = ['--write-test-outcome-log']
41 if build_info.builder_tag:
42 common_args.append('--builder-tag=%s' % build_info.builder_tag)
43
44 # There are a number of big/integration tests in pkg, run with bigger timeout
45 common_args.append('--timeout=120')
46 # We have some unreproducible vm crashes on these bots
47 common_args.append('--copy-coredumps')
48
49 bot.RunTest('pkg', build_info,
50 common_args + ['pkg', 'docs'],
51 swallow_error=True)
52
53 with bot.BuildStep('third_party pkg tests', swallow_error=True):
54 pkg_tested = os.path.join('third_party', 'pkg_tested')
55 for entry in os.listdir(pkg_tested):
56 path = os.path.join(pkg_tested, entry)
57 if os.path.isdir(path):
58 bot.RunTestRunner(build_info, path)
59
60
61 if __name__ == '__main__':
62 bot.RunBot(PkgConfig, PkgSteps)
OLDNEW
« no previous file with comments | « tools/bots/packages.py ('k') | tools/bots/set_reference_build_revision.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698