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

Side by Side Diff: masters/master.chromium.infra.cron/master.cfg

Issue 1880343003: Added git-hash-metrics builder and recipe (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 4 years, 8 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 | Annotate | Revision Log
OLDNEW
1 # -*- python -*- 1 # -*- python -*-
2 # ex: set syntax=python: 2 # ex: set syntax=python:
3 3
4 # Copyright 2015 The Chromium Authors. All rights reserved. 4 # Copyright 2015 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 config 8 import config
9 import master_site_config 9 import master_site_config
10 10
(...skipping 21 matching lines...) Expand all
32 return False 32 return False
33 return req1.canBeMergedWith(req2) 33 return req1.canBeMergedWith(req2)
34 c['mergeRequests'] = mergeRequests 34 c['mergeRequests'] = mergeRequests
35 35
36 f_annotations = annotator_factory.AnnotatorFactory(ActiveMaster) 36 f_annotations = annotator_factory.AnnotatorFactory(ActiveMaster)
37 37
38 ####### DATABASE 38 ####### DATABASE
39 39
40 config.DatabaseSetup(c, require_dbconfig=ActiveMaster.is_production_host) 40 config.DatabaseSetup(c, require_dbconfig=ActiveMaster.is_production_host)
41 41
42
43 ####### CHANGE SOURCES
44
45 c['change_source'].extend([
46 gitiles_poller.GitilesPoller(
47 repo_url='https://chromium.googlesource.com/infra/infra',
48 project='infra',
49 branches=['master'],
50 pollInterval=10,
51 revlinktmpl=INFRA_REPO_URL+'/+/%s'),
52 ])
53
42 ####### BUILDERS 54 ####### BUILDERS
43 55
44 c['builders'].extend([ 56 c['builders'].extend([
45 { 57 {
46 'name': 'gnumbd', 58 'name': 'gnumbd',
47 'factory': f_annotations.BaseFactory( 59 'factory': f_annotations.BaseFactory(
48 'infra/gnumbd', 60 'infra/gnumbd',
49 {'target_repo': 'https://chromium.googlesource.com/chromium/src'}), 61 {'target_repo': 'https://chromium.googlesource.com/chromium/src'}),
50 'auto_reboot' : False, 62 'auto_reboot' : False,
51 'category': '1cron', 63 'category': '1cron',
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 { 158 {
147 'name': 'Chromium Linux Codesearch', 159 'name': 'Chromium Linux Codesearch',
148 'factory': f_annotations.BaseFactory(recipe='chromium_codesearch'), 160 'factory': f_annotations.BaseFactory(recipe='chromium_codesearch'),
149 'category': '2codesearch', 161 'category': '2codesearch',
150 }, 162 },
151 { 163 {
152 'name': 'ChromiumOS Codesearch', 164 'name': 'ChromiumOS Codesearch',
153 'factory': f_annotations.BaseFactory(recipe='chromium_codesearch'), 165 'factory': f_annotations.BaseFactory(recipe='chromium_codesearch'),
154 'category': '2codesearch', 166 'category': '2codesearch',
155 }, 167 },
168 {
169 'name': 'git-hash-metrics',
170 'factory': f_annotations.BaseFactory(recipe='git_hash_metric'),
171 'category': '3monitoring',
172 },
156 ]) 173 ])
157 174
158 ####### SCHEDULERS 175 ####### SCHEDULERS
159 176
160 c['schedulers'].extend([ 177 c['schedulers'].extend([
161 # Period is intentionally small so that if a builder fails fast, it also 178 # Period is intentionally small so that if a builder fails fast, it also
162 # gets restarted fast. 179 # gets restarted fast.
163 Periodic( 180 Periodic(
164 name='infra-runner-scheduler', 181 name='infra-runner-scheduler',
165 periodicBuildTimer=1*60, 182 periodicBuildTimer=1*60,
(...skipping 24 matching lines...) Expand all
190 branch=None, 207 branch=None,
191 builderNames=['publish_tarball'], 208 builderNames=['publish_tarball'],
192 hour=range(0, 24, 3), 209 hour=range(0, 24, 3),
193 ), 210 ),
194 Nightly( 211 Nightly(
195 name='codesearch-scheduler', 212 name='codesearch-scheduler',
196 branch='master', 213 branch='master',
197 hour=range(0, 24, 4), 214 hour=range(0, 24, 4),
198 minute=0, 215 minute=0,
199 builderNames=['Chromium Linux Codesearch', 'ChromiumOS Codesearch']), 216 builderNames=['Chromium Linux Codesearch', 'ChromiumOS Codesearch']),
217
218 # Trigger this builder on any change anywhere.
219 AnyBranchScheduler(
220 name='git-hash-metrics',
221 builderNames=['git-hash-metrics']),
200 ]) 222 ])
201 223
202 ####### BUILDSLAVES 224 ####### BUILDSLAVES
203 225
204 # Associate the slaves to the builders. The configuration is in slaves.cfg. 226 # Associate the slaves to the builders. The configuration is in slaves.cfg.
205 slaves = slaves_list.SlavesList('slaves.cfg', 'InfraCron') 227 slaves = slaves_list.SlavesList('slaves.cfg', 'InfraCron')
206 for builder in c['builders']: 228 for builder in c['builders']:
207 builder['slavenames'] = slaves.GetSlavesName(builder=builder['name']) 229 builder['slavenames'] = slaves.GetSlavesName(builder=builder['name'])
208 230
209 # The 'slaves' list defines the set of allowable buildslaves. List all the 231 # The 'slaves' list defines the set of allowable buildslaves. List all the
(...skipping 25 matching lines...) Expand all
235 sendToInterestedUsers=False, 257 sendToInterestedUsers=False,
236 extraRecipients=['blink-infra+alerts@google.com', 258 extraRecipients=['blink-infra+alerts@google.com',
237 'chrome-troopers+alerts@google.com'], 259 'chrome-troopers+alerts@google.com'],
238 ), 260 ),
239 ]) 261 ])
240 262
241 ####### PROJECT IDENTITY 263 ####### PROJECT IDENTITY
242 264
243 c['projectName'] = ActiveMaster.project_name 265 c['projectName'] = ActiveMaster.project_name
244 c['buildbotURL'] = ActiveMaster.buildbot_url 266 c['buildbotURL'] = ActiveMaster.buildbot_url
OLDNEW
« no previous file with comments | « no previous file | masters/master.chromium.infra.cron/slaves.cfg » ('j') | scripts/slave/recipes/infra/git_hash_metric.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698