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

Unified 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: Updated from comments. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | masters/master.chromiumos/config.current.txt » ('j') | masters/master.chromiumos/master.cfg » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: masters/master.chromiumos/chromiumos_board_config.py
diff --git a/masters/master.chromiumos/chromiumos_board_config.py b/masters/master.chromiumos/chromiumos_board_config.py
new file mode 100644
index 0000000000000000000000000000000000000000..289f9c9d798efe41e4f93300c04f2bce6538f546
--- /dev/null
+++ b/masters/master.chromiumos/chromiumos_board_config.py
@@ -0,0 +1,37 @@
+# Copyright (c) 2015 The Chromium Authors. All rights reserved.
ghost stip (do not use) 2015/04/10 22:47:03 reviewer note: this file is used by the master to
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import collections
+import logging
+import sys
+
+from common.slave_alloc import SlaveAllocator
+from common.cros_chromite import Get, ChromiteTarget
+from master.cros import builder_config
+
+
+# Declare a slave allocator. We do this here so we can access the slaves
+# configured by 'slaves.cfg' in 'master.cfg'.
+slave_allocator = SlaveAllocator()
+
+
+# Get the pinned Chromite configuration.
+cbb_config = Get(allow_fetch=True)
+
+
+# Select any board that is configured to build on this waterfall.
+def _GetWaterfallTargets():
+ result = collections.OrderedDict()
+ for config in cbb_config.itervalues():
+ if config.get('active_waterfall') != 'chromiumos':
+ continue
+ result[config.name] = config
+ return result
+waterfall_targets = _GetWaterfallTargets()
+
+
+# Load the builder configs.
+builder_configs = builder_config.GetBuilderConfigs(waterfall_targets)
+builder_name_map = dict((c.builder_name, c)
+ for c in builder_configs.itervalues())
« no previous file with comments | « no previous file | masters/master.chromiumos/config.current.txt » ('j') | masters/master.chromiumos/master.cfg » ('J')

Powered by Google App Engine
This is Rietveld 408576698