Oleg Loskutoff | c19f92b | 2019-10-17 15:44:16 -0700 | [diff] [blame] | 1 | # Copyright (c) 2014 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. |
Bindu Mahadev | 472a558 | 2016-05-20 09:59:07 -0700 | [diff] [blame] | 4 | |
Xixuan Wu | 93e646c | 2017-12-07 18:36:10 -0800 | [diff] [blame] | 5 | |
| 6 | class Labels: |
| 7 | """ |
| 8 | Constants related to label names. |
| 9 | |
| 10 | @var BOARD_PREFIX The string with which board labels are prefixed. |
| 11 | @var MODEL_PREFIX The string with which model labels are prefixed. |
| 12 | @var POOL_PREFIX The stright with which pool labels are prefixed. |
| 13 | """ |
| 14 | BOARD_PREFIX = 'board:' |
| 15 | MODEL_PREFIX = 'model:' |
| 16 | POOL_PREFIX = 'pool:' |
| 17 | |
| 18 | |
| 19 | class Pools: |
| 20 | """ |
| 21 | Well-known pool names used in automated inventory management. |
| 22 | |
| 23 | These are general purpose pools of DUTs that are considered |
| 24 | identical for purposes of testing. That is, a device in one of |
| 25 | these pools can be shifted to another pool at will for purposes |
| 26 | of supplying test demand. |
| 27 | |
| 28 | Devices in these pools are not allowed to have special-purpose |
| 29 | attachments, or to be part of in any kind of custom fixture. |
| 30 | Devices in these pools are also required to reside in areas |
| 31 | managed by the Platforms team (i.e. at the time of this writing, |
| 32 | only in "Atlantis" or "Destiny"). |
| 33 | |
| 34 | CRITICAL_POOLS - Pools that must be kept fully supplied in order |
| 35 | to guarantee timely completion of tests from builders. |
| 36 | SPARE_POOL - A low priority pool that is allowed to provide |
| 37 | spares to replace broken devices in the critical pools. |
| 38 | MANAGED_POOLS - The set of all the general purpose pools |
| 39 | monitored for health. |
| 40 | """ |
| 41 | CRITICAL_POOLS = ['bvt', 'cq', 'continuous', 'cts', 'arc-presubmit'] |
| 42 | SPARE_POOL = 'suites' |
| 43 | MANAGED_POOLS = CRITICAL_POOLS + [SPARE_POOL] |
| 44 | |
| 45 | |
| 46 | class Builds: |
| 47 | """ |
| 48 | Constants related to build type. |
| 49 | |
| 50 | @var FIRMWARE_RW: The string indicating the given build is used to update |
| 51 | RW firmware. |
| 52 | @var CROS: The string indicating the given build is used to update ChromeOS. |
| 53 | """ |
| 54 | FIRMWARE_RW = 'firmware_rw' |
| 55 | FIRMWARE_RO = 'firmware_ro' |
| 56 | CROS = 'cros' |
Oleg Loskutoff | c19f92b | 2019-10-17 15:44:16 -0700 | [diff] [blame] | 57 | |