builds

package
v0.0.0-...-f4b31ea Latest Latest
Warning

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

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

Documentation

Overview

Package builds fetches and handles the build image information from the release team.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractBoardAndVariant

func ExtractBoardAndVariant(buildTarget string) (string, string, error)

ExtractBoardAndVariant will extract the board and potential variant from the build target.

func FetchBuildsFromPSQL

func FetchBuildsFromPSQL(ctx context.Context, requiredBuilds []*RequiredBuild, isProd bool) ([]*kronpb.Build, error)

FetchBuildsFromPSQL retrieves the requested builds from long term PSQL storage.

func TransformReportToKronBuild

func TransformReportToKronBuild(report *buildpb.BuildReport) (*kronpb.Build, error)

TransformReportToKronBuild takes a build report and returns all relevant builds in a Kron parsable form.

Types

type BuildReportPackage

type BuildReportPackage struct {
	Report  *buildpb.BuildReport
	Message *cloudPubsub.Message
}

BuildReportPackage contains the unmarshalled report and the Pub/Sub message in which it came from.

func IngestBuildsFromPubSub

func IngestBuildsFromPubSub(projectID, subscriptionName string, isProd bool, finalize func(*[]*BuildReportPackage) error) ([]*BuildReportPackage, error)

IngestBuildsFromPubSub connects to pubsub ingests all new build information from the releases Pub/Sub stream. Once read, all builds will be written into long term storage.

type RequiredBuild

type RequiredBuild struct {
	BuildTarget string
	Board       string
	Milestone   int
}

RequiredBuild encapsulates the information needed to request a build from PSQL for TimedEvents configs.

Jump to

Keyboard shortcuts

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