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

Side by Side Diff: masters/master.tryserver.chromium.perf/master.cfg

Issue 2165623002: tryserver.chromium.perf: convert chromium_trybot builders to remote_run (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 4 years, 5 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 | « no previous file | 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 # Copyright 2014 The Chromium Authors. All rights reserved. 3 # Copyright 2014 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 # READ THIS: 7 # READ THIS:
8 # See http://dev.chromium.org/developers/testing/chromium-build-infrastructure 8 # See http://dev.chromium.org/developers/testing/chromium-build-infrastructure
9 9
10 import socket 10 import socket
11 11
12 # These modules come from scripts, which must be in the PYTHONPATH. 12 # These modules come from scripts, which must be in the PYTHONPATH.
13 from master import master_config 13 from master import master_config
14 from master import master_utils 14 from master import master_utils
15 from master import slaves_list 15 from master import slaves_list
16 from master.builders_pools import BuildersPools 16 from master.builders_pools import BuildersPools
17 from master.factory import annotator_factory 17 from master.factory import annotator_factory
18 from master.factory import remote_run_factory
18 from master.try_job_http import TryJobHTTP 19 from master.try_job_http import TryJobHTTP
19 from master.try_job_svn import TryJobSubversion 20 from master.try_job_svn import TryJobSubversion
20 21
21 import config 22 import config
22 import master_site_config 23 import master_site_config
23 24
24 ActiveMaster = master_site_config.ChromiumPerfTryServer 25 ActiveMaster = master_site_config.ChromiumPerfTryServer
25 26
27 def m_remote_run(recipe, factory_properties=None, **kwargs):
28 if not factory_properties:
tandrii(chromium) 2016/07/19 12:44:32 why do you need this and below condition if it's n
Paweł Hajdan Jr. 2016/07/19 12:49:30 It's reasonably generic and uniform with e.g. chro
tandrii(chromium) 2016/07/19 12:58:29 fair enough.
29 factory_properties = {}
30 if not factory_properties.get('path_config'):
31 factory_properties['path_config'] = 'kitchen'
32 return remote_run_factory.RemoteRunFactory(
33 active_master=ActiveMaster,
34 repository='https://chromium.googlesource.com/chromium/tools/build.git',
35 recipe=recipe,
36 factory_properties=factory_properties,
37 **kwargs)
38
26 39
27 MAIL_NOTIFIER = ActiveMaster.is_production_host 40 MAIL_NOTIFIER = ActiveMaster.is_production_host
28 LISTEN_TO_SVN = ActiveMaster.svn_url and ActiveMaster.is_production_host 41 LISTEN_TO_SVN = ActiveMaster.svn_url and ActiveMaster.is_production_host
29 42
30 # This is the dictionary that the buildmaster pays attention to. We also use 43 # This is the dictionary that the buildmaster pays attention to. We also use
31 # a shorter alias to save typing. 44 # a shorter alias to save typing.
32 c = BuildmasterConfig = {} 45 c = BuildmasterConfig = {}
33 46
34 config.DatabaseSetup(c) 47 config.DatabaseSetup(c)
35 48
36 c['change_source'] = [] 49 c['change_source'] = []
37 50
38 # Avoid merging requests. 51 # Avoid merging requests.
39 c['mergeRequests'] = False 52 c['mergeRequests'] = False
40 53
41 c['builders'] = [] 54 c['builders'] = []
42 55
43 _category_index = enumerate( 56 _category_index = enumerate(
44 ('builders', 'android', 'webview', 'windows', 'mac', 'linux', 'cq', 'fyi')) 57 ('builders', 'android', 'webview', 'windows', 'mac', 'linux', 'cq', 'fyi'))
45 58
46 _category_index = {category: index + 1 for index, category in _category_index} 59 _category_index = {category: index + 1 for index, category in _category_index}
47 def _CategoryIndex(category): 60 def _CategoryIndex(category):
48 return _category_index[category] 61 return _category_index[category]
49 62
50 def _AddBisectBuilder(name, platform, category, upload_dir, timeout=2400): 63 def _AddBisectBuilder(name, platform, category, upload_dir, timeout=2400):
51 if platform == 'android': 64 if platform == 'android':
52 recipe = 'android/builder' 65 recipe = 'android/builder'
66 factory = annotator_factory.AnnotatorFactory(ActiveMaster).BaseFactory
53 else: 67 else:
54 recipe = 'chromium' 68 recipe = 'chromium'
69 factory = m_remote_run
55 properties = { 70 properties = {
56 'append_deps_patch_sha': True, 71 'append_deps_patch_sha': True,
57 'build_url': master_config.GetGSUtilUrl('chrome-perf', upload_dir)} 72 'build_url': master_config.GetGSUtilUrl('chrome-perf', upload_dir)}
tandrii(chromium) 2016/07/19 12:44:32 because of this... (see other comment)
58 c['builders'].append({ 73 c['builders'].append({
59 'name': '%s_bisect_builder' % name, 74 'name': '%s_bisect_builder' % name,
60 'factory': annotator_factory.AnnotatorFactory(ActiveMaster).BaseFactory( 75 'factory': factory(
61 factory_properties=properties, 76 factory_properties=properties,
62 recipe=recipe, 77 recipe=recipe,
63 timeout=timeout), 78 timeout=timeout),
64 'category': '%d%s|%s' % ( 79 'category': '%d%s|%s' % (
65 _CategoryIndex('builders'), category, platform) 80 _CategoryIndex('builders'), category, platform)
66 }) 81 })
67 82
68 def _AddBisectBot(name, platform, category, timeout=3600, skip_suffix=False): 83 def _AddBisectBot(name, platform, category, timeout=3600, skip_suffix=False):
69 if platform == 'android': 84 if platform == 'android':
70 recipe = 'bisection/android_bisect' 85 recipe = 'bisection/android_bisect'
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 # Must be at least 2x the number of slaves. 228 # Must be at least 2x the number of slaves.
214 c['eventHorizon'] = 200 229 c['eventHorizon'] = 200
215 c['logCompressionLimit'] = False 230 c['logCompressionLimit'] = False
216 231
217 # Adjust the buildCaches to be 3x the number of slaves per builder. 232 # Adjust the buildCaches to be 3x the number of slaves per builder.
218 c['autoBuildCacheRatio'] = 3 233 c['autoBuildCacheRatio'] = 3
219 234
220 c['projectURL'] = 'http://dev.chromium.org/developers/testing/try-server-usage' 235 c['projectURL'] = 'http://dev.chromium.org/developers/testing/try-server-usage'
221 236
222 # vi: set ts=4 sts=2 sw=2 et: 237 # vi: set ts=4 sts=2 sw=2 et:
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698