build_chrome

package
v0.0.0-...-1b86ce5 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Overview

Package build_chrome builds Chrome browser given a chromium commit and a device target.

build_chrome also supports gerrit patches and non-chromium commits.

Index

Constants

View Source
const (
	ScheduleReqClobber string = "clobber"
	ScheduleReqDeps    string = "deps_revision_overrides"
	ScheduleReqGit     string = "git_repo"
	ScheduleReqRev     string = "revision"
	ScheduleReqStage   string = "staging"
)

These constants define default fields used in a buildbucket ScheduleBuildRequest for Pinpoint Chrome builds

Variables

This section is empty.

Functions

func New

func New(ctx context.Context) (*buildChromeImpl, error)

New returns buildChromeImpl.

buildChromeImpl is an authenticated LUCI Buildbucket client instance. Although skia has their own buildbucket wrapper type, it cannot build Chrome at a specific commit.

func NewWithClient

func NewWithClient(c *http.Client) *buildChromeImpl

NewWithClient returns buildChromeImpl. This is introduced for pinpoint.go, and New() is retained for compatibility to workflows/internal/build_chrome.go. TODO(jeffyoon@): One should be deprecated for the other.

Types

type BuildChromeClient

type BuildChromeClient interface {
	// SearchOrBuild starts a new Build if it doesn't exist, or it will fetch
	// the existing one that matches the build parameters.
	SearchOrBuild(ctx context.Context, pinpointJobID, commit, device string, deps map[string]string, patches []*buildbucketpb.GerritChange) (int64, error)

	// GetStatus returns the Build status.
	GetStatus(context.Context, int64) (buildbucketpb.Status, error)

	// RetrieveCAS retrieves CAS from the build.
	RetrieveCAS(context.Context, int64, string) (*swarmingV1.SwarmingRpcsCASReference, error)

	// CancelBuild cancels the ongoing build.
	CancelBuild(context.Context, int64, string) error
}

BuildChromeClient is a buildbucket client to build Chrome.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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