| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 # Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
| 3 # | 3 # |
| 4 # Use of this source code is governed by a BSD-style license | 4 # Use of this source code is governed by a BSD-style license |
| 5 # that can be found in the LICENSE file in the root of the source | 5 # that can be found in the LICENSE file in the root of the source |
| 6 # tree. An additional intellectual property rights grant can be found | 6 # tree. An additional intellectual property rights grant can be found |
| 7 # in the file PATENTS. All contributing project authors may | 7 # in the file PATENTS. All contributing project authors may |
| 8 # be found in the AUTHORS file in the root of the source tree. | 8 # be found in the AUTHORS file in the root of the source tree. |
| 9 | 9 |
| 10 import os | 10 import os |
| 11 | 11 |
| 12 # These modules come from scripts, which must be in the PYTHONPATH. | 12 # These modules come from scripts, which must be in the PYTHONPATH. |
| 13 from master import master_utils | 13 from master import master_utils |
| 14 from master import slaves_list | 14 from master import slaves_list |
| 15 from master.builders_pools import BuildersPools | 15 from master.builders_pools import BuildersPools |
| 16 from master.factory import annotator_factory | 16 from master.factory import annotator_factory |
| 17 from master.factory import remote_run_factory |
| 17 from master.try_job_http import TryJobHTTP | 18 from master.try_job_http import TryJobHTTP |
| 18 from master.try_mail_notifier import TryMailNotifier | 19 from master.try_mail_notifier import TryMailNotifier |
| 19 | 20 |
| 20 import config | 21 import config |
| 21 import master_site_config | 22 import master_site_config |
| 22 | 23 |
| 23 ActiveMaster = master_site_config.WebRTCTryServer | 24 ActiveMaster = master_site_config.WebRTCTryServer |
| 24 | 25 |
| 25 MAIL_NOTIFIER = True | 26 MAIL_NOTIFIER = True |
| 26 LISTEN_TO_SVN = ActiveMaster.svn_url and ActiveMaster.is_production_host | 27 LISTEN_TO_SVN = ActiveMaster.svn_url and ActiveMaster.is_production_host |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 {'name': 'android_compile_x64_dbg', 'slavebuilddir': 'android_x64'}, | 113 {'name': 'android_compile_x64_dbg', 'slavebuilddir': 'android_x64'}, |
| 113 {'name': 'android_dbg', 'slavebuilddir': 'android'}, | 114 {'name': 'android_dbg', 'slavebuilddir': 'android'}, |
| 114 {'name': 'android_rel', 'slavebuilddir': 'android'}, | 115 {'name': 'android_rel', 'slavebuilddir': 'android'}, |
| 115 {'name': 'android_clang_dbg', 'slavebuilddir': 'android_clang'}, | 116 {'name': 'android_clang_dbg', 'slavebuilddir': 'android_clang'}, |
| 116 {'name': 'android_arm64_rel', 'slavebuilddir': 'android_arm64'}, | 117 {'name': 'android_arm64_rel', 'slavebuilddir': 'android_arm64'}, |
| 117 {'name': 'android_n6', 'slavebuilddir': 'android'}, | 118 {'name': 'android_n6', 'slavebuilddir': 'android'}, |
| 118 {'name': 'android_gn_dbg', 'slavebuilddir': 'android_gn'}, | 119 {'name': 'android_gn_dbg', 'slavebuilddir': 'android_gn'}, |
| 119 {'name': 'android_gn_rel', 'slavebuilddir': 'android_gn'}, | 120 {'name': 'android_gn_rel', 'slavebuilddir': 'android_gn'}, |
| 120 ] | 121 ] |
| 121 | 122 |
| 122 m_annotator = annotator_factory.AnnotatorFactory() | 123 def m_remote_run(recipe, **kwargs): |
| 124 return remote_run_factory.RemoteRunFactory( |
| 125 active_master=ActiveMaster, |
| 126 repository='https://chromium.googlesource.com/chromium/tools/build.git', |
| 127 recipe=recipe, |
| 128 factory_properties={'path_config': 'kitchen'}, |
| 129 **kwargs) |
| 130 |
| 123 c['builders'] = [ | 131 c['builders'] = [ |
| 124 { | 132 { |
| 125 'name': spec['name'], | 133 'name': spec['name'], |
| 126 # TODO(sergiyb): Remove the timeout below after all bots have synched past | 134 # TODO(sergiyb): Remove the timeout below after all bots have synched past |
| 127 # Blink merge commit. | 135 # Blink merge commit. |
| 128 'factory': m_annotator.BaseFactory(spec.get('recipe', | 136 'factory': m_remote_run(spec.get('recipe', 'webrtc/standalone'), |
| 129 'webrtc/standalone'), | 137 timeout=3600), |
| 130 timeout=3600), | |
| 131 'slavebuilddir': spec['slavebuilddir'], | 138 'slavebuilddir': spec['slavebuilddir'], |
| 132 } for spec in specs | 139 } for spec in specs |
| 133 ] | 140 ] |
| 134 | 141 |
| 142 m_annotator = annotator_factory.AnnotatorFactory() |
| 143 |
| 135 # Presubmit builder. | 144 # Presubmit builder. |
| 136 c['builders'].append( | 145 c['builders'].append( |
| 137 { | 146 { |
| 138 'name': 'presubmit', | 147 'name': 'presubmit', |
| 139 'factory': m_annotator.BaseFactory('run_presubmit', | 148 'factory': m_annotator.BaseFactory('run_presubmit', |
| 140 {'repo_name': 'webrtc', | 149 {'repo_name': 'webrtc', |
| 141 'runhooks': True}), | 150 'runhooks': True}), |
| 142 'slavebuilddir': 'linux64', | 151 'slavebuilddir': 'linux64', |
| 143 } | 152 } |
| 144 ) | 153 ) |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 # Must be at least 2x the number of slaves. | 241 # Must be at least 2x the number of slaves. |
| 233 c['eventHorizon'] = 100 | 242 c['eventHorizon'] = 100 |
| 234 # Must be at least 2x the number of on-going builds. | 243 # Must be at least 2x the number of on-going builds. |
| 235 c['buildCacheSize'] = 100 | 244 c['buildCacheSize'] = 100 |
| 236 | 245 |
| 237 ####### PROJECT IDENTITY | 246 ####### PROJECT IDENTITY |
| 238 | 247 |
| 239 # The 'projectURL' string will be used to provide a link | 248 # The 'projectURL' string will be used to provide a link |
| 240 # from buildbot HTML pages to your project's home page. | 249 # from buildbot HTML pages to your project's home page. |
| 241 c['projectURL'] = 'http://dev.chromium.org/developers/testing/try-server-usage' | 250 c['projectURL'] = 'http://dev.chromium.org/developers/testing/try-server-usage' |
| OLD | NEW |