| 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 30 matching lines...) Expand all Loading... |
| 41 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, | 41 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, |
| 42 'packages'] | 42 'packages'] |
| 43 print 'Building package-root: %s' % (' '.join(args)) | 43 print 'Building package-root: %s' % (' '.join(args)) |
| 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 # Pub tests currently have a lot of timeouts when run in debug mode. | 51 testing_options = ['', '--vm-options=--optimization-counter-threshold=5'] |
| 52 # See issue 18479 | 52 for options in testing_options: |
| 53 if build_info.mode == 'release': | 53 if build_info.mode == 'release': |
| 54 bot.RunTest('pub', build_info, | 54 bot.RunTest('pub and pkg %s' % options, build_info, |
| 55 common_args + ['pub', 'pkg', 'docs']) | 55 common_args + [options, 'pub', 'pkg', 'docs']) |
| 56 else: | 56 else: |
| 57 bot.RunTest('pub', build_info, | 57 # Pub tests currently have a lot of timeouts when run in debug mode. |
| 58 common_args + ['pkg', 'docs']) | 58 # See issue 18479 |
| 59 bot.RunTest('pub and pkg %s' % options, build_info, |
| 60 common_args + [options, 'pkg', 'docs']) |
| 59 | 61 |
| 60 if build_info.mode == 'release': | 62 if build_info.mode == 'release': |
| 61 pkgbuild_build_info = bot.BuildInfo('none', 'vm', build_info.mode, | 63 pkgbuild_build_info = bot.BuildInfo('none', 'vm', build_info.mode, |
| 62 build_info.system, checked=False) | 64 build_info.system, checked=False) |
| 63 bot.RunTest('pkgbuild_repo_pkgs', pkgbuild_build_info, | 65 bot.RunTest('pkgbuild_repo_pkgs', pkgbuild_build_info, |
| 64 common_args + ['--append_logs', '--use-repository-packages', | 66 common_args + ['--append_logs', '--use-repository-packages', |
| 65 'pkgbuild']) | 67 'pkgbuild']) |
| 66 | 68 |
| 67 # We are seeing issues with pub get calls on the windows bots. | 69 # We are seeing issues with pub get calls on the windows bots. |
| 68 # Experiment with not running concurrent calls. | 70 # Experiment with not running concurrent calls. |
| 69 public_args = (common_args + | 71 public_args = (common_args + |
| 70 ['--append_logs', '--use-public-packages', 'pkgbuild']) | 72 ['--append_logs', '--use-public-packages', 'pkgbuild']) |
| 71 if build_info.system == 'windows': | 73 if build_info.system == 'windows': |
| 72 public_args.append('-j1') | 74 public_args.append('-j1') |
| 73 bot.RunTest('pkgbuild_public_pkgs', pkgbuild_build_info, public_args) | 75 bot.RunTest('pkgbuild_public_pkgs', pkgbuild_build_info, public_args) |
| 74 | 76 |
| 75 if __name__ == '__main__': | 77 if __name__ == '__main__': |
| 76 bot.RunBot(PubConfig, PubSteps) | 78 bot.RunBot(PubConfig, PubSteps) |
| OLD | NEW |