| OLD | NEW |
| 1 # -*- python -*- | 1 # -*- python -*- |
| 2 # ex: set syntax=python: | 2 # ex: set syntax=python: |
| 3 # Copyright (c) 2015 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2015 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 # READ THIS: | 7 # READ THIS: |
| 8 # See http://dev.chromium.org/developers/testing/chromium-build-infrastructure | 8 # See http://dev.chromium.org/developers/testing/chromium-build-infrastructure |
| 9 | 9 |
| 10 import os | 10 import os |
| 11 import socket | 11 import socket |
| 12 | 12 |
| 13 # These modules come from scripts, which must be in the PYTHONPATH. | 13 # These modules come from scripts, which must be in the PYTHONPATH. |
| 14 from master import master_utils | 14 from master import master_utils |
| 15 from master import slaves_list | 15 from master import slaves_list |
| 16 from master.factory import annotator_factory | 16 from master.factory import remote_run_factory |
| 17 from master.try_job_gerrit import TryJobGerritScheduler | 17 from master.try_job_gerrit import TryJobGerritScheduler |
| 18 from master.try_job_gerrit import TryJobGerritStatus | 18 from master.try_job_gerrit import TryJobGerritStatus |
| 19 | 19 |
| 20 import config | 20 import config |
| 21 import master_site_config | 21 import master_site_config |
| 22 | 22 |
| 23 ActiveMaster = master_site_config.TryServerANGLE | 23 ActiveMaster = master_site_config.TryServerANGLE |
| 24 | 24 |
| 25 m_annotator = annotator_factory.AnnotatorFactory(ActiveMaster) | 25 def m_remote_run(recipe, **kwargs): |
| 26 return remote_run_factory.RemoteRunFactory( |
| 27 active_master=ActiveMaster, |
| 28 repository='https://chromium.googlesource.com/chromium/tools/build.git', |
| 29 recipe=recipe, |
| 30 factory_properties={'path_config': 'kitchen'}, |
| 31 **kwargs) |
| 26 | 32 |
| 27 # This is the dictionary that the buildmaster pays attention to. We also use | 33 # This is the dictionary that the buildmaster pays attention to. We also use |
| 28 # a shorter alias to save typing. | 34 # a shorter alias to save typing. |
| 29 c = BuildmasterConfig = {} | 35 c = BuildmasterConfig = {} |
| 30 | 36 |
| 31 # Disable merge requests because this is a tryserver | 37 # Disable merge requests because this is a tryserver |
| 32 c['mergeRequests'] = False | 38 c['mergeRequests'] = False |
| 33 | 39 |
| 34 config.DatabaseSetup(c) | 40 config.DatabaseSetup(c) |
| 35 | 41 |
| 36 ####### CHANGESOURCES | 42 ####### CHANGESOURCES |
| 37 | 43 |
| 38 c['change_source'] = [] | 44 c['change_source'] = [] |
| 39 | 45 |
| 40 ####### BUILDERS | 46 ####### BUILDERS |
| 41 | 47 |
| 42 c['builders'] = [] | 48 c['builders'] = [] |
| 43 | 49 |
| 44 # ANGLE Android bots | 50 # ANGLE Android bots |
| 45 c['builders'].append({ | 51 c['builders'].append({ |
| 46 'name': 'android_angle_rel_ng', | 52 'name': 'android_angle_rel_ng', |
| 47 'factory': m_annotator.BaseFactory('chromium_trybot', timeout=3600), | 53 'factory': m_remote_run('chromium_trybot', timeout=3600), |
| 48 # Share build directory with compatible existing builders to save space. | 54 # Share build directory with compatible existing builders to save space. |
| 49 'slavebuilddir': 'android', | 55 'slavebuilddir': 'android', |
| 50 }) | 56 }) |
| 51 | 57 |
| 52 # ANGLE linux bots | 58 # ANGLE linux bots |
| 53 c['builders'].append({ | 59 c['builders'].append({ |
| 54 'name': 'linux_angle_rel_ng', | 60 'name': 'linux_angle_rel_ng', |
| 55 'factory': m_annotator.BaseFactory('chromium_trybot', timeout=3600), | 61 'factory': m_remote_run('chromium_trybot', timeout=3600), |
| 56 # Share build directory with compatible existing builders to save space. | 62 # Share build directory with compatible existing builders to save space. |
| 57 'slavebuilddir': 'linux', | 63 'slavebuilddir': 'linux', |
| 58 }) | 64 }) |
| 59 c['builders'].append({ | 65 c['builders'].append({ |
| 60 'name': 'linux_angle_dbg_ng', | 66 'name': 'linux_angle_dbg_ng', |
| 61 'factory': m_annotator.BaseFactory('chromium_trybot', timeout=3600), | 67 'factory': m_remote_run('chromium_trybot', timeout=3600), |
| 62 # Share build directory with compatible existing builders to save space. | 68 # Share build directory with compatible existing builders to save space. |
| 63 'slavebuilddir': 'linux', | 69 'slavebuilddir': 'linux', |
| 64 }) | 70 }) |
| 65 c['builders'].append({ | 71 c['builders'].append({ |
| 66 'name': 'linux_angle_chromeos_rel_ng', | 72 'name': 'linux_angle_chromeos_rel_ng', |
| 67 'factory': m_annotator.BaseFactory('chromium_trybot', timeout=3600), | 73 'factory': m_remote_run('chromium_trybot', timeout=3600), |
| 68 # Share build directory with compatible existing builders to save space. | 74 # Share build directory with compatible existing builders to save space. |
| 69 'slavebuilddir': 'linux_chromeos', | 75 'slavebuilddir': 'linux_chromeos', |
| 70 }) | 76 }) |
| 71 | 77 |
| 72 # ANGLE mac bots | 78 # ANGLE mac bots |
| 73 c['builders'].append({ | 79 c['builders'].append({ |
| 74 'name': 'mac_angle_rel_ng', | 80 'name': 'mac_angle_rel_ng', |
| 75 'factory': m_annotator.BaseFactory('chromium_trybot', timeout=3600), | 81 'factory': m_remote_run('chromium_trybot', timeout=3600), |
| 76 # Share build directory with compatible existing builders to save space. | 82 # Share build directory with compatible existing builders to save space. |
| 77 'slavebuilddir': 'mac', | 83 'slavebuilddir': 'mac', |
| 78 }) | 84 }) |
| 79 c['builders'].append({ | 85 c['builders'].append({ |
| 80 'name': 'mac_angle_dbg_ng', | 86 'name': 'mac_angle_dbg_ng', |
| 81 'factory': m_annotator.BaseFactory('chromium_trybot', timeout=3600), | 87 'factory': m_remote_run('chromium_trybot', timeout=3600), |
| 82 # Share build directory with compatible existing builders to save space. | 88 # Share build directory with compatible existing builders to save space. |
| 83 'slavebuilddir': 'mac', | 89 'slavebuilddir': 'mac', |
| 84 }) | 90 }) |
| 85 | 91 |
| 86 # ANGLE win bots | 92 # ANGLE win bots |
| 87 c['builders'].append({ | 93 c['builders'].append({ |
| 88 'name': 'win_angle_rel_ng', | 94 'name': 'win_angle_rel_ng', |
| 89 'factory': m_annotator.BaseFactory('chromium_trybot', timeout=3600), | 95 'factory': m_remote_run('chromium_trybot', timeout=3600), |
| 90 # Share build directory with compatible existing builders to save space. | 96 # Share build directory with compatible existing builders to save space. |
| 91 'slavebuilddir': 'win', | 97 'slavebuilddir': 'win', |
| 92 }) | 98 }) |
| 93 c['builders'].append({ | 99 c['builders'].append({ |
| 94 'name': 'win_angle_dbg_ng', | 100 'name': 'win_angle_dbg_ng', |
| 95 'factory': m_annotator.BaseFactory('chromium_trybot', timeout=3600), | 101 'factory': m_remote_run('chromium_trybot', timeout=3600), |
| 96 # Share build directory with compatible existing builders to save space. | 102 # Share build directory with compatible existing builders to save space. |
| 97 'slavebuilddir': 'win', | 103 'slavebuilddir': 'win', |
| 98 }) | 104 }) |
| 99 c['builders'].append({ | 105 c['builders'].append({ |
| 100 'name': 'win_angle_x64_rel_ng', | 106 'name': 'win_angle_x64_rel_ng', |
| 101 'factory': m_annotator.BaseFactory('chromium_trybot', timeout=3600), | 107 'factory': m_remote_run('chromium_trybot', timeout=3600), |
| 102 # Share build directory with compatible existing builders to save space. | 108 # Share build directory with compatible existing builders to save space. |
| 103 'slavebuilddir': 'win', | 109 'slavebuilddir': 'win', |
| 104 }) | 110 }) |
| 105 c['builders'].append({ | 111 c['builders'].append({ |
| 106 'name': 'win_angle_x64_dbg_ng', | 112 'name': 'win_angle_x64_dbg_ng', |
| 107 'factory': m_annotator.BaseFactory('chromium_trybot', timeout=3600), | 113 'factory': m_remote_run('chromium_trybot', timeout=3600), |
| 108 # Share build directory with compatible existing builders to save space. | 114 # Share build directory with compatible existing builders to save space. |
| 109 'slavebuilddir': 'win', | 115 'slavebuilddir': 'win', |
| 110 }) | 116 }) |
| 111 | 117 |
| 112 slaves = slaves_list.SlavesList('slaves.cfg', 'TryServerANGLE') | 118 slaves = slaves_list.SlavesList('slaves.cfg', 'TryServerANGLE') |
| 113 for builder in c['builders']: | 119 for builder in c['builders']: |
| 114 # Associate the slaves to the builders. The configuration is in slaves.cfg. | 120 # Associate the slaves to the builders. The configuration is in slaves.cfg. |
| 115 builder['slavenames'] = slaves.GetSlavesName(builder=builder['name']) | 121 builder['slavenames'] = slaves.GetSlavesName(builder=builder['name']) |
| 116 # Don't enable auto_reboot for people testing locally. | 122 # Don't enable auto_reboot for people testing locally. |
| 117 builder.setdefault('auto_reboot', ActiveMaster.is_production_host) | 123 builder.setdefault('auto_reboot', ActiveMaster.is_production_host) |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 c['logCompressionLimit'] = False | 186 c['logCompressionLimit'] = False |
| 181 | 187 |
| 182 # Adjust the buildCaches to be 3x the number of slaves per builder. | 188 # Adjust the buildCaches to be 3x the number of slaves per builder. |
| 183 c['autoBuildCacheRatio'] = 3 | 189 c['autoBuildCacheRatio'] = 3 |
| 184 | 190 |
| 185 ####### PROJECT IDENTITY | 191 ####### PROJECT IDENTITY |
| 186 | 192 |
| 187 # The 'projectURL' string will be used to provide a link | 193 # The 'projectURL' string will be used to provide a link |
| 188 # from buildbot HTML pages to your project's home page. | 194 # from buildbot HTML pages to your project's home page. |
| 189 c['projectURL'] = 'http://dev.chromium.org/developers/testing/try-server-usage' | 195 c['projectURL'] = 'http://dev.chromium.org/developers/testing/try-server-usage' |
| OLD | NEW |