# Copyright 2017 The ChromiumOS Authors | |
# Use of this source code is governed by a BSD-style license that can be | |
# found in the LICENSE file. | |
"""Classes to manage build requests.""" | |
import collections | |
REASON_IMPORTANT_CQ_SLAVE = "important_cq_slave" | |
REASON_EXPERIMENTAL_CQ_SLAVE = "experimental_cq_slave" | |
BUILD_REQUEST_COLUMNS = ( | |
"id", | |
"build_id", | |
"request_build_config", | |
"request_build_args", | |
"request_buildbucket_id", | |
"request_reason", | |
"timestamp", | |
) | |
# A namedtuple representing a BuildRequest record as recorded in cidb. | |
BuildRequest = collections.namedtuple("BuildRequest", BUILD_REQUEST_COLUMNS) |