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

Side by Side Diff: masters/master.client.v8.branches/master.cfg

Issue 1325303002: V8 Buildbot: Add auto-tag bot. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 5 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 | Annotate | Revision Log
OLDNEW
1 # -*- python -*- 1 # -*- python -*-
2 # ex: set syntax=python: 2 # ex: set syntax=python:
3 3
4 # Copyright 2013 The Chromium Authors. All rights reserved. 4 # Copyright 2013 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 from buildbot.changes.filter import ChangeFilter 8 from buildbot.changes.filter import ChangeFilter
9 from buildbot.scheduler import Nightly 9 from buildbot.scheduler import Nightly
10 from buildbot.schedulers.basic import AnyBranchScheduler
10 from buildbot.schedulers.basic import SingleBranchScheduler 11 from buildbot.schedulers.basic import SingleBranchScheduler
11 12
12 from common import chromium_utils 13 from common import chromium_utils
13 14
14 from master import gitiles_poller 15 from master import gitiles_poller
15 from master import master_utils 16 from master import master_utils
16 from master import slaves_list 17 from master import slaves_list
17 from master.factory import annotator_factory 18 from master.factory import annotator_factory
18 19
19 import branches_cfg 20 import branches_cfg
(...skipping 22 matching lines...) Expand all
42 ####### DATABASE 43 ####### DATABASE
43 44
44 config.DatabaseSetup(c, require_dbconfig=ActiveMaster.is_production_host) 45 config.DatabaseSetup(c, require_dbconfig=ActiveMaster.is_production_host)
45 46
46 ####### CHANGESOURCES 47 ####### CHANGESOURCES
47 48
48 comparator = gitiles_poller.GitilesRevisionComparator() 49 comparator = gitiles_poller.GitilesRevisionComparator()
49 c['change_source'] = [ 50 c['change_source'] = [
50 gitiles_poller.GitilesPoller( 51 gitiles_poller.GitilesPoller(
51 'https://chromium.googlesource.com/v8/v8', 52 'https://chromium.googlesource.com/v8/v8',
52 branches=[ 53 branches=[re.compile(r'refs/branch\-heads/\d+\.\d+')],
53 'refs/branch-heads/%s' % stable_branch,
54 'refs/branch-heads/%s' % beta_branch,
55 ],
56 pollInterval=10, 54 pollInterval=10,
55 category='release',
57 comparator=comparator, 56 comparator=comparator,
58 ), 57 ),
59 gitiles_poller.GitilesPoller( 58 gitiles_poller.GitilesPoller(
60 'https://chromium.googlesource.com/v8/v8', 59 'https://chromium.googlesource.com/v8/v8',
61 branches=[re.compile(r'refs/heads/\d+\.\d+\.\d+')], 60 branches=[re.compile(r'refs/heads/\d+\.\d+\.\d+')],
62 pollInterval=20, 61 pollInterval=20,
63 category='roll', 62 category='roll',
64 comparator=comparator, 63 comparator=comparator,
65 ) 64 )
66 ] 65 ]
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 'V8 Linux64 - beta branch', 107 'V8 Linux64 - beta branch',
109 'V8 Linux64 - beta branch - debug', 108 'V8 Linux64 - beta branch - debug',
110 'V8 arm - sim - beta branch', 109 'V8 arm - sim - beta branch',
111 'V8 arm - sim - beta branch - debug', 110 'V8 arm - sim - beta branch - debug',
112 'V8 mipsel - sim - beta branch', 111 'V8 mipsel - sim - beta branch',
113 'V8 mips64el - sim - beta branch', 112 'V8 mips64el - sim - beta branch',
114 'V8 ppc - sim - beta branch', 113 'V8 ppc - sim - beta branch',
115 'V8 ppc64 - sim - beta branch'], 114 'V8 ppc64 - sim - beta branch'],
116 ) 115 )
117 116
118 c['schedulers'] = [s_v8_roll, s_v8_stable, s_v8_beta] 117 s_v8_tag = AnyBranchScheduler(
118 name='v8_tag',
119 change_filter=ChangeFilter(category='release'),
120 treeStableTimer=600,
121 builderNames=['Auto-tag'],
122 )
123
124 c['schedulers'] = [s_v8_roll, s_v8_stable, s_v8_beta, s_v8_tag]
119 125
120 builders = [] 126 builders = []
121 127
122 # ---------------------------------------------------------------------------- 128 # ----------------------------------------------------------------------------
123 # FACTORIES 129 # FACTORIES
124 130
125 m_annotator = annotator_factory.AnnotatorFactory() 131 m_annotator = annotator_factory.AnnotatorFactory()
126 132
127 # ---------------------------------------------------------------------------- 133 # ----------------------------------------------------------------------------
128 # BUILDER DEFINITIONS 134 # BUILDER DEFINITIONS
129 135
130 CATEGORY_STABLE = '1Stable|release' 136 CATEGORY_STABLE = '1Stable|release'
131 CATEGORY_STABLE_MIPS = '1Stable|release|mips' 137 CATEGORY_STABLE_MIPS = '1Stable|release|mips'
132 CATEGORY_STABLE_PPC = '1Stable|release|ppc' 138 CATEGORY_STABLE_PPC = '1Stable|release|ppc'
133 CATEGORY_BETA = '2Beta|release' 139 CATEGORY_BETA = '2Beta|release'
134 CATEGORY_BETA_MIPS = '2Beta|release|mips' 140 CATEGORY_BETA_MIPS = '2Beta|release|mips'
135 CATEGORY_BETA_PPC = '2Beta|release|ppc' 141 CATEGORY_BETA_PPC = '2Beta|release|ppc'
136 CATEGORY_ROLL = '3Roll|roll' 142 CATEGORY_ROLL = '3Roll|roll'
143 CATEGORY_TAG = '4Tag|tag'
137 144
138 b_v8_linux_roll = { 145 b_v8_linux_roll = {
139 'name': 'V8 Linux - roll branch', 146 'name': 'V8 Linux - roll branch',
140 'builddir': 'v8-linux-roll', 147 'builddir': 'v8-linux-roll',
141 'factory': m_annotator.BaseFactory('v8'), 148 'factory': m_annotator.BaseFactory('v8'),
142 'category': CATEGORY_ROLL, 149 'category': CATEGORY_ROLL,
143 'auto_reboot' : False, 150 'auto_reboot' : False,
144 } 151 }
145 152
146 b_v8_linux_roll_debug = { 153 b_v8_linux_roll_debug = {
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 } 343 }
337 344
338 b_v8_ppc64_beta = { 345 b_v8_ppc64_beta = {
339 'name': 'V8 ppc64 - sim - beta branch', 346 'name': 'V8 ppc64 - sim - beta branch',
340 'builddir': 'v8-ppc64-beta', 347 'builddir': 'v8-ppc64-beta',
341 'factory': m_annotator.BaseFactory('v8'), 348 'factory': m_annotator.BaseFactory('v8'),
342 'category': CATEGORY_BETA_PPC, 349 'category': CATEGORY_BETA_PPC,
343 'auto_reboot' : False, 350 'auto_reboot' : False,
344 } 351 }
345 352
353 b_v8_auto_tag = {
354 'name': 'Auto-tag',
355 'builddir': 'auto-tag',
356 'factory': m_annotator.BaseFactory('v8/auto_tag'),
357 'category': CATEGORY_TAG,
358 'auto_reboot' : False,
359 }
360
346 c['builders'] = [b_v8_linux_stable, 361 c['builders'] = [b_v8_linux_stable,
347 b_v8_linux_stable_debug, 362 b_v8_linux_stable_debug,
348 b_v8_linux64_stable, 363 b_v8_linux64_stable,
349 b_v8_linux64_stable_debug, 364 b_v8_linux64_stable_debug,
350 b_v8_arm_stable, 365 b_v8_arm_stable,
351 b_v8_arm_stable_debug, 366 b_v8_arm_stable_debug,
352 b_v8_mipsel_stable, 367 b_v8_mipsel_stable,
353 b_v8_mips64el_stable, 368 b_v8_mips64el_stable,
354 b_v8_ppc_stable, 369 b_v8_ppc_stable,
355 b_v8_ppc64_stable, 370 b_v8_ppc64_stable,
356 b_v8_linux_beta, 371 b_v8_linux_beta,
357 b_v8_linux_beta_debug, 372 b_v8_linux_beta_debug,
358 b_v8_linux64_beta, 373 b_v8_linux64_beta,
359 b_v8_linux64_beta_debug, 374 b_v8_linux64_beta_debug,
360 b_v8_arm_beta, 375 b_v8_arm_beta,
361 b_v8_arm_beta_debug, 376 b_v8_arm_beta_debug,
362 b_v8_mipsel_beta, 377 b_v8_mipsel_beta,
363 b_v8_mips64el_beta, 378 b_v8_mips64el_beta,
364 b_v8_ppc_beta, 379 b_v8_ppc_beta,
365 b_v8_ppc64_beta, 380 b_v8_ppc64_beta,
366 b_v8_linux_roll, 381 b_v8_linux_roll,
367 b_v8_linux_roll_debug, 382 b_v8_linux_roll_debug,
368 b_v8_linux64_roll, 383 b_v8_linux64_roll,
369 b_v8_linux64_roll_debug, 384 b_v8_linux64_roll_debug,
370 b_v8_arm_roll, 385 b_v8_arm_roll,
371 b_v8_arm_roll_debug] 386 b_v8_arm_roll_debug,
387 b_v8_auto_tag]
372 388
373 # Associate the slaves to the builders. The configuration is in slaves.cfg. 389 # Associate the slaves to the builders. The configuration is in slaves.cfg.
374 slaves = slaves_list.SlavesList('slaves.cfg', 'V8Branches') 390 slaves = slaves_list.SlavesList('slaves.cfg', 'V8Branches')
375 for builder in c['builders']: 391 for builder in c['builders']:
376 builder['slavenames'] = slaves.GetSlavesName(builder=builder['name']) 392 builder['slavenames'] = slaves.GetSlavesName(builder=builder['name'])
377 393
378 394
379 ####### BUILDSLAVES 395 ####### BUILDSLAVES
380 396
381 # The 'slaves' list defines the set of allowable buildslaves. List all the 397 # The 'slaves' list defines the set of allowable buildslaves. List all the
(...skipping 22 matching lines...) Expand all
404 import mail_notifier_cfg 420 import mail_notifier_cfg
405 mail_notifier_cfg.Update(config, ActiveMaster, c) 421 mail_notifier_cfg.Update(config, ActiveMaster, c)
406 422
407 # Adjust the buildCaches to be 3x the number of slaves per builder. 423 # Adjust the buildCaches to be 3x the number of slaves per builder.
408 c['autoBuildCacheRatio'] = 3 424 c['autoBuildCacheRatio'] = 3
409 425
410 ####### PROJECT IDENTITY 426 ####### PROJECT IDENTITY
411 427
412 c['projectName'] = ActiveMaster.project_name 428 c['projectName'] = ActiveMaster.project_name
413 c['projectURL'] = config.Master.project_url 429 c['projectURL'] = config.Master.project_url
OLDNEW
« no previous file with comments | « no previous file | masters/master.client.v8.branches/slaves.cfg » ('j') | masters/master.client.v8.branches/slaves.cfg » ('J')

Powered by Google App Engine
This is Rietveld 408576698