run

package
v0.0.0-...-ebd3848 Latest Latest
Warning

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

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

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.

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

func (*Run) TriggerRun

func (c *Run) TriggerRun(ctx context.Context) (string, error)

TriggerRun triggers the Run with the given information (it could be either single test or a suite or a test_plan in the GCS bucket or test_plan saved locally)

Jump to

Keyboard shortcuts

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