data

package
v0.0.0-...-9994f1b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HwTestStateKeeper

type HwTestStateKeeper struct {
	interfaces.StateKeeper

	// Build related
	BuildState *build.State

	// Set from input
	CftTestRequest        *skylab_test_runner.CFTTestRequest
	CrosTestRunnerRequest *testapi.CrosTestRunnerDynamicRequest
	CommonConfig          *skylab_test_runner.CommonConfig
	IsAlRun               bool

	// Request Queues
	ContainerQueue *list.List
	ProvisionQueue *list.List
	PreTestQueue   *list.List
	TestQueue      *list.List
	PostTestQueue  *list.List
	PublishQueue   *list.List
	GenericQueue   *list.List

	// Dictionaries
	Injectables        *common.InjectableStorage
	ContainerInstances map[string]interfaces.ContainerInterface
	ContainerImages    map[string]*api.ContainerImageInfo

	// Dut related
	HostName                 string
	DeviceIdentifiers        []string
	Devices                  map[string]*testapi.CrosTestRequest_Device
	PrimaryDevice            *testapi.CrosTestRequest_Device
	PrimaryDeviceMetadata    *skylab_test_runner.CFTTestRequest_Device
	CompanionDevices         []*testapi.CrosTestRequest_Device
	CompanionDevicesMetadata []*skylab_test_runner.CFTTestRequest_Device
	DutTopology              *labapi.DutTopology
	DutServerAddress         *labapi.IpEndpoint
	AndroidDutServerAddress  *labapi.IpEndpoint
	CurrentDutState          dutstate.State
	PrimaryDutModel          *labapi.DutModel
	CompanionDutModels       []*labapi.DutModel
	CacheServer              *labapi.IpEndpoint
	// Only when DUT is a VM
	DutVmGceImage   *vmlabapi.GceImage
	DutVm           *vmlabapi.VmInstance
	LeaseVMResponse *testapi.LeaseVMResponse
	HostIp          string

	// Provision related
	InstallMetadata    *anypb.Any
	ProvisionResponses map[string][]*testapi.InstallResponse
	// UpdateFirmwares maps each board to whether
	// or not it should update firmware, parsed from
	// the input's config and set while parsing
	// the dut topology.
	UpdateFirmwares map[string]bool

	// Test related
	TestArgs               *testapi.AutotestExecutionMetadata
	TestResponses          *testapi.CrosTestResponse
	TestExecutionStartTime *timestamppb.Timestamp
	TestExecutionEndTime   *timestamppb.Timestamp

	// Publish related
	GcsURL              string
	TesthausURL         string
	GcsPublishSrcDir    string
	RdbPublishSrcDir    string
	CurrentInvocationId string
	TkoPublishSrcDir    string
	CpconPublishSrcDir  string
	TestResultForRdb    *artifactpb.TestResult
	BaseVariant         map[string]string

	// Build related
	SkylabResult *skylab_test_runner.Result

	// Tools and their related dependencies
	Ctr                   *crostoolrunner.CrosToolRunner
	DockerKeyFileLocation string

	ANTSInvocationID string
}

HwTestStateKeeper represents all the data hw test execution flow requires.

func NewHwTestStateKeeper

func NewHwTestStateKeeper() *HwTestStateKeeper

type LocalArgs

type LocalArgs struct {
	BuildBoard                      string
	BuildBucket                     string
	BuildNumber                     string
	HostName                        string
	Tests                           string
	Tags                            string
	TagsExclude                     string
	ContainerKeysRequestedForUpdate string
	Chroot                          string

	// Optional replacements for values that would have been updated from a skipped step
	DutAddress      string
	DutCacheAddress string
	CacheAddress    string

	// Flow control args. Should match LocalStepConfig proto
	SkipBuildDutTopology bool
	SkipDutServer        bool
	SkipProvision        bool
	SkipTestFinder       bool
	SkipTest             bool
	SkipCacheServer      bool
	SkipSshTunnel        bool
	SkipSshReverseTunnel bool
	RunCpconPublish      bool
}

type LocalTestStateKeeper

type LocalTestStateKeeper struct {
	interfaces.StateKeeper
	HwTestStateKeeper

	// CLI inputs
	Args *LocalArgs

	// Replace TestRequest inputs
	Tests       []string
	Tags        []string
	TagsExclude []string

	// IpEndpoints
	DutSshAddress         *labapi.IpEndpoint
	DutCacheServerAddress *labapi.IpEndpoint
	CacheServerAddress    *labapi.IpEndpoint

	// Replacement values for CftTestRequest
	ImagePath string

	// Use the persistent key directly for docker login
	// instead of the gcloud auth flow
	UseDockerKeyDirectly bool
}

LocalTestStateKeeper represents all the data local test execution flow requires.

type PreLocalTestStateKeeper

type PreLocalTestStateKeeper struct {
	interfaces.StateKeeper

	Args                            *LocalArgs
	ContainerKeysRequestedForUpdate []string

	// Updates for localtest_statekeeper
	Tests           []string
	Tags            []string
	TagsExclude     []string
	DutAddress      *labapi.IpEndpoint
	DutCacheAddress *labapi.IpEndpoint
	CacheAddress    *labapi.IpEndpoint
	ContainerImages map[string]*api.ContainerImageInfo
	ImagePath       string
}

PreLocalTestStateKeeper represents all the data pre local test execution flow requires.

Jump to

Keyboard shortcuts

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