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

Side by Side Diff: masters/master.chromiumos/chromiumos_board_config.py

Issue 1068263003: CrOS: Update public waterfall to auto-configure. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Added experimental/documentation annotations to web UI. Created 5 years, 8 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
« no previous file with comments | « no previous file | masters/master.chromiumos/config.current.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright (c) 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 import collections
6 import logging
7 import sys
8
9 from common.slave_alloc import SlaveAllocator
10 from common.cros_chromite import Get, ChromiteTarget
11 from master.cros import builder_config
12
13
14 # Declare a slave allocator. We do this here so we can access the slaves
15 # configured by 'slaves.cfg' in 'master.cfg'.
16 slave_allocator = SlaveAllocator()
17
18
19 # Get the pinned Chromite configuration.
20 cbb_config = Get(allow_fetch=True)
21
22
23 # Select any board that is configured to build on this waterfall.
24 def _GetWaterfallTargets():
25 result = collections.OrderedDict()
26 for config in cbb_config.itervalues():
27 if config.get('active_waterfall') != 'chromiumos':
28 continue
29 result[config.name] = config
30 return result
31 waterfall_targets = _GetWaterfallTargets()
32
33
34 # Load the builder configs.
35 builder_configs = builder_config.GetBuilderConfigs(waterfall_targets)
36 builder_name_map = dict((c.builder_name, c)
37 for c in builder_configs.itervalues())
OLDNEW
« no previous file with comments | « no previous file | masters/master.chromiumos/config.current.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698