Chromium Code Reviews| 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 testing_options = ['', '--vm-options=--optimization-counter-threshold=5'] | 51 opt_thresshold = '--vm-options=--optimization-counter-threshold=5' |
| 52 for options in testing_options: | 52 if build_info.mode == 'release': |
| 53 if build_info.mode == 'release': | 53 bot.RunTest('pub and pkg ', build_info, |
| 54 bot.RunTest('pub and pkg %s' % options, build_info, | 54 common_args + ['pub', 'pkg', 'docs']) |
| 55 common_args + [options, 'pub', 'pkg', 'docs']) | 55 bot.RunTest('pub and pkg optimization counter thresshold 5', build_info, |
|
Bill Hesse
2014/05/22 09:26:42
Spelling of threshold.
ricow1
2014/05/22 09:27:15
Done.
| |
| 56 else: | 56 common_args + ['--append_logs', opt_thresshold, |
| 57 # Pub tests currently have a lot of timeouts when run in debug mode. | 57 'pub', 'pkg', 'docs']) |
| 58 # See issue 18479 | 58 else: |
| 59 bot.RunTest('pub and pkg %s' % options, build_info, | 59 # Pub tests currently have a lot of timeouts when run in debug mode. |
| 60 common_args + [options, 'pkg', 'docs']) | 60 # See issue 18479 |
| 61 bot.RunTest('pub and pkg %s' % options, build_info, | |
| 62 common_args + ['pkg', 'docs']) | |
| 63 bot.RunTest('pub and pkg optimization counter thresshold 5', build_info, | |
| 64 common_args + ['--append_logs', opt_thresshold, 'pkg', 'docs']) | |
| 61 | 65 |
| 62 if build_info.mode == 'release': | 66 if build_info.mode == 'release': |
| 63 pkgbuild_build_info = bot.BuildInfo('none', 'vm', build_info.mode, | 67 pkgbuild_build_info = bot.BuildInfo('none', 'vm', build_info.mode, |
| 64 build_info.system, checked=False) | 68 build_info.system, checked=False) |
| 65 bot.RunTest('pkgbuild_repo_pkgs', pkgbuild_build_info, | 69 bot.RunTest('pkgbuild_repo_pkgs', pkgbuild_build_info, |
| 66 common_args + ['--append_logs', '--use-repository-packages', | 70 common_args + ['--append_logs', '--use-repository-packages', |
| 67 'pkgbuild']) | 71 'pkgbuild']) |
| 68 | 72 |
| 69 # We are seeing issues with pub get calls on the windows bots. | 73 # We are seeing issues with pub get calls on the windows bots. |
| 70 # Experiment with not running concurrent calls. | 74 # Experiment with not running concurrent calls. |
| 71 public_args = (common_args + | 75 public_args = (common_args + |
| 72 ['--append_logs', '--use-public-packages', 'pkgbuild']) | 76 ['--append_logs', '--use-public-packages', 'pkgbuild']) |
| 73 if build_info.system == 'windows': | 77 if build_info.system == 'windows': |
| 74 public_args.append('-j1') | 78 public_args.append('-j1') |
| 75 bot.RunTest('pkgbuild_public_pkgs', pkgbuild_build_info, public_args) | 79 bot.RunTest('pkgbuild_public_pkgs', pkgbuild_build_info, public_args) |
| 76 | 80 |
| 77 if __name__ == '__main__': | 81 if __name__ == '__main__': |
| 78 bot.RunBot(PubConfig, PubSteps) | 82 bot.RunBot(PubConfig, PubSteps) |
| OLD | NEW |