| 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 # These modules come from scripts/master, which must be in the PYTHONPATH. | 5 # These modules come from scripts/master, which must be in the PYTHONPATH. |
| 6 from master import master_utils | 6 from master import master_utils |
| 7 from master import slaves_list | 7 from master import slaves_list |
| 8 | 8 |
| 9 import config | 9 import config |
| 10 import master_site_config | 10 import master_site_config |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 # This will be enabled when the master is split. | 30 # This will be enabled when the master is split. |
| 31 if TREE_GATE_KEEPER: | 31 if TREE_GATE_KEEPER: |
| 32 import master_gatekeeper_cfg | 32 import master_gatekeeper_cfg |
| 33 master_gatekeeper_cfg.Update(config, ActiveMaster, c) | 33 master_gatekeeper_cfg.Update(config, ActiveMaster, c) |
| 34 | 34 |
| 35 c['logCompressionLimit'] = False | 35 c['logCompressionLimit'] = False |
| 36 c['projectName'] = ActiveMaster.project_name | 36 c['projectName'] = ActiveMaster.project_name |
| 37 c['projectURL'] = config.Master.project_url | 37 c['projectURL'] = config.Master.project_url |
| 38 # Must come before AutoSetupMaster(). | 38 # Must come before AutoSetupMaster(). |
| 39 c['buildbotURL'] = 'http://build.chromium.org/p/chromium.mac/' | 39 c['buildbotURL'] = ActiveMaster.buildbot_url |
| 40 | 40 |
| 41 # Associate the slaves to the manual builders. The configuration is in | 41 # Associate the slaves to the manual builders. The configuration is in |
| 42 # slaves.cfg. | 42 # slaves.cfg. |
| 43 slaves = slaves_list.SlavesList('slaves.cfg', 'ChromiumMac') | 43 slaves = slaves_list.SlavesList('slaves.cfg', 'ChromiumMac') |
| 44 for builder in c['builders']: | 44 for builder in c['builders']: |
| 45 builder['slavenames'] = slaves.GetSlavesName(builder=builder['name']) | 45 builder['slavenames'] = slaves.GetSlavesName(builder=builder['name']) |
| 46 | 46 |
| 47 # The 'slaves' list defines the set of allowable buildslaves. List all the | 47 # The 'slaves' list defines the set of allowable buildslaves. List all the |
| 48 # slaves registered to a builder. Remove dupes. | 48 # slaves registered to a builder. Remove dupes. |
| 49 c['slaves'] = master_utils.AutoSetupSlaves( | 49 c['slaves'] = master_utils.AutoSetupSlaves( |
| 50 c['builders'], | 50 c['builders'], |
| 51 config.Master.GetBotPassword(), | 51 config.Master.GetBotPassword(), |
| 52 missing_recipients=['buildbot@chromium-build-health.appspotmail.com']) | 52 missing_recipients=['buildbot@chromium-build-health.appspotmail.com']) |
| 53 master_utils.VerifySetup(c, slaves) | 53 master_utils.VerifySetup(c, slaves) |
| 54 | 54 |
| 55 # Adds common status and tools to this master. | 55 # Adds common status and tools to this master. |
| 56 master_utils.AutoSetupMaster(c, ActiveMaster, | 56 master_utils.AutoSetupMaster(c, ActiveMaster, |
| 57 public_html='../master.chromium/public_html', | 57 public_html='../master.chromium/public_html', |
| 58 templates=['../master.chromium/templates'], | 58 templates=['../master.chromium/templates'], |
| 59 enable_http_status_push=ActiveMaster.is_production_host) | 59 enable_http_status_push=ActiveMaster.is_production_host) |
| 60 | 60 |
| 61 # Do it at the end to override values set by AutoSetupMaster, the default is | 61 # Do it at the end to override values set by AutoSetupMaster, the default is |
| 62 # too low. Must keep at least a few days worth of builds. | 62 # too low. Must keep at least a few days worth of builds. |
| 63 c['buildHorizon'] = 3000 | 63 c['buildHorizon'] = 3000 |
| 64 c['logHorizon'] = 3000 | 64 c['logHorizon'] = 3000 |
| 65 # Must be at least 2x the number of slaves. | 65 # Must be at least 2x the number of slaves. |
| 66 c['eventHorizon'] = 200 | 66 c['eventHorizon'] = 200 |
| OLD | NEW |