| OLD | NEW |
| 1 # -*- python -*- | 1 # -*- python -*- |
| 2 # ex: set syntax=python: | 2 # ex: set syntax=python: |
| 3 | 3 |
| 4 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 4 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 5 # Use of this source code is governed by a BSD-style license that can be | 5 # Use of this source code is governed by a BSD-style license that can be |
| 6 # found in the LICENSE file. | 6 # found in the LICENSE file. |
| 7 | 7 |
| 8 import os | 8 import os |
| 9 import random | 9 import random |
| 10 import shutil | 10 import shutil |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 # Buildbot master url: | 171 # Buildbot master url: |
| 172 # Must come before AutoSetupMaster(). | 172 # Must come before AutoSetupMaster(). |
| 173 c['buildbotURL'] = ActiveMaster.buildbot_url | 173 c['buildbotURL'] = ActiveMaster.buildbot_url |
| 174 | 174 |
| 175 # Adds common status and tools to this master. | 175 # Adds common status and tools to this master. |
| 176 web_template_globals = { | 176 web_template_globals = { |
| 177 'cros_slave_name': testing_slave_pool.cros_slave_name, | 177 'cros_slave_name': testing_slave_pool.cros_slave_name, |
| 178 'cros_builder_links': chromiumos_tryserver_util.cros_builder_links, | 178 'cros_builder_links': chromiumos_tryserver_util.cros_builder_links, |
| 179 } | 179 } |
| 180 master_utils.AutoSetupMaster(c, ActiveMaster, order_console_by_time=True, | 180 master_utils.AutoSetupMaster(c, ActiveMaster, order_console_by_time=True, |
| 181 public_html='../master.chromium/public_html', | 181 public_html='../master.chromiumos/public_html', |
| 182 templates=[ '../master.chromiumos/templates', | 182 templates=[ '../master.chromiumos/templates', |
| 183 '../master.chromium/templates'], | 183 '../master.chromium/templates'], |
| 184 web_template_globals=web_template_globals, | 184 web_template_globals=web_template_globals, |
| 185 ) | 185 ) |
| 186 | 186 |
| 187 # Add a dumb MailNotifier first so it will be used for BuildSlave with | 187 # Add a dumb MailNotifier first so it will be used for BuildSlave with |
| 188 # notify_on_missing set when they go missing. | 188 # notify_on_missing set when they go missing. |
| 189 from buildbot.status import mail | 189 from buildbot.status import mail |
| 190 c['status'].append(mail.MailNotifier( | 190 c['status'].append(mail.MailNotifier( |
| 191 fromaddr=ActiveMaster.from_address, | 191 fromaddr=ActiveMaster.from_address, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 213 get_info=_GetInfo, | 213 get_info=_GetInfo, |
| 214 relayhost=smtp_host, | 214 relayhost=smtp_host, |
| 215 lookup=master_utils.UsersAreEmails())) | 215 lookup=master_utils.UsersAreEmails())) |
| 216 | 216 |
| 217 # Do it at the end to override values set by AutoSetupMaster, the default is | 217 # Do it at the end to override values set by AutoSetupMaster, the default is |
| 218 # too low. Must keep at least a few days worth of builds. | 218 # too low. Must keep at least a few days worth of builds. |
| 219 c['buildHorizon'] = 3000 | 219 c['buildHorizon'] = 3000 |
| 220 c['logHorizon'] = 3000 | 220 c['logHorizon'] = 3000 |
| 221 # Must be at least 2x the number of slaves. | 221 # Must be at least 2x the number of slaves. |
| 222 c['eventHorizon'] = 200 | 222 c['eventHorizon'] = 200 |
| OLD | NEW |