blob: 51a31c55933caf3a6a87abaeed180cf085add123 [file] [log] [blame]
Alex Miller511a9e32012-07-03 09:16:47 -07001# Copyright (c) 2012 The Chromium OS 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
6"""Module containing the constants to be reused throughout suite_scheduler."""
7
8
9class Labels:
Richard Barnette673573b2016-12-12 09:46:39 -080010 """
11 Constants related to label names.
Alex Miller511a9e32012-07-03 09:16:47 -070012
13 @var BOARD_PREFIX The string with which board labels are prefixed.
Richard Barnette673573b2016-12-12 09:46:39 -080014 @var POOL_PREFIX The stright with which pool labels are prefixed.
15 """
Alex Miller511a9e32012-07-03 09:16:47 -070016 BOARD_PREFIX = 'board:'
17 POOL_PREFIX = 'pool:'
Dan Shia25e0d42015-07-23 15:00:04 -070018
19
Richard Barnette673573b2016-12-12 09:46:39 -080020class Pools:
21 """
22 Well-known pool names used in automated inventory management.
23
24 These are general purpose pools of DUTs that are considered
25 identical for purposes of testing. That is, a device in one of
26 these pools can be shifted to another pool at will for purposes
27 of supplying test demand.
28
29 Devices in these pools are not allowed to have special-purpose
30 attachments, or to be part of in any kind of custom fixture.
31 Devices in these pools are also required to reside in areas
32 managed by the Platforms team (i.e. at the time of this writing,
33 only in "Atlantis" or "Destiny").
34
35 CRITICAL_POOLS - Pools that must be kept fully supplied in order
36 to guarantee timely completion of tests from builders.
37 SPARE_POOL - A low priority pool that is allowed to provide
38 spares to replace broken devices in the critical pools.
39 MANAGED_POOLS - The set of all the general purpose pools
40 monitored for health.
41 """
42 CRITICAL_POOLS = ['bvt', 'cq', 'continuous', 'cts']
43 SPARE_POOL = 'suites'
44 MANAGED_POOLS = CRITICAL_POOLS + [SPARE_POOL]
45
46
Dan Shia25e0d42015-07-23 15:00:04 -070047class Builds:
Richard Barnette673573b2016-12-12 09:46:39 -080048 """
49 Constants related to build type.
Dan Shia25e0d42015-07-23 15:00:04 -070050
51 @var FIRMWARE_RW: The string indicating the given build is used to update
52 RW firmware.
53 @var CROS: The string indicating the given build is used to update ChromeOS.
54 """
55 FIRMWARE_RW = 'firmware_rw'
Dan Shib49bb8b2016-03-01 15:29:27 -080056 FIRMWARE_RO = 'firmware_ro'
57 CROS = 'cros'