phosphorus

package
v0.0.0-...-24183ba Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FetchCrashesResponse_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "SUCCEEDED",
		2: "FAILED",
		3: "TIMED_OUT",
		4: "ABORTED",
	}
	FetchCrashesResponse_State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"SUCCEEDED":         1,
		"FAILED":            2,
		"TIMED_OUT":         3,
		"ABORTED":           4,
	}
)

Enum value maps for FetchCrashesResponse_State.

View Source
var (
	PrejobResponse_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "SUCCEEDED",
		2: "FAILED",
		3: "TIMED_OUT",
		4: "ABORTED",
	}
	PrejobResponse_State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"SUCCEEDED":         1,
		"FAILED":            2,
		"TIMED_OUT":         3,
		"ABORTED":           4,
	}
)

Enum value maps for PrejobResponse_State.

View Source
var (
	RunTestResponse_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "SUCCEEDED",
		2: "FAILED",
		3: "TIMED_OUT",
		4: "ABORTED",
	}
	RunTestResponse_State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"SUCCEEDED":         1,
		"FAILED":            2,
		"TIMED_OUT":         3,
		"ABORTED":           4,
	}
)

Enum value maps for RunTestResponse_State.

View Source
var File_test_platform_phosphorus_common_proto protoreflect.FileDescriptor
View Source
var File_test_platform_phosphorus_fetchcrashes_proto protoreflect.FileDescriptor
View Source
var File_test_platform_phosphorus_prejob_proto protoreflect.FileDescriptor
View Source
var File_test_platform_phosphorus_runtest_proto protoreflect.FileDescriptor
View Source
var File_test_platform_phosphorus_upload_to_gs_proto protoreflect.FileDescriptor
View Source
var File_test_platform_phosphorus_upload_to_tko_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BotEnvironment

type BotEnvironment struct {

	// Absolute path to the autotest directory for the bot, e.g.
	// "/usr/local/autotest".
	AutotestDir string `protobuf:"bytes,1,opt,name=autotest_dir,json=autotestDir,proto3" json:"autotest_dir,omitempty"`
	// contains filtered or unexported fields
}

BotEnvironment defines bot-specific parameters used by phosphorus.

func (*BotEnvironment) Descriptor deprecated

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

Deprecated: Use BotEnvironment.ProtoReflect.Descriptor instead.

func (*BotEnvironment) GetAutotestDir

func (x *BotEnvironment) GetAutotestDir() string

func (*BotEnvironment) ProtoMessage

func (*BotEnvironment) ProtoMessage()

func (*BotEnvironment) ProtoReflect

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

func (*BotEnvironment) Reset

func (x *BotEnvironment) Reset()

func (*BotEnvironment) String

func (x *BotEnvironment) String() string

type Config

type Config struct {
	Bot               *BotEnvironment    `protobuf:"bytes,1,opt,name=bot,proto3" json:"bot,omitempty"`
	Task              *TaskEnvironment   `protobuf:"bytes,2,opt,name=task,proto3" json:"task,omitempty"`
	LogDataUploadStep *LogDataUploadStep `protobuf:"bytes,3,opt,name=log_data_upload_step,json=logDataUploadStep,proto3" json:"log_data_upload_step,omitempty"`
	FetchCrashesStep  *FetchCrashesStep  `protobuf:"bytes,4,opt,name=fetch_crashes_step,json=fetchCrashesStep,proto3" json:"fetch_crashes_step,omitempty"`
	PrejobStep        *PrejobStep        `protobuf:"bytes,5,opt,name=prejob_step,json=prejobStep,proto3" json:"prejob_step,omitempty"`
	// contains filtered or unexported fields
}

Config defines configuration parameters common to phosphorus subcommands.

func (*Config) Descriptor deprecated

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

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetBot

func (x *Config) GetBot() *BotEnvironment

func (*Config) GetFetchCrashesStep

func (x *Config) GetFetchCrashesStep() *FetchCrashesStep

func (*Config) GetLogDataUploadStep

func (x *Config) GetLogDataUploadStep() *LogDataUploadStep

func (*Config) GetPrejobStep

func (x *Config) GetPrejobStep() *PrejobStep

func (*Config) GetTask

func (x *Config) GetTask() *TaskEnvironment

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 CrashSummary

type CrashSummary struct {

	// Name of the crashing executable.
	ExecName string `protobuf:"bytes,1,opt,name=exec_name,json=execName,proto3" json:"exec_name,omitempty"`
	// If uploads were on, URL at which this crash can be found.
	UploadUrl string `protobuf:"bytes,2,opt,name=upload_url,json=uploadUrl,proto3" json:"upload_url,omitempty"`
	// Name of the integration test that was running when this crash happened, if
	// any.
	InProgressIntegrationTest string `` /* 140-byte string literal not displayed */
	// Crash signature (may not be populated for all crash types).
	Sig string `protobuf:"bytes,4,opt,name=sig,proto3" json:"sig,omitempty"`
	// Base part of crash filename in out dir. All files associated with the crash
	// will start with this string.
	// (e.g. chrome.20201202.130102.12345.4567)
	FilenameBase string `protobuf:"bytes,5,opt,name=filename_base,json=filenameBase,proto3" json:"filename_base,omitempty"`
	// contains filtered or unexported fields
}

CrashSummary defines details of crashes that will be easily accessible to callers always.

func (*CrashSummary) Descriptor deprecated

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

Deprecated: Use CrashSummary.ProtoReflect.Descriptor instead.

func (*CrashSummary) GetExecName

func (x *CrashSummary) GetExecName() string

func (*CrashSummary) GetFilenameBase

func (x *CrashSummary) GetFilenameBase() string

func (*CrashSummary) GetInProgressIntegrationTest

func (x *CrashSummary) GetInProgressIntegrationTest() string

func (*CrashSummary) GetSig

func (x *CrashSummary) GetSig() string

func (*CrashSummary) GetUploadUrl

func (x *CrashSummary) GetUploadUrl() string

func (*CrashSummary) ProtoMessage

func (*CrashSummary) ProtoMessage()

func (*CrashSummary) ProtoReflect

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

func (*CrashSummary) Reset

func (x *CrashSummary) Reset()

func (*CrashSummary) String

func (x *CrashSummary) String() string

type DutTopologyExperiment

type DutTopologyExperiment struct {

	// Global flag to control this experiment.
	Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// Test name allowlist to turn on this experiment on a per-test basis.
	TestAllowlist []string `protobuf:"bytes,2,rep,name=test_allowlist,json=testAllowlist,proto3" json:"test_allowlist,omitempty"`
	// Suite name allowlist to turn on this experiment on a per-suite basis.
	SuiteAllowlist []string `protobuf:"bytes,3,rep,name=suite_allowlist,json=suiteAllowlist,proto3" json:"suite_allowlist,omitempty"`
	// contains filtered or unexported fields
}

func (*DutTopologyExperiment) Descriptor deprecated

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

Deprecated: Use DutTopologyExperiment.ProtoReflect.Descriptor instead.

func (*DutTopologyExperiment) GetEnabled

func (x *DutTopologyExperiment) GetEnabled() bool

func (*DutTopologyExperiment) GetSuiteAllowlist

func (x *DutTopologyExperiment) GetSuiteAllowlist() []string

func (*DutTopologyExperiment) GetTestAllowlist

func (x *DutTopologyExperiment) GetTestAllowlist() []string

func (*DutTopologyExperiment) ProtoMessage

func (*DutTopologyExperiment) ProtoMessage()

func (*DutTopologyExperiment) ProtoReflect

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

func (*DutTopologyExperiment) Reset

func (x *DutTopologyExperiment) Reset()

func (*DutTopologyExperiment) String

func (x *DutTopologyExperiment) String() string

type FetchCrashesRequest

type FetchCrashesRequest struct {
	Config      *Config `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
	DutHostname string  `protobuf:"bytes,2,opt,name=dut_hostname,json=dutHostname,proto3" json:"dut_hostname,omitempty"`
	// Hard deadline for execution.
	//
	// FetchCrashes execution should abort beyond this deadline.
	Deadline *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=deadline,proto3" json:"deadline,omitempty"`
	// If set, upload crashes.
	// Currently, the command is a no-op if this is false, though eventually it
	// may save crashes to output directories.
	UploadCrashes bool `protobuf:"varint,4,opt,name=upload_crashes,json=uploadCrashes,proto3" json:"upload_crashes,omitempty"`
	// If set, upload crashes to http://crash-staging instead of http://crash.
	// Useful for testing.
	//
	// Deprecated: Do not use.
	UseStaging bool `protobuf:"varint,5,opt,name=use_staging,json=useStaging,proto3" json:"use_staging,omitempty"`
	// contains filtered or unexported fields
}

FetchCrashesRequest defines the input of `phosphorus fetchcrashes`.

func (*FetchCrashesRequest) Descriptor deprecated

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

Deprecated: Use FetchCrashesRequest.ProtoReflect.Descriptor instead.

func (*FetchCrashesRequest) GetConfig

func (x *FetchCrashesRequest) GetConfig() *Config

func (*FetchCrashesRequest) GetDeadline

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

func (*FetchCrashesRequest) GetDutHostname

func (x *FetchCrashesRequest) GetDutHostname() string

func (*FetchCrashesRequest) GetUploadCrashes

func (x *FetchCrashesRequest) GetUploadCrashes() bool

func (*FetchCrashesRequest) GetUseStaging deprecated

func (x *FetchCrashesRequest) GetUseStaging() bool

Deprecated: Do not use.

func (*FetchCrashesRequest) ProtoMessage

func (*FetchCrashesRequest) ProtoMessage()

func (*FetchCrashesRequest) ProtoReflect

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

func (*FetchCrashesRequest) Reset

func (x *FetchCrashesRequest) Reset()

func (*FetchCrashesRequest) String

func (x *FetchCrashesRequest) String() string

type FetchCrashesResponse

type FetchCrashesResponse struct {

	// `phosphorus fetch-crashes` exits with exit code 0 unless there is an
	// infrastructure failure. When the exit code is 0, `state` indicates the
	// best known state of the prejob execution (see comments on State enum).
	State FetchCrashesResponse_State `protobuf:"varint,1,opt,name=state,proto3,enum=test_platform.phosphorus.FetchCrashesResponse_State" json:"state,omitempty"`
	// Details on the uploaded crashes.
	Crashes []*CrashSummary `protobuf:"bytes,2,rep,name=crashes,proto3" json:"crashes,omitempty"`
	// Names of crashes that are present only in RTD output
	CrashesRtdOnly []string `protobuf:"bytes,4,rep,name=crashes_rtd_only,json=crashesRtdOnly,proto3" json:"crashes_rtd_only,omitempty"`
	// Names of crashes that are present only in FetchCrashes output
	CrashesTlsOnly []string `protobuf:"bytes,5,rep,name=crashes_tls_only,json=crashesTlsOnly,proto3" json:"crashes_tls_only,omitempty"`
	// contains filtered or unexported fields
}

FetchCrashesResponse defines the output of `phosphorus fetch-crashes`.

func (*FetchCrashesResponse) Descriptor deprecated

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

Deprecated: Use FetchCrashesResponse.ProtoReflect.Descriptor instead.

func (*FetchCrashesResponse) GetCrashes

func (x *FetchCrashesResponse) GetCrashes() []*CrashSummary

func (*FetchCrashesResponse) GetCrashesRtdOnly

func (x *FetchCrashesResponse) GetCrashesRtdOnly() []string

func (*FetchCrashesResponse) GetCrashesTlsOnly

func (x *FetchCrashesResponse) GetCrashesTlsOnly() []string

func (*FetchCrashesResponse) GetState

func (*FetchCrashesResponse) ProtoMessage

func (*FetchCrashesResponse) ProtoMessage()

func (*FetchCrashesResponse) ProtoReflect

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

func (*FetchCrashesResponse) Reset

func (x *FetchCrashesResponse) Reset()

func (*FetchCrashesResponse) String

func (x *FetchCrashesResponse) String() string

type FetchCrashesResponse_State

type FetchCrashesResponse_State int32

Values should be consistent with https://aip.dev/216

const (
	// Should not be used.
	FetchCrashesResponse_STATE_UNSPECIFIED FetchCrashesResponse_State = 0
	// FetchCrashes succeeded.
	FetchCrashesResponse_SUCCEEDED FetchCrashesResponse_State = 1
	// FetchCrashes failed.
	FetchCrashesResponse_FAILED FetchCrashesResponse_State = 2
	// FetchCrashes hit the requested timeout.
	FetchCrashesResponse_TIMED_OUT FetchCrashesResponse_State = 3
	// FetchCrashes was aborted externally.
	FetchCrashesResponse_ABORTED FetchCrashesResponse_State = 4
)

func (FetchCrashesResponse_State) Descriptor

func (FetchCrashesResponse_State) Enum

func (FetchCrashesResponse_State) EnumDescriptor deprecated

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

Deprecated: Use FetchCrashesResponse_State.Descriptor instead.

func (FetchCrashesResponse_State) Number

func (FetchCrashesResponse_State) String

func (FetchCrashesResponse_State) Type

type FetchCrashesStep

type FetchCrashesStep struct {

	// URL of the crash server where crashes can be uploaded.
	// e.g.: https://clients2.google.com/cr/report
	CrashServerReportUrl string `protobuf:"bytes,1,opt,name=crash_server_report_url,json=crashServerReportUrl,proto3" json:"crash_server_report_url,omitempty"`
	// URL of the crash server where pre-uploaded crashes can be viewed.
	// e.g.: https://crash.corp.google.com
	CrashServerViewUrl string `protobuf:"bytes,2,opt,name=crash_server_view_url,json=crashServerViewUrl,proto3" json:"crash_server_view_url,omitempty"`
	// contains filtered or unexported fields
}

func (*FetchCrashesStep) Descriptor deprecated

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

Deprecated: Use FetchCrashesStep.ProtoReflect.Descriptor instead.

func (*FetchCrashesStep) GetCrashServerReportUrl

func (x *FetchCrashesStep) GetCrashServerReportUrl() string

func (*FetchCrashesStep) GetCrashServerViewUrl

func (x *FetchCrashesStep) GetCrashServerViewUrl() string

func (*FetchCrashesStep) ProtoMessage

func (*FetchCrashesStep) ProtoMessage()

func (*FetchCrashesStep) ProtoReflect

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

func (*FetchCrashesStep) Reset

func (x *FetchCrashesStep) Reset()

func (*FetchCrashesStep) String

func (x *FetchCrashesStep) String() string

type LogDataUploadStep

type LogDataUploadStep struct {

	// Controls the maximum number of files that may be uploaded concurrently.
	// If unset, a hard-coded constant is used to limit concurrency (i.e., there
	// is no way to request unlimited concurrent uploads).
	MaxConcurrentUploads int32 `protobuf:"varint,1,opt,name=max_concurrent_uploads,json=maxConcurrentUploads,proto3" json:"max_concurrent_uploads,omitempty"`
	// contains filtered or unexported fields
}

Knobs specific to the step that uploads log-data to Google Storage.

func (*LogDataUploadStep) Descriptor deprecated

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

Deprecated: Use LogDataUploadStep.ProtoReflect.Descriptor instead.

func (*LogDataUploadStep) GetMaxConcurrentUploads

func (x *LogDataUploadStep) GetMaxConcurrentUploads() int32

func (*LogDataUploadStep) ProtoMessage

func (*LogDataUploadStep) ProtoMessage()

func (*LogDataUploadStep) ProtoReflect

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

func (*LogDataUploadStep) Reset

func (x *LogDataUploadStep) Reset()

func (*LogDataUploadStep) String

func (x *LogDataUploadStep) String() string

type PrejobRequest

type PrejobRequest struct {
	Config      *Config `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
	DutHostname string  `protobuf:"bytes,2,opt,name=dut_hostname,json=dutHostname,proto3" json:"dut_hostname,omitempty"`
	// TODO(crbug.com/1162347): Delete this post-migration.
	//
	// Deprecated: Do not use.
	ProvisionableLabels map[string]string `` /* 206-byte string literal not displayed */
	// What needs to be installed onto the DUT at the end of prejob, e.g.
	// "cros-version": "reef-release/R77-12345.0.0".
	// TODO(crbug.com/1162347): Delete this post-migration.
	//
	// Deprecated: Do not use.
	DesiredProvisionableLabels map[string]string `` /* 229-byte string literal not displayed */
	// 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,8,rep,name=software_dependencies,json=softwareDependencies,proto3" json:"software_dependencies,omitempty"`
	// What is installed on the DUT before the prejob, e.g.
	// "cros-version": "reef-release/R77-12345.0.0".
	ExistingProvisionableLabels map[string]string `` /* 232-byte string literal not displayed */
	// Hard deadline for execution.
	//
	// All prejob execution should abort beyond this deadline.
	Deadline *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=deadline,proto3" json:"deadline,omitempty"`
	// 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,7,opt,name=use_tls,json=useTls,proto3" json:"use_tls,omitempty"`
	// This field provide metadata to provision secondary devices in a multi-DUTs
	// test.
	AddtionalTargets []*PrejobRequest_ProvisionTarget `protobuf:"bytes,9,rep,name=addtional_targets,json=addtionalTargets,proto3" json:"addtional_targets,omitempty"`
	// This field served as a flag to decide if we should update OS bundled
	// firmware(RW) during the provision step.
	UpdateFirmware bool `protobuf:"varint,10,opt,name=update_firmware,json=updateFirmware,proto3" json:"update_firmware,omitempty"`
	// This field controls whether to provision googler ssh key only.
	// If set, provision will only enable googler ssh key on the DUT.
	// Otherwise, provision will enable external ssh key (which is the current
	// status) on the DUT.
	ProvisionGooglerSshKey bool `` /* 133-byte string literal not displayed */
	// contains filtered or unexported fields
}

PrejobRequest defines the input of `phosphorus prejob`.

func (*PrejobRequest) Descriptor deprecated

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

Deprecated: Use PrejobRequest.ProtoReflect.Descriptor instead.

func (*PrejobRequest) GetAddtionalTargets

func (x *PrejobRequest) GetAddtionalTargets() []*PrejobRequest_ProvisionTarget

func (*PrejobRequest) GetConfig

func (x *PrejobRequest) GetConfig() *Config

func (*PrejobRequest) GetDeadline

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

func (*PrejobRequest) GetDesiredProvisionableLabels deprecated

func (x *PrejobRequest) GetDesiredProvisionableLabels() map[string]string

Deprecated: Do not use.

func (*PrejobRequest) GetDutHostname

func (x *PrejobRequest) GetDutHostname() string

func (*PrejobRequest) GetExistingProvisionableLabels

func (x *PrejobRequest) GetExistingProvisionableLabels() map[string]string

func (*PrejobRequest) GetProvisionGooglerSshKey

func (x *PrejobRequest) GetProvisionGooglerSshKey() bool

func (*PrejobRequest) GetProvisionableLabels deprecated

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

Deprecated: Do not use.

func (*PrejobRequest) GetSoftwareDependencies

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

func (*PrejobRequest) GetUpdateFirmware

func (x *PrejobRequest) GetUpdateFirmware() bool

func (*PrejobRequest) GetUseTls

func (x *PrejobRequest) GetUseTls() bool

func (*PrejobRequest) ProtoMessage

func (*PrejobRequest) ProtoMessage()

func (*PrejobRequest) ProtoReflect

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

func (*PrejobRequest) Reset

func (x *PrejobRequest) Reset()

func (*PrejobRequest) String

func (x *PrejobRequest) String() string

type PrejobRequest_ProvisionTarget

type PrejobRequest_ProvisionTarget struct {
	DutHostname          string                                             `protobuf:"bytes,1,opt,name=dut_hostname,json=dutHostname,proto3" json:"dut_hostname,omitempty"`
	SoftwareDependencies []*test_platform.Request_Params_SoftwareDependency `protobuf:"bytes,2,rep,name=software_dependencies,json=softwareDependencies,proto3" json:"software_dependencies,omitempty"`
	// Provision OS bundled firmware is controlled at each DUT level, so we need
	// this flag for secondary devices as well.
	UpdateFirmware bool `protobuf:"varint,3,opt,name=update_firmware,json=updateFirmware,proto3" json:"update_firmware,omitempty"`
	// Provision googler ssh key or not is controlled at each DUT level.
	ProvisionGooglerSshKey bool `` /* 132-byte string literal not displayed */
	// contains filtered or unexported fields
}

ProvisionTarget defines an addtional provision target and its software dependencies. Addtional provision target will share other config(e.g. use_tls) from the primary DUT.

func (*PrejobRequest_ProvisionTarget) Descriptor deprecated

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

Deprecated: Use PrejobRequest_ProvisionTarget.ProtoReflect.Descriptor instead.

func (*PrejobRequest_ProvisionTarget) GetDutHostname

func (x *PrejobRequest_ProvisionTarget) GetDutHostname() string

func (*PrejobRequest_ProvisionTarget) GetProvisionGooglerSshKey

func (x *PrejobRequest_ProvisionTarget) GetProvisionGooglerSshKey() bool

func (*PrejobRequest_ProvisionTarget) GetSoftwareDependencies

func (*PrejobRequest_ProvisionTarget) GetUpdateFirmware

func (x *PrejobRequest_ProvisionTarget) GetUpdateFirmware() bool

func (*PrejobRequest_ProvisionTarget) ProtoMessage

func (*PrejobRequest_ProvisionTarget) ProtoMessage()

func (*PrejobRequest_ProvisionTarget) ProtoReflect

func (*PrejobRequest_ProvisionTarget) Reset

func (x *PrejobRequest_ProvisionTarget) Reset()

func (*PrejobRequest_ProvisionTarget) String

type PrejobResponse

type PrejobResponse struct {

	// `phosphorus prejob` exits with exit code 0 unless there is an
	// infrastructure failure. When the exit code is 0, `state` indicates the
	// best known state of the prejob execution (see comments on State enum).
	State PrejobResponse_State `protobuf:"varint,1,opt,name=state,proto3,enum=test_platform.phosphorus.PrejobResponse_State" json:"state,omitempty"`
	// contains filtered or unexported fields
}

PrejobResponse defines the output of `phosphorus prejob`.

func (*PrejobResponse) Descriptor deprecated

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

Deprecated: Use PrejobResponse.ProtoReflect.Descriptor instead.

func (*PrejobResponse) GetState

func (x *PrejobResponse) GetState() PrejobResponse_State

func (*PrejobResponse) ProtoMessage

func (*PrejobResponse) ProtoMessage()

func (*PrejobResponse) ProtoReflect

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

func (*PrejobResponse) Reset

func (x *PrejobResponse) Reset()

func (*PrejobResponse) String

func (x *PrejobResponse) String() string

type PrejobResponse_State

type PrejobResponse_State int32

Values should be consistent with https://aip.dev/216

const (
	// Should not be used.
	PrejobResponse_STATE_UNSPECIFIED PrejobResponse_State = 0
	// The prejob succeeded.
	//
	// Some prejob failures may not be detectable during execution. These
	// failures will be detected when parsing results off the prejob logs in a
	// later step of test_runner.
	PrejobResponse_SUCCEEDED PrejobResponse_State = 1
	// The prejob failed.
	PrejobResponse_FAILED PrejobResponse_State = 2
	// The prejob hit the requested timeout.
	PrejobResponse_TIMED_OUT PrejobResponse_State = 3
	// The prejob was aborted externally.
	PrejobResponse_ABORTED PrejobResponse_State = 4
)

func (PrejobResponse_State) Descriptor

func (PrejobResponse_State) Enum

func (PrejobResponse_State) EnumDescriptor deprecated

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

Deprecated: Use PrejobResponse_State.Descriptor instead.

func (PrejobResponse_State) Number

func (PrejobResponse_State) String

func (x PrejobResponse_State) String() string

func (PrejobResponse_State) Type

type PrejobStep

type PrejobStep struct {
	ProvisionDutExperiment *ProvisionDutExperiment `` /* 129-byte string literal not displayed */
	DutTopologyExperiment  *DutTopologyExperiment  `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

Knobs specific to the step that runs tasks to prepare the DUT for test.

func (*PrejobStep) Descriptor deprecated

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

Deprecated: Use PrejobStep.ProtoReflect.Descriptor instead.

func (*PrejobStep) GetDutTopologyExperiment

func (x *PrejobStep) GetDutTopologyExperiment() *DutTopologyExperiment

func (*PrejobStep) GetProvisionDutExperiment

func (x *PrejobStep) GetProvisionDutExperiment() *ProvisionDutExperiment

func (*PrejobStep) ProtoMessage

func (*PrejobStep) ProtoMessage()

func (*PrejobStep) ProtoReflect

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

func (*PrejobStep) Reset

func (x *PrejobStep) Reset()

func (*PrejobStep) String

func (x *PrejobStep) String() string

type ProvisionDutExperiment

type ProvisionDutExperiment struct {

	// Global flag to control this experiment.
	Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// Types that are assignable to CrosVersionSelector:
	//	*ProvisionDutExperiment_CrosVersionAllowList
	//	*ProvisionDutExperiment_CrosVersionDisallowList
	CrosVersionSelector isProvisionDutExperiment_CrosVersionSelector `protobuf_oneof:"cros_version_selector"`
	// contains filtered or unexported fields
}

func (*ProvisionDutExperiment) Descriptor deprecated

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

Deprecated: Use ProvisionDutExperiment.ProtoReflect.Descriptor instead.

func (*ProvisionDutExperiment) GetCrosVersionAllowList

func (*ProvisionDutExperiment) GetCrosVersionDisallowList

func (x *ProvisionDutExperiment) GetCrosVersionDisallowList() *ProvisionDutExperiment_CrosVersionSelector

func (*ProvisionDutExperiment) GetCrosVersionSelector

func (m *ProvisionDutExperiment) GetCrosVersionSelector() isProvisionDutExperiment_CrosVersionSelector

func (*ProvisionDutExperiment) GetEnabled

func (x *ProvisionDutExperiment) GetEnabled() bool

func (*ProvisionDutExperiment) ProtoMessage

func (*ProvisionDutExperiment) ProtoMessage()

func (*ProvisionDutExperiment) ProtoReflect

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

func (*ProvisionDutExperiment) Reset

func (x *ProvisionDutExperiment) Reset()

func (*ProvisionDutExperiment) String

func (x *ProvisionDutExperiment) String() string

type ProvisionDutExperiment_CrosVersionAllowList

type ProvisionDutExperiment_CrosVersionAllowList struct {
	// Only use ProvisionDut TLS API for the selected requests.
	CrosVersionAllowList *ProvisionDutExperiment_CrosVersionSelector `protobuf:"bytes,2,opt,name=cros_version_allow_list,json=crosVersionAllowList,proto3,oneof"`
}

type ProvisionDutExperiment_CrosVersionDisallowList

type ProvisionDutExperiment_CrosVersionDisallowList struct {
	// Use ProvisionDut TLS API for all requests *except* the ones selected.
	CrosVersionDisallowList *ProvisionDutExperiment_CrosVersionSelector `protobuf:"bytes,3,opt,name=cros_version_disallow_list,json=crosVersionDisallowList,proto3,oneof"`
}

type ProvisionDutExperiment_CrosVersionSelector

type ProvisionDutExperiment_CrosVersionSelector struct {

	// Selects prejob requests by the cros-version of the OS image to install on
	// the DUT.
	//
	// e.g., a value of "reef-release" would select "reef-release/R87.1282.0.0"
	// etc.
	Prefixes []string `protobuf:"bytes,1,rep,name=prefixes,proto3" json:"prefixes,omitempty"`
	// contains filtered or unexported fields
}

func (*ProvisionDutExperiment_CrosVersionSelector) Descriptor deprecated

Deprecated: Use ProvisionDutExperiment_CrosVersionSelector.ProtoReflect.Descriptor instead.

func (*ProvisionDutExperiment_CrosVersionSelector) GetPrefixes

func (*ProvisionDutExperiment_CrosVersionSelector) ProtoMessage

func (*ProvisionDutExperiment_CrosVersionSelector) ProtoReflect

func (*ProvisionDutExperiment_CrosVersionSelector) Reset

func (*ProvisionDutExperiment_CrosVersionSelector) String

type RunTestRequest

type RunTestRequest struct {
	Config *Config `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
	// A test may use more than one DUT at once.
	DutHostnames []string `protobuf:"bytes,2,rep,name=dut_hostnames,json=dutHostnames,proto3" json:"dut_hostnames,omitempty"`
	// Types that are assignable to Test:
	//	*RunTestRequest_Autotest_
	Test isRunTestRequest_Test `protobuf_oneof:"test"`
	// Hard deadline for execution.
	//
	// All test execution should abort beyond this deadline.
	Deadline *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=deadline,proto3" json:"deadline,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").
	//
	// Results will be in the same results dir on the host.
	//
	// The container will be pulled if needed.
	ContainerImageInfo *api.ContainerImageInfo `protobuf:"bytes,6,opt,name=container_image_info,json=containerImageInfo,proto3" json:"container_image_info,omitempty"`
	// If provided limit the execution time of the suite to this
	MaxExecutionSeconds int64 `protobuf:"varint,7,opt,name=max_execution_seconds,json=maxExecutionSeconds,proto3" json:"max_execution_seconds,omitempty"`
	// contains filtered or unexported fields
}

RunTestRequest defines the input of `phosphorus runtest`.

func (*RunTestRequest) Descriptor deprecated

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

Deprecated: Use RunTestRequest.ProtoReflect.Descriptor instead.

func (*RunTestRequest) GetAutotest

func (x *RunTestRequest) GetAutotest() *RunTestRequest_Autotest

func (*RunTestRequest) GetConfig

func (x *RunTestRequest) GetConfig() *Config

func (*RunTestRequest) GetContainerImageInfo

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

func (*RunTestRequest) GetDeadline

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

func (*RunTestRequest) GetDutHostnames

func (x *RunTestRequest) GetDutHostnames() []string

func (*RunTestRequest) GetMaxExecutionSeconds

func (x *RunTestRequest) GetMaxExecutionSeconds() int64

func (*RunTestRequest) GetTest

func (m *RunTestRequest) GetTest() isRunTestRequest_Test

func (*RunTestRequest) ProtoMessage

func (*RunTestRequest) ProtoMessage()

func (*RunTestRequest) ProtoReflect

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

func (*RunTestRequest) Reset

func (x *RunTestRequest) Reset()

func (*RunTestRequest) String

func (x *RunTestRequest) String() string

type RunTestRequest_Autotest

type RunTestRequest_Autotest struct {

	// Test name as given in the control file.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Args to pass into the test run (meaning depends on the test).
	TestArgs string `protobuf:"bytes,2,opt,name=test_args,json=testArgs,proto3" json:"test_args,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.
	DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// True for client-side tests, false for server-side tests.
	IsClientTest bool `protobuf:"varint,4,opt,name=is_client_test,json=isClientTest,proto3" json:"is_client_test,omitempty"`
	// Key:value pairs added to the autoserv command. These are metadata which
	// should not affect code execution.
	Keyvals map[string]string `` /* 155-byte string literal not displayed */
	// Hostname of peer DUTs in a multi-DUTs task.
	PeerDuts []string `protobuf:"bytes,6,rep,name=peer_duts,json=peerDuts,proto3" json:"peer_duts,omitempty"`
	// The image storage server to fetch the image from.
	// e.g. gs://chromeos-image-archive or gs://chromeos-releases-test
	ImageStorageServer string `protobuf:"bytes,7,opt,name=image_storage_server,json=imageStorageServer,proto3" json:"image_storage_server,omitempty"`
	// contains filtered or unexported fields
}

Autotest describes the DUT-agnostic parameters of an autotest test run.

func (*RunTestRequest_Autotest) Descriptor deprecated

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

Deprecated: Use RunTestRequest_Autotest.ProtoReflect.Descriptor instead.

func (*RunTestRequest_Autotest) GetDisplayName

func (x *RunTestRequest_Autotest) GetDisplayName() string

func (*RunTestRequest_Autotest) GetImageStorageServer

func (x *RunTestRequest_Autotest) GetImageStorageServer() string

func (*RunTestRequest_Autotest) GetIsClientTest

func (x *RunTestRequest_Autotest) GetIsClientTest() bool

func (*RunTestRequest_Autotest) GetKeyvals

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

func (*RunTestRequest_Autotest) GetName

func (x *RunTestRequest_Autotest) GetName() string

func (*RunTestRequest_Autotest) GetPeerDuts

func (x *RunTestRequest_Autotest) GetPeerDuts() []string

func (*RunTestRequest_Autotest) GetTestArgs

func (x *RunTestRequest_Autotest) GetTestArgs() string

func (*RunTestRequest_Autotest) ProtoMessage

func (*RunTestRequest_Autotest) ProtoMessage()

func (*RunTestRequest_Autotest) ProtoReflect

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

func (*RunTestRequest_Autotest) Reset

func (x *RunTestRequest_Autotest) Reset()

func (*RunTestRequest_Autotest) String

func (x *RunTestRequest_Autotest) String() string

type RunTestRequest_Autotest_

type RunTestRequest_Autotest_ struct {
	Autotest *RunTestRequest_Autotest `protobuf:"bytes,3,opt,name=autotest,proto3,oneof"`
}

type RunTestResponse

type RunTestResponse struct {

	// `phosphorus runtest` exits with exit code 0 unless there is an
	// infrastructure failure. When the exit code is 0, `state` indicates the
	// best known state of the test execution (see comments on State enum).
	State RunTestResponse_State `protobuf:"varint,1,opt,name=state,proto3,enum=test_platform.phosphorus.RunTestResponse_State" json:"state,omitempty"`
	// Absolute path to the test results directory created by `runtest`.
	// Must be inside config.task.results_dir (the overall results directory).
	ResultsDir string `protobuf:"bytes,2,opt,name=results_dir,json=resultsDir,proto3" json:"results_dir,omitempty"`
	// contains filtered or unexported fields
}

RunTestResponse defines the output of `phosphorus runtest`.

func (*RunTestResponse) Descriptor deprecated

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

Deprecated: Use RunTestResponse.ProtoReflect.Descriptor instead.

func (*RunTestResponse) GetResultsDir

func (x *RunTestResponse) GetResultsDir() string

func (*RunTestResponse) GetState

func (x *RunTestResponse) GetState() RunTestResponse_State

func (*RunTestResponse) ProtoMessage

func (*RunTestResponse) ProtoMessage()

func (*RunTestResponse) ProtoReflect

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

func (*RunTestResponse) Reset

func (x *RunTestResponse) Reset()

func (*RunTestResponse) String

func (x *RunTestResponse) String() string

type RunTestResponse_State

type RunTestResponse_State int32

Values should be consistent with https://aip.dev/216

const (
	// Should not be used.
	RunTestResponse_STATE_UNSPECIFIED RunTestResponse_State = 0
	// The test succeeded.
	//
	// Some test failures may not be detectable during execution. These
	// failures will be detected when parsing results off the test logs in a
	// later step of test_runner.
	RunTestResponse_SUCCEEDED RunTestResponse_State = 1
	// The test failed.
	RunTestResponse_FAILED RunTestResponse_State = 2
	// The test hit the requested timeout.
	RunTestResponse_TIMED_OUT RunTestResponse_State = 3
	// The test was aborted externally.
	RunTestResponse_ABORTED RunTestResponse_State = 4
)

func (RunTestResponse_State) Descriptor

func (RunTestResponse_State) Enum

func (RunTestResponse_State) EnumDescriptor deprecated

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

Deprecated: Use RunTestResponse_State.Descriptor instead.

func (RunTestResponse_State) Number

func (RunTestResponse_State) String

func (x RunTestResponse_State) String() string

func (RunTestResponse_State) Type

type TaskEnvironment

type TaskEnvironment struct {

	// Absolute path to the results directory for a given run. Include results of
	//  both tests and non-test tasks like provision
	ResultsDir string `protobuf:"bytes,2,opt,name=results_dir,json=resultsDir,proto3" json:"results_dir,omitempty"`
	// Absolute path to the results directory for a given run's tests.
	//  MUST be equal to ${results_dir}/autoserv_test if present. This restriction
	//  may be lifted in the future.
	TestResultsDir string `protobuf:"bytes,3,opt,name=test_results_dir,json=testResultsDir,proto3" json:"test_results_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,4,opt,name=ssp_base_image_name,json=sspBaseImageName,proto3" json:"ssp_base_image_name,omitempty"`
	// contains filtered or unexported fields
}

TaskEnvironment defines task-specific parameters used by phosphorus.

func (*TaskEnvironment) Descriptor deprecated

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

Deprecated: Use TaskEnvironment.ProtoReflect.Descriptor instead.

func (*TaskEnvironment) GetResultsDir

func (x *TaskEnvironment) GetResultsDir() string

func (*TaskEnvironment) GetSspBaseImageName

func (x *TaskEnvironment) GetSspBaseImageName() string

func (*TaskEnvironment) GetTestResultsDir

func (x *TaskEnvironment) GetTestResultsDir() string

func (*TaskEnvironment) ProtoMessage

func (*TaskEnvironment) ProtoMessage()

func (*TaskEnvironment) ProtoReflect

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

func (*TaskEnvironment) Reset

func (x *TaskEnvironment) Reset()

func (*TaskEnvironment) String

func (x *TaskEnvironment) String() string

type UploadToGSRequest

type UploadToGSRequest struct {

	// Deprecated in favor of local_directory, which is the only thing it's used
	// for. Assembling that directory is moving to the 'callers'.
	//
	// Deprecated: Do not use.
	Config *Config `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
	// GS path to upload to, e.g. gs://foo/bar/baz/
	GsDirectory string `protobuf:"bytes,2,opt,name=gs_directory,json=gsDirectory,proto3" json:"gs_directory,omitempty"`
	// Absolute path to local directory to upload to GS, e.g. /usr/local/foo/bar
	LocalDirectory string `protobuf:"bytes,4,opt,name=local_directory,json=localDirectory,proto3" json:"local_directory,omitempty"`
	// contains filtered or unexported fields
}

UploadToGSRequest defines the input of `phosphorus upload-to-gs`, for uploading to Google Storage.

func (*UploadToGSRequest) Descriptor deprecated

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

Deprecated: Use UploadToGSRequest.ProtoReflect.Descriptor instead.

func (*UploadToGSRequest) GetConfig deprecated

func (x *UploadToGSRequest) GetConfig() *Config

Deprecated: Do not use.

func (*UploadToGSRequest) GetGsDirectory

func (x *UploadToGSRequest) GetGsDirectory() string

func (*UploadToGSRequest) GetLocalDirectory

func (x *UploadToGSRequest) GetLocalDirectory() string

func (*UploadToGSRequest) ProtoMessage

func (*UploadToGSRequest) ProtoMessage()

func (*UploadToGSRequest) ProtoReflect

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

func (*UploadToGSRequest) Reset

func (x *UploadToGSRequest) Reset()

func (*UploadToGSRequest) String

func (x *UploadToGSRequest) String() string

type UploadToGSResponse

type UploadToGSResponse struct {

	// URL of Google Storage location containing offloaded files
	GsUrl string `protobuf:"bytes,1,opt,name=gs_url,json=gsUrl,proto3" json:"gs_url,omitempty"`
	// contains filtered or unexported fields
}

func (*UploadToGSResponse) Descriptor deprecated

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

Deprecated: Use UploadToGSResponse.ProtoReflect.Descriptor instead.

func (*UploadToGSResponse) GetGsUrl

func (x *UploadToGSResponse) GetGsUrl() string

func (*UploadToGSResponse) ProtoMessage

func (*UploadToGSResponse) ProtoMessage()

func (*UploadToGSResponse) ProtoReflect

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

func (*UploadToGSResponse) Reset

func (x *UploadToGSResponse) Reset()

func (*UploadToGSResponse) String

func (x *UploadToGSResponse) String() string

type UploadToTkoRequest

type UploadToTkoRequest struct {
	Config *Config `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
	// contains filtered or unexported fields
}

UploadToTkoRequest defines the input of `phosphorus upload-to-tko`.

func (*UploadToTkoRequest) Descriptor deprecated

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

Deprecated: Use UploadToTkoRequest.ProtoReflect.Descriptor instead.

func (*UploadToTkoRequest) GetConfig

func (x *UploadToTkoRequest) GetConfig() *Config

func (*UploadToTkoRequest) ProtoMessage

func (*UploadToTkoRequest) ProtoMessage()

func (*UploadToTkoRequest) ProtoReflect

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

func (*UploadToTkoRequest) Reset

func (x *UploadToTkoRequest) Reset()

func (*UploadToTkoRequest) String

func (x *UploadToTkoRequest) String() string

Jump to

Keyboard shortcuts

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