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 ¶
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 ¶
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 ¶
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.