| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 # There are a number of big/integration tests in pkg, run with bigger timeout | 50 # There are a number of big/integration tests in pkg, run with bigger timeout |
| 51 common_args.append('--timeout=120') | 51 common_args.append('--timeout=120') |
| 52 # We have some unreproducible vm crashes on these bots | 52 # We have some unreproducible vm crashes on these bots |
| 53 common_args.append('--copy-coredumps') | 53 common_args.append('--copy-coredumps') |
| 54 | 54 |
| 55 if build_info.system == 'windows': | 55 if build_info.system == 'windows': |
| 56 common_args.append('-j1') | 56 common_args.append('-j1') |
| 57 opt_threshold = '--vm-options=--optimization-counter-threshold=5' | |
| 58 if build_info.mode == 'release': | 57 if build_info.mode == 'release': |
| 59 bot.RunTest('pub and pkg ', build_info, | 58 bot.RunTest('pub and pkg ', build_info, |
| 60 common_args + ['pub', 'pkg', 'docs'], | 59 common_args + ['pub', 'pkg', 'docs'], |
| 61 swallow_error=True) | 60 swallow_error=True) |
| 62 bot.RunTest('pub and pkg optimization counter thresshold 5', build_info, | |
| 63 common_args + ['--append_logs', opt_threshold, | |
| 64 'pub', 'pkg', 'docs'], | |
| 65 swallow_error=True) | |
| 66 else: | 61 else: |
| 67 # Pub tests currently have a lot of timeouts when run in debug mode. | 62 # Pub tests currently have a lot of timeouts when run in debug mode. |
| 68 # See issue 18479 | 63 # See issue 18479 |
| 69 bot.RunTest('pub and pkg', build_info, common_args + ['pkg', 'docs'], | 64 bot.RunTest('pub and pkg', build_info, common_args + ['pkg', 'docs'], |
| 70 swallow_error=True) | 65 swallow_error=True) |
| 71 bot.RunTest('pub and pkg optimization counter threshold 5', build_info, | |
| 72 common_args + ['--append_logs', opt_threshold, 'pkg', 'docs'], | |
| 73 swallow_error=True) | |
| 74 | 66 |
| 75 if build_info.mode == 'release': | 67 if build_info.mode == 'release': |
| 76 pkgbuild_build_info = bot.BuildInfo('none', 'vm', build_info.mode, | 68 pkgbuild_build_info = bot.BuildInfo('none', 'vm', build_info.mode, |
| 77 build_info.system, checked=False) | 69 build_info.system, checked=False) |
| 78 bot.RunTest('pkgbuild_repo_pkgs', pkgbuild_build_info, | 70 bot.RunTest('pkgbuild_repo_pkgs', pkgbuild_build_info, |
| 79 common_args + ['--append_logs', '--use-repository-packages', | 71 common_args + ['--append_logs', '--use-repository-packages', |
| 80 'pkgbuild'], | 72 'pkgbuild'], |
| 81 swallow_error=True) | 73 swallow_error=True) |
| 82 | 74 |
| 83 # We are seeing issues with pub get calls on the windows bots. | 75 # We are seeing issues with pub get calls on the windows bots. |
| 84 # Experiment with not running concurrent calls. | 76 # Experiment with not running concurrent calls. |
| 85 public_args = (common_args + | 77 public_args = (common_args + |
| 86 ['--append_logs', '--use-public-packages', 'pkgbuild']) | 78 ['--append_logs', '--use-public-packages', 'pkgbuild']) |
| 87 bot.RunTest('pkgbuild_public_pkgs', pkgbuild_build_info, public_args) | 79 bot.RunTest('pkgbuild_public_pkgs', pkgbuild_build_info, public_args) |
| 88 | 80 |
| 89 if __name__ == '__main__': | 81 if __name__ == '__main__': |
| 90 bot.RunBot(PubConfig, PubSteps) | 82 bot.RunBot(PubConfig, PubSteps) |
| OLD | NEW |