skylab_test_runner

package
v0.0.0-...-6bac870 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: BSD-3-Clause Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Result_Autotest_TestCase_Verdict_name = map[int32]string{
		0: "VERDICT_UNDEFINED",
		1: "VERDICT_PASS",
		2: "VERDICT_FAIL",
		3: "VERDICT_NO_VERDICT",
	}
	Result_Autotest_TestCase_Verdict_value = map[string]int32{
		"VERDICT_UNDEFINED":  0,
		"VERDICT_PASS":       1,
		"VERDICT_FAIL":       2,
		"VERDICT_NO_VERDICT": 3,
	}
)

Enum value maps for Result_Autotest_TestCase_Verdict.

View Source
var (
	Result_Prejob_Step_Verdict_name = map[int32]string{
		0: "VERDICT_UNDEFINED",
		1: "VERDICT_PASS",
		2: "VERDICT_FAIL",
	}
	Result_Prejob_Step_Verdict_value = map[string]int32{
		"VERDICT_UNDEFINED": 0,
		"VERDICT_PASS":      1,
		"VERDICT_FAIL":      2,
	}
)

Enum value maps for Result_Prejob_Step_Verdict.

View Source
var File_test_platform_skylab_test_runner_config_proto protoreflect.FileDescriptor
View Source
var File_test_platform_skylab_test_runner_request_proto protoreflect.FileDescriptor
View Source
var File_test_platform_skylab_test_runner_result_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Config

type Config struct {
	Lab     *Config_Lab     `protobuf:"bytes,1,opt,name=lab,proto3" json:"lab,omitempty"`
	Harness *Config_Harness `protobuf:"bytes,2,opt,name=harness,proto3" json:"harness,omitempty"`
	Output  *Config_Output  `protobuf:"bytes,3,opt,name=output,proto3" json:"output,omitempty"`
	// Result flow topic: test_runner publishes messages to this topic at the
	// start and the end of the build.
	// The messages in this topic should be ACKed only by the result_flow
	// pipeline.
	ResultFlowPubsub  *Config_PubSub                `protobuf:"bytes,4,opt,name=result_flow_pubsub,json=resultFlowPubsub,proto3" json:"result_flow_pubsub,omitempty"`
	LogDataUploadStep *phosphorus.LogDataUploadStep `protobuf:"bytes,5,opt,name=log_data_upload_step,json=logDataUploadStep,proto3" json:"log_data_upload_step,omitempty"`
	FetchCrashesStep  *phosphorus.FetchCrashesStep  `protobuf:"bytes,6,opt,name=fetch_crashes_step,json=fetchCrashesStep,proto3" json:"fetch_crashes_step,omitempty"`
	PrejobStep        *phosphorus.PrejobStep        `protobuf:"bytes,7,opt,name=prejob_step,json=prejobStep,proto3" json:"prejob_step,omitempty"`
	// contains filtered or unexported fields
}

Config defines configuration parameters of skylab_test_runner.

func (*Config) Descriptor deprecated

func (*Config) Descriptor() ([]byte, []int)

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetFetchCrashesStep

func (x *Config) GetFetchCrashesStep() *phosphorus.FetchCrashesStep

func (*Config) GetHarness

func (x *Config) GetHarness() *Config_Harness

func (*Config) GetLab

func (x *Config) GetLab() *Config_Lab

func (*Config) GetLogDataUploadStep

func (x *Config) GetLogDataUploadStep() *phosphorus.LogDataUploadStep

func (*Config) GetOutput

func (x *Config) GetOutput() *Config_Output

func (*Config) GetPrejobStep

func (x *Config) GetPrejobStep() *phosphorus.PrejobStep

func (*Config) GetResultFlowPubsub

func (x *Config) GetResultFlowPubsub() *Config_PubSub

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

func (x *Config) ProtoReflect() protoreflect.Message

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

type Config_Harness

type Config_Harness struct {

	// Autotest directory inside the drone container,
	// e.g. "/usr/local/autotest".
	AutotestDir string `protobuf:"bytes,1,opt,name=autotest_dir,json=autotestDir,proto3" json:"autotest_dir,omitempty"`
	// The name of the base lxc image used for Server Side Packaging (SSP).
	//
	// autoserv fetches the base image from a hard-coded path on Google
	// Storage: gs://abci-ssp/autotest-containers/{name}.tar.xz
	//
	// See go/ctp-ssp for an overview of SSP.
	SspBaseImageName string `protobuf:"bytes,3,opt,name=ssp_base_image_name,json=sspBaseImageName,proto3" json:"ssp_base_image_name,omitempty"`
	// The maximum duration for prejobs (e.g. provisioning).
	PrejobDeadlineSeconds int64 `` /* 127-byte string literal not displayed */
	// contains filtered or unexported fields
}

Harness defines configuration parameters related to the test harness (autotest, tast, etc).

func (*Config_Harness) Descriptor deprecated

func (*Config_Harness) Descriptor() ([]byte, []int)

Deprecated: Use Config_Harness.ProtoReflect.Descriptor instead.

func (*Config_Harness) GetAutotestDir

func (x *Config_Harness) GetAutotestDir() string

func (*Config_Harness) GetPrejobDeadlineSeconds

func (x *Config_Harness) GetPrejobDeadlineSeconds() int64

func (*Config_Harness) GetSspBaseImageName

func (x *Config_Harness) GetSspBaseImageName() string

func (*Config_Harness) ProtoMessage

func (*Config_Harness) ProtoMessage()

func (*Config_Harness) ProtoReflect

func (x *Config_Harness) ProtoReflect() protoreflect.Message

func (*Config_Harness) Reset

func (x *Config_Harness) Reset()

func (*Config_Harness) String

func (x *Config_Harness) String() string

type Config_Lab

type Config_Lab struct {

	// Admin service host, e.g. foo.appspot.com.
	AdminService string `protobuf:"bytes,1,opt,name=admin_service,json=adminService,proto3" json:"admin_service,omitempty"`
	// Inventory V2 service host, e.g. cros-lab-inventory.appspot.com.
	CrosInventoryService string `protobuf:"bytes,2,opt,name=cros_inventory_service,json=crosInventoryService,proto3" json:"cros_inventory_service,omitempty"`
	// Unified Fleet System service host, e.g. ufs.api.cr.dev.
	CrosUfsService string `protobuf:"bytes,3,opt,name=cros_ufs_service,json=crosUfsService,proto3" json:"cros_ufs_service,omitempty"`
	// contains filtered or unexported fields
}

Lab defines configuration parameters related to the lab and the lab platform services.

func (*Config_Lab) Descriptor deprecated

func (*Config_Lab) Descriptor() ([]byte, []int)

Deprecated: Use Config_Lab.ProtoReflect.Descriptor instead.

func (*Config_Lab) GetAdminService

func (x *Config_Lab) GetAdminService() string

func (*Config_Lab) GetCrosInventoryService

func (x *Config_Lab) GetCrosInventoryService() string

func (*Config_Lab) GetCrosUfsService

func (x *Config_Lab) GetCrosUfsService() string

func (*Config_Lab) ProtoMessage

func (*Config_Lab) ProtoMessage()

func (*Config_Lab) ProtoReflect

func (x *Config_Lab) ProtoReflect() protoreflect.Message

func (*Config_Lab) Reset

func (x *Config_Lab) Reset()

func (*Config_Lab) String

func (x *Config_Lab) String() string

type Config_Output

type Config_Output struct {

	// A Google Storage path prefix to upload all log-data to synchronously.
	// Reflected in the test_platform.skylab_test_runner.Result.log_data
	// returned by the task.
	LogDataGsRoot string `protobuf:"bytes,2,opt,name=log_data_gs_root,json=logDataGsRoot,proto3" json:"log_data_gs_root,omitempty"`
	// contains filtered or unexported fields
}

Output defines parameters around how the task will deliver output to the callers, e.g. Google Storage bucket.

func (*Config_Output) Descriptor deprecated

func (*Config_Output) Descriptor() ([]byte, []int)

Deprecated: Use Config_Output.ProtoReflect.Descriptor instead.

func (*Config_Output) GetLogDataGsRoot

func (x *Config_Output) GetLogDataGsRoot() string

func (*Config_Output) ProtoMessage

func (*Config_Output) ProtoMessage()

func (*Config_Output) ProtoReflect

func (x *Config_Output) ProtoReflect() protoreflect.Message

func (*Config_Output) Reset

func (x *Config_Output) Reset()

func (*Config_Output) String

func (x *Config_Output) String() string

type Config_PubSub

type Config_PubSub struct {
	Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	Topic   string `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"`
	// contains filtered or unexported fields
}

PubSub defines the configuration parameters for PubSub topic.

func (*Config_PubSub) Descriptor deprecated

func (*Config_PubSub) Descriptor() ([]byte, []int)

Deprecated: Use Config_PubSub.ProtoReflect.Descriptor instead.

func (*Config_PubSub) GetProject

func (x *Config_PubSub) GetProject() string

func (*Config_PubSub) GetTopic

func (x *Config_PubSub) GetTopic() string

func (*Config_PubSub) ProtoMessage

func (*Config_PubSub) ProtoMessage()

func (*Config_PubSub) ProtoReflect

func (x *Config_PubSub) ProtoReflect() protoreflect.Message

func (*Config_PubSub) Reset

func (x *Config_PubSub) Reset()

func (*Config_PubSub) String

func (x *Config_PubSub) String() string

type Request

type Request struct {
	Prejob *Request_Prejob `protobuf:"bytes,1,opt,name=prejob,proto3" json:"prejob,omitempty"`
	Test   *Request_Test   `protobuf:"bytes,2,opt,name=test,proto3" json:"test,omitempty"`
	// Soft deadline for test_runner execution.
	//
	// All prejob or test execution should abort beyond this deadline.
	// Clean up actions may execute beyond the deadline.
	Deadline *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=deadline,proto3" json:"deadline,omitempty"`
	// The UID of the individual CTP request which kicked off this test run.
	// Note that distinct requests inside a multi-request CTP build will have
	// different UIDs.
	ParentRequestUid string `protobuf:"bytes,4,opt,name=parent_request_uid,json=parentRequestUid,proto3" json:"parent_request_uid,omitempty"`
	// The buildbucket ID of the CTP build that sent this test_runner request.
	ParentBuildId int64 `protobuf:"varint,5,opt,name=parent_build_id,json=parentBuildId,proto3" json:"parent_build_id,omitempty"`
	// Set of Tests to run. The string is a UUID provided by the client
	// and used to identify each test result in the response.
	Tests map[string]*Request_Test `` /* 151-byte string literal not displayed */
	// Uniformly applied parameters for all test executions in the parent test
	// platform request.
	ExecutionParam *execution.Param `protobuf:"bytes,7,opt,name=execution_param,json=executionParam,proto3" json:"execution_param,omitempty"`
	// If set, a Docker container to use to run autoserv. The container must
	// contain autoserv under the same path as the host (e.g.
	// "/usr/local/autotest/server/autoserv").
	//
	// The container will be pulled if needed.
	//
	// Deprecated: Do not use.
	ContainerImageInfo *api.ContainerImageInfo `protobuf:"bytes,8,opt,name=container_image_info,json=containerImageInfo,proto3" json:"container_image_info,omitempty"`
	// TestExecutionBehavior specifies how tests should be run.
	// This can include information about whether the tests should run and
	// if failures should be exonerated.
	DefaultTestExecutionBehavior test_platform.Request_Params_TestExecutionBehavior `` /* 206-byte string literal not displayed */
	// contains filtered or unexported fields
}

Request represents a request for running an individual test via the skylab_test_runner recipe.

func (*Request) Descriptor deprecated

func (*Request) Descriptor() ([]byte, []int)

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetContainerImageInfo deprecated

func (x *Request) GetContainerImageInfo() *api.ContainerImageInfo

Deprecated: Do not use.

func (*Request) GetDeadline

func (x *Request) GetDeadline() *timestamppb.Timestamp

func (*Request) GetDefaultTestExecutionBehavior

func (x *Request) GetDefaultTestExecutionBehavior() test_platform.Request_Params_TestExecutionBehavior

func (*Request) GetExecutionParam

func (x *Request) GetExecutionParam() *execution.Param

func (*Request) GetParentBuildId

func (x *Request) GetParentBuildId() int64

func (*Request) GetParentRequestUid

func (x *Request) GetParentRequestUid() string

func (*Request) GetPrejob

func (x *Request) GetPrejob() *Request_Prejob

func (*Request) GetTest

func (x *Request) GetTest() *Request_Test

func (*Request) GetTests

func (x *Request) GetTests() map[string]*Request_Test

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

func (x *Request) ProtoReflect() protoreflect.Message

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

type Request_Prejob

type Request_Prejob struct {

	// What needs to be installed onto the DUT at the end of prejob, as specified
	// in the cros_test_platform request.
	SoftwareDependencies []*test_platform.Request_Params_SoftwareDependency `protobuf:"bytes,1,rep,name=software_dependencies,json=softwareDependencies,proto3" json:"software_dependencies,omitempty"`
	// Mutable software prerequisites. Are installed before running the test if
	// necessary. E.g. {"cros-version" : "reef-release/R77-12345.0.0"}
	// TODO(crbug.com/1162347): Delete this post-migration.
	//
	// Deprecated: Do not use.
	ProvisionableLabels map[string]string `` /* 206-byte string literal not displayed */
	// If set, use the Provision TLS API for the prejob.
	// See go/cros-prover go/cros-tls
	//
	// crbug.com/1137444: This is a transitional argument. Once go/cros-prover
	// migration is complete, all prejobs will use the TLS API and this argument
	// will be dropped.
	UseTls bool `protobuf:"varint,3,opt,name=use_tls,json=useTls,proto3" json:"use_tls,omitempty"`
	// In a multi-DUT test scenario, software_attributes and hardware_attributes
	// can help us determine primary DUT in a DUT topology.
	SoftwareAttributes *test_platform.Request_Params_SoftwareAttributes `protobuf:"bytes,4,opt,name=software_attributes,json=softwareAttributes,proto3" json:"software_attributes,omitempty"`
	HardwareAttributes *test_platform.Request_Params_HardwareAttributes `protobuf:"bytes,5,opt,name=hardware_attributes,json=hardwareAttributes,proto3" json:"hardware_attributes,omitempty"`
	// Will present in a multi-DUTs test request, it includes necessary metadata
	// to help us determine DUT topology(primary/secondaries), as well as software
	// dependencies to run prejob for secondary DUTs.
	SecondaryDevices []*test_platform.Request_Params_SecondaryDevice `protobuf:"bytes,6,rep,name=secondary_devices,json=secondaryDevices,proto3" json:"secondary_devices,omitempty"`
	// contains filtered or unexported fields
}

Prejob defines parameters that affect the steps before the actual test (e.g. provision).

func (*Request_Prejob) Descriptor deprecated

func (*Request_Prejob) Descriptor() ([]byte, []int)

Deprecated: Use Request_Prejob.ProtoReflect.Descriptor instead.

func (*Request_Prejob) GetHardwareAttributes

func (*Request_Prejob) GetProvisionableLabels deprecated

func (x *Request_Prejob) GetProvisionableLabels() map[string]string

Deprecated: Do not use.

func (*Request_Prejob) GetSecondaryDevices

func (x *Request_Prejob) GetSecondaryDevices() []*test_platform.Request_Params_SecondaryDevice

func (*Request_Prejob) GetSoftwareAttributes

func (*Request_Prejob) GetSoftwareDependencies

func (x *Request_Prejob) GetSoftwareDependencies() []*test_platform.Request_Params_SoftwareDependency

func (*Request_Prejob) GetUseTls

func (x *Request_Prejob) GetUseTls() bool

func (*Request_Prejob) ProtoMessage

func (*Request_Prejob) ProtoMessage()

func (*Request_Prejob) ProtoReflect

func (x *Request_Prejob) ProtoReflect() protoreflect.Message

func (*Request_Prejob) Reset

func (x *Request_Prejob) Reset()

func (*Request_Prejob) String

func (x *Request_Prejob) String() string

type Request_Test

type Request_Test struct {

	// Types that are assignable to Harness:
	//	*Request_Test_Autotest_
	Harness isRequest_Test_Harness       `protobuf_oneof:"harness"`
	Offload *Request_Test_OffloadOptions `protobuf:"bytes,2,opt,name=offload,proto3" json:"offload,omitempty"`
	// contains filtered or unexported fields
}

Test describes which test harness and which test(s) to run.

func (*Request_Test) Descriptor deprecated

func (*Request_Test) Descriptor() ([]byte, []int)

Deprecated: Use Request_Test.ProtoReflect.Descriptor instead.

func (*Request_Test) GetAutotest

func (x *Request_Test) GetAutotest() *Request_Test_Autotest

func (*Request_Test) GetHarness

func (m *Request_Test) GetHarness() isRequest_Test_Harness

func (*Request_Test) GetOffload

func (x *Request_Test) GetOffload() *Request_Test_OffloadOptions

func (*Request_Test) ProtoMessage

func (*Request_Test) ProtoMessage()

func (*Request_Test) ProtoReflect

func (x *Request_Test) ProtoReflect() protoreflect.Message

func (*Request_Test) Reset

func (x *Request_Test) Reset()

func (*Request_Test) String

func (x *Request_Test) String() string

type Request_Test_Autotest

type Request_Test_Autotest struct {
	Name     string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	TestArgs string `protobuf:"bytes,2,opt,name=test_args,json=testArgs,proto3" json:"test_args,omitempty"`
	// Keyvals are key:value pairs added to the autoserv command.
	Keyvals map[string]string `` /* 155-byte string literal not displayed */
	// If true, run the test as a client-side test: the test logic is
	// executed in its entirety on the DUT itself.
	// Otherwise, run the test as a server-side test: the test logic is
	// executed on the drone server and interacts with the DUT as an external
	// object.
	IsClientTest bool `protobuf:"varint,4,opt,name=is_client_test,json=isClientTest,proto3" json:"is_client_test,omitempty"`
	// Name to be used to display this test's output artifacts, e.g. logs,
	// results etc. By default display_name is the same as name.
	//
	// display_name is especially useful when using test_args to distinguish
	// between multiple instances of the same test in a request.
	DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// contains filtered or unexported fields
}

func (*Request_Test_Autotest) Descriptor deprecated

func (*Request_Test_Autotest) Descriptor() ([]byte, []int)

Deprecated: Use Request_Test_Autotest.ProtoReflect.Descriptor instead.

func (*Request_Test_Autotest) GetDisplayName

func (x *Request_Test_Autotest) GetDisplayName() string

func (*Request_Test_Autotest) GetIsClientTest

func (x *Request_Test_Autotest) GetIsClientTest() bool

func (*Request_Test_Autotest) GetKeyvals

func (x *Request_Test_Autotest) GetKeyvals() map[string]string

func (*Request_Test_Autotest) GetName

func (x *Request_Test_Autotest) GetName() string

func (*Request_Test_Autotest) GetTestArgs

func (x *Request_Test_Autotest) GetTestArgs() string

func (*Request_Test_Autotest) ProtoMessage

func (*Request_Test_Autotest) ProtoMessage()

func (*Request_Test_Autotest) ProtoReflect

func (x *Request_Test_Autotest) ProtoReflect() protoreflect.Message

func (*Request_Test_Autotest) Reset

func (x *Request_Test_Autotest) Reset()

func (*Request_Test_Autotest) String

func (x *Request_Test_Autotest) String() string

type Request_Test_Autotest_

type Request_Test_Autotest_ struct {
	Autotest *Request_Test_Autotest `protobuf:"bytes,1,opt,name=autotest,proto3,oneof"`
}

type Request_Test_OffloadOptions

type Request_Test_OffloadOptions struct {

	// If this test needs synchronous offloading of results to Google Storage
	SynchronousGsEnable bool `protobuf:"varint,1,opt,name=synchronous_gs_enable,json=synchronousGsEnable,proto3" json:"synchronous_gs_enable,omitempty"`
	// contains filtered or unexported fields
}

User-specified options for how results are served to clients

func (*Request_Test_OffloadOptions) Descriptor deprecated

func (*Request_Test_OffloadOptions) Descriptor() ([]byte, []int)

Deprecated: Use Request_Test_OffloadOptions.ProtoReflect.Descriptor instead.

func (*Request_Test_OffloadOptions) GetSynchronousGsEnable

func (x *Request_Test_OffloadOptions) GetSynchronousGsEnable() bool

func (*Request_Test_OffloadOptions) ProtoMessage

func (*Request_Test_OffloadOptions) ProtoMessage()

func (*Request_Test_OffloadOptions) ProtoReflect

func (*Request_Test_OffloadOptions) Reset

func (x *Request_Test_OffloadOptions) Reset()

func (*Request_Test_OffloadOptions) String

func (x *Request_Test_OffloadOptions) String() string

type Result

type Result struct {

	// Which test harness was used.
	//
	// Types that are assignable to Harness:
	//	*Result_AutotestResult
	Harness     isResult_Harness    `protobuf_oneof:"harness"`
	Prejob      *Result_Prejob      `protobuf:"bytes,2,opt,name=prejob,proto3" json:"prejob,omitempty"`
	LogData     *common.TaskLogData `protobuf:"bytes,3,opt,name=log_data,json=logData,proto3" json:"log_data,omitempty"`
	StateUpdate *Result_StateUpdate `protobuf:"bytes,4,opt,name=state_update,json=stateUpdate,proto3" json:"state_update,omitempty"`
	// Set of test results. The string is a UUID used to identify each test, and
	// comes from the client.
	AutotestResults map[string]*Result_Autotest `` /* 194-byte string literal not displayed */
	// contains filtered or unexported fields
}

Result defines the output format of skylab_test_runner. It contains a summary of test results from a single Swarming task run.

func (*Result) Descriptor deprecated

func (*Result) Descriptor() ([]byte, []int)

Deprecated: Use Result.ProtoReflect.Descriptor instead.

func (*Result) GetAutotestResult

func (x *Result) GetAutotestResult() *Result_Autotest

func (*Result) GetAutotestResults

func (x *Result) GetAutotestResults() map[string]*Result_Autotest

func (*Result) GetHarness

func (m *Result) GetHarness() isResult_Harness

func (*Result) GetLogData

func (x *Result) GetLogData() *common.TaskLogData

func (*Result) GetPrejob

func (x *Result) GetPrejob() *Result_Prejob

func (*Result) GetStateUpdate

func (x *Result) GetStateUpdate() *Result_StateUpdate

func (*Result) ProtoMessage

func (*Result) ProtoMessage()

func (*Result) ProtoReflect

func (x *Result) ProtoReflect() protoreflect.Message

func (*Result) Reset

func (x *Result) Reset()

func (*Result) String

func (x *Result) String() string

type Result_Autotest

type Result_Autotest struct {
	TestCases []*Result_Autotest_TestCase `protobuf:"bytes,1,rep,name=test_cases,json=testCases,proto3" json:"test_cases,omitempty"`
	// False if test_cases represents all of the test cases to be run by the
	// task. True otherwise (e.g. the task was aborted early).
	Incomplete bool `protobuf:"varint,2,opt,name=incomplete,proto3" json:"incomplete,omitempty"`
	// contains filtered or unexported fields
}

Autotest describes the result summary for the case of autotest harness.

func (*Result_Autotest) Descriptor deprecated

func (*Result_Autotest) Descriptor() ([]byte, []int)

Deprecated: Use Result_Autotest.ProtoReflect.Descriptor instead.

func (*Result_Autotest) GetIncomplete

func (x *Result_Autotest) GetIncomplete() bool

func (*Result_Autotest) GetTestCases

func (x *Result_Autotest) GetTestCases() []*Result_Autotest_TestCase

func (*Result_Autotest) ProtoMessage

func (*Result_Autotest) ProtoMessage()

func (*Result_Autotest) ProtoReflect

func (x *Result_Autotest) ProtoReflect() protoreflect.Message

func (*Result_Autotest) Reset

func (x *Result_Autotest) Reset()

func (*Result_Autotest) String

func (x *Result_Autotest) String() string

type Result_AutotestResult

type Result_AutotestResult struct {
	AutotestResult *Result_Autotest `protobuf:"bytes,1,opt,name=autotest_result,json=autotestResult,proto3,oneof"`
}

type Result_Autotest_TestCase

type Result_Autotest_TestCase struct {

	// Test case name as it appears in status.log.
	Name    string                           `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Verdict Result_Autotest_TestCase_Verdict `` /* 139-byte string literal not displayed */
	// A one line human readable description of what happened during test
	// case execution (e.g. error/warning message). Not intended to be machine
	// parseable. There's no guarantee that a given root cause will always
	// resolve to the same summary.
	HumanReadableSummary string `protobuf:"bytes,3,opt,name=human_readable_summary,json=humanReadableSummary,proto3" json:"human_readable_summary,omitempty"`
	// contains filtered or unexported fields
}

TestCase describes the result of an individual test case. A single control file may correspond to multiple test cases.

func (*Result_Autotest_TestCase) Descriptor deprecated

func (*Result_Autotest_TestCase) Descriptor() ([]byte, []int)

Deprecated: Use Result_Autotest_TestCase.ProtoReflect.Descriptor instead.

func (*Result_Autotest_TestCase) GetHumanReadableSummary

func (x *Result_Autotest_TestCase) GetHumanReadableSummary() string

func (*Result_Autotest_TestCase) GetName

func (x *Result_Autotest_TestCase) GetName() string

func (*Result_Autotest_TestCase) GetVerdict

func (*Result_Autotest_TestCase) ProtoMessage

func (*Result_Autotest_TestCase) ProtoMessage()

func (*Result_Autotest_TestCase) ProtoReflect

func (x *Result_Autotest_TestCase) ProtoReflect() protoreflect.Message

func (*Result_Autotest_TestCase) Reset

func (x *Result_Autotest_TestCase) Reset()

func (*Result_Autotest_TestCase) String

func (x *Result_Autotest_TestCase) String() string

type Result_Autotest_TestCase_Verdict

type Result_Autotest_TestCase_Verdict int32

Verdict defines the test case result to be reported.

const (
	Result_Autotest_TestCase_VERDICT_UNDEFINED  Result_Autotest_TestCase_Verdict = 0
	Result_Autotest_TestCase_VERDICT_PASS       Result_Autotest_TestCase_Verdict = 1
	Result_Autotest_TestCase_VERDICT_FAIL       Result_Autotest_TestCase_Verdict = 2
	Result_Autotest_TestCase_VERDICT_NO_VERDICT Result_Autotest_TestCase_Verdict = 3
)

func (Result_Autotest_TestCase_Verdict) Descriptor

func (Result_Autotest_TestCase_Verdict) Enum

func (Result_Autotest_TestCase_Verdict) EnumDescriptor deprecated

func (Result_Autotest_TestCase_Verdict) EnumDescriptor() ([]byte, []int)

Deprecated: Use Result_Autotest_TestCase_Verdict.Descriptor instead.

func (Result_Autotest_TestCase_Verdict) Number

func (Result_Autotest_TestCase_Verdict) String

func (Result_Autotest_TestCase_Verdict) Type

type Result_Prejob

type Result_Prejob struct {
	Step []*Result_Prejob_Step `protobuf:"bytes,1,rep,name=step,proto3" json:"step,omitempty"`
	// contains filtered or unexported fields
}

Prejob contains all preparatory operations that run before the actual test cases.

func (*Result_Prejob) Descriptor deprecated

func (*Result_Prejob) Descriptor() ([]byte, []int)

Deprecated: Use Result_Prejob.ProtoReflect.Descriptor instead.

func (*Result_Prejob) GetStep

func (x *Result_Prejob) GetStep() []*Result_Prejob_Step

func (*Result_Prejob) ProtoMessage

func (*Result_Prejob) ProtoMessage()

func (*Result_Prejob) ProtoReflect

func (x *Result_Prejob) ProtoReflect() protoreflect.Message

func (*Result_Prejob) Reset

func (x *Result_Prejob) Reset()

func (*Result_Prejob) String

func (x *Result_Prejob) String() string

type Result_Prejob_Step

type Result_Prejob_Step struct {

	// Step name, e.g. as it appears in status.log.
	Name    string                     `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Verdict Result_Prejob_Step_Verdict `` /* 133-byte string literal not displayed */
	// A one line human readable description of what happened during step
	// execution (e.g. error/warning message). Not intended to be machine
	// parseable. There's no guarantee that a given root cause will always
	// resolve to the same summary.
	HumanReadableSummary string `protobuf:"bytes,3,opt,name=human_readable_summary,json=humanReadableSummary,proto3" json:"human_readable_summary,omitempty"`
	// contains filtered or unexported fields
}

Step describes an individual prejob operation e.g. provision.

func (*Result_Prejob_Step) Descriptor deprecated

func (*Result_Prejob_Step) Descriptor() ([]byte, []int)

Deprecated: Use Result_Prejob_Step.ProtoReflect.Descriptor instead.

func (*Result_Prejob_Step) GetHumanReadableSummary

func (x *Result_Prejob_Step) GetHumanReadableSummary() string

func (*Result_Prejob_Step) GetName

func (x *Result_Prejob_Step) GetName() string

func (*Result_Prejob_Step) GetVerdict

func (*Result_Prejob_Step) ProtoMessage

func (*Result_Prejob_Step) ProtoMessage()

func (*Result_Prejob_Step) ProtoReflect

func (x *Result_Prejob_Step) ProtoReflect() protoreflect.Message

func (*Result_Prejob_Step) Reset

func (x *Result_Prejob_Step) Reset()

func (*Result_Prejob_Step) String

func (x *Result_Prejob_Step) String() string

type Result_Prejob_Step_Verdict

type Result_Prejob_Step_Verdict int32

Verdict defines the final step status. Eventually may have different cases from the test case verdict, e.g. VERDICT_SKIPPED.

const (
	Result_Prejob_Step_VERDICT_UNDEFINED Result_Prejob_Step_Verdict = 0
	Result_Prejob_Step_VERDICT_PASS      Result_Prejob_Step_Verdict = 1
	Result_Prejob_Step_VERDICT_FAIL      Result_Prejob_Step_Verdict = 2
)

func (Result_Prejob_Step_Verdict) Descriptor

func (Result_Prejob_Step_Verdict) Enum

func (Result_Prejob_Step_Verdict) EnumDescriptor deprecated

func (Result_Prejob_Step_Verdict) EnumDescriptor() ([]byte, []int)

Deprecated: Use Result_Prejob_Step_Verdict.Descriptor instead.

func (Result_Prejob_Step_Verdict) Number

func (Result_Prejob_Step_Verdict) String

func (Result_Prejob_Step_Verdict) Type

type Result_StateUpdate

type Result_StateUpdate struct {

	// E.g. "needs_repair", "ready" etc.
	DutState string `protobuf:"bytes,1,opt,name=dut_state,json=dutState,proto3" json:"dut_state,omitempty"`
	// contains filtered or unexported fields
}

StateUpdate contains Skylab state changes that resulted from the test run. It is consumed by `skylab_local_state save`.

func (*Result_StateUpdate) Descriptor deprecated

func (*Result_StateUpdate) Descriptor() ([]byte, []int)

Deprecated: Use Result_StateUpdate.ProtoReflect.Descriptor instead.

func (*Result_StateUpdate) GetDutState

func (x *Result_StateUpdate) GetDutState() string

func (*Result_StateUpdate) ProtoMessage

func (*Result_StateUpdate) ProtoMessage()

func (*Result_StateUpdate) ProtoReflect

func (x *Result_StateUpdate) ProtoReflect() protoreflect.Message

func (*Result_StateUpdate) Reset

func (x *Result_StateUpdate) Reset()

func (*Result_StateUpdate) String

func (x *Result_StateUpdate) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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