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

Side by Side Diff: scripts/master/master_gen.py

Issue 860383008: Made annotated_run look up recipe from builders.pyl masters. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Master changes to support this Created 5 years, 10 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 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import ast 5 import ast
6 import os 6 import os
7 7
8 from buildbot.schedulers.basic import SingleBranchScheduler 8 from buildbot.schedulers.basic import SingleBranchScheduler
9 from buildbot.status.mail import MailNotifier 9 from buildbot.status.mail import MailNotifier
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 c, 57 c,
58 require_dbconfig=active_master_cls.is_production_host) 58 require_dbconfig=active_master_cls.is_production_host)
59 59
60 change_source = gitiles_poller.GitilesPoller(builders['git_repo_url']) 60 change_source = gitiles_poller.GitilesPoller(builders['git_repo_url'])
61 c['change_source'] = [change_source] 61 c['change_source'] = [change_source]
62 62
63 c['builders'] = [] 63 c['builders'] = []
64 for builder_name, builder_data in builders['builders'].items(): 64 for builder_name, builder_data in builders['builders'].items():
65 c['builders'].append({ 65 c['builders'].append({
66 'name': builder_name, 66 'name': builder_name,
67 'factory': m_annotator.BaseFactory(builder_data['recipe']), 67 # We pass recipe=None so annotated_run finds it at build time.
68 'factory': m_annotator.BaseFactory(recipe=None),
iannucci 2015/02/03 23:23:18 nuke comment, remove parameter
68 'slavebuilddir': builder_data['slavebuilddir'], 69 'slavebuilddir': builder_data['slavebuilddir'],
69 'slavenames': chromium_utils.GetSlaveNamesForBuilder(builders, 70 'slavenames': chromium_utils.GetSlaveNamesForBuilder(builders,
70 builder_name), 71 builder_name),
71 }) 72 })
72 73
73 c['schedulers'] = [ 74 c['schedulers'] = [
74 SingleBranchScheduler(name='source', 75 SingleBranchScheduler(name='source',
75 branch='master', 76 branch='master',
76 treeStableTimer=60, 77 treeStableTimer=60,
77 builderNames=[b['name'] for b in c['builders']]) 78 builderNames=[b['name'] for b in c['builders']])
(...skipping 20 matching lines...) Expand all
98 templates=builders['templates'], 99 templates=builders['templates'],
99 tagComparator=change_source.comparator, 100 tagComparator=change_source.comparator,
100 enable_http_status_push=active_master_cls.is_production_host) 101 enable_http_status_push=active_master_cls.is_production_host)
101 102
102 # TODO: AutoSetupMaster's settings for the following are too low to be 103 # TODO: AutoSetupMaster's settings for the following are too low to be
103 # useful for most projets. We should fix that. 104 # useful for most projets. We should fix that.
104 c['buildHorizon'] = 3000 105 c['buildHorizon'] = 3000
105 c['logHorizon'] = 3000 106 c['logHorizon'] = 3000
106 # Must be at least 2x the number of slaves. 107 # Must be at least 2x the number of slaves.
107 c['eventHorizon'] = 200 108 c['eventHorizon'] = 200
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698