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

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

Issue 1068263003: CrOS: Update public waterfall to auto-configure. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: 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
OLDNEW
1 # -*- python -*- 1 # Copyright (c) 2015 The Chromium Authors. All rights reserved.
2 # ex: set syntax=python:
3
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 2 # Use of this source code is governed by a BSD-style license that can be
6 # found in the LICENSE file. 3 # found in the LICENSE file.
7 4
8 builder_hostname_map = { 5 from chromiumos_board_config import *
smut 2015/04/10 21:17:17 Why not just import chromiumos_board_config, and t
dnj 2015/04/10 21:42:45 Mostly because "chromiumos_board_config.builder_co
9 'amd64-generic ASAN': ['build84-m2'],
10 'amd64-generic paladin': ['build141-m2'],
11 'amd64-generic_freon paladin': ['build182-m2'],
12 'amd64-generic full': ['build90-m2'],
13 'amd64-generic incremental': ['build86-m2'],
14 'arm-generic paladin': ['build263-m2'],
15 'arm-generic full': ['build92-m2'],
16 'daisy incremental': ['build87-m2'],
17 'daisy full': ['build91-m2'],
18 'gizmo paladin': ['build118-m2'],
19 'mipsel-o32-generic paladin': ['build112-m2'],
20 'mipsel-o32-generic full': ['build93-m2'],
21 'panther_embedded-minimal paladin': ['build203-m2'],
22 'x86-generic ASAN': ['build94-m2'],
23 'x86-generic paladin': ['build174-m2'],
24 'x86-generic incremental': ['build85-m2'],
25 'x86-generic full': ['build89-m2'],
26 'chromiumos sdk': ['build162-m2'], # Should stay on a faster machine
27 'refresh packages (chromium:412795)': ['build94-m2'],
28 }
29 6
30 hostname_builder_map = {} 7 from common.cros_chromite import SlaveType
31 for builder, hostnames in builder_hostname_map.iteritems(): 8 from twisted.python import log
32 for hostname in hostnames: 9
33 hostname_builder_map.setdefault(hostname, []).append(builder) 10 # Use the SlaveAlloctor declared in 'board_config'.
11 sa = slave_allocator
12 sa.LoadState(enforce=False)
13
14 # Baremetal slaves (e.g., build123-m2)
15 sa.AddPool(SlaveType.BAREMETAL, *('build%s-m2' % (number,) for number in (
16 84, 85, 86, 87, 89, 90, 91, 92, 93, 94, 94, 112, 118, 141, 162, 174, 182,
17 203, 263,
18 )))
19
20 for board_config in builder_configs.itervalues():
21 name = board_config.config.name
22 sa.Join(
23 name,
24 sa.Alloc(
25 'builder',
26 pools=[SlaveType.BAREMETAL],
27 exclusive=False,
28 subtype=name))
29
30 def GenSlave(hostname, config_names):
31 return {
32 'master': 'ChromiumOS',
33 'builder': [builder_configs[c].builder_name
34 for c in config_names],
35 'hostname': str(hostname),
36 'os': 'linux',
37 'version': 'precise',
38 }
34 39
35 slaves = [] 40 slaves = []
36 for hostname, builders in hostname_builder_map.iteritems(): 41 slave_map = sa.GetSlaveMap()
37 slaves.append({'master': 'ChromiumOS', 42 for hostname, entry in slave_map.entries.iteritems():
38 'builder': builders, 43 slaves.append(GenSlave(hostname, entry.keys))
39 'hostname': hostname,
40 'os': 'linux',
41 'version': 'precise'})
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698