• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
9class Labels:
10    """
11    Constants related to label names.
12
13    @var BOARD_PREFIX The string with which board labels are prefixed.
14    @var POOL_PREFIX The stright with which pool labels are prefixed.
15    """
16    BOARD_PREFIX = 'board:'
17    POOL_PREFIX = 'pool:'
18
19
20class 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', 'arc-presubmit']
43    SPARE_POOL = 'suites'
44    MANAGED_POOLS = CRITICAL_POOLS + [SPARE_POOL]
45
46
47class Builds:
48    """
49    Constants related to build type.
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'
56    FIRMWARE_RO = 'firmware_ro'
57    CROS = 'cros'
58