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

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

Issue 1399243006: Increase timeout for analysis_server tests in debug mode. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « tools/bots/bot.py ('k') | 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 Pkg buildbot steps. 8 Pkg buildbot steps.
9 9
10 Runs tests for packages that are hosted in the main Dart repo and in 10 Runs tests for packages that are hosted in the main Dart repo and in
(...skipping 26 matching lines...) Expand all
37 37
38 return bot.BuildInfo('none', 'vm', mode, system, checked=True, 38 return bot.BuildInfo('none', 'vm', mode, system, checked=True,
39 builder_tag=locale) 39 builder_tag=locale)
40 40
41 def PkgSteps(build_info): 41 def PkgSteps(build_info):
42 common_args = ['--write-test-outcome-log'] 42 common_args = ['--write-test-outcome-log']
43 if build_info.builder_tag: 43 if build_info.builder_tag:
44 common_args.append('--builder-tag=%s' % build_info.builder_tag) 44 common_args.append('--builder-tag=%s' % build_info.builder_tag)
45 45
46 # There are a number of big/integration tests in pkg, run with bigger timeout 46 # There are a number of big/integration tests in pkg, run with bigger timeout
47 common_args.append('--timeout=120') 47 timeout = 300 if build_info.mode == 'debug' else 120
48 common_args.append('--timeout=%s' % timeout)
48 # We have some unreproducible vm crashes on these bots 49 # We have some unreproducible vm crashes on these bots
49 common_args.append('--copy-coredumps') 50 common_args.append('--copy-coredumps')
50 51
51 # We are seeing issues with pub get calls on the windows bots. 52 # We are seeing issues with pub get calls on the windows bots.
52 # Experiment with not running concurrent calls. 53 # Experiment with not running concurrent calls.
53 if build_info.system == 'windows': 54 if build_info.system == 'windows':
54 common_args.append('-j1') 55 common_args.append('-j1')
55 56
56 bot.RunTest('pkg ', build_info, 57 bot.RunTest('pkg', build_info,
57 common_args + ['pkg', 'docs'], 58 common_args + ['pkg', 'docs'],
58 swallow_error=True) 59 swallow_error=True)
59 60
60 # Pkg tests currently have a lot of timeouts when run in debug mode. 61 # Pkg tests currently have a lot of timeouts when run in debug mode.
61 # See issue 18479 62 # See issue 18479
62 if build_info.mode != 'release': return 63 if build_info.mode != 'release': return
63 64
64 with bot.BuildStep('third_party pkg tests', swallow_error=True): 65 with bot.BuildStep('third_party pkg tests', swallow_error=True):
65 pkg_tested = os.path.join('third_party', 'pkg_tested') 66 pkg_tested = os.path.join('third_party', 'pkg_tested')
66 for entry in os.listdir(pkg_tested): 67 for entry in os.listdir(pkg_tested):
67 path = os.path.join(pkg_tested, entry) 68 path = os.path.join(pkg_tested, entry)
68 if os.path.isdir(path): bot.RunTestRunner(build_info, path) 69 if os.path.isdir(path): bot.RunTestRunner(build_info, path)
69 70
70 pkgbuild_build_info = bot.BuildInfo('none', 'vm', build_info.mode, 71 pkgbuild_build_info = bot.BuildInfo('none', 'vm', build_info.mode,
71 build_info.system, checked=False) 72 build_info.system, checked=False)
72 bot.RunTest('pkgbuild_repo_pkgs', pkgbuild_build_info, 73 bot.RunTest('pkgbuild_repo_pkgs', pkgbuild_build_info,
73 common_args + ['--append_logs', '--use-repository-packages', 74 common_args + ['--append_logs', '--use-repository-packages',
74 'pkgbuild'], 75 'pkgbuild'],
75 swallow_error=True) 76 swallow_error=True)
76 77
77 public_args = (common_args + 78 public_args = (common_args +
78 ['--append_logs', '--use-public-packages', 'pkgbuild']) 79 ['--append_logs', '--use-public-packages', 'pkgbuild'])
79 bot.RunTest('pkgbuild_public_pkgs', pkgbuild_build_info, public_args) 80 bot.RunTest('pkgbuild_public_pkgs', pkgbuild_build_info, public_args)
80 81
81 if __name__ == '__main__': 82 if __name__ == '__main__':
82 bot.RunBot(PkgConfig, PkgSteps) 83 bot.RunBot(PkgConfig, PkgSteps)
OLDNEW
« no previous file with comments | « tools/bots/bot.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698