blob: acf5469951a89a6947b307d2d21084b29627f94c [file] [log] [blame]
# -*- coding: utf-8 -*-
# Copyright 2017 The Chromium OS Authors. All rights reserved.
# 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."""
from __future__ import print_function
import collections
import sys
assert sys.version_info >= (3, 6), 'This module requires Python 3.6+'
REASON_IMPORTANT_CQ_SLAVE = 'important_cq_slave'
REASON_EXPERIMENTAL_CQ_SLAVE = 'experimental_cq_slave'
'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)