analytics

package
v0.0.0-...-5dc5008 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_test_platform_analytics_result_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Status

type Status struct {

	// All the currently possible values (corresponding to
	// testplatform.Taskstate.LifeCycle enum values):
	//   NORMAL STATUS:
	//
	//     PENDING: task is pending somewhere and does not run.
	//     RUNNING: task is running.
	//     COMPLETED: ran to completion without being cancelled externally,
	//       regardless of whether it succeeded or failed. A task is completed
	//       only if all its sub-tasks have reached the end, either with a normal
	//       or abnormal status.
	//
	//   ABNORMAL STATUS:
	//
	//     CANCELLED: never got a chance to run, cancelled externally.
	//     REJECTED: never got a chance to run, rejected due to unsatisfiable
	//       depenedencies.
	//     ABORTED: started running but was cancelled externally while running.
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

The latest known status of a task, may change as the run progresses.

func (*Status) Descriptor deprecated

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

Deprecated: Use Status.ProtoReflect.Descriptor instead.

func (*Status) GetValue

func (x *Status) GetValue() string

func (*Status) ProtoMessage

func (*Status) ProtoMessage()

func (*Status) ProtoReflect

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

func (*Status) Reset

func (x *Status) Reset()

func (*Status) String

func (x *Status) String() string

type TestCaseResult

type TestCaseResult struct {

	// A unique name for this test case run,
	// format "testCaseResults/TEST_RUNNER_BUILD_ID/TEST_CASE_NAME", e.g.
	// "testCaseResults/8879199769272202448/provision_AutoUpdate.double".
	// Required field.
	Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
	// Test case name as it appears in status.log,
	// e.g. "provision_AutoUpdate.double".
	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// The TestRun.build_id of the parent test run.
	ParentBuildId int64    `protobuf:"varint,3,opt,name=parent_build_id,json=parentBuildId,proto3" json:"parent_build_id,omitempty"`
	Verdict       *Verdict `protobuf:"bytes,4,opt,name=verdict,proto3" json:"verdict,omitempty"`
	// 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,5,opt,name=human_readable_summary,json=humanReadableSummary,proto3" json:"human_readable_summary,omitempty"`
	// Time this test case was generated, which equals its test run's
	// end_time.
	//
	// TestCaseResult's Bigquery table partitions on this field.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// contains filtered or unexported fields
}

TestCaseResult describes the result of an individual test case.

func (*TestCaseResult) Descriptor deprecated

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

Deprecated: Use TestCaseResult.ProtoReflect.Descriptor instead.

func (*TestCaseResult) GetCreateTime

func (x *TestCaseResult) GetCreateTime() *timestamppb.Timestamp

func (*TestCaseResult) GetDisplayName

func (x *TestCaseResult) GetDisplayName() string

func (*TestCaseResult) GetHumanReadableSummary

func (x *TestCaseResult) GetHumanReadableSummary() string

func (*TestCaseResult) GetParentBuildId

func (x *TestCaseResult) GetParentBuildId() int64

func (*TestCaseResult) GetUid

func (x *TestCaseResult) GetUid() string

func (*TestCaseResult) GetVerdict

func (x *TestCaseResult) GetVerdict() *Verdict

func (*TestCaseResult) ProtoMessage

func (*TestCaseResult) ProtoMessage()

func (*TestCaseResult) ProtoReflect

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

func (*TestCaseResult) Reset

func (x *TestCaseResult) Reset()

func (*TestCaseResult) String

func (x *TestCaseResult) String() string

type TestPlanRun

type TestPlanRun struct {

	// A unique name to identify this test plan run, format
	// "testPlanRuns/CTP_BUILD_ID/REQ_KEY", where REQ_KEY is the CTP
	// request’s key in the multiple-request,
	// e.g. "testPlanRuns/8879199769272202448/octopus_ampton"
	// Required field.
	Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
	// CTP build ID.
	BuildId int64 `protobuf:"varint,2,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"`
	// Suite name. If the test plan is running an autotest suite,
	// this field is the autotest suite name, e.g. wifi_interop.
	Suite string `protobuf:"bytes,3,opt,name=suite,proto3" json:"suite,omitempty"`
	// Human friendly url to access this run.
	ExecutionUrl string `protobuf:"bytes,4,opt,name=execution_url,json=executionUrl,proto3" json:"execution_url,omitempty"`
	// The dut_pool in which the test plan ran, e.g. "DUT_POOL_QUOTA" or
	// "wificell".
	// It is case sensitive: "WIFICELL" and "wificell" represent different
	// pools.
	// Note that legacy pools "suites", "bvt" and "pcq" have been integrated
	// into "DUT_POOL_QUOTA" and legacy pool "cts" has been renamed to
	// "DUT_POOL_CTS".
	DutPool string `protobuf:"bytes,5,opt,name=dut_pool,json=dutPool,proto3" json:"dut_pool,omitempty"`
	// The build target, a.k.a board name, e.g. "hatch", "octopus".
	BuildTarget string `protobuf:"bytes,6,opt,name=build_target,json=buildTarget,proto3" json:"build_target,omitempty"`
	// CrOS build version, e.g. "R84/13091.0.0".
	ChromeosBuild string  `protobuf:"bytes,7,opt,name=chromeos_build,json=chromeosBuild,proto3" json:"chromeos_build,omitempty"`
	Status        *Status `protobuf:"bytes,8,opt,name=status,proto3" json:"status,omitempty"`
	// Use create_time/start_time/end_time below.
	// Timestamp inside a struct can not be used to
	// partition a Bigquery table.
	//
	// Deprecated: Do not use.
	Timeline *Timeline `protobuf:"bytes,9,opt,name=timeline,proto3" json:"timeline,omitempty"`
	// Time the CTP build was requested.
	//
	// Current CTP implementation does not report a single CTP request's timeline
	// Thus, we use the CTP build's timeline to preent a Test Plan Run's
	// lifecycle.
	//
	// BigQuery: Table partitioned on this field.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Time the CTP build began to execute in a bot.
	StartTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// Time the CTP build completed, unset if the task was
	// stopped unexpectedly before its completion.
	EndTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// contains filtered or unexported fields
}

TestPlanRun represents the test request defined by users and its running status.

func (*TestPlanRun) Descriptor deprecated

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

Deprecated: Use TestPlanRun.ProtoReflect.Descriptor instead.

func (*TestPlanRun) GetBuildId

func (x *TestPlanRun) GetBuildId() int64

func (*TestPlanRun) GetBuildTarget

func (x *TestPlanRun) GetBuildTarget() string

func (*TestPlanRun) GetChromeosBuild

func (x *TestPlanRun) GetChromeosBuild() string

func (*TestPlanRun) GetCreateTime

func (x *TestPlanRun) GetCreateTime() *timestamppb.Timestamp

func (*TestPlanRun) GetDutPool

func (x *TestPlanRun) GetDutPool() string

func (*TestPlanRun) GetEndTime

func (x *TestPlanRun) GetEndTime() *timestamppb.Timestamp

func (*TestPlanRun) GetExecutionUrl

func (x *TestPlanRun) GetExecutionUrl() string

func (*TestPlanRun) GetStartTime

func (x *TestPlanRun) GetStartTime() *timestamppb.Timestamp

func (*TestPlanRun) GetStatus

func (x *TestPlanRun) GetStatus() *Status

func (*TestPlanRun) GetSuite

func (x *TestPlanRun) GetSuite() string

func (*TestPlanRun) GetTimeline deprecated

func (x *TestPlanRun) GetTimeline() *Timeline

Deprecated: Do not use.

func (*TestPlanRun) GetUid

func (x *TestPlanRun) GetUid() string

func (*TestPlanRun) ProtoMessage

func (*TestPlanRun) ProtoMessage()

func (*TestPlanRun) ProtoReflect

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

func (*TestPlanRun) Reset

func (x *TestPlanRun) Reset()

func (*TestPlanRun) String

func (x *TestPlanRun) String() string

type TestRun

type TestRun struct {

	// Test runner build ID.
	BuildId int64 `protobuf:"varint,1,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"`
	// The name of the Skylab task corresponding to the test run, e.g.
	// "tast.critical-chrome".
	//
	// For tasks containing a single test case, will generally be the same as the
	// name of that test case, e.g. "provision_AutoUpdate.double".
	// Required field.
	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Human friendly url to access this run.
	ExecutionUrl string `protobuf:"bytes,3,opt,name=execution_url,json=executionUrl,proto3" json:"execution_url,omitempty"`
	// The TestPlanRun.uid of the parent test plan run.
	ParentUid string `protobuf:"bytes,4,opt,name=parent_uid,json=parentUid,proto3" json:"parent_uid,omitempty"`
	// Model name, e.g. "helios", "mimrock".
	// Note that a single TestPlanRun may be spread across multiple models, if
	// the test plan request did not specify a model to run.
	Model string `protobuf:"bytes,5,opt,name=model,proto3" json:"model,omitempty"`
	// Use create_time/start_time/end_time below.
	// Timestamp inside a struct can not be used to
	// partition a Bigquery table.
	//
	// Deprecated: Do not use.
	Timeline *Timeline `protobuf:"bytes,6,opt,name=timeline,proto3" json:"timeline,omitempty"`
	Status   *Status   `protobuf:"bytes,7,opt,name=status,proto3" json:"status,omitempty"`
	Verdict  *Verdict  `protobuf:"bytes,8,opt,name=verdict,proto3" json:"verdict,omitempty"`
	// The URL for the entire logs of this run.
	FullLogUrl string          `protobuf:"bytes,9,opt,name=full_log_url,json=fullLogUrl,proto3" json:"full_log_url,omitempty"`
	Prejob     *TestRun_Prejob `protobuf:"bytes,10,opt,name=prejob,proto3" json:"prejob,omitempty"`
	// Time the test runner build was requested.
	//
	// TestRun's Bigquery table partitions on this field.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Time the test runner build began to execute in a bot.
	StartTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// Time the test runner build completed, unset if the task was
	// stopped unexpectedly before its completion.
	EndTime *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// contains filtered or unexported fields
}

TestRun contains Skylab task level information.

func (*TestRun) Descriptor deprecated

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

Deprecated: Use TestRun.ProtoReflect.Descriptor instead.

func (*TestRun) GetBuildId

func (x *TestRun) GetBuildId() int64

func (*TestRun) GetCreateTime

func (x *TestRun) GetCreateTime() *timestamppb.Timestamp

func (*TestRun) GetDisplayName

func (x *TestRun) GetDisplayName() string

func (*TestRun) GetEndTime

func (x *TestRun) GetEndTime() *timestamppb.Timestamp

func (*TestRun) GetExecutionUrl

func (x *TestRun) GetExecutionUrl() string

func (*TestRun) GetFullLogUrl

func (x *TestRun) GetFullLogUrl() string

func (*TestRun) GetModel

func (x *TestRun) GetModel() string

func (*TestRun) GetParentUid

func (x *TestRun) GetParentUid() string

func (*TestRun) GetPrejob

func (x *TestRun) GetPrejob() *TestRun_Prejob

func (*TestRun) GetStartTime

func (x *TestRun) GetStartTime() *timestamppb.Timestamp

func (*TestRun) GetStatus

func (x *TestRun) GetStatus() *Status

func (*TestRun) GetTimeline deprecated

func (x *TestRun) GetTimeline() *Timeline

Deprecated: Do not use.

func (*TestRun) GetVerdict

func (x *TestRun) GetVerdict() *Verdict

func (*TestRun) ProtoMessage

func (*TestRun) ProtoMessage()

func (*TestRun) ProtoReflect

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

func (*TestRun) Reset

func (x *TestRun) Reset()

func (*TestRun) String

func (x *TestRun) String() string

type TestRun_Prejob

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

func (*TestRun_Prejob) Descriptor deprecated

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

Deprecated: Use TestRun_Prejob.ProtoReflect.Descriptor instead.

func (*TestRun_Prejob) GetVerdict

func (x *TestRun_Prejob) GetVerdict() *Verdict

func (*TestRun_Prejob) ProtoMessage

func (*TestRun_Prejob) ProtoMessage()

func (*TestRun_Prejob) ProtoReflect

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

func (*TestRun_Prejob) Reset

func (x *TestRun_Prejob) Reset()

func (*TestRun_Prejob) String

func (x *TestRun_Prejob) String() string

type Timeline

type Timeline struct {

	// Time the task was requested.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Time the task began to execute in a bot.
	StartTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// Time the task completed, unset if the task was
	// stopped unexpectedly before its completion.
	EndTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// Time the task was stopped unexpectedly, unset if
	// task has run to its end.
	AbandonTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=abandon_time,json=abandonTime,proto3" json:"abandon_time,omitempty"`
	// contains filtered or unexported fields
}

The timeline of a task.

func (*Timeline) Descriptor deprecated

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

Deprecated: Use Timeline.ProtoReflect.Descriptor instead.

func (*Timeline) GetAbandonTime

func (x *Timeline) GetAbandonTime() *timestamppb.Timestamp

func (*Timeline) GetCreateTime

func (x *Timeline) GetCreateTime() *timestamppb.Timestamp

func (*Timeline) GetEndTime

func (x *Timeline) GetEndTime() *timestamppb.Timestamp

func (*Timeline) GetStartTime

func (x *Timeline) GetStartTime() *timestamppb.Timestamp

func (*Timeline) ProtoMessage

func (*Timeline) ProtoMessage()

func (*Timeline) ProtoReflect

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

func (*Timeline) Reset

func (x *Timeline) Reset()

func (*Timeline) String

func (x *Timeline) String() string

type Verdict

type Verdict struct {

	// All the currently possible values (corresponding to
	// testplatform.Taskstate.Verdict enum values):
	//
	//   UNSPECIFIED(default): the task produced no usable verdict (possibly
	//     because it never ran, or never finished, or the results were
	//     unparseable).
	//     Under most circumstances, this should be treated as a failure or
	//     an infrastructure failure.
	//   PASSED: test run definitively passed.
	//   FAILED: test run definitively failed.
	//   NO_VERDICT: the task definitively produced no verdict(for instance,
	//     the test is irrelevant in the given environment).
	//     Under most circumstances, this should be treated as a passing
	//     (but uninteresting).
	//   PASSED_ON_RETRY: the task failed, but passed after one or more retries.
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

The known tokens describe whether a task passed, failed, or had some other indefinite verdict.

func (*Verdict) Descriptor deprecated

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

Deprecated: Use Verdict.ProtoReflect.Descriptor instead.

func (*Verdict) GetValue

func (x *Verdict) GetValue() string

func (*Verdict) ProtoMessage

func (*Verdict) ProtoMessage()

func (*Verdict) ProtoReflect

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

func (*Verdict) Reset

func (x *Verdict) Reset()

func (*Verdict) String

func (x *Verdict) String() string

Jump to

Keyboard shortcuts

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