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

Side by Side Diff: scripts/master/factory/remote_run_factory.py

Issue 2095373002: remote_run_factory: keep timeout defaults in sync with annotator_factory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 4 years, 5 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 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 from master.factory import annotator_commands 5 from master.factory import annotator_commands
6 from master.factory import commands 6 from master.factory import commands
7 from master.factory.build_factory import BuildFactory 7 from master.factory.build_factory import BuildFactory
8 8
9 9
10 # TODO(nodir): restore timeout=1200, https://crbug.com/593891
10 def RemoteRunFactory(active_master, repository, recipe, 11 def RemoteRunFactory(active_master, repository, recipe,
11 revision='origin/master', factory_properties=None, 12 revision='origin/master', factory_properties=None,
12 timeout=1200, max_time=2400, triggers=None): 13 timeout=2400, max_time=None, triggers=None):
13 """Returns buildbot build factory which runs recipes using recipe engine's 14 """Returns buildbot build factory which runs recipes using recipe engine's
14 remote_run command. 15 remote_run command.
15 16
16 |active_master| is config_bootstrap.Master's subclass from master's 17 |active_master| is config_bootstrap.Master's subclass from master's
17 master_site_config.py . 18 master_site_config.py .
18 19
19 |repository| is the URL of repository containing recipe to run. 20 |repository| is the URL of repository containing recipe to run.
20 21
21 |recipe| is the name of the recipe to run. 22 |recipe| is the name of the recipe to run.
22 23
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 cmd = cmd_obj.AddB64GzBuildProperties(cmd) 57 cmd = cmd_obj.AddB64GzBuildProperties(cmd)
57 cmd = cmd_obj.AddB64GzFactoryProperties(factory_properties, cmd) 58 cmd = cmd_obj.AddB64GzFactoryProperties(factory_properties, cmd)
58 59
59 cmd_obj.AddAnnotatedScript(cmd, timeout=timeout, max_time=max_time) 60 cmd_obj.AddAnnotatedScript(cmd, timeout=timeout, max_time=max_time)
60 61
61 for t in triggers or []: 62 for t in triggers or []:
62 factory.addStep(commands.CreateTriggerStep( 63 factory.addStep(commands.CreateTriggerStep(
63 t, trigger_copy_properties=['swarm_hashes'])) 64 t, trigger_copy_properties=['swarm_hashes']))
64 65
65 return factory 66 return factory
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