| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 buildbot.process.properties import WithProperties | 5 from buildbot.process.properties import WithProperties |
| 6 from buildbot.scheduler import Triggerable | 6 from buildbot.scheduler import Triggerable |
| 7 from buildbot.scheduler import Scheduler | 7 from buildbot.scheduler import Scheduler |
| 8 | 8 |
| 9 from common import chromium_utils | 9 from common import chromium_utils |
| 10 | 10 |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 | 88 |
| 89 revision_getter = master_utils.ConditionalProperty( | 89 revision_getter = master_utils.ConditionalProperty( |
| 90 lambda build: build.getProperty('revision'), | 90 lambda build: build.getProperty('revision'), |
| 91 WithProperties('%(revision)s'), | 91 WithProperties('%(revision)s'), |
| 92 'master') | 92 'master') |
| 93 | 93 |
| 94 def m_remote_run_chromium_src(recipe, **kwargs): | 94 def m_remote_run_chromium_src(recipe, **kwargs): |
| 95 kwargs.setdefault('revision', revision_getter) | 95 kwargs.setdefault('revision', revision_getter) |
| 96 return remote_run_factory.RemoteRunFactory( | 96 return remote_run_factory.RemoteRunFactory( |
| 97 active_master=ActiveMaster, | 97 active_master=ActiveMaster, |
| 98 repository='https://chromium.googlesource.com/chromium/src.git', | 98 repository='https://chromium.googlesource.com/chromium/tools/build.git', |
| 99 recipe=recipe, | 99 recipe=recipe, |
| 100 factory_properties={'path_config': 'kitchen'}, | 100 factory_properties={'path_config': 'kitchen'}, |
| 101 use_gitiles=True, | 101 use_gitiles=True, |
| 102 **kwargs) | 102 **kwargs) |
| 103 | 103 |
| 104 # IMPORTANT NOTE about adding new tests. | 104 # IMPORTANT NOTE about adding new tests. |
| 105 # If you want to add a new test, make sure it's: | 105 # If you want to add a new test, make sure it's: |
| 106 # a) buildable, | 106 # a) buildable, |
| 107 # b) runnable by all the tools, | 107 # b) runnable by all the tools, |
| 108 # c) green locally under all tools (at least mostly) and | 108 # c) green locally under all tools (at least mostly) and |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 # Adds common status and tools to this master. | 249 # Adds common status and tools to this master. |
| 250 master_utils.AutoSetupMaster(c, ActiveMaster, | 250 master_utils.AutoSetupMaster(c, ActiveMaster, |
| 251 public_html='../master.chromium/public_html', | 251 public_html='../master.chromium/public_html', |
| 252 templates=['../master.chromium/templates'], | 252 templates=['../master.chromium/templates'], |
| 253 tagComparator=master_poller.comparator, | 253 tagComparator=master_poller.comparator, |
| 254 enable_http_status_push=ActiveMaster.is_production_host) | 254 enable_http_status_push=ActiveMaster.is_production_host) |
| 255 | 255 |
| 256 if ActiveMaster.is_production_host: | 256 if ActiveMaster.is_production_host: |
| 257 import notifier_cfg | 257 import notifier_cfg |
| 258 notifier_cfg.Update(config, ActiveMaster, c) | 258 notifier_cfg.Update(config, ActiveMaster, c) |
| OLD | NEW |