Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: tools/bots/pub.py

Issue 290443002: Experiment with running not running tests concurrently on pub on windows (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 18 matching lines...) Expand all
29 return None 29 return None
30 30
31 system = pub_pattern.group(1) 31 system = pub_pattern.group(1)
32 locale = pub_pattern.group(3) 32 locale = pub_pattern.group(3)
33 mode = pub_pattern.group(5) or 'release' 33 mode = pub_pattern.group(5) or 'release'
34 if system == 'win': system = 'windows' 34 if system == 'win': system = 'windows'
35 35
36 return bot.BuildInfo('none', 'vm', mode, system, checked=True, 36 return bot.BuildInfo('none', 'vm', mode, system, checked=True,
37 builder_tag=locale) 37 builder_tag=locale)
38 38
39
40 def PubSteps(build_info): 39 def PubSteps(build_info):
41 with bot.BuildStep('Build package-root'): 40 with bot.BuildStep('Build package-root'):
42 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, 41 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode,
43 'packages'] 42 'packages']
44 print 'Building package-root: %s' % (' '.join(args)) 43 print 'Building package-root: %s' % (' '.join(args))
45 bot.RunProcess(args) 44 bot.RunProcess(args)
46 45
47 common_args = ['--write-test-outcome-log'] 46 common_args = ['--write-test-outcome-log']
48 if build_info.builder_tag: 47 if build_info.builder_tag:
49 common_args.append('--builder-tag=%s' % build_info.builder_tag) 48 common_args.append('--builder-tag=%s' % build_info.builder_tag)
50 49
50
51 # Pub tests currently have a lot of timeouts when run in debug mode. 51 # Pub tests currently have a lot of timeouts when run in debug mode.
52 # See issue 18479 52 # See issue 18479
53 if build_info.mode == 'release': 53 if build_info.mode == 'release':
54 bot.RunTest('pub', build_info, 54 bot.RunTest('pub', build_info,
55 common_args + ['pub', 'pkg', 'docs']) 55 common_args + ['pub', 'pkg', 'docs'])
56 else: 56 else:
57 bot.RunTest('pub', build_info, 57 bot.RunTest('pub', build_info,
58 common_args + ['pkg', 'docs']) 58 common_args + ['pkg', 'docs'])
59
60 59
61 if build_info.mode == 'release': 60 if build_info.mode == 'release':
62 pkgbuild_build_info = bot.BuildInfo('none', 'vm', build_info.mode, 61 pkgbuild_build_info = bot.BuildInfo('none', 'vm', build_info.mode,
63 build_info.system, checked=False) 62 build_info.system, checked=False)
64 bot.RunTest('pkgbuild_repo_pkgs', pkgbuild_build_info, 63 bot.RunTest('pkgbuild_repo_pkgs', pkgbuild_build_info,
65 common_args + ['--append_logs', '--use-repository-packages', 64 common_args + ['--append_logs', '--use-repository-packages',
66 'pkgbuild']) 65 'pkgbuild'])
67 bot.RunTest('pkgbuild_public_pkgs', pkgbuild_build_info, 66
68 common_args + ['--append_logs', '--use-public-packages', 'pkgbuild']) 67 # We are seeing issues with pub get calls on the windows bots.
68 # Experiment with not running concurrent calls.
69 public_args = (common_args +
70 ['--append_logs', '--use-public-packages', 'pkgbuild'])
71 if build_info.system == 'windows':
72 public_args.append('-j1')
73 bot.RunTest('pkgbuild_public_pkgs', pkgbuild_build_info, public_args)
69 74
70 if __name__ == '__main__': 75 if __name__ == '__main__':
71 bot.RunBot(PubConfig, PubSteps) 76 bot.RunBot(PubConfig, PubSteps)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698