Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Side by Side Diff: masters/master.client.dart/master.cfg

Issue 2353653002: Activate pubsub for dart masters (Closed)
Patch Set: Remove logging Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « masters/master.client.dart.packages/master.cfg ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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.schedulers import triggerable 14 from buildbot.schedulers import triggerable
15 15
16 from master import build_utils 16 from master import build_utils
17 from master import master_utils 17 from master import master_utils
18 from master import slaves_list 18 from master import slaves_list
19 from master import status_logger 19 from master import status_logger
20 from master import pubsub_json_status_push
20 from master.factory import annotator_factory 21 from master.factory import annotator_factory
21 from master.factory.dart import dart_factory 22 from master.factory.dart import dart_factory
22 from master.factory.dart.dart_factory import (linux_env, windows_env, 23 from master.factory.dart.dart_factory import (linux_env, windows_env,
23 linux_clang_env, linux_asan_env_32, linux_asan_env_64) 24 linux_clang_env, linux_asan_env_32, linux_asan_env_64)
24 from master.factory.dart.channels import CHANNELS 25 from master.factory.dart.channels import CHANNELS
25 26
26 from twisted.python import log 27 from twisted.python import log
27 28
28 import config 29 import config
29 import master_site_config 30 import master_site_config
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
591 c['prioritizeBuilders'] = utils.prioritize_builders 592 c['prioritizeBuilders'] = utils.prioritize_builders
592 593
593 ####### STATUS TARGETS 594 ####### STATUS TARGETS
594 595
595 # 'status' is a list of Status Targets. The results of each build will be 596 # 'status' is a list of Status Targets. The results of each build will be
596 # pushed to these targets. buildbot/status/*.py has a variety to choose from, 597 # pushed to these targets. buildbot/status/*.py has a variety to choose from,
597 # including web pages, email senders, and IRC bots. 598 # including web pages, email senders, and IRC bots.
598 599
599 c['status'] = [status_logger.StatusEventLogger()] 600 c['status'] = [status_logger.StatusEventLogger()]
600 601
602 # Add in the pubsub pusher, which pushes all status updates to a pubsub
603 # topic. This will not run unless is_production_host is set to True.
604 # This will fail on a production host if it cannot find the service
605 # account file.
606 pubsub_pusher = pubsub_json_status_push.StatusPush.CreateStatusPush(
607 activeMaster=ActiveMaster)
608 if pubsub_pusher:
609 c['status'].append(pubsub_pusher)
610
601 if WEB_STATUS: 611 if WEB_STATUS:
602 for status in utils.get_web_statuses(): 612 for status in utils.get_web_statuses():
603 c['status'].append(status) 613 c['status'].append(status)
604 614
605 if MAIL_NOTIFIER: 615 if MAIL_NOTIFIER:
606 # We have people that are interested in a specific subset of the builders 616 # We have people that are interested in a specific subset of the builders
607 # and want to be notified whenever they break. 617 # and want to be notified whenever they break.
608 mail_notifiers = [ 618 mail_notifiers = [
609 { 619 {
610 'extraRecipients': ['whesse+botfailures@google.com',], 620 'extraRecipients': ['whesse+botfailures@google.com',],
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 c['projectName'] = ActiveMaster.project_name 684 c['projectName'] = ActiveMaster.project_name
675 c['projectURL'] = config.Master.project_url 685 c['projectURL'] = config.Master.project_url
676 686
677 # the 'buildbotURL' string should point to the location where the buildbot's 687 # the 'buildbotURL' string should point to the location where the buildbot's
678 # internal web server (usually the html.Waterfall page) is visible. This 688 # internal web server (usually the html.Waterfall page) is visible. This
679 # typically uses the port number set in the Waterfall 'status' entry, but 689 # typically uses the port number set in the Waterfall 'status' entry, but
680 # with an externally-visible host name which the buildbot cannot figure out 690 # with an externally-visible host name which the buildbot cannot figure out
681 # without some help. 691 # without some help.
682 692
683 c['buildbotURL'] = ActiveMaster.buildbot_url 693 c['buildbotURL'] = ActiveMaster.buildbot_url
OLDNEW
« no previous file with comments | « masters/master.client.dart.packages/master.cfg ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698