| 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 # It has one job: define a dictionary named BuildmasterConfig. This | 8 # It has one job: define a dictionary named BuildmasterConfig. This |
| 9 # dictionary has a variety of keys to control different aspects of the | 9 # dictionary has a variety of keys to control different aspects of the |
| 10 # buildmaster. They are documented in docs/config.xhtml . | 10 # buildmaster. They are documented in docs/config.xhtml . |
| 11 | 11 |
| 12 from buildbot.scheduler import Dependent | 12 from buildbot.scheduler import Dependent |
| 13 from buildbot.scheduler import Scheduler | 13 from buildbot.scheduler import Scheduler |
| 14 from buildbot.scheduler import Periodic | 14 from buildbot.scheduler import Periodic |
| 15 from buildbot.schedulers import triggerable | 15 from buildbot.schedulers import triggerable |
| 16 | 16 |
| 17 from common import chromium_utils | 17 from common import chromium_utils |
| 18 from master import build_utils | 18 from master import build_utils |
| 19 from master import master_utils | 19 from master import master_utils |
| 20 from master import slaves_list | 20 from master import slaves_list |
| 21 from master import status_logger | 21 from master import status_logger |
| 22 from master import pubsub_json_status_push |
| 22 from master.factory import gclient_factory, annotator_factory | 23 from master.factory import gclient_factory, annotator_factory |
| 23 from master.factory.dart import dart_factory | 24 from master.factory.dart import dart_factory |
| 24 from master.factory.dart.dart_factory import (linux_env, windows_env, | 25 from master.factory.dart.dart_factory import (linux_env, windows_env, |
| 25 linux_clang_env) | 26 linux_clang_env) |
| 26 from master.factory.dart.channels import CHANNELS | 27 from master.factory.dart.channels import CHANNELS |
| 27 | 28 |
| 28 import config | 29 import config |
| 29 import master_site_config | 30 import master_site_config |
| 30 ActiveMaster = master_site_config.DartFYI | 31 ActiveMaster = master_site_config.DartFYI |
| 31 utils = dart_factory.DartUtils(ActiveMaster) | 32 utils = dart_factory.DartUtils(ActiveMaster) |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 | 313 |
| 313 | 314 |
| 314 ####### STATUS TARGETS | 315 ####### STATUS TARGETS |
| 315 | 316 |
| 316 # 'status' is a list of Status Targets. The results of each build will be | 317 # 'status' is a list of Status Targets. The results of each build will be |
| 317 # pushed to these targets. buildbot/status/*.py has a variety to choose from, | 318 # pushed to these targets. buildbot/status/*.py has a variety to choose from, |
| 318 # including web pages, email senders, and IRC bots. | 319 # including web pages, email senders, and IRC bots. |
| 319 | 320 |
| 320 c['status'] = [status_logger.StatusEventLogger()] | 321 c['status'] = [status_logger.StatusEventLogger()] |
| 321 | 322 |
| 323 # Add in the pubsub pusher, which pushes all status updates to a pubsub |
| 324 # topic. This will not run unless is_production_host is set to True. |
| 325 # This will fail on a production host if it cannot find the service |
| 326 # account file. |
| 327 pubsub_pusher = pubsub_json_status_push.StatusPush.CreateStatusPush( |
| 328 activeMaster=ActiveMaster) |
| 329 if pubsub_pusher: |
| 330 c['status'].append(pubsub_pusher) |
| 331 |
| 322 if WEB_STATUS: | 332 if WEB_STATUS: |
| 323 for status in utils.get_web_statuses(): | 333 for status in utils.get_web_statuses(): |
| 324 c['status'].append(status) | 334 c['status'].append(status) |
| 325 | 335 |
| 326 if MAIL_NOTIFIER: | 336 if MAIL_NOTIFIER: |
| 327 # We have people that are interested in a specific subset of the builders | 337 # We have people that are interested in a specific subset of the builders |
| 328 # and want to be notified whenever they break. | 338 # and want to be notified whenever they break. |
| 329 mail_notifiers = [ | 339 mail_notifiers = [ |
| 330 { | 340 { |
| 331 'extraRecipients' : ['johnniwinther@google.com', | 341 'extraRecipients' : ['johnniwinther@google.com', |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 c['projectName'] = ActiveMaster.project_name | 378 c['projectName'] = ActiveMaster.project_name |
| 369 c['projectURL'] = config.Master.project_url | 379 c['projectURL'] = config.Master.project_url |
| 370 | 380 |
| 371 # the 'buildbotURL' string should point to the location where the buildbot's | 381 # the 'buildbotURL' string should point to the location where the buildbot's |
| 372 # internal web server (usually the html.Waterfall page) is visible. This | 382 # internal web server (usually the html.Waterfall page) is visible. This |
| 373 # typically uses the port number set in the Waterfall 'status' entry, but | 383 # typically uses the port number set in the Waterfall 'status' entry, but |
| 374 # with an externally-visible host name which the buildbot cannot figure out | 384 # with an externally-visible host name which the buildbot cannot figure out |
| 375 # without some help. | 385 # without some help. |
| 376 | 386 |
| 377 c['buildbotURL'] = ActiveMaster.buildbot_url | 387 c['buildbotURL'] = ActiveMaster.buildbot_url |
| OLD | NEW |