ctprequest

package
v0.0.0-...-3c039c4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2025 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package ctprequest will build and return a CTP request to be handled by the CTP BuildBucket builder.

Package ctprequest will build and return a CTP request to be handled by the CTP BuildBucket builder.

Index

Constants

View Source
const (
	GSformat                  = "gs://%s/%s"
	ContainerMetadataLocation = "metadata/containers.jsonpb"
	DefaultImageBucket        = "chromeos-image-archive"

	MaxRetry = 3

	Fortnightly = int64(240)
	Weekly      = int64(230)
	Daily       = int64(200)
	PostBuild   = int64(170)

	// CTP requests with a qs account will not require a priority so apply the
	// default swarming value.
	Default = int64(140)
)

Variables

This section is empty.

Functions

func AddTagToRequest

func AddTagToRequest(key, value string, request *requestpb.Request) *requestpb.Request

AddTagToRequest adds a new string tag in the form of <key>:<value> to the request's list of tags.

func BuildCTPRequest

func BuildCTPRequest(config *suschpb.SchedulerConfig, board, model, buildTarget, buildMilestone, buildVersion, branchTrigger string) *requestpb.Request

BuildCTPRequest takes information from a SuSch config and builds the corresponding CTP request.

Types

type CTPRequests

type CTPRequests []*requestpb.Request

func BuildAllCTPRequests

func BuildAllCTPRequests(config *suschpb.SchedulerConfig, targets configparser.TargetOptions) CTPRequests

BuildAllCTPRequests Generates all potential CTP options for the given configuration. FIX(b/321095387): This needs to build all CTPRequests and not require that the targets are passed in. TODO: Needs the build milestone and version passed in for proper CTP Requests to work.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL