| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |