| OLD | NEW |
| 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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.status.mail import MailNotifier | 5 from buildbot.status.mail import MailNotifier |
| 6 | 6 |
| 7 from master import master_utils | 7 from master import master_utils |
| 8 from master import slaves_list | 8 from master import slaves_list |
| 9 | 9 |
| 10 import config | 10 import config |
| 11 import master_site_config | 11 import master_site_config |
| 12 | 12 |
| 13 ActiveMaster = master_site_config.ChromiumLKGR | 13 ActiveMaster = master_site_config.ChromiumLKGR |
| 14 | 14 |
| 15 c = BuildmasterConfig = {} | 15 c = BuildmasterConfig = {} |
| 16 c['change_source'] = [] | 16 c['change_source'] = [] |
| 17 c['schedulers'] = [] | 17 c['schedulers'] = [] |
| 18 c['builders'] = [] | 18 c['builders'] = [] |
| 19 c['status'] = [] | 19 c['status'] = [] |
| 20 | 20 |
| 21 config.DatabaseSetup(c, require_dbconfig=ActiveMaster.is_production_host) | 21 config.DatabaseSetup(c) |
| 22 | 22 |
| 23 import master_lkgr_cfg | 23 import master_lkgr_cfg |
| 24 | 24 |
| 25 master_lkgr_cfg.Update(config, ActiveMaster, c) | 25 master_lkgr_cfg.Update(config, ActiveMaster, c) |
| 26 | 26 |
| 27 c['logCompressionLimit'] = False | 27 c['logCompressionLimit'] = False |
| 28 c['projectName'] = ActiveMaster.project_name | 28 c['projectName'] = ActiveMaster.project_name |
| 29 c['projectURL'] = config.Master.project_url | 29 c['projectURL'] = config.Master.project_url |
| 30 # Must come before AutoSetupMaster(). | 30 # Must come before AutoSetupMaster(). |
| 31 c['buildbotURL'] = ActiveMaster.buildbot_url | 31 c['buildbotURL'] = ActiveMaster.buildbot_url |
| (...skipping 26 matching lines...) Expand all Loading... |
| 58 sendToInterestedUsers=False)) | 58 sendToInterestedUsers=False)) |
| 59 | 59 |
| 60 c['status'].append(MailNotifier( | 60 c['status'].append(MailNotifier( |
| 61 fromaddr=ActiveMaster.from_address, # Reply-To address | 61 fromaddr=ActiveMaster.from_address, # Reply-To address |
| 62 mode='failing', | 62 mode='failing', |
| 63 relayhost=config.Master.smtp, | 63 relayhost=config.Master.smtp, |
| 64 subject='Build failure on %(builder)s', | 64 subject='Build failure on %(builder)s', |
| 65 extraRecipients=['syzygy-team@google.com'], | 65 extraRecipients=['syzygy-team@google.com'], |
| 66 sendToInterestedUsers=False, | 66 sendToInterestedUsers=False, |
| 67 builders=['Win SyzyASAN LKGR'])) | 67 builders=['Win SyzyASAN LKGR'])) |
| OLD | NEW |