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

Side by Side Diff: masters/master.tryserver.v8/master.cfg

Issue 2448873003: V8: Use new slave-preference function on tryserver (Closed)
Patch Set: Created 4 years, 1 month 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 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2013 The Chromium Authors. All rights reserved. 2 # Copyright 2013 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import os 6 import os
7 7
8 from common import chromium_utils 8 from common import chromium_utils
9 9
10 from master import master_utils 10 from master import master_utils
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 }, 248 },
249 ]) 249 ])
250 250
251 ####### BUILDSLAVES 251 ####### BUILDSLAVES
252 252
253 slaves = slaves_list.SlavesList('slaves.cfg', 'V8TryServer') 253 slaves = slaves_list.SlavesList('slaves.cfg', 'V8TryServer')
254 for builder in c['builders']: 254 for builder in c['builders']:
255 # Associate the slaves to the builders. The configuration is in slaves.cfg. 255 # Associate the slaves to the builders. The configuration is in slaves.cfg.
256 builder['slavenames'] = slaves.GetSlavesName(builder=builder['name']) 256 builder['slavenames'] = slaves.GetSlavesName(builder=builder['name'])
257 # Sets nextSlave function for slave affinity. 257 # Sets nextSlave function for slave affinity.
258 builder['nextSlave'] = master_utils.PreferredBuilderNextSlaveFunc() 258 builder['nextSlave'] = master_utils.PreferredBuilderNextSlaveFuncNG()
259 259
260 # The 'slaves' list defines the set of allowable buildslaves. List all the 260 # The 'slaves' list defines the set of allowable buildslaves. List all the
261 # slaves registered to a builder. Remove dupes. 261 # slaves registered to a builder. Remove dupes.
262 c['slaves'] = master_utils.AutoSetupSlaves(c['builders'], 262 c['slaves'] = master_utils.AutoSetupSlaves(c['builders'],
263 config.Master.GetBotPassword()) 263 config.Master.GetBotPassword())
264 264
265 # Make sure everything works together. 265 # Make sure everything works together.
266 master_utils.VerifySetup(c, slaves) 266 master_utils.VerifySetup(c, slaves)
267 267
268 ####### STATUS TARGETS 268 ####### STATUS TARGETS
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 c['logHorizon'] = 2000 303 c['logHorizon'] = 2000
304 # Must be at least 2x the number of slaves. 304 # Must be at least 2x the number of slaves.
305 c['eventHorizon'] = 200 305 c['eventHorizon'] = 200
306 # Adjust the buildCaches to be 3x the number of slaves per builder. 306 # Adjust the buildCaches to be 3x the number of slaves per builder.
307 c['autoBuildCacheRatio'] = 3 307 c['autoBuildCacheRatio'] = 3
308 308
309 ####### PROJECT IDENTITY 309 ####### PROJECT IDENTITY
310 310
311 c['projectName'] = ActiveMaster.project_name 311 c['projectName'] = ActiveMaster.project_name
312 c['projectURL'] = config.Master.project_url 312 c['projectURL'] = config.Master.project_url
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