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

Side by Side Diff: masters/master.chromiumos/master.cfg

Issue 2094613002: Don't require a .dbconfig file on any masters. (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
OLDNEW
1 # -*- python -*- 1 # -*- python -*-
2 # ex: set syntax=python: 2 # ex: set syntax=python:
3 3
4 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 4 # Copyright (c) 2012 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 # This is the buildmaster config file for the 'chromeos' bot. It must 8 # This is the buildmaster config file for the 'chromeos' bot. It must
9 # be installed as 'master.cfg' in your buildmaster's base directory 9 # be installed as 'master.cfg' in your buildmaster's base directory
10 # (although the filename can be changed with the --basedir option to 10 # (although the filename can be changed with the --basedir option to
(...skipping 28 matching lines...) Expand all
39 from master.cros import builder_config 39 from master.cros import builder_config
40 from common.cros_chromite import ChromiteTarget 40 from common.cros_chromite import ChromiteTarget
41 41
42 ActiveMaster = master_site_config.ChromiumOS 42 ActiveMaster = master_site_config.ChromiumOS
43 DRY_RUN = not ActiveMaster.is_production_host 43 DRY_RUN = not ActiveMaster.is_production_host
44 44
45 # This is the dictionary that the buildmaster pays attention to. We also use 45 # This is the dictionary that the buildmaster pays attention to. We also use
46 # a shorter alias to save typing. 46 # a shorter alias to save typing.
47 c = BuildmasterConfig = {} 47 c = BuildmasterConfig = {}
48 48
49 config.DatabaseSetup(c, require_dbconfig=ActiveMaster.is_production_host) 49 config.DatabaseSetup(c)
50 50
51 51
52 # ---------------------------------------------------------------------------- 52 # ----------------------------------------------------------------------------
53 # BUILDER DEFINITIONS 53 # BUILDER DEFINITIONS
54 54
55 # Annotator factory object. 55 # Annotator factory object.
56 factory_obj = annotator_factory.AnnotatorFactory( 56 factory_obj = annotator_factory.AnnotatorFactory(
57 active_master=ActiveMaster) 57 active_master=ActiveMaster)
58 58
59 # The 'builders' list defines the Builders. Each one is configured with a 59 # The 'builders' list defines the Builders. Each one is configured with a
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 # gets generated. 279 # gets generated.
280 chromiumos_board_config.slave_allocator.SaveState() 280 chromiumos_board_config.slave_allocator.SaveState()
281 slave_map = chromiumos_board_config.slave_allocator.GetSlaveMap() 281 slave_map = chromiumos_board_config.slave_allocator.GetSlaveMap()
282 if slave_map.unallocated: 282 if slave_map.unallocated:
283 log.msg("The following slaves were not allocated: %s" % ( 283 log.msg("The following slaves were not allocated: %s" % (
284 sorted(slave_map.unallocated),)) 284 sorted(slave_map.unallocated),))
285 285
286 # Disable 'auto_reboot' on slaves for local testing. 286 # Disable 'auto_reboot' on slaves for local testing.
287 for builder in c['builders']: 287 for builder in c['builders']:
288 builder['auto_reboot'] = False 288 builder['auto_reboot'] = False
OLDNEW
« no previous file with comments | « masters/master.chromiumos.tryserver/master.cfg ('k') | masters/master.client.dart.fyi/master.cfg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698