| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 bot.RunProcess(args) | 44 bot.RunProcess(args) |
| 45 | 45 |
| 46 common_args = ['--write-test-outcome-log'] | 46 common_args = ['--write-test-outcome-log'] |
| 47 if build_info.builder_tag: | 47 if build_info.builder_tag: |
| 48 common_args.append('--builder-tag=%s' % build_info.builder_tag) | 48 common_args.append('--builder-tag=%s' % build_info.builder_tag) |
| 49 | 49 |
| 50 | 50 |
| 51 opt_threshold = '--vm-options=--optimization-counter-threshold=5' | 51 opt_threshold = '--vm-options=--optimization-counter-threshold=5' |
| 52 if build_info.mode == 'release': | 52 if build_info.mode == 'release': |
| 53 bot.RunTest('pub and pkg ', build_info, | 53 bot.RunTest('pub and pkg ', build_info, |
| 54 common_args + ['pub', 'pkg', 'docs']) | 54 common_args + ['pub', 'pkg', 'docs'], |
| 55 swallow_error=True) |
| 55 bot.RunTest('pub and pkg optimization counter thresshold 5', build_info, | 56 bot.RunTest('pub and pkg optimization counter thresshold 5', build_info, |
| 56 common_args + ['--append_logs', opt_threshold, | 57 common_args + ['--append_logs', opt_threshold, |
| 57 'pub', 'pkg', 'docs']) | 58 'pub', 'pkg', 'docs'], |
| 59 swallow_error=True) |
| 58 else: | 60 else: |
| 59 # Pub tests currently have a lot of timeouts when run in debug mode. | 61 # Pub tests currently have a lot of timeouts when run in debug mode. |
| 60 # See issue 18479 | 62 # See issue 18479 |
| 61 bot.RunTest('pub and pkg %s', build_info, | 63 bot.RunTest('pub and pkg', build_info, common_args + ['pkg', 'docs'], |
| 62 common_args + ['pkg', 'docs']) | 64 swallow_error=True) |
| 63 bot.RunTest('pub and pkg optimization counter threshold 5', build_info, | 65 bot.RunTest('pub and pkg optimization counter threshold 5', build_info, |
| 64 common_args + ['--append_logs', opt_threshold, 'pkg', 'docs']) | 66 common_args + ['--append_logs', opt_threshold, 'pkg', 'docs'], |
| 67 swallow_error=True) |
| 65 | 68 |
| 66 if build_info.mode == 'release': | 69 if build_info.mode == 'release': |
| 67 pkgbuild_build_info = bot.BuildInfo('none', 'vm', build_info.mode, | 70 pkgbuild_build_info = bot.BuildInfo('none', 'vm', build_info.mode, |
| 68 build_info.system, checked=False) | 71 build_info.system, checked=False) |
| 69 bot.RunTest('pkgbuild_repo_pkgs', pkgbuild_build_info, | 72 bot.RunTest('pkgbuild_repo_pkgs', pkgbuild_build_info, |
| 70 common_args + ['--append_logs', '--use-repository-packages', | 73 common_args + ['--append_logs', '--use-repository-packages', |
| 71 'pkgbuild']) | 74 'pkgbuild'], |
| 75 swallow_error=True) |
| 72 | 76 |
| 73 # We are seeing issues with pub get calls on the windows bots. | 77 # We are seeing issues with pub get calls on the windows bots. |
| 74 # Experiment with not running concurrent calls. | 78 # Experiment with not running concurrent calls. |
| 75 public_args = (common_args + | 79 public_args = (common_args + |
| 76 ['--append_logs', '--use-public-packages', 'pkgbuild']) | 80 ['--append_logs', '--use-public-packages', 'pkgbuild']) |
| 77 if build_info.system == 'windows': | 81 if build_info.system == 'windows': |
| 78 public_args.append('-j1') | 82 public_args.append('-j1') |
| 79 bot.RunTest('pkgbuild_public_pkgs', pkgbuild_build_info, public_args) | 83 bot.RunTest('pkgbuild_public_pkgs', pkgbuild_build_info, public_args) |
| 80 | 84 |
| 81 if __name__ == '__main__': | 85 if __name__ == '__main__': |
| 82 bot.RunBot(PubConfig, PubSteps) | 86 bot.RunBot(PubConfig, PubSteps) |
| OLD | NEW |