Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var JSONPBUnmarshaler = jsonpb.Unmarshaler{AllowUnknownFields: true}
JSONPBUnmarshaler unmarshals JSON into proto messages.
Functions ¶
func ScheduleBuild ¶
func ScheduleBuild(ctx context.Context, bbClient BuildbucketClient) (string, error)
ScheduleBuild register a build. If it successes, it returns a link of build. Otherwise, return an error.
func StageImageToBucket ¶
func StageImageToBucket(ctx context.Context, moblabClient MoblabClient, board string, model string, buildVersion string) error
StageImageToBucket stages the specified Chrome OS image to the user GCS bucket
Types ¶
type BuildbucketClient ¶
type BuildbucketClient interface {
ScheduleCTPBuild(ctx context.Context) (*buildbucketpb.Build, error)
}
BuildbucketClient interface provides subset of Buildbucket methods relevant to Satlab CLI
type MoblabClient ¶
type MoblabClient interface { StageBuild(ctx context.Context, req *moblabpb.StageBuildRequest, opts ...gax.CallOption) (*moblab.StageBuildOperation, error) CheckBuildStageStatus(ctx context.Context, req *moblabpb.CheckBuildStageStatusRequest, opts ...gax.CallOption) (*moblabpb.CheckBuildStageStatusResponse, error) }
MoblabClient interface provides subset of Moblab API methods relevant to Satlab CLI
type Run ¶
type Run struct { Image string Model string Board string Milestone string Build string Pool string Suite string Tests []string Testplan string TestplanLocal string Harness string TestArgs string SatlabId string Desktop bool CFT bool // TRV2 determines whether we will use Test Runner V2 TRV2 bool DynamicTRV2 bool Local bool TimeoutMins int TagIncludes []string TagExcludes []string TestNameIncludes []string TestNameExcludes []string // Runs with Ctpv2 and Quota Scheduler if true and CFT is true RunCtpv2WithQs bool // If true, only runs the tests that have not passed IsIncrementalRun bool // Any configs related to results upload for this test run. AddedDims map[string]string Tags map[string]string UploadToCpcon bool MaxInShard int64 }
Run holds the arguments that are needed for the run command.
Click to show internal directories.
Click to hide internal directories.