| 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 Pub buildbot steps. | 8 Pub buildbot steps. |
| 9 | 9 |
| 10 Runs tests for pub and the pub packages that are hosted in the main Dart repo. | 10 Runs tests for pub and the pub packages that are hosted in the main Dart repo. |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 bot.RunTest('pub and pkg optimization counter thresshold 5', build_info, | 60 bot.RunTest('pub and pkg optimization counter thresshold 5', build_info, |
| 61 common_args + ['--append_logs', opt_threshold, | 61 common_args + ['--append_logs', opt_threshold, |
| 62 'pub', 'pkg', 'docs'], | 62 'pub', 'pkg', 'docs'], |
| 63 swallow_error=True) | 63 swallow_error=True) |
| 64 else: | 64 else: |
| 65 # Pub tests currently have a lot of timeouts when run in debug mode. | 65 # Pub tests currently have a lot of timeouts when run in debug mode. |
| 66 # See issue 18479 | 66 # See issue 18479 |
| 67 bot.RunTest('pub and pkg', build_info, common_args + ['pkg', 'docs'], | 67 bot.RunTest('pub and pkg', build_info, common_args + ['pkg', 'docs'], |
| 68 swallow_error=True) | 68 swallow_error=True) |
| 69 bot.RunTest('pub and pkg optimization counter threshold 5', build_info, | 69 bot.RunTest('pub and pkg optimization counter threshold 5', build_info, |
| 70 common_args + ['--append_logs', opt_threshold, 'pkg', 'docs'], | 70 common_args + ['--copy-coredumps', '--append_logs', |
| 71 opt_threshold, 'pkg', 'docs'], |
| 71 swallow_error=True) | 72 swallow_error=True) |
| 72 | 73 |
| 73 if build_info.mode == 'release': | 74 if build_info.mode == 'release': |
| 74 pkgbuild_build_info = bot.BuildInfo('none', 'vm', build_info.mode, | 75 pkgbuild_build_info = bot.BuildInfo('none', 'vm', build_info.mode, |
| 75 build_info.system, checked=False) | 76 build_info.system, checked=False) |
| 76 bot.RunTest('pkgbuild_repo_pkgs', pkgbuild_build_info, | 77 bot.RunTest('pkgbuild_repo_pkgs', pkgbuild_build_info, |
| 77 common_args + ['--append_logs', '--use-repository-packages', | 78 common_args + ['--append_logs', '--use-repository-packages', |
| 78 'pkgbuild'], | 79 'pkgbuild'], |
| 79 swallow_error=True) | 80 swallow_error=True) |
| 80 | 81 |
| 81 # We are seeing issues with pub get calls on the windows bots. | 82 # We are seeing issues with pub get calls on the windows bots. |
| 82 # Experiment with not running concurrent calls. | 83 # Experiment with not running concurrent calls. |
| 83 public_args = (common_args + | 84 public_args = (common_args + |
| 84 ['--append_logs', '--use-public-packages', 'pkgbuild']) | 85 ['--append_logs', '--use-public-packages', 'pkgbuild']) |
| 85 bot.RunTest('pkgbuild_public_pkgs', pkgbuild_build_info, public_args) | 86 bot.RunTest('pkgbuild_public_pkgs', pkgbuild_build_info, public_args) |
| 86 | 87 |
| 87 if __name__ == '__main__': | 88 if __name__ == '__main__': |
| 88 bot.RunBot(PubConfig, PubSteps) | 89 bot.RunBot(PubConfig, PubSteps) |
| OLD | NEW |