Alex Miller | 511a9e3 | 2012-07-03 09:16:47 -0700 | [diff] [blame] | 1 | # 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 | |
| 9 | class Labels: |
Richard Barnette | 673573b | 2016-12-12 09:46:39 -0800 | [diff] [blame^] | 10 | """ |
| 11 | Constants related to label names. |
Alex Miller | 511a9e3 | 2012-07-03 09:16:47 -0700 | [diff] [blame] | 12 | |
| 13 | @var BOARD_PREFIX The string with which board labels are prefixed. |
Richard Barnette | 673573b | 2016-12-12 09:46:39 -0800 | [diff] [blame^] | 14 | @var POOL_PREFIX The stright with which pool labels are prefixed. |
| 15 | """ |
Alex Miller | 511a9e3 | 2012-07-03 09:16:47 -0700 | [diff] [blame] | 16 | BOARD_PREFIX = 'board:' |
| 17 | POOL_PREFIX = 'pool:' |
Dan Shi | a25e0d4 | 2015-07-23 15:00:04 -0700 | [diff] [blame] | 18 | |
| 19 | |
Richard Barnette | 673573b | 2016-12-12 09:46:39 -0800 | [diff] [blame^] | 20 | class 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 Shi | a25e0d4 | 2015-07-23 15:00:04 -0700 | [diff] [blame] | 47 | class Builds: |
Richard Barnette | 673573b | 2016-12-12 09:46:39 -0800 | [diff] [blame^] | 48 | """ |
| 49 | Constants related to build type. |
Dan Shi | a25e0d4 | 2015-07-23 15:00:04 -0700 | [diff] [blame] | 50 | |
| 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 Shi | b49bb8b | 2016-03-01 15:29:27 -0800 | [diff] [blame] | 56 | FIRMWARE_RO = 'firmware_ro' |
| 57 | CROS = 'cros' |