state

package
v0.0.130 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_state_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AlertInfo

type AlertInfo struct {

	// Number of results that have failed.
	FailCount int32 `protobuf:"varint,1,opt,name=fail_count,json=failCount,proto3" json:"fail_count,omitempty"`
	// The build ID the test first failed at.
	FailBuildId string `protobuf:"bytes,2,opt,name=fail_build_id,json=failBuildId,proto3" json:"fail_build_id,omitempty"`
	// The time the test first failed at.
	FailTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=fail_time,json=failTime,proto3" json:"fail_time,omitempty"`
	// The test ID for the first test failure.
	FailTestId string `protobuf:"bytes,4,opt,name=fail_test_id,json=failTestId,proto3" json:"fail_test_id,omitempty"`
	// The build ID the test last passed at.
	PassBuildId string `protobuf:"bytes,5,opt,name=pass_build_id,json=passBuildId,proto3" json:"pass_build_id,omitempty"`
	// The time the test last passed at.
	PassTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=pass_time,json=passTime,proto3" json:"pass_time,omitempty"`
	// A snippet explaining the failure.
	FailureMessage string `protobuf:"bytes,7,opt,name=failure_message,json=failureMessage,proto3" json:"failure_message,omitempty"`
	// Link to search for build changes, internally a code-search link.
	BuildLink string `protobuf:"bytes,8,opt,name=build_link,json=buildLink,proto3" json:"build_link,omitempty"`
	// Text for option to search for build changes.
	BuildLinkText string `protobuf:"bytes,9,opt,name=build_link_text,json=buildLinkText,proto3" json:"build_link_text,omitempty"`
	// Text to display for link to search for build changes.
	BuildUrlText string `protobuf:"bytes,10,opt,name=build_url_text,json=buildUrlText,proto3" json:"build_url_text,omitempty"`
	// The build ID for the latest test failure. (Does not indicate the failure is
	// 'over', just the latest test failure we found.)
	LatestFailBuildId string `protobuf:"bytes,11,opt,name=latest_fail_build_id,json=latestFailBuildId,proto3" json:"latest_fail_build_id,omitempty"`
	// The test ID for the latest test failure.
	LatestFailTestId string `protobuf:"bytes,14,opt,name=latest_fail_test_id,json=latestFailTestId,proto3" json:"latest_fail_test_id,omitempty"`
	// Maps (property name):(property value) for arbitrary alert properties.
	Properties map[string]string `` /* 162-byte string literal not displayed */
	// A list of IDs for issue hotlists related to this failure.
	HotlistIds []string `protobuf:"bytes,13,rep,name=hotlist_ids,json=hotlistIds,proto3" json:"hotlist_ids,omitempty"`
	// Dynamic email list, route email alerts to these instead of the configured
	// defaults.
	EmailAddresses []string `protobuf:"bytes,15,rep,name=email_addresses,json=emailAddresses,proto3" json:"email_addresses,omitempty"`
	// contains filtered or unexported fields
}

Info on a failing test row about the failure.

func (*AlertInfo) Descriptor deprecated

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

Deprecated: Use AlertInfo.ProtoReflect.Descriptor instead.

func (x *AlertInfo) GetBuildLink() string

func (*AlertInfo) GetBuildLinkText

func (x *AlertInfo) GetBuildLinkText() string

func (*AlertInfo) GetBuildUrlText

func (x *AlertInfo) GetBuildUrlText() string

func (*AlertInfo) GetEmailAddresses added in v0.0.74

func (x *AlertInfo) GetEmailAddresses() []string

func (*AlertInfo) GetFailBuildId

func (x *AlertInfo) GetFailBuildId() string

func (*AlertInfo) GetFailCount

func (x *AlertInfo) GetFailCount() int32

func (*AlertInfo) GetFailTestId

func (x *AlertInfo) GetFailTestId() string

func (*AlertInfo) GetFailTime

func (x *AlertInfo) GetFailTime() *timestamp.Timestamp

func (*AlertInfo) GetFailureMessage

func (x *AlertInfo) GetFailureMessage() string

func (*AlertInfo) GetHotlistIds added in v0.0.30

func (x *AlertInfo) GetHotlistIds() []string

func (*AlertInfo) GetLatestFailBuildId added in v0.0.17

func (x *AlertInfo) GetLatestFailBuildId() string

func (*AlertInfo) GetLatestFailTestId added in v0.0.49

func (x *AlertInfo) GetLatestFailTestId() string

func (*AlertInfo) GetPassBuildId

func (x *AlertInfo) GetPassBuildId() string

func (*AlertInfo) GetPassTime

func (x *AlertInfo) GetPassTime() *timestamp.Timestamp

func (*AlertInfo) GetProperties added in v0.0.24

func (x *AlertInfo) GetProperties() map[string]string

func (*AlertInfo) ProtoMessage

func (*AlertInfo) ProtoMessage()

func (*AlertInfo) ProtoReflect added in v0.0.91

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

func (*AlertInfo) Reset

func (x *AlertInfo) Reset()

func (*AlertInfo) String

func (x *AlertInfo) String() string

type Cluster

type Cluster struct {

	// Test status cluster grouped by.
	TestStatus int32 `protobuf:"varint,1,opt,name=test_status,json=testStatus,proto3" json:"test_status,omitempty"`
	// Error message or testFailureClassification string cluster grouped by.
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// ClusterRows that belong to this cluster.
	ClusterRow []*ClusterRow `protobuf:"bytes,3,rep,name=cluster_row,json=clusterRow,proto3" json:"cluster_row,omitempty"`
	// contains filtered or unexported fields
}

A cluster of failures grouped by test status and message for a test results table.

func (*Cluster) Descriptor deprecated

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

Deprecated: Use Cluster.ProtoReflect.Descriptor instead.

func (*Cluster) GetClusterRow

func (x *Cluster) GetClusterRow() []*ClusterRow

func (*Cluster) GetMessage

func (x *Cluster) GetMessage() string

func (*Cluster) GetTestStatus

func (x *Cluster) GetTestStatus() int32

func (*Cluster) ProtoMessage

func (*Cluster) ProtoMessage()

func (*Cluster) ProtoReflect added in v0.0.91

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

func (*Cluster) Reset

func (x *Cluster) Reset()

func (*Cluster) String

func (x *Cluster) String() string

type ClusterRow

type ClusterRow struct {

	// Name of TestRow.
	DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Index within row that belongs to Cluster (refer to columns of the row).
	Index []int32 `protobuf:"varint,2,rep,packed,name=index,proto3" json:"index,omitempty"`
	// contains filtered or unexported fields
}

Cells in a TestRow that belong to a specific Cluster.

func (*ClusterRow) Descriptor deprecated

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

Deprecated: Use ClusterRow.ProtoReflect.Descriptor instead.

func (*ClusterRow) GetDisplayName

func (x *ClusterRow) GetDisplayName() string

func (*ClusterRow) GetIndex

func (x *ClusterRow) GetIndex() []int32

func (*ClusterRow) ProtoMessage

func (*ClusterRow) ProtoMessage()

func (*ClusterRow) ProtoReflect added in v0.0.91

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

func (*ClusterRow) Reset

func (x *ClusterRow) Reset()

func (*ClusterRow) String

func (x *ClusterRow) String() string

type Column

type Column struct {

	// Unique instance of the job, typically BUILD_NUMBER from prow or a guid
	Build string `protobuf:"bytes,1,opt,name=build,proto3" json:"build,omitempty"`
	// Name associated with the column (such as the run/invocation ID).No two
	// columns should have the same build_id and name. The name field allows the
	// display of multiple columns with the same build_id.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Milliseconds since start of epoch (python time.time() * 1000)
	Started float64 `protobuf:"fixed64,3,opt,name=started,proto3" json:"started,omitempty"`
	// Additional custom headers like commit, image used, etc.
	Extra []string `protobuf:"bytes,4,rep,name=extra,proto3" json:"extra,omitempty"`
	// Custom hotlist ids.
	HotlistIds string `protobuf:"bytes,5,opt,name=hotlist_ids,json=hotlistIds,proto3" json:"hotlist_ids,omitempty"`
	// An optional hint for the updater.
	Hint string `protobuf:"bytes,6,opt,name=hint,proto3" json:"hint,omitempty"`
	// Dynamic email list, route email alerts to these instead of the configured
	// defaults.
	EmailAddresses []string `protobuf:"bytes,7,rep,name=email_addresses,json=emailAddresses,proto3" json:"email_addresses,omitempty"`
	// contains filtered or unexported fields
}

TestGrid columns (also known as TestCycle).

func (*Column) Descriptor deprecated

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

Deprecated: Use Column.ProtoReflect.Descriptor instead.

func (*Column) GetBuild

func (x *Column) GetBuild() string

func (*Column) GetEmailAddresses added in v0.0.74

func (x *Column) GetEmailAddresses() []string

func (*Column) GetExtra

func (x *Column) GetExtra() []string

func (*Column) GetHint added in v0.0.61

func (x *Column) GetHint() string

func (*Column) GetHotlistIds

func (x *Column) GetHotlistIds() string

func (*Column) GetName

func (x *Column) GetName() string

func (*Column) GetStarted

func (x *Column) GetStarted() float64

func (*Column) ProtoMessage

func (*Column) ProtoMessage()

func (*Column) ProtoReflect added in v0.0.91

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

func (*Column) Reset

func (x *Column) Reset()

func (*Column) String

func (x *Column) String() string

type Grid

type Grid struct {

	// A cycle of test results, not including the results. In the TestGrid client,
	// the cycles define the columns.
	Columns []*Column `protobuf:"bytes,1,rep,name=columns,proto3" json:"columns,omitempty"`
	// A test case with test results. In the TestGrid client, the cases define the
	// rows (and the results define the individual cells).
	Rows []*Row `protobuf:"bytes,2,rep,name=rows,proto3" json:"rows,omitempty"`
	// The latest configuration used to generate this test group.
	Config *config.TestGroup `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"`
	// Seconds since epoch for last time this cycle was updated.
	LastTimeUpdated float64 `protobuf:"fixed64,6,opt,name=last_time_updated,json=lastTimeUpdated,proto3" json:"last_time_updated,omitempty"`
	// Stored info on previous timing for parts of the update cycle.
	UpdateInfo []*UpdateInfo `protobuf:"bytes,8,rep,name=update_info,json=updateInfo,proto3" json:"update_info,omitempty"`
	// Stored info on default test metadata.
	TestMetadata []*TestMetadata `protobuf:"bytes,9,rep,name=test_metadata,json=testMetadata,proto3" json:"test_metadata,omitempty"`
	// Clusters of failures for a TestResultTable instance.
	Cluster []*Cluster `protobuf:"bytes,10,rep,name=cluster,proto3" json:"cluster,omitempty"`
	// Most recent timestamp that clusters have processed.
	MostRecentClusterTimestamp float64 `` /* 146-byte string literal not displayed */
	// contains filtered or unexported fields
}

A single table of test results backing a dashboard tab.

func (*Grid) Descriptor deprecated

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

Deprecated: Use Grid.ProtoReflect.Descriptor instead.

func (*Grid) GetCluster

func (x *Grid) GetCluster() []*Cluster

func (*Grid) GetColumns

func (x *Grid) GetColumns() []*Column

func (*Grid) GetConfig

func (x *Grid) GetConfig() *config.TestGroup

func (*Grid) GetLastTimeUpdated

func (x *Grid) GetLastTimeUpdated() float64

func (*Grid) GetMostRecentClusterTimestamp

func (x *Grid) GetMostRecentClusterTimestamp() float64

func (*Grid) GetRows

func (x *Grid) GetRows() []*Row

func (*Grid) GetTestMetadata

func (x *Grid) GetTestMetadata() []*TestMetadata

func (*Grid) GetUpdateInfo

func (x *Grid) GetUpdateInfo() []*UpdateInfo

func (*Grid) ProtoMessage

func (*Grid) ProtoMessage()

func (*Grid) ProtoReflect added in v0.0.91

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

func (*Grid) Reset

func (x *Grid) Reset()

func (*Grid) String

func (x *Grid) String() string

type Metric

type Metric struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Name of metric, such as duration
	// Sparse encoding of values. Indices is a list of pairs of <index, count>
	// that details columns with metric values. So given:
	//   Indices: [0, 2, 6, 4]
	//   Values: [0.1,0.2,6.1,6.2,6.3,6.4]
	// Decoded 12-value equivalent is:
	// [0.1, 0.2, nil, nil, nil, nil, 6.1, 6.2, 6.3, 6.4, nil, nil, ...]
	Indices []int32   `protobuf:"varint,2,rep,packed,name=indices,proto3" json:"indices,omitempty"` // n=index of first value, n+1=count of filled values
	Values  []float64 `protobuf:"fixed64,3,rep,packed,name=values,proto3" json:"values,omitempty"`  // only present for columns with a metric value
	// contains filtered or unexported fields
}

A metric and its values for each test cycle.

func (*Metric) Descriptor deprecated

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

Deprecated: Use Metric.ProtoReflect.Descriptor instead.

func (*Metric) GetIndices

func (x *Metric) GetIndices() []int32

func (*Metric) GetName

func (x *Metric) GetName() string

func (*Metric) GetValues

func (x *Metric) GetValues() []float64

func (*Metric) ProtoMessage

func (*Metric) ProtoMessage()

func (*Metric) ProtoReflect added in v0.0.91

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

func (*Metric) Reset

func (x *Metric) Reset()

func (*Metric) String

func (x *Metric) String() string

type Property added in v0.0.96

type Property struct {
	Property map[string]string `` /* 157-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Property) Descriptor deprecated added in v0.0.96

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

Deprecated: Use Property.ProtoReflect.Descriptor instead.

func (*Property) GetProperty added in v0.0.96

func (x *Property) GetProperty() map[string]string

func (*Property) ProtoMessage added in v0.0.96

func (*Property) ProtoMessage()

func (*Property) ProtoReflect added in v0.0.96

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

func (*Property) Reset added in v0.0.96

func (x *Property) Reset()

func (*Property) String added in v0.0.96

func (x *Property) String() string

type Row

type Row struct {

	// Display name, which might process id to append/filter info.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// raw id for the row, such as the bazel target or golang package.
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// Results for this row, run-length encoded to reduce size/improve
	// performance. Thus (encoded -> decoded equivalent):
	//   [0, 3, 5, 4] -> [0, 0, 0, 5, 5, 5, 5]
	//   [5, 1] -> [5]
	//   [1, 5] -> [1, 1, 1, 1, 1]
	// The decoded values are Result enums
	Results []int32 `protobuf:"varint,3,rep,packed,name=results,proto3" json:"results,omitempty"`
	// Test IDs for each test result in this test case.
	// Must be present on every column, regardless of status.
	CellIds []string `protobuf:"bytes,4,rep,name=cell_ids,json=cellIds,proto3" json:"cell_ids,omitempty"`
	// Short description of the result, displayed on mouseover.
	// Present for any column with a non-empty status (not NO_RESULT).
	Messages []string `protobuf:"bytes,5,rep,name=messages,proto3" json:"messages,omitempty"`
	// Names of metrics associated with this test case. Stored separate from
	// metric info (which may be omitted).
	Metric  []string  `protobuf:"bytes,7,rep,name=metric,proto3" json:"metric,omitempty"`
	Metrics []*Metric `protobuf:"bytes,8,rep,name=metrics,proto3" json:"metrics,omitempty"` // Numerical performance/timing data, etc.
	// Short string to place inside the cell (F for fail, etc)
	// Present for any column with a non-empty status (not NO_RESULT).
	Icons []string `protobuf:"bytes,9,rep,name=icons,proto3" json:"icons,omitempty"`
	// IDs for issues associated with this row.
	Issues []string `protobuf:"bytes,10,rep,name=issues,proto3" json:"issues,omitempty"`
	// An alert for the failure if there's a recent failure for this row.
	AlertInfo *AlertInfo `protobuf:"bytes,11,opt,name=alert_info,json=alertInfo,proto3" json:"alert_info,omitempty"`
	// Values of a user-defined property found in cells for this row.
	// TODO: Fold this into `properties` field.
	UserProperty []string `protobuf:"bytes,12,rep,name=user_property,json=userProperty,proto3" json:"user_property,omitempty"`
	// General key-value pairs associated with cells in this row.
	// Present for any column with a non-empty status (not NO_RESULT).
	Properties []*Property `protobuf:"bytes,13,rep,name=properties,proto3" json:"properties,omitempty"`
	// contains filtered or unexported fields
}

TestGrid rows (also known as TestRow)

func (*Row) Descriptor deprecated

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

Deprecated: Use Row.ProtoReflect.Descriptor instead.

func (*Row) GetAlertInfo

func (x *Row) GetAlertInfo() *AlertInfo

func (*Row) GetCellIds

func (x *Row) GetCellIds() []string

func (*Row) GetIcons

func (x *Row) GetIcons() []string

func (*Row) GetId

func (x *Row) GetId() string

func (*Row) GetIssues added in v0.0.69

func (x *Row) GetIssues() []string

func (*Row) GetMessages

func (x *Row) GetMessages() []string

func (*Row) GetMetric

func (x *Row) GetMetric() []string

func (*Row) GetMetrics

func (x *Row) GetMetrics() []*Metric

func (*Row) GetName

func (x *Row) GetName() string

func (*Row) GetProperties added in v0.0.96

func (x *Row) GetProperties() []*Property

func (*Row) GetResults

func (x *Row) GetResults() []int32

func (*Row) GetUserProperty added in v0.0.31

func (x *Row) GetUserProperty() []string

func (*Row) ProtoMessage

func (*Row) ProtoMessage()

func (*Row) ProtoReflect added in v0.0.91

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

func (*Row) Reset

func (x *Row) Reset()

func (*Row) String

func (x *Row) String() string

type TestMetadata

type TestMetadata struct {

	// Name of the test with associated test metadata.
	TestName string `protobuf:"bytes,1,opt,name=test_name,json=testName,proto3" json:"test_name,omitempty"`
	// Default bug component.
	BugComponent int32 `protobuf:"varint,2,opt,name=bug_component,json=bugComponent,proto3" json:"bug_component,omitempty"`
	// Default owner.
	Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"`
	// Default list of cc's.
	Cc []string `protobuf:"bytes,4,rep,name=cc,proto3" json:"cc,omitempty"`
	// When present, only file a bug for failed tests with same error type.
	// Otherwise, always file a bug.
	ErrorType string `protobuf:"bytes,5,opt,name=error_type,json=errorType,proto3" json:"error_type,omitempty"`
	// contains filtered or unexported fields
}

Info on default test metadata for a dashboard tab.

func (*TestMetadata) Descriptor deprecated

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

Deprecated: Use TestMetadata.ProtoReflect.Descriptor instead.

func (*TestMetadata) GetBugComponent

func (x *TestMetadata) GetBugComponent() int32

func (*TestMetadata) GetCc

func (x *TestMetadata) GetCc() []string

func (*TestMetadata) GetErrorType

func (x *TestMetadata) GetErrorType() string

func (*TestMetadata) GetOwner

func (x *TestMetadata) GetOwner() string

func (*TestMetadata) GetTestName

func (x *TestMetadata) GetTestName() string

func (*TestMetadata) ProtoMessage

func (*TestMetadata) ProtoMessage()

func (*TestMetadata) ProtoReflect added in v0.0.91

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

func (*TestMetadata) Reset

func (x *TestMetadata) Reset()

func (*TestMetadata) String

func (x *TestMetadata) String() string

type UpdateInfo

type UpdateInfo struct {

	// Metrics for how long parts of the update cycle take.
	UpdatePhaseData []*UpdatePhaseData `protobuf:"bytes,1,rep,name=update_phase_data,json=updatePhaseData,proto3" json:"update_phase_data,omitempty"`
	// contains filtered or unexported fields
}

Info on time taken to update test results during the last update cycle.

func (*UpdateInfo) Descriptor deprecated

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

Deprecated: Use UpdateInfo.ProtoReflect.Descriptor instead.

func (*UpdateInfo) GetUpdatePhaseData

func (x *UpdateInfo) GetUpdatePhaseData() []*UpdatePhaseData

func (*UpdateInfo) ProtoMessage

func (*UpdateInfo) ProtoMessage()

func (*UpdateInfo) ProtoReflect added in v0.0.91

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

func (*UpdateInfo) Reset

func (x *UpdateInfo) Reset()

func (*UpdateInfo) String

func (x *UpdateInfo) String() string

type UpdatePhaseData

type UpdatePhaseData struct {

	// The name for a part of the update cycle.
	PhaseName string `protobuf:"bytes,1,opt,name=phase_name,json=phaseName,proto3" json:"phase_name,omitempty"`
	// Time taken for a part of the update cycle, in seconds.
	PhaseSeconds float64 `protobuf:"fixed64,2,opt,name=phase_seconds,json=phaseSeconds,proto3" json:"phase_seconds,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdatePhaseData) Descriptor deprecated

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

Deprecated: Use UpdatePhaseData.ProtoReflect.Descriptor instead.

func (*UpdatePhaseData) GetPhaseName

func (x *UpdatePhaseData) GetPhaseName() string

func (*UpdatePhaseData) GetPhaseSeconds

func (x *UpdatePhaseData) GetPhaseSeconds() float64

func (*UpdatePhaseData) ProtoMessage

func (*UpdatePhaseData) ProtoMessage()

func (*UpdatePhaseData) ProtoReflect added in v0.0.91

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

func (*UpdatePhaseData) Reset

func (x *UpdatePhaseData) Reset()

func (*UpdatePhaseData) String

func (x *UpdatePhaseData) String() string

Jump to

Keyboard shortcuts

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