OLD | NEW |
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 Pkg buildbot steps. | 8 Pkg buildbot steps. |
9 | 9 |
10 Runs tests for packages that are hosted in the main Dart repo and in | 10 Runs tests for packages that are hosted in the main Dart repo and in |
(...skipping 28 matching lines...) Expand all Loading... |
39 def PkgSteps(build_info): | 39 def PkgSteps(build_info): |
40 common_args = ['--write-test-outcome-log'] | 40 common_args = ['--write-test-outcome-log'] |
41 if build_info.builder_tag: | 41 if build_info.builder_tag: |
42 common_args.append('--builder-tag=%s' % build_info.builder_tag) | 42 common_args.append('--builder-tag=%s' % build_info.builder_tag) |
43 | 43 |
44 # There are a number of big/integration tests in pkg, run with bigger timeout | 44 # There are a number of big/integration tests in pkg, run with bigger timeout |
45 common_args.append('--timeout=120') | 45 common_args.append('--timeout=120') |
46 # We have some unreproducible vm crashes on these bots | 46 # We have some unreproducible vm crashes on these bots |
47 common_args.append('--copy-coredumps') | 47 common_args.append('--copy-coredumps') |
48 | 48 |
49 # We are seeing issues with pub get calls on the windows bots. | |
50 # Experiment with not running concurrent calls. | |
51 if build_info.system == 'windows': | |
52 common_args.append('-j1') | |
53 | |
54 bot.RunTest('pkg', build_info, | 49 bot.RunTest('pkg', build_info, |
55 common_args + ['pkg', 'docs'], | 50 common_args + ['pkg', 'docs'], |
56 swallow_error=True) | 51 swallow_error=True) |
57 | 52 |
58 with bot.BuildStep('third_party pkg tests', swallow_error=True): | 53 with bot.BuildStep('third_party pkg tests', swallow_error=True): |
59 pkg_tested = os.path.join('third_party', 'pkg_tested') | 54 pkg_tested = os.path.join('third_party', 'pkg_tested') |
60 for entry in os.listdir(pkg_tested): | 55 for entry in os.listdir(pkg_tested): |
61 path = os.path.join(pkg_tested, entry) | 56 path = os.path.join(pkg_tested, entry) |
62 if os.path.isdir(path): | 57 if os.path.isdir(path): |
63 bot.RunTestRunner(build_info, path) | 58 bot.RunTestRunner(build_info, path) |
64 | 59 |
65 pkgbuild_build_info = bot.BuildInfo('none', 'vm', build_info.mode, | |
66 build_info.system, checked=False) | |
67 | |
68 public_args = (common_args + ['--append_logs', 'pkgbuild']) | |
69 bot.RunTest('pkgbuild_public_pkgs', pkgbuild_build_info, public_args) | |
70 | 60 |
71 if __name__ == '__main__': | 61 if __name__ == '__main__': |
72 bot.RunBot(PkgConfig, PkgSteps) | 62 bot.RunBot(PkgConfig, PkgSteps) |
OLD | NEW |