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

Side by Side Diff: masters/master.client.dart.packages/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.fyi/master.cfg ('k') | masters/master.client.dart/master.cfg » ('j') | 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 2014 The Chromium Authors. All rights reserved. 4 # Copyright 2014 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 8
9 from buildbot.scheduler import Dependent 9 from buildbot.scheduler import Dependent
10 from buildbot.scheduler import Scheduler 10 from buildbot.scheduler import Scheduler
11 from buildbot.scheduler import Periodic 11 from buildbot.scheduler import Periodic
12 from buildbot.schedulers import triggerable 12 from buildbot.schedulers import triggerable
13 from buildbot.schedulers.filter import ChangeFilter 13 from buildbot.schedulers.filter import ChangeFilter
14 14
15 from common import chromium_utils 15 from common import chromium_utils
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 gclient_factory, annotator_factory 21 from master.factory import gclient_factory, annotator_factory
21 from master.factory.dart import dart_factory 22 from master.factory.dart import dart_factory
22 from master.factory.dart import pub_poller 23 from master.factory.dart import pub_poller
23 from master.factory.dart.dart_factory import linux_env, windows_env 24 from master.factory.dart.dart_factory import linux_env, windows_env
24 from master.factory.dart.dart_factory import linux_clang_env 25 from master.factory.dart.dart_factory import linux_clang_env
25 from master.factory.dart.channels import CHANNELS 26 from master.factory.dart.channels import CHANNELS
26 from twisted.python import log 27 from twisted.python import log
27 28
28 from packages import PACKAGES, GITHUB_TESTING_PACKAGES, PUBLISHED_PACKAGE_NAMES 29 from packages import PACKAGES, GITHUB_TESTING_PACKAGES, PUBLISHED_PACKAGE_NAMES
29 30
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 c['prioritizeBuilders'] = utils.prioritize_builders 146 c['prioritizeBuilders'] = utils.prioritize_builders
146 147
147 ####### STATUS TARGETS 148 ####### STATUS TARGETS
148 149
149 # 'status' is a list of Status Targets. The results of each build will be 150 # 'status' is a list of Status Targets. The results of each build will be
150 # pushed to these targets. buildbot/status/*.py has a variety to choose from, 151 # pushed to these targets. buildbot/status/*.py has a variety to choose from,
151 # including web pages, email senders, and IRC bots. 152 # including web pages, email senders, and IRC bots.
152 153
153 c['status'] = [status_logger.StatusEventLogger()] 154 c['status'] = [status_logger.StatusEventLogger()]
154 155
156 # Add in the pubsub pusher, which pushes all status updates to a pubsub
157 # topic. This will not run unless is_production_host is set to True.
158 # This will fail on a production host if it cannot find the service
159 # account file.
160 pubsub_pusher = pubsub_json_status_push.StatusPush.CreateStatusPush(
161 activeMaster=ActiveMaster)
162 if pubsub_pusher:
163 c['status'].append(pubsub_pusher)
164
155 if WEB_STATUS: 165 if WEB_STATUS:
156 for status in utils.get_web_statuses(order_console_by_time=True, 166 for status in utils.get_web_statuses(order_console_by_time=True,
157 extra_templates=['templates']): 167 extra_templates=['templates']):
158 c['status'].append(status) 168 c['status'].append(status)
159 169
160 if MAIL_NOTIFIER: 170 if MAIL_NOTIFIER:
161 # We have people that are interested in a specific subset of the builders 171 # We have people that are interested in a specific subset of the builders
162 # and want to be notified whenever they break. 172 # and want to be notified whenever they break.
163 mail_notifiers = [ 173 mail_notifiers = [
164 { 174 {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 c['projectName'] = ActiveMaster.project_name 208 c['projectName'] = ActiveMaster.project_name
199 c['projectURL'] = config.Master.project_url 209 c['projectURL'] = config.Master.project_url
200 210
201 # the 'buildbotURL' string should point to the location where the buildbot's 211 # the 'buildbotURL' string should point to the location where the buildbot's
202 # internal web server (usually the html.Waterfall page) is visible. This 212 # internal web server (usually the html.Waterfall page) is visible. This
203 # typically uses the port number set in the Waterfall 'status' entry, but 213 # typically uses the port number set in the Waterfall 'status' entry, but
204 # with an externally-visible host name which the buildbot cannot figure out 214 # with an externally-visible host name which the buildbot cannot figure out
205 # without some help. 215 # without some help.
206 216
207 c['buildbotURL'] = ActiveMaster.buildbot_url 217 c['buildbotURL'] = ActiveMaster.buildbot_url
OLDNEW
« no previous file with comments | « masters/master.client.dart.fyi/master.cfg ('k') | masters/master.client.dart/master.cfg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698