| # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| from buildbot.status.mail import MailNotifier |
| |
| from master import master_utils |
| from master import slaves_list |
| |
| import config |
| import master_site_config |
| |
| ActiveMaster = master_site_config.ChromiumLKGR |
| |
| c = BuildmasterConfig = {} |
| c['change_source'] = [] |
| c['schedulers'] = [] |
| c['builders'] = [] |
| c['status'] = [] |
| |
| config.DatabaseSetup(c) |
| |
| import master_lkgr_cfg |
| |
| master_lkgr_cfg.Update(config, ActiveMaster, c) |
| |
| c['logCompressionLimit'] = False |
| c['projectName'] = ActiveMaster.project_name |
| c['projectURL'] = config.Master.project_url |
| # Must come before AutoSetupMaster(). |
| c['buildbotURL'] = ActiveMaster.buildbot_url |
| |
| # Associate the slaves to the manual builders. The configuration is in |
| # slaves.cfg. |
| slaves = slaves_list.SlavesList('slaves.cfg', 'ChromiumLKGR') |
| for builder in c['builders']: |
| builder['slavenames'] = slaves.GetSlavesName(builder=builder['name']) |
| |
| # The 'slaves' list defines the set of allowable buildslaves. List all the |
| # slaves registered to a builder. Remove dupes. |
| c['slaves'] = master_utils.AutoSetupSlaves(c['builders'], |
| config.Master.GetBotPassword()) |
| master_utils.VerifySetup(c, slaves) |
| |
| # Adds common status and tools to this master. |
| master_utils.AutoSetupMaster(c, ActiveMaster, |
| public_html='../master.chromium/public_html', |
| templates=['../master.chromium/templates'], |
| tagComparator=c['change_source'][0].comparator, |
| enable_http_status_push=ActiveMaster.is_production_host) |
| |
| c['status'].append(MailNotifier( |
| fromaddr=ActiveMaster.from_address, |
| mode='problem', |
| relayhost=config.Master.smtp, |
| subject='LKGR build failure on %(builder)s', |
| extraRecipients=['chromesec-lkgr-failures@google.com'], |
| sendToInterestedUsers=False)) |
| |
| c['status'].append(MailNotifier( |
| fromaddr=ActiveMaster.from_address, # Reply-To address |
| mode='failing', |
| relayhost=config.Master.smtp, |
| subject='Build failure on %(builder)s', |
| extraRecipients=['syzygy-team@chromium.org'], |
| sendToInterestedUsers=False, |
| builders=['Win SyzyASAN LKGR'])) |