resultpb

package
v0.0.0-...-ef45db5 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 19 Imported by: 17

Documentation

Overview

Package resultpb contains public ResultDB proto API.

Index

Constants

View Source
const UpdateTokenMetadataKey = "update-token"

UpdateTokenMetadataKey is the metadata.MD key for the secret update token required to mutate an invocation. It is returned by CreateInvocation RPC in response header metadata, and is required by all RPCs mutating an invocation.

Variables

View Source
var (
	InstructionTarget_name = map[int32]string{
		0: "INSTRUCTION_TARGET_UNSPECIFIED",
		1: "LOCAL",
		2: "REMOTE",
		3: "PREBUILT",
	}
	InstructionTarget_value = map[string]int32{
		"INSTRUCTION_TARGET_UNSPECIFIED": 0,
		"LOCAL":                          1,
		"REMOTE":                         2,
		"PREBUILT":                       3,
	}
)

Enum value maps for InstructionTarget.

View Source
var (
	Invocation_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "ACTIVE",
		2: "FINALIZING",
		3: "FINALIZED",
	}
	Invocation_State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"ACTIVE":            1,
		"FINALIZING":        2,
		"FINALIZED":         3,
	}
)

Enum value maps for Invocation_State.

View Source
var (
	TestResultPredicate_Expectancy_name = map[int32]string{
		0: "ALL",
		1: "VARIANTS_WITH_UNEXPECTED_RESULTS",
		2: "VARIANTS_WITH_ONLY_UNEXPECTED_RESULTS",
	}
	TestResultPredicate_Expectancy_value = map[string]int32{
		"ALL":                                   0,
		"VARIANTS_WITH_UNEXPECTED_RESULTS":      1,
		"VARIANTS_WITH_ONLY_UNEXPECTED_RESULTS": 2,
	}
)

Enum value maps for TestResultPredicate_Expectancy.

View Source
var (
	TestStatus_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "PASS",
		2: "FAIL",
		3: "CRASH",
		4: "ABORT",
		5: "SKIP",
	}
	TestStatus_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"PASS":               1,
		"FAIL":               2,
		"CRASH":              3,
		"ABORT":              4,
		"SKIP":               5,
	}
)

Enum value maps for TestStatus.

View Source
var (
	SkipReason_name = map[int32]string{
		0: "SKIP_REASON_UNSPECIFIED",
		1: "AUTOMATICALLY_DISABLED_FOR_FLAKINESS",
	}
	SkipReason_value = map[string]int32{
		"SKIP_REASON_UNSPECIFIED":              0,
		"AUTOMATICALLY_DISABLED_FOR_FLAKINESS": 1,
	}
)

Enum value maps for SkipReason.

View Source
var (
	ExonerationReason_name = map[int32]string{
		0: "EXONERATION_REASON_UNSPECIFIED",
		1: "OCCURS_ON_MAINLINE",
		2: "OCCURS_ON_OTHER_CLS",
		3: "NOT_CRITICAL",
		4: "UNEXPECTED_PASS",
	}
	ExonerationReason_value = map[string]int32{
		"EXONERATION_REASON_UNSPECIFIED": 0,
		"OCCURS_ON_MAINLINE":             1,
		"OCCURS_ON_OTHER_CLS":            2,
		"NOT_CRITICAL":                   3,
		"UNEXPECTED_PASS":                4,
	}
)

Enum value maps for ExonerationReason.

View Source
var (
	TestVariantStatus_name = map[int32]string{
		0:  "TEST_VARIANT_STATUS_UNSPECIFIED",
		10: "UNEXPECTED",
		20: "UNEXPECTEDLY_SKIPPED",
		30: "FLAKY",
		40: "EXONERATED",
		45: "UNEXPECTED_MASK",
		50: "EXPECTED",
	}
	TestVariantStatus_value = map[string]int32{
		"TEST_VARIANT_STATUS_UNSPECIFIED": 0,
		"UNEXPECTED":                      10,
		"UNEXPECTEDLY_SKIPPED":            20,
		"FLAKY":                           30,
		"EXONERATED":                      40,
		"UNEXPECTED_MASK":                 45,
		"EXPECTED":                        50,
	}
)

Enum value maps for TestVariantStatus.

View Source
var File_go_chromium_org_luci_resultdb_proto_v1_artifact_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_resultdb_proto_v1_common_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_resultdb_proto_v1_failure_reason_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_resultdb_proto_v1_instruction_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_resultdb_proto_v1_invocation_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_resultdb_proto_v1_notification_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_resultdb_proto_v1_predicate_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_resultdb_proto_v1_recorder_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_resultdb_proto_v1_resultdb_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_resultdb_proto_v1_test_metadata_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_resultdb_proto_v1_test_result_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_resultdb_proto_v1_test_variant_proto protoreflect.FileDescriptor

Functions

func FileDescriptorSet

func FileDescriptorSet() *descriptorpb.FileDescriptorSet

FileDescriptorSet returns a descriptor set for this proto package, which includes all defined services, and all transitive dependencies.

Will not return nil.

Do NOT modify the returned descriptor.

func RegisterRecorderServer

func RegisterRecorderServer(s prpc.Registrar, srv RecorderServer)

func RegisterResultDBServer

func RegisterResultDBServer(s prpc.Registrar, srv ResultDBServer)

Types

type Artifact

type Artifact struct {

	// Can be used to refer to this artifact.
	// Format:
	//   - For invocation-level artifacts:
	//     "invocations/{INVOCATION_ID}/artifacts/{ARTIFACT_ID}".
	//   - For test-result-level artifacts:
	//     "invocations/{INVOCATION_ID}/tests/{URL_ESCAPED_TEST_ID}/results/{RESULT_ID}/artifacts/{ARTIFACT_ID}".
	//
	// where URL_ESCAPED_TEST_ID is the test_id escaped with
	// https://golang.org/pkg/net/url/#PathEscape (see also https://aip.dev/122),
	// and ARTIFACT_ID is documented below.
	// Examples: "screenshot.png", "traces/a.txt".
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// A local identifier of the artifact, unique within the parent resource.
	// MAY have slashes, but MUST NOT start with a slash.
	// SHOULD not use backslashes.
	// Regex: ^(?:[[:word:]]|\.)([\p{L}\p{M}\p{N}\p{P}\p{S}\p{Zs}]{0,254}[[:word:]])?$
	ArtifactId string `protobuf:"bytes,2,opt,name=artifact_id,json=artifactId,proto3" json:"artifact_id,omitempty"`
	// A signed short-lived URL to fetch the contents of the artifact.
	// See also fetch_url_expiration.
	FetchUrl string `protobuf:"bytes,3,opt,name=fetch_url,json=fetchUrl,proto3" json:"fetch_url,omitempty"`
	// When fetch_url expires. If expired, re-request this Artifact.
	FetchUrlExpiration *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=fetch_url_expiration,json=fetchUrlExpiration,proto3" json:"fetch_url_expiration,omitempty"`
	// Media type of the artifact.
	// Logs are typically "text/plain" and screenshots are typically "image/png".
	// Optional.
	ContentType string `protobuf:"bytes,5,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
	// Size of the file.
	// Can be used in UI to decide between displaying the artifact inline or only
	// showing a link if it is too large.
	// If you are using the gcs_uri, this field is not verified, but only treated as a hint.
	SizeBytes int64 `protobuf:"varint,6,opt,name=size_bytes,json=sizeBytes,proto3" json:"size_bytes,omitempty"`
	// Contents of the artifact.
	// This is INPUT_ONLY, and taken by BatchCreateArtifacts().
	// All getter RPCs, such as ListArtifacts(), do not populate values into
	// the field in the response.
	// If specified, `gcs_uri` must be empty.
	Contents []byte `protobuf:"bytes,7,opt,name=contents,proto3" json:"contents,omitempty"`
	// The GCS URI of the artifact if it's stored in GCS.  If specified, `contents` must be empty.
	GcsUri string `protobuf:"bytes,8,opt,name=gcs_uri,json=gcsUri,proto3" json:"gcs_uri,omitempty"`
	// Status of the test result that the artifact belongs to.
	// This is only applicable for test-level artifacts, not invocation-level artifacts.
	// We need this field because when an artifact is created (for example, with BatchCreateArtifact),
	// the containing test result may or may not be created yet, as they
	// are created in different channels from result sink.
	// Having the test status here allows setting the correct status of artifact in BigQuery.
	TestStatus TestStatus `protobuf:"varint,9,opt,name=test_status,json=testStatus,proto3,enum=luci.resultdb.v1.TestStatus" json:"test_status,omitempty"`
	// contains filtered or unexported fields
}

A file produced during a build/test, typically a test artifact. The parent resource is either a TestResult or an Invocation.

An invocation-level artifact might be related to tests, or it might not, for example it may be used to store build step logs when streaming support is added. Next id: 10.

func (*Artifact) Descriptor deprecated

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

Deprecated: Use Artifact.ProtoReflect.Descriptor instead.

func (*Artifact) GetArtifactId

func (x *Artifact) GetArtifactId() string

func (*Artifact) GetContentType

func (x *Artifact) GetContentType() string

func (*Artifact) GetContents

func (x *Artifact) GetContents() []byte

func (*Artifact) GetFetchUrl

func (x *Artifact) GetFetchUrl() string

func (*Artifact) GetFetchUrlExpiration

func (x *Artifact) GetFetchUrlExpiration() *timestamppb.Timestamp

func (*Artifact) GetGcsUri

func (x *Artifact) GetGcsUri() string

func (*Artifact) GetName

func (x *Artifact) GetName() string

func (*Artifact) GetSizeBytes

func (x *Artifact) GetSizeBytes() int64

func (*Artifact) GetTestStatus

func (x *Artifact) GetTestStatus() TestStatus

func (*Artifact) ProtoMessage

func (*Artifact) ProtoMessage()

func (*Artifact) ProtoReflect

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

func (*Artifact) Reset

func (x *Artifact) Reset()

func (*Artifact) String

func (x *Artifact) String() string

type ArtifactPredicate

type ArtifactPredicate struct {

	// Specifies which edges to follow when retrieving directly/indirectly
	// included artifacts.
	// For example,
	//   - to retrieve only invocation-level artifacts, use
	//     {included_invocations: true}.
	//   - to retrieve only test-result-level artifacts, use {test_results: true}.
	//
	// By default, follows all edges.
	FollowEdges *ArtifactPredicate_EdgeTypeSet `protobuf:"bytes,1,opt,name=follow_edges,json=followEdges,proto3" json:"follow_edges,omitempty"` // defaults to All.
	// If an Artifact belongs to a TestResult, then the test result must satisfy
	// this predicate.
	// Note: this predicate does NOT apply to invocation-level artifacts.
	// To exclude them from the response, use follow_edges.
	TestResultPredicate *TestResultPredicate `protobuf:"bytes,2,opt,name=test_result_predicate,json=testResultPredicate,proto3" json:"test_result_predicate,omitempty"`
	// An artifact must have a content type matching this regular expression
	// entirely, i.e. the expression is implicitly wrapped with ^ and $.
	// Defaults to ".*".
	ContentTypeRegexp string `protobuf:"bytes,3,opt,name=content_type_regexp,json=contentTypeRegexp,proto3" json:"content_type_regexp,omitempty"`
	// An artifact must have an ID matching this regular expression entirely, i.e.
	// the expression is implicitly wrapped with ^ and $.  Defaults to ".*".
	ArtifactIdRegexp string `protobuf:"bytes,4,opt,name=artifact_id_regexp,json=artifactIdRegexp,proto3" json:"artifact_id_regexp,omitempty"`
	// contains filtered or unexported fields
}

Represents a function Artifact -> bool.

func (*ArtifactPredicate) Descriptor deprecated

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

Deprecated: Use ArtifactPredicate.ProtoReflect.Descriptor instead.

func (*ArtifactPredicate) GetArtifactIdRegexp

func (x *ArtifactPredicate) GetArtifactIdRegexp() string

func (*ArtifactPredicate) GetContentTypeRegexp

func (x *ArtifactPredicate) GetContentTypeRegexp() string

func (*ArtifactPredicate) GetFollowEdges

func (x *ArtifactPredicate) GetFollowEdges() *ArtifactPredicate_EdgeTypeSet

func (*ArtifactPredicate) GetTestResultPredicate

func (x *ArtifactPredicate) GetTestResultPredicate() *TestResultPredicate

func (*ArtifactPredicate) ProtoMessage

func (*ArtifactPredicate) ProtoMessage()

func (*ArtifactPredicate) ProtoReflect

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

func (*ArtifactPredicate) Reset

func (x *ArtifactPredicate) Reset()

func (*ArtifactPredicate) String

func (x *ArtifactPredicate) String() string

type ArtifactPredicate_EdgeTypeSet

type ArtifactPredicate_EdgeTypeSet struct {

	// The edges represented by Invocation.included_invocations field.
	IncludedInvocations bool `protobuf:"varint,1,opt,name=included_invocations,json=includedInvocations,proto3" json:"included_invocations,omitempty"`
	// The parent-child relationship between Invocation and TestResult.
	TestResults bool `protobuf:"varint,2,opt,name=test_results,json=testResults,proto3" json:"test_results,omitempty"`
	// contains filtered or unexported fields
}

A set of Invocation's outgoing edge types.

func (*ArtifactPredicate_EdgeTypeSet) Descriptor deprecated

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

Deprecated: Use ArtifactPredicate_EdgeTypeSet.ProtoReflect.Descriptor instead.

func (*ArtifactPredicate_EdgeTypeSet) GetIncludedInvocations

func (x *ArtifactPredicate_EdgeTypeSet) GetIncludedInvocations() bool

func (*ArtifactPredicate_EdgeTypeSet) GetTestResults

func (x *ArtifactPredicate_EdgeTypeSet) GetTestResults() bool

func (*ArtifactPredicate_EdgeTypeSet) ProtoMessage

func (*ArtifactPredicate_EdgeTypeSet) ProtoMessage()

func (*ArtifactPredicate_EdgeTypeSet) ProtoReflect

func (*ArtifactPredicate_EdgeTypeSet) Reset

func (x *ArtifactPredicate_EdgeTypeSet) Reset()

func (*ArtifactPredicate_EdgeTypeSet) String

type BatchCreateArtifactsRequest

type BatchCreateArtifactsRequest struct {

	// Requests to create Artifacts.
	// The sum of the content lengths MUST be <= 10MiB.
	// The parents of all the requests must be derived from the same invocation.
	//
	// Up to 500 requests.
	Requests []*CreateArtifactRequest `protobuf:"bytes,2,rep,name=requests,proto3" json:"requests,omitempty"`
	// contains filtered or unexported fields
}

A request message for BatchCreateArtifactsRequest.

func (*BatchCreateArtifactsRequest) Descriptor deprecated

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

Deprecated: Use BatchCreateArtifactsRequest.ProtoReflect.Descriptor instead.

func (*BatchCreateArtifactsRequest) GetRequests

func (*BatchCreateArtifactsRequest) ProtoMessage

func (*BatchCreateArtifactsRequest) ProtoMessage()

func (*BatchCreateArtifactsRequest) ProtoReflect

func (*BatchCreateArtifactsRequest) Reset

func (x *BatchCreateArtifactsRequest) Reset()

func (*BatchCreateArtifactsRequest) String

func (x *BatchCreateArtifactsRequest) String() string

type BatchCreateArtifactsResponse

type BatchCreateArtifactsResponse struct {

	// Artifacts created.
	Artifacts []*Artifact `protobuf:"bytes,1,rep,name=artifacts,proto3" json:"artifacts,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchCreateArtifactsResponse) Descriptor deprecated

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

Deprecated: Use BatchCreateArtifactsResponse.ProtoReflect.Descriptor instead.

func (*BatchCreateArtifactsResponse) GetArtifacts

func (x *BatchCreateArtifactsResponse) GetArtifacts() []*Artifact

func (*BatchCreateArtifactsResponse) ProtoMessage

func (*BatchCreateArtifactsResponse) ProtoMessage()

func (*BatchCreateArtifactsResponse) ProtoReflect

func (*BatchCreateArtifactsResponse) Reset

func (x *BatchCreateArtifactsResponse) Reset()

func (*BatchCreateArtifactsResponse) String

type BatchCreateInvocationsRequest

type BatchCreateInvocationsRequest struct {

	// requests[i].request_id MUST be either empty or equal to request_id in
	// this message.
	//
	// Up to 500 requests.
	Requests []*CreateInvocationRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"`
	// A unique identifier for this request. Restricted to 36 ASCII characters.
	// A random UUID is recommended.
	// This request is only idempotent if a `request_id` is provided, so it is
	// strongly recommended to populate this field.
	RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// contains filtered or unexported fields
}

A request message for BatchCreateInvocations

func (*BatchCreateInvocationsRequest) Descriptor deprecated

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

Deprecated: Use BatchCreateInvocationsRequest.ProtoReflect.Descriptor instead.

func (*BatchCreateInvocationsRequest) GetRequestId

func (x *BatchCreateInvocationsRequest) GetRequestId() string

func (*BatchCreateInvocationsRequest) GetRequests

func (*BatchCreateInvocationsRequest) ProtoMessage

func (*BatchCreateInvocationsRequest) ProtoMessage()

func (*BatchCreateInvocationsRequest) ProtoReflect

func (*BatchCreateInvocationsRequest) Reset

func (x *BatchCreateInvocationsRequest) Reset()

func (*BatchCreateInvocationsRequest) String

type BatchCreateInvocationsResponse

type BatchCreateInvocationsResponse struct {

	// Invocations created.
	Invocations []*Invocation `protobuf:"bytes,1,rep,name=invocations,proto3" json:"invocations,omitempty"`
	// One token per each created invocation.
	// These are passed in the response instead of as metadata, because large
	// batches increase the size of the response headers beyond allowed limits and
	// cause failures like crbug.com/1064496
	// update_tokens[i] corresponds to invocations[i].
	// *Do not log these values*.
	UpdateTokens []string `protobuf:"bytes,2,rep,name=update_tokens,json=updateTokens,proto3" json:"update_tokens,omitempty"`
	// contains filtered or unexported fields
}

A response message for BatchCreateInvocations RPC.

func (*BatchCreateInvocationsResponse) Descriptor deprecated

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

Deprecated: Use BatchCreateInvocationsResponse.ProtoReflect.Descriptor instead.

func (*BatchCreateInvocationsResponse) GetInvocations

func (x *BatchCreateInvocationsResponse) GetInvocations() []*Invocation

func (*BatchCreateInvocationsResponse) GetUpdateTokens

func (x *BatchCreateInvocationsResponse) GetUpdateTokens() []string

func (*BatchCreateInvocationsResponse) ProtoMessage

func (*BatchCreateInvocationsResponse) ProtoMessage()

func (*BatchCreateInvocationsResponse) ProtoReflect

func (*BatchCreateInvocationsResponse) Reset

func (x *BatchCreateInvocationsResponse) Reset()

func (*BatchCreateInvocationsResponse) String

type BatchCreateTestExonerationsRequest

type BatchCreateTestExonerationsRequest struct {

	// Name of the parent invocation, see Invocation.name.
	Invocation string `protobuf:"bytes,1,opt,name=invocation,proto3" json:"invocation,omitempty"`
	// Requests to create TestExonerations.
	// requests[i].invocation MUST be either empty or equal to invocation in this
	// message.
	// requests[i].request_id MUST be either empty or equal to request_id in
	// this message.
	//
	// Up to 500 requests.
	Requests []*CreateTestExonerationRequest `protobuf:"bytes,2,rep,name=requests,proto3" json:"requests,omitempty"`
	// A unique identifier for this request. Restricted to 36 ASCII characters.
	// A random UUID is recommended.
	// This request is only idempotent if a `request_id` is provided, so it is
	// strongly recommended to populate this field.
	RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// contains filtered or unexported fields
}

A request message for BatchCreateTestExonerations RPC.

func (*BatchCreateTestExonerationsRequest) Descriptor deprecated

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

Deprecated: Use BatchCreateTestExonerationsRequest.ProtoReflect.Descriptor instead.

func (*BatchCreateTestExonerationsRequest) GetInvocation

func (x *BatchCreateTestExonerationsRequest) GetInvocation() string

func (*BatchCreateTestExonerationsRequest) GetRequestId

func (x *BatchCreateTestExonerationsRequest) GetRequestId() string

func (*BatchCreateTestExonerationsRequest) GetRequests

func (*BatchCreateTestExonerationsRequest) ProtoMessage

func (*BatchCreateTestExonerationsRequest) ProtoMessage()

func (*BatchCreateTestExonerationsRequest) ProtoReflect

func (*BatchCreateTestExonerationsRequest) Reset

func (*BatchCreateTestExonerationsRequest) String

type BatchCreateTestExonerationsResponse

type BatchCreateTestExonerationsResponse struct {

	// Test exonerations created.
	TestExonerations []*TestExoneration `protobuf:"bytes,1,rep,name=test_exonerations,json=testExonerations,proto3" json:"test_exonerations,omitempty"`
	// contains filtered or unexported fields
}

A response message for BatchCreateTestExonerations RPC.

func (*BatchCreateTestExonerationsResponse) Descriptor deprecated

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

Deprecated: Use BatchCreateTestExonerationsResponse.ProtoReflect.Descriptor instead.

func (*BatchCreateTestExonerationsResponse) GetTestExonerations

func (x *BatchCreateTestExonerationsResponse) GetTestExonerations() []*TestExoneration

func (*BatchCreateTestExonerationsResponse) ProtoMessage

func (*BatchCreateTestExonerationsResponse) ProtoMessage()

func (*BatchCreateTestExonerationsResponse) ProtoReflect

func (*BatchCreateTestExonerationsResponse) Reset

func (*BatchCreateTestExonerationsResponse) String

type BatchCreateTestResultsRequest

type BatchCreateTestResultsRequest struct {

	// Name of the parent invocation, see Invocation.name.
	Invocation string `protobuf:"bytes,1,opt,name=invocation,proto3" json:"invocation,omitempty"`
	// Requests to create test results.
	// requests[i].invocation MUST be either empty or equal to invocation in this
	// message.
	// requests[i].request_id MUST be either empty or equal to request_id in
	// this message.
	//
	// Up to 500 requests.
	Requests []*CreateTestResultRequest `protobuf:"bytes,2,rep,name=requests,proto3" json:"requests,omitempty"`
	// A unique identifier for this request. Restricted to 36 ASCII characters.
	// A random UUID is recommended.
	// This request is only idempotent if a `request_id` is provided, so it is
	// strongly recommended to populate this field.
	RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// contains filtered or unexported fields
}

A request message for BatchCreateTestResults RPC.

func (*BatchCreateTestResultsRequest) Descriptor deprecated

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

Deprecated: Use BatchCreateTestResultsRequest.ProtoReflect.Descriptor instead.

func (*BatchCreateTestResultsRequest) GetInvocation

func (x *BatchCreateTestResultsRequest) GetInvocation() string

func (*BatchCreateTestResultsRequest) GetRequestId

func (x *BatchCreateTestResultsRequest) GetRequestId() string

func (*BatchCreateTestResultsRequest) GetRequests

func (*BatchCreateTestResultsRequest) ProtoMessage

func (*BatchCreateTestResultsRequest) ProtoMessage()

func (*BatchCreateTestResultsRequest) ProtoReflect

func (*BatchCreateTestResultsRequest) Reset

func (x *BatchCreateTestResultsRequest) Reset()

func (*BatchCreateTestResultsRequest) String

type BatchCreateTestResultsResponse

type BatchCreateTestResultsResponse struct {

	// Test results created.
	TestResults []*TestResult `protobuf:"bytes,1,rep,name=test_results,json=testResults,proto3" json:"test_results,omitempty"`
	// contains filtered or unexported fields
}

A response message for BatchCreateTestResults RPC.

func (*BatchCreateTestResultsResponse) Descriptor deprecated

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

Deprecated: Use BatchCreateTestResultsResponse.ProtoReflect.Descriptor instead.

func (*BatchCreateTestResultsResponse) GetTestResults

func (x *BatchCreateTestResultsResponse) GetTestResults() []*TestResult

func (*BatchCreateTestResultsResponse) ProtoMessage

func (*BatchCreateTestResultsResponse) ProtoMessage()

func (*BatchCreateTestResultsResponse) ProtoReflect

func (*BatchCreateTestResultsResponse) Reset

func (x *BatchCreateTestResultsResponse) Reset()

func (*BatchCreateTestResultsResponse) String

type BatchGetTestVariantsRequest

type BatchGetTestVariantsRequest struct {

	// Name of the invocation that the test variants are in.
	Invocation string `protobuf:"bytes,1,opt,name=invocation,proto3" json:"invocation,omitempty"`
	// A list of test IDs and variant hashes, identifying the requested test
	// variants. Size is limited to 500. Any request for more than 500 variants
	// will return an error.
	TestVariants []*BatchGetTestVariantsRequest_TestVariantIdentifier `protobuf:"bytes,2,rep,name=test_variants,json=testVariants,proto3" json:"test_variants,omitempty"`
	// The maximum number of test results to be included in a test variant.
	//
	// If a test variant has more results than the limit, the remaining results
	// will not be returned.
	// If unspecified, at most 10 results will be included in a test variant.
	// The maximum value is 100; values above 100 will be coerced to 100.
	ResultLimit int32 `protobuf:"varint,3,opt,name=result_limit,json=resultLimit,proto3" json:"result_limit,omitempty"`
	// contains filtered or unexported fields
}

A request message for BatchGetTestVariants RPC.

func (*BatchGetTestVariantsRequest) Descriptor deprecated

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

Deprecated: Use BatchGetTestVariantsRequest.ProtoReflect.Descriptor instead.

func (*BatchGetTestVariantsRequest) GetInvocation

func (x *BatchGetTestVariantsRequest) GetInvocation() string

func (*BatchGetTestVariantsRequest) GetResultLimit

func (x *BatchGetTestVariantsRequest) GetResultLimit() int32

func (*BatchGetTestVariantsRequest) GetTestVariants

func (*BatchGetTestVariantsRequest) ProtoMessage

func (*BatchGetTestVariantsRequest) ProtoMessage()

func (*BatchGetTestVariantsRequest) ProtoReflect

func (*BatchGetTestVariantsRequest) Reset

func (x *BatchGetTestVariantsRequest) Reset()

func (*BatchGetTestVariantsRequest) String

func (x *BatchGetTestVariantsRequest) String() string

type BatchGetTestVariantsRequest_TestVariantIdentifier

type BatchGetTestVariantsRequest_TestVariantIdentifier struct {

	// The unique identifier of the test in a LUCI project. See the comment on
	// TestResult.test_id for full documentation.
	TestId string `protobuf:"bytes,1,opt,name=test_id,json=testId,proto3" json:"test_id,omitempty"`
	// Hash of the variant. See the comment on TestResult.variant_hash for full
	// documentation.
	VariantHash string `protobuf:"bytes,2,opt,name=variant_hash,json=variantHash,proto3" json:"variant_hash,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchGetTestVariantsRequest_TestVariantIdentifier) Descriptor deprecated

Deprecated: Use BatchGetTestVariantsRequest_TestVariantIdentifier.ProtoReflect.Descriptor instead.

func (*BatchGetTestVariantsRequest_TestVariantIdentifier) GetTestId

func (*BatchGetTestVariantsRequest_TestVariantIdentifier) GetVariantHash

func (*BatchGetTestVariantsRequest_TestVariantIdentifier) ProtoMessage

func (*BatchGetTestVariantsRequest_TestVariantIdentifier) ProtoReflect

func (*BatchGetTestVariantsRequest_TestVariantIdentifier) Reset

func (*BatchGetTestVariantsRequest_TestVariantIdentifier) String

type BatchGetTestVariantsResponse

type BatchGetTestVariantsResponse struct {

	// Test variants matching the requests. Any variants that weren't found are
	// omitted from the response. Clients shouldn't rely on the ordering of this
	// field, as no particular order is guaranteed.
	TestVariants []*TestVariant `protobuf:"bytes,1,rep,name=test_variants,json=testVariants,proto3" json:"test_variants,omitempty"`
	// The code sources tested by the returned test variants. The sources are keyed
	// by an ID which allows them to be cross-referenced from TestVariant.sources_id.
	//
	// The sources are returned via this map instead of directly on the TestVariant
	// to avoid excessive response size. Each source message could be up to a few
	// kilobytes and there are usually no more than a handful of different sources
	// tested in an invocation, so deduplicating them here reduces response size.
	Sources map[string]*Sources `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

A response message for BatchGetTestVariants RPC.

func (*BatchGetTestVariantsResponse) Descriptor deprecated

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

Deprecated: Use BatchGetTestVariantsResponse.ProtoReflect.Descriptor instead.

func (*BatchGetTestVariantsResponse) GetSources

func (x *BatchGetTestVariantsResponse) GetSources() map[string]*Sources

func (*BatchGetTestVariantsResponse) GetTestVariants

func (x *BatchGetTestVariantsResponse) GetTestVariants() []*TestVariant

func (*BatchGetTestVariantsResponse) ProtoMessage

func (*BatchGetTestVariantsResponse) ProtoMessage()

func (*BatchGetTestVariantsResponse) ProtoReflect

func (*BatchGetTestVariantsResponse) Reset

func (x *BatchGetTestVariantsResponse) Reset()

func (*BatchGetTestVariantsResponse) String

type BigQueryExport

type BigQueryExport struct {

	// Name of the BigQuery project.
	Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	// Name of the BigQuery Dataset.
	Dataset string `protobuf:"bytes,2,opt,name=dataset,proto3" json:"dataset,omitempty"`
	// Name of the BigQuery Table.
	Table string `protobuf:"bytes,3,opt,name=table,proto3" json:"table,omitempty"`
	// Types that are assignable to ResultType:
	//
	//	*BigQueryExport_TestResults_
	//	*BigQueryExport_TextArtifacts_
	ResultType isBigQueryExport_ResultType `protobuf_oneof:"result_type"`
	// contains filtered or unexported fields
}

BigQueryExport indicates that results in this invocation should be exported to BigQuery after finalization.

func (*BigQueryExport) Descriptor deprecated

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

Deprecated: Use BigQueryExport.ProtoReflect.Descriptor instead.

func (*BigQueryExport) GetDataset

func (x *BigQueryExport) GetDataset() string

func (*BigQueryExport) GetProject

func (x *BigQueryExport) GetProject() string

func (*BigQueryExport) GetResultType

func (m *BigQueryExport) GetResultType() isBigQueryExport_ResultType

func (*BigQueryExport) GetTable

func (x *BigQueryExport) GetTable() string

func (*BigQueryExport) GetTestResults

func (x *BigQueryExport) GetTestResults() *BigQueryExport_TestResults

func (*BigQueryExport) GetTextArtifacts

func (x *BigQueryExport) GetTextArtifacts() *BigQueryExport_TextArtifacts

func (*BigQueryExport) ProtoMessage

func (*BigQueryExport) ProtoMessage()

func (*BigQueryExport) ProtoReflect

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

func (*BigQueryExport) Reset

func (x *BigQueryExport) Reset()

func (*BigQueryExport) String

func (x *BigQueryExport) String() string

type BigQueryExport_TestResults

type BigQueryExport_TestResults struct {

	// Use predicate to query test results that should be exported to
	// BigQuery table.
	Predicate *TestResultPredicate `protobuf:"bytes,1,opt,name=predicate,proto3" json:"predicate,omitempty"`
	// contains filtered or unexported fields
}

TestResults indicates that test results should be exported.

func (*BigQueryExport_TestResults) Descriptor deprecated

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

Deprecated: Use BigQueryExport_TestResults.ProtoReflect.Descriptor instead.

func (*BigQueryExport_TestResults) GetPredicate

func (*BigQueryExport_TestResults) ProtoMessage

func (*BigQueryExport_TestResults) ProtoMessage()

func (*BigQueryExport_TestResults) ProtoReflect

func (*BigQueryExport_TestResults) Reset

func (x *BigQueryExport_TestResults) Reset()

func (*BigQueryExport_TestResults) String

func (x *BigQueryExport_TestResults) String() string

type BigQueryExport_TestResults_

type BigQueryExport_TestResults_ struct {
	TestResults *BigQueryExport_TestResults `protobuf:"bytes,4,opt,name=test_results,json=testResults,proto3,oneof"`
}

type BigQueryExport_TextArtifacts

type BigQueryExport_TextArtifacts struct {

	// Use predicate to query artifacts that should be exported to
	// BigQuery table.
	//
	// Sub-field predicate.content_type_regexp defaults to "text/.*".
	Predicate *ArtifactPredicate `protobuf:"bytes,1,opt,name=predicate,proto3" json:"predicate,omitempty"`
	// contains filtered or unexported fields
}

TextArtifacts indicates that text artifacts should be exported.

func (*BigQueryExport_TextArtifacts) Descriptor deprecated

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

Deprecated: Use BigQueryExport_TextArtifacts.ProtoReflect.Descriptor instead.

func (*BigQueryExport_TextArtifacts) GetPredicate

func (*BigQueryExport_TextArtifacts) ProtoMessage

func (*BigQueryExport_TextArtifacts) ProtoMessage()

func (*BigQueryExport_TextArtifacts) ProtoReflect

func (*BigQueryExport_TextArtifacts) Reset

func (x *BigQueryExport_TextArtifacts) Reset()

func (*BigQueryExport_TextArtifacts) String

type BigQueryExport_TextArtifacts_

type BigQueryExport_TextArtifacts_ struct {
	TextArtifacts *BigQueryExport_TextArtifacts `protobuf:"bytes,6,opt,name=text_artifacts,json=textArtifacts,proto3,oneof"`
}

type BugComponent

type BugComponent struct {

	// Types that are assignable to System:
	//
	//	*BugComponent_IssueTracker
	//	*BugComponent_Monorail
	System isBugComponent_System `protobuf_oneof:"system"`
	// contains filtered or unexported fields
}

Represents a component in an issue tracker. A component is a container for issues.

func (*BugComponent) Descriptor deprecated

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

Deprecated: Use BugComponent.ProtoReflect.Descriptor instead.

func (*BugComponent) GetIssueTracker

func (x *BugComponent) GetIssueTracker() *IssueTrackerComponent

func (*BugComponent) GetMonorail

func (x *BugComponent) GetMonorail() *MonorailComponent

func (*BugComponent) GetSystem

func (m *BugComponent) GetSystem() isBugComponent_System

func (*BugComponent) ProtoMessage

func (*BugComponent) ProtoMessage()

func (*BugComponent) ProtoReflect

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

func (*BugComponent) Reset

func (x *BugComponent) Reset()

func (*BugComponent) String

func (x *BugComponent) String() string

type BugComponent_IssueTracker

type BugComponent_IssueTracker struct {
	// The Google Issue Tracker component.
	IssueTracker *IssueTrackerComponent `protobuf:"bytes,1,opt,name=issue_tracker,json=issueTracker,proto3,oneof"`
}

type BugComponent_Monorail

type BugComponent_Monorail struct {
	// The monorail component.
	Monorail *MonorailComponent `protobuf:"bytes,2,opt,name=monorail,proto3,oneof"`
}

type CommitPosition deprecated

type CommitPosition struct {

	// The following fields identify a git repository and a ref within which the
	// numerical position below identifies a single commit.
	Host    string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
	Ref     string `protobuf:"bytes,3,opt,name=ref,proto3" json:"ref,omitempty"`
	// The numerical position of the commit in the log for the host/project/ref
	// above.
	Position int64 `protobuf:"varint,4,opt,name=position,proto3" json:"position,omitempty"`
	// contains filtered or unexported fields
}

Deprecated: Use GitilesCommit instead.

func (*CommitPosition) Descriptor deprecated

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

Deprecated: Use CommitPosition.ProtoReflect.Descriptor instead.

func (*CommitPosition) GetHost

func (x *CommitPosition) GetHost() string

func (*CommitPosition) GetPosition

func (x *CommitPosition) GetPosition() int64

func (*CommitPosition) GetProject

func (x *CommitPosition) GetProject() string

func (*CommitPosition) GetRef

func (x *CommitPosition) GetRef() string

func (*CommitPosition) ProtoMessage

func (*CommitPosition) ProtoMessage()

func (*CommitPosition) ProtoReflect

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

func (*CommitPosition) Reset

func (x *CommitPosition) Reset()

func (*CommitPosition) String

func (x *CommitPosition) String() string

type CommitPositionRange deprecated

type CommitPositionRange struct {

	// The lowest commit position to include in the range.
	Earliest *CommitPosition `protobuf:"bytes,1,opt,name=earliest,proto3" json:"earliest,omitempty"`
	// Include only commit positions that that are strictly lower than this.
	Latest *CommitPosition `protobuf:"bytes,2,opt,name=latest,proto3" json:"latest,omitempty"`
	// contains filtered or unexported fields
}

Deprecated: Do not use.

func (*CommitPositionRange) Descriptor deprecated

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

Deprecated: Use CommitPositionRange.ProtoReflect.Descriptor instead.

func (*CommitPositionRange) GetEarliest

func (x *CommitPositionRange) GetEarliest() *CommitPosition

func (*CommitPositionRange) GetLatest

func (x *CommitPositionRange) GetLatest() *CommitPosition

func (*CommitPositionRange) ProtoMessage

func (*CommitPositionRange) ProtoMessage()

func (*CommitPositionRange) ProtoReflect

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

func (*CommitPositionRange) Reset

func (x *CommitPositionRange) Reset()

func (*CommitPositionRange) String

func (x *CommitPositionRange) String() string

type CreateArtifactRequest

type CreateArtifactRequest struct {

	// Name of the parent resource where the artifact will be created.
	//
	// For invocation-level artifacts, it is the invocation name.
	// For test-result-level artifacts, it is the TestResult name.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Artifact to upload.
	// The length of the artifact contents MUST be <= 512KiB.
	// artifact.artifact_id MUST be set.
	// artifact.name will be ignored.
	Artifact *Artifact `protobuf:"bytes,2,opt,name=artifact,proto3" json:"artifact,omitempty"`
	// contains filtered or unexported fields
}

A request message for CreateArtifactRequest.

func (*CreateArtifactRequest) Descriptor deprecated

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

Deprecated: Use CreateArtifactRequest.ProtoReflect.Descriptor instead.

func (*CreateArtifactRequest) GetArtifact

func (x *CreateArtifactRequest) GetArtifact() *Artifact

func (*CreateArtifactRequest) GetParent

func (x *CreateArtifactRequest) GetParent() string

func (*CreateArtifactRequest) ProtoMessage

func (*CreateArtifactRequest) ProtoMessage()

func (*CreateArtifactRequest) ProtoReflect

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

func (*CreateArtifactRequest) Reset

func (x *CreateArtifactRequest) Reset()

func (*CreateArtifactRequest) String

func (x *CreateArtifactRequest) String() string

type CreateInvocationRequest

type CreateInvocationRequest struct {

	// Invocation identifier, becomes a part of the invocation.name.
	// LUCI systems MAY create invocations with nicely formatted IDs, such as
	// "build-1234567890". All other clients MUST use GUIDs.
	//
	// Regex: ^[a-z][a-z0-9_\-]*$.
	InvocationId string `protobuf:"bytes,1,opt,name=invocation_id,json=invocationId,proto3" json:"invocation_id,omitempty"`
	// Invocation data to insert.
	Invocation *Invocation `protobuf:"bytes,2,opt,name=invocation,proto3" json:"invocation,omitempty"`
	// A unique identifier for this request. Restricted to 36 ASCII characters.
	// A random UUID is recommended.
	// This request is only idempotent if a `request_id` is provided.
	RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// contains filtered or unexported fields
}

A request message for CreateInvocation.

func (*CreateInvocationRequest) Descriptor deprecated

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

Deprecated: Use CreateInvocationRequest.ProtoReflect.Descriptor instead.

func (*CreateInvocationRequest) GetInvocation

func (x *CreateInvocationRequest) GetInvocation() *Invocation

func (*CreateInvocationRequest) GetInvocationId

func (x *CreateInvocationRequest) GetInvocationId() string

func (*CreateInvocationRequest) GetRequestId

func (x *CreateInvocationRequest) GetRequestId() string

func (*CreateInvocationRequest) ProtoMessage

func (*CreateInvocationRequest) ProtoMessage()

func (*CreateInvocationRequest) ProtoReflect

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

func (*CreateInvocationRequest) Reset

func (x *CreateInvocationRequest) Reset()

func (*CreateInvocationRequest) String

func (x *CreateInvocationRequest) String() string

type CreateTestExonerationRequest

type CreateTestExonerationRequest struct {

	// Name of the parent invocation, see Invocation.name.
	Invocation string `protobuf:"bytes,1,opt,name=invocation,proto3" json:"invocation,omitempty"`
	// The TestExoneration to create.
	TestExoneration *TestExoneration `protobuf:"bytes,2,opt,name=test_exoneration,json=testExoneration,proto3" json:"test_exoneration,omitempty"`
	// A unique identifier for this request. Restricted to 36 ASCII characters.
	// A random UUID is recommended.
	// This request is only idempotent if a `request_id` is provided.
	RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// contains filtered or unexported fields
}

A request message for CreateTestExoneration RPC.

func (*CreateTestExonerationRequest) Descriptor deprecated

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

Deprecated: Use CreateTestExonerationRequest.ProtoReflect.Descriptor instead.

func (*CreateTestExonerationRequest) GetInvocation

func (x *CreateTestExonerationRequest) GetInvocation() string

func (*CreateTestExonerationRequest) GetRequestId

func (x *CreateTestExonerationRequest) GetRequestId() string

func (*CreateTestExonerationRequest) GetTestExoneration

func (x *CreateTestExonerationRequest) GetTestExoneration() *TestExoneration

func (*CreateTestExonerationRequest) ProtoMessage

func (*CreateTestExonerationRequest) ProtoMessage()

func (*CreateTestExonerationRequest) ProtoReflect

func (*CreateTestExonerationRequest) Reset

func (x *CreateTestExonerationRequest) Reset()

func (*CreateTestExonerationRequest) String

type CreateTestResultRequest

type CreateTestResultRequest struct {

	// Name of the parent invocation, see Invocation.name.
	Invocation string `protobuf:"bytes,1,opt,name=invocation,proto3" json:"invocation,omitempty"`
	// The test result to create.
	// Test id and result id are used to dedupe requests, i.e.
	// if a test result with the same test id and result id already exists in
	// the invocation, then the requests succeeds as opposed to returns with
	// ALREADY_EXISTS error.
	TestResult *TestResult `protobuf:"bytes,2,opt,name=test_result,json=testResult,proto3" json:"test_result,omitempty"`
	// A unique identifier for this request. Restricted to 36 ASCII characters.
	// A random UUID is recommended.
	// This request is only idempotent if a `request_id` is provided, so it is
	// strongly recommended to populate this field.
	//
	// Impl note: this field is used to compute the spanner-level result id, which
	// will encode tuple (request_id, index_of_request)", where
	//   - request_id is a random GUID if not provided by the user
	//   - index_of_request is 0 in CreateTestResult RPC, or index of the request
	//     in BatchCreateTestResultsRequest in the batch RPC.
	//
	// TODO(jchinlee): remove this impl note when it is converted into code.
	RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// contains filtered or unexported fields
}

A request message for CreateTestResult RPC.

func (*CreateTestResultRequest) Descriptor deprecated

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

Deprecated: Use CreateTestResultRequest.ProtoReflect.Descriptor instead.

func (*CreateTestResultRequest) GetInvocation

func (x *CreateTestResultRequest) GetInvocation() string

func (*CreateTestResultRequest) GetRequestId

func (x *CreateTestResultRequest) GetRequestId() string

func (*CreateTestResultRequest) GetTestResult

func (x *CreateTestResultRequest) GetTestResult() *TestResult

func (*CreateTestResultRequest) ProtoMessage

func (*CreateTestResultRequest) ProtoMessage()

func (*CreateTestResultRequest) ProtoReflect

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

func (*CreateTestResultRequest) Reset

func (x *CreateTestResultRequest) Reset()

func (*CreateTestResultRequest) String

func (x *CreateTestResultRequest) String() string

type DecoratedRecorder

type DecoratedRecorder struct {
	// Service is the service to decorate.
	Service RecorderServer
	// Prelude is called for each method before forwarding the call to Service.
	// If Prelude returns an error, then the call is skipped and the error is
	// processed via the Postlude (if one is defined), or it is returned directly.
	Prelude func(ctx context.Context, methodName string, req proto.Message) (context.Context, error)
	// Postlude is called for each method after Service has processed the call, or
	// after the Prelude has returned an error. This takes the Service's
	// response proto (which may be nil) and/or any error. The decorated
	// service will return the response (possibly mutated) and error that Postlude
	// returns.
	Postlude func(ctx context.Context, methodName string, rsp proto.Message, err error) error
}

func (*DecoratedRecorder) BatchCreateArtifacts

func (s *DecoratedRecorder) BatchCreateArtifacts(ctx context.Context, req *BatchCreateArtifactsRequest) (rsp *BatchCreateArtifactsResponse, err error)

func (*DecoratedRecorder) BatchCreateInvocations

func (*DecoratedRecorder) BatchCreateTestExonerations

func (*DecoratedRecorder) BatchCreateTestResults

func (*DecoratedRecorder) CreateInvocation

func (s *DecoratedRecorder) CreateInvocation(ctx context.Context, req *CreateInvocationRequest) (rsp *Invocation, err error)

func (*DecoratedRecorder) CreateTestExoneration

func (s *DecoratedRecorder) CreateTestExoneration(ctx context.Context, req *CreateTestExonerationRequest) (rsp *TestExoneration, err error)

func (*DecoratedRecorder) CreateTestResult

func (s *DecoratedRecorder) CreateTestResult(ctx context.Context, req *CreateTestResultRequest) (rsp *TestResult, err error)

func (*DecoratedRecorder) FinalizeInvocation

func (s *DecoratedRecorder) FinalizeInvocation(ctx context.Context, req *FinalizeInvocationRequest) (rsp *Invocation, err error)

func (*DecoratedRecorder) MarkInvocationSubmitted

func (s *DecoratedRecorder) MarkInvocationSubmitted(ctx context.Context, req *MarkInvocationSubmittedRequest) (rsp *emptypb.Empty, err error)

func (*DecoratedRecorder) UpdateIncludedInvocations

func (s *DecoratedRecorder) UpdateIncludedInvocations(ctx context.Context, req *UpdateIncludedInvocationsRequest) (rsp *emptypb.Empty, err error)

func (*DecoratedRecorder) UpdateInvocation

func (s *DecoratedRecorder) UpdateInvocation(ctx context.Context, req *UpdateInvocationRequest) (rsp *Invocation, err error)

type DecoratedResultDB

type DecoratedResultDB struct {
	// Service is the service to decorate.
	Service ResultDBServer
	// Prelude is called for each method before forwarding the call to Service.
	// If Prelude returns an error, then the call is skipped and the error is
	// processed via the Postlude (if one is defined), or it is returned directly.
	Prelude func(ctx context.Context, methodName string, req proto.Message) (context.Context, error)
	// Postlude is called for each method after Service has processed the call, or
	// after the Prelude has returned an error. This takes the Service's
	// response proto (which may be nil) and/or any error. The decorated
	// service will return the response (possibly mutated) and error that Postlude
	// returns.
	Postlude func(ctx context.Context, methodName string, rsp proto.Message, err error) error
}

func (*DecoratedResultDB) BatchGetTestVariants

func (s *DecoratedResultDB) BatchGetTestVariants(ctx context.Context, req *BatchGetTestVariantsRequest) (rsp *BatchGetTestVariantsResponse, err error)

func (*DecoratedResultDB) GetArtifact

func (s *DecoratedResultDB) GetArtifact(ctx context.Context, req *GetArtifactRequest) (rsp *Artifact, err error)

func (*DecoratedResultDB) GetInvocation

func (s *DecoratedResultDB) GetInvocation(ctx context.Context, req *GetInvocationRequest) (rsp *Invocation, err error)

func (*DecoratedResultDB) GetTestExoneration

func (s *DecoratedResultDB) GetTestExoneration(ctx context.Context, req *GetTestExonerationRequest) (rsp *TestExoneration, err error)

func (*DecoratedResultDB) GetTestResult

func (s *DecoratedResultDB) GetTestResult(ctx context.Context, req *GetTestResultRequest) (rsp *TestResult, err error)

func (*DecoratedResultDB) ListArtifacts

func (s *DecoratedResultDB) ListArtifacts(ctx context.Context, req *ListArtifactsRequest) (rsp *ListArtifactsResponse, err error)

func (*DecoratedResultDB) ListTestExonerations

func (s *DecoratedResultDB) ListTestExonerations(ctx context.Context, req *ListTestExonerationsRequest) (rsp *ListTestExonerationsResponse, err error)

func (*DecoratedResultDB) ListTestResults

func (s *DecoratedResultDB) ListTestResults(ctx context.Context, req *ListTestResultsRequest) (rsp *ListTestResultsResponse, err error)

func (*DecoratedResultDB) QueryArtifacts

func (s *DecoratedResultDB) QueryArtifacts(ctx context.Context, req *QueryArtifactsRequest) (rsp *QueryArtifactsResponse, err error)

func (*DecoratedResultDB) QueryNewTestVariants

func (s *DecoratedResultDB) QueryNewTestVariants(ctx context.Context, req *QueryNewTestVariantsRequest) (rsp *QueryNewTestVariantsResponse, err error)

func (*DecoratedResultDB) QueryTestExonerations

func (s *DecoratedResultDB) QueryTestExonerations(ctx context.Context, req *QueryTestExonerationsRequest) (rsp *QueryTestExonerationsResponse, err error)

func (*DecoratedResultDB) QueryTestMetadata

func (s *DecoratedResultDB) QueryTestMetadata(ctx context.Context, req *QueryTestMetadataRequest) (rsp *QueryTestMetadataResponse, err error)

func (*DecoratedResultDB) QueryTestResultStatistics

func (*DecoratedResultDB) QueryTestResults

func (s *DecoratedResultDB) QueryTestResults(ctx context.Context, req *QueryTestResultsRequest) (rsp *QueryTestResultsResponse, err error)

func (*DecoratedResultDB) QueryTestVariants

func (s *DecoratedResultDB) QueryTestVariants(ctx context.Context, req *QueryTestVariantsRequest) (rsp *QueryTestVariantsResponse, err error)

type ExonerationReason

type ExonerationReason int32

Reason why a test variant was exonerated.

const (
	// Reason was not specified.
	// Not to be used in actual test exonerations; serves as a default value for
	// an unset field.
	ExonerationReason_EXONERATION_REASON_UNSPECIFIED ExonerationReason = 0
	// Similar unexpected results were observed on a mainline branch
	// (i.e. against a build without unsubmitted changes applied).
	// (For avoidance of doubt, this includes both flakily and
	// deterministically occurring unexpected results.)
	// Applies to unexpected results in presubmit/CQ runs only.
	ExonerationReason_OCCURS_ON_MAINLINE ExonerationReason = 1
	// Similar unexpected results were observed in presubmit run(s) for other,
	// unrelated CL(s). (This is suggestive of the issue being present
	// on mainline but is not confirmed as there are possible confounding
	// factors, like how tests are run on CLs vs how tests are run on
	// mainline branches.)
	// Applies to unexpected results in presubmit/CQ runs only.
	ExonerationReason_OCCURS_ON_OTHER_CLS ExonerationReason = 2
	// The tests are not critical to the test subject (e.g. CL) passing.
	// This could be because more data is being collected to determine if
	// the tests are stable enough to be made critical (as is often the
	// case for experimental test suites).
	// If information exists indicating the tests are producing unexpected
	// results, and the tests are not critical for that reason,
	// prefer more specific reasons OCCURS_ON_MAINLINE or OCCURS_ON_OTHER_CLS.
	ExonerationReason_NOT_CRITICAL ExonerationReason = 3
	// The test result was an unexpected pass. (Note that such an exoneration is
	// not automatically created for unexpected passes, unless the option is
	// specified to ResultSink or the project manually creates one).
	ExonerationReason_UNEXPECTED_PASS ExonerationReason = 4
)

func (ExonerationReason) Descriptor

func (ExonerationReason) Enum

func (ExonerationReason) EnumDescriptor deprecated

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

Deprecated: Use ExonerationReason.Descriptor instead.

func (ExonerationReason) Number

func (ExonerationReason) String

func (x ExonerationReason) String() string

func (ExonerationReason) Type

type FailureReason

type FailureReason struct {

	// The error message that ultimately caused the test to fail. This should
	// only be the error message and should not include any stack traces.
	// An example would be the message from an Exception in a Java test.
	// In the case that a test failed due to multiple expectation failures, any
	// immediately fatal failure should be chosen, or otherwise the first
	// expectation failure.
	// If this field is empty, other fields (including those from the TestResult)
	// may be used to cluster the failure instead.
	//
	// The size of the message must be equal to or smaller than 1024 bytes in
	// UTF-8.
	PrimaryErrorMessage string `protobuf:"bytes,1,opt,name=primary_error_message,json=primaryErrorMessage,proto3" json:"primary_error_message,omitempty"`
	// The error(s) that caused the test to fail.
	//
	// If there is more than one error (e.g. due to multiple expectation failures),
	// a stable sorting should be used. A recommended form of stable sorting is:
	//   - Fatal errors (errors that cause the test to terminate immediately first,
	//     then
	//   - Within fatal/non-fatal errors, sort by chronological order
	//     (earliest error first).
	//
	// Where this field is populated, errors[0].message shall match
	// primary_error_message.
	//
	// The total combined size of all errors (as measured by proto.Size()) must
	// not exceed 3,172 bytes.
	Errors []*FailureReason_Error `protobuf:"bytes,2,rep,name=errors,proto3" json:"errors,omitempty"`
	// The number of errors that are truncated from the errors list above due to
	// the size limits.
	TruncatedErrorsCount int32 `protobuf:"varint,3,opt,name=truncated_errors_count,json=truncatedErrorsCount,proto3" json:"truncated_errors_count,omitempty"`
	// contains filtered or unexported fields
}

Information about why a test failed. This information may be displayed to developers in result viewing UIs and will also be used to cluster similar failures together. For example, this will contain assertion failure messages and stack traces.

func (*FailureReason) Descriptor deprecated

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

Deprecated: Use FailureReason.ProtoReflect.Descriptor instead.

func (*FailureReason) GetErrors

func (x *FailureReason) GetErrors() []*FailureReason_Error

func (*FailureReason) GetPrimaryErrorMessage

func (x *FailureReason) GetPrimaryErrorMessage() string

func (*FailureReason) GetTruncatedErrorsCount

func (x *FailureReason) GetTruncatedErrorsCount() int32

func (*FailureReason) ProtoMessage

func (*FailureReason) ProtoMessage()

func (*FailureReason) ProtoReflect

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

func (*FailureReason) Reset

func (x *FailureReason) Reset()

func (*FailureReason) String

func (x *FailureReason) String() string

type FailureReason_Error

type FailureReason_Error struct {

	// The error message. This should only be the error message and
	// should not include any stack traces. An example would be the
	// message from an Exception in a Java test.
	//
	// This message may be used to cluster related failures together.
	//
	// The size of the message must be equal to or smaller than 1024 bytes in
	// UTF-8.
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

Error represents a problem that caused a test to fail, such as a crash or expectation failure.

func (*FailureReason_Error) Descriptor deprecated

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

Deprecated: Use FailureReason_Error.ProtoReflect.Descriptor instead.

func (*FailureReason_Error) GetMessage

func (x *FailureReason_Error) GetMessage() string

func (*FailureReason_Error) ProtoMessage

func (*FailureReason_Error) ProtoMessage()

func (*FailureReason_Error) ProtoReflect

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

func (*FailureReason_Error) Reset

func (x *FailureReason_Error) Reset()

func (*FailureReason_Error) String

func (x *FailureReason_Error) String() string

type FinalizeInvocationRequest

type FinalizeInvocationRequest struct {

	// Name of the invocation to finalize.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

A request message for FinalizeInvocation RPC.

func (*FinalizeInvocationRequest) Descriptor deprecated

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

Deprecated: Use FinalizeInvocationRequest.ProtoReflect.Descriptor instead.

func (*FinalizeInvocationRequest) GetName

func (x *FinalizeInvocationRequest) GetName() string

func (*FinalizeInvocationRequest) ProtoMessage

func (*FinalizeInvocationRequest) ProtoMessage()

func (*FinalizeInvocationRequest) ProtoReflect

func (*FinalizeInvocationRequest) Reset

func (x *FinalizeInvocationRequest) Reset()

func (*FinalizeInvocationRequest) String

func (x *FinalizeInvocationRequest) String() string

type GerritChange

type GerritChange struct {

	// Gerrit hostname, e.g. "chromium-review.googlesource.com".
	Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	// Gerrit project, e.g. "chromium/src".
	Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
	// Change number, e.g. 12345.
	Change int64 `protobuf:"varint,3,opt,name=change,proto3" json:"change,omitempty"`
	// Patch set number, e.g. 1.
	Patchset int64 `protobuf:"varint,4,opt,name=patchset,proto3" json:"patchset,omitempty"`
	// contains filtered or unexported fields
}

A Gerrit patchset.

func (*GerritChange) Descriptor deprecated

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

Deprecated: Use GerritChange.ProtoReflect.Descriptor instead.

func (*GerritChange) GetChange

func (x *GerritChange) GetChange() int64

func (*GerritChange) GetHost

func (x *GerritChange) GetHost() string

func (*GerritChange) GetPatchset

func (x *GerritChange) GetPatchset() int64

func (*GerritChange) GetProject

func (x *GerritChange) GetProject() string

func (*GerritChange) ProtoMessage

func (*GerritChange) ProtoMessage()

func (*GerritChange) ProtoReflect

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

func (*GerritChange) Reset

func (x *GerritChange) Reset()

func (*GerritChange) String

func (x *GerritChange) String() string

type GetArtifactRequest

type GetArtifactRequest struct {

	// The name of the artifact to request, see Artifact.name.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

A request message for GetArtifact RPC.

func (*GetArtifactRequest) Descriptor deprecated

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

Deprecated: Use GetArtifactRequest.ProtoReflect.Descriptor instead.

func (*GetArtifactRequest) GetName

func (x *GetArtifactRequest) GetName() string

func (*GetArtifactRequest) ProtoMessage

func (*GetArtifactRequest) ProtoMessage()

func (*GetArtifactRequest) ProtoReflect

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

func (*GetArtifactRequest) Reset

func (x *GetArtifactRequest) Reset()

func (*GetArtifactRequest) String

func (x *GetArtifactRequest) String() string

type GetInvocationRequest

type GetInvocationRequest struct {

	// The name of the invocation to request, see Invocation.name.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

A request message for GetInvocation RPC.

func (*GetInvocationRequest) Descriptor deprecated

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

Deprecated: Use GetInvocationRequest.ProtoReflect.Descriptor instead.

func (*GetInvocationRequest) GetName

func (x *GetInvocationRequest) GetName() string

func (*GetInvocationRequest) ProtoMessage

func (*GetInvocationRequest) ProtoMessage()

func (*GetInvocationRequest) ProtoReflect

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

func (*GetInvocationRequest) Reset

func (x *GetInvocationRequest) Reset()

func (*GetInvocationRequest) String

func (x *GetInvocationRequest) String() string

type GetTestExonerationRequest

type GetTestExonerationRequest struct {

	// The name of the test exoneration to request, see TestExoneration.name.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

A request message for GetTestExoneration RPC.

func (*GetTestExonerationRequest) Descriptor deprecated

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

Deprecated: Use GetTestExonerationRequest.ProtoReflect.Descriptor instead.

func (*GetTestExonerationRequest) GetName

func (x *GetTestExonerationRequest) GetName() string

func (*GetTestExonerationRequest) ProtoMessage

func (*GetTestExonerationRequest) ProtoMessage()

func (*GetTestExonerationRequest) ProtoReflect

func (*GetTestExonerationRequest) Reset

func (x *GetTestExonerationRequest) Reset()

func (*GetTestExonerationRequest) String

func (x *GetTestExonerationRequest) String() string

type GetTestResultRequest

type GetTestResultRequest struct {

	// The name of the test result to request, see TestResult.name.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

A request message for GetTestResult RPC.

func (*GetTestResultRequest) Descriptor deprecated

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

Deprecated: Use GetTestResultRequest.ProtoReflect.Descriptor instead.

func (*GetTestResultRequest) GetName

func (x *GetTestResultRequest) GetName() string

func (*GetTestResultRequest) ProtoMessage

func (*GetTestResultRequest) ProtoMessage()

func (*GetTestResultRequest) ProtoReflect

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

func (*GetTestResultRequest) Reset

func (x *GetTestResultRequest) Reset()

func (*GetTestResultRequest) String

func (x *GetTestResultRequest) String() string

type GitilesCommit

type GitilesCommit struct {

	// The identity of the gitiles host, e.g. "chromium.googlesource.com".
	// Mandatory.
	Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	// Repository name on the host, e.g. "chromium/src". Mandatory.
	Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
	// Commit ref, e.g. "refs/heads/main" from which the commit was fetched.
	// Not the branch name, use "refs/heads/branch"
	// Mandatory.
	Ref string `protobuf:"bytes,3,opt,name=ref,proto3" json:"ref,omitempty"`
	// Commit HEX SHA1. All lowercase. Mandatory.
	CommitHash string `protobuf:"bytes,4,opt,name=commit_hash,json=commitHash,proto3" json:"commit_hash,omitempty"`
	// Defines a total order of commits on the ref.
	// A positive, monotonically increasing integer. The recommended
	// way of obtaining this is by using the goto.google.com/git-numberer
	// Gerrit plugin. Other solutions can be used as well, so long
	// as the same scheme is used consistently for a ref.
	// Mandatory.
	Position int64 `protobuf:"varint,5,opt,name=position,proto3" json:"position,omitempty"`
	// contains filtered or unexported fields
}

GitilesCommit specifies the position of the gitiles commit an invocation ran against, in a repository's commit log. More specifically, a ref's commit log.

It also specifies the host/project/ref combination that the commit exists in, to provide context.

func (*GitilesCommit) Descriptor deprecated

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

Deprecated: Use GitilesCommit.ProtoReflect.Descriptor instead.

func (*GitilesCommit) GetCommitHash

func (x *GitilesCommit) GetCommitHash() string

func (*GitilesCommit) GetHost

func (x *GitilesCommit) GetHost() string

func (*GitilesCommit) GetPosition

func (x *GitilesCommit) GetPosition() int64

func (*GitilesCommit) GetProject

func (x *GitilesCommit) GetProject() string

func (*GitilesCommit) GetRef

func (x *GitilesCommit) GetRef() string

func (*GitilesCommit) ProtoMessage

func (*GitilesCommit) ProtoMessage()

func (*GitilesCommit) ProtoReflect

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

func (*GitilesCommit) Reset

func (x *GitilesCommit) Reset()

func (*GitilesCommit) String

func (x *GitilesCommit) String() string

type GitilesRef

type GitilesRef struct {

	// The gitiles host, e.g. "chromium.googlesource.com".
	Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	// The project on the gitiles host, e.g. "chromium/src".
	Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
	// Commit ref, e.g. "refs/heads/main" from which the commit was fetched.
	// Not the branch name, use "refs/heads/branch"
	Ref string `protobuf:"bytes,3,opt,name=ref,proto3" json:"ref,omitempty"`
	// contains filtered or unexported fields
}

Represents a branch in a gitiles repository.

func (*GitilesRef) Descriptor deprecated

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

Deprecated: Use GitilesRef.ProtoReflect.Descriptor instead.

func (*GitilesRef) GetHost

func (x *GitilesRef) GetHost() string

func (*GitilesRef) GetProject

func (x *GitilesRef) GetProject() string

func (*GitilesRef) GetRef

func (x *GitilesRef) GetRef() string

func (*GitilesRef) ProtoMessage

func (*GitilesRef) ProtoMessage()

func (*GitilesRef) ProtoReflect

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

func (*GitilesRef) Reset

func (x *GitilesRef) Reset()

func (*GitilesRef) String

func (x *GitilesRef) String() string

type HistoryOptions

type HistoryOptions struct {

	// Set this to index the results by the containing invocation's create_time.
	UseInvocationTimestamp bool `` /* 130-byte string literal not displayed */
	// Set this to index by commit position.
	// It's up to the creator of the invocation to set this consistently over
	// time across the same test variant.
	Commit *CommitPosition `protobuf:"bytes,2,opt,name=commit,proto3" json:"commit,omitempty"`
	// contains filtered or unexported fields
}

HistoryOptions indicates how the invocations should be indexed, so that their results can be queried over a range of time or of commits. Deprecated: do not use.

func (*HistoryOptions) Descriptor deprecated

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

Deprecated: Use HistoryOptions.ProtoReflect.Descriptor instead.

func (*HistoryOptions) GetCommit

func (x *HistoryOptions) GetCommit() *CommitPosition

func (*HistoryOptions) GetUseInvocationTimestamp

func (x *HistoryOptions) GetUseInvocationTimestamp() bool

func (*HistoryOptions) ProtoMessage

func (*HistoryOptions) ProtoMessage()

func (*HistoryOptions) ProtoReflect

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

func (*HistoryOptions) Reset

func (x *HistoryOptions) Reset()

func (*HistoryOptions) String

func (x *HistoryOptions) String() string

type Instruction

type Instruction struct {

	// ID of the instruction, used for step instruction.
	// It is consumer-defined and is unique within the build-level invocation.
	// For test instruction, we will ignore this field.
	// Included invocation may have the same instruction id with the parent invocation.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// List of instruction for different targets.
	// There is at most 1 instruction per target.
	// If there is more than 1, an error will be returned.
	TargetedInstructions []*TargetedInstruction `protobuf:"bytes,2,rep,name=targeted_instructions,json=targetedInstructions,proto3" json:"targeted_instructions,omitempty"`
	// contains filtered or unexported fields
}

Instruction is one failure reproduction instruction for a step or invocation. Instruction can have different target, like "local" or "remote". When converted to JSONPB format, it will look like below:

{
  "id" : "my_id",
  "targetedInstructions": [
    {
      "targets": [
        "LOCAL",
      ],
      "content": "my content",
      "dependency": [
        {
          "buildId": "80000",
          "stepName": "my step name",
          "stepTag": {
            "key": "my key",
            "value": "my value",
          },
        },
      ],
    },
  ],
}

func (*Instruction) Descriptor deprecated

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

Deprecated: Use Instruction.ProtoReflect.Descriptor instead.

func (*Instruction) GetId

func (x *Instruction) GetId() string

func (*Instruction) GetTargetedInstructions

func (x *Instruction) GetTargetedInstructions() []*TargetedInstruction

func (*Instruction) ProtoMessage

func (*Instruction) ProtoMessage()

func (*Instruction) ProtoReflect

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

func (*Instruction) Reset

func (x *Instruction) Reset()

func (*Instruction) String

func (x *Instruction) String() string

type InstructionDependency

type InstructionDependency struct {

	// The build ID of the instruction being depended on.
	// This can be a build id or a templated string with placeholders.
	// Because test results instructions are stored in leaf invocation,
	// we can use placeholders to refer to the top-level build.
	// For example, "{{build_tags.parent_build_id}}" to refer to the parent build.
	// If not specified, assuming to be of the same build.
	// Limit: 100 bytes
	BuildId string `protobuf:"bytes,1,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"`
	// The step name of the instruction being depended on.
	// If this is a nested step, this field should contain both
	// parent and child step names, separated by "|".
	// For example "parent_step_name|child_step_name".
	// Limit: 1024 bytes
	StepName string `protobuf:"bytes,2,opt,name=step_name,json=stepName,proto3" json:"step_name,omitempty"`
	// Optional: In case there are more than one step with the same name
	// in the build, the step_tag is used to select the exact step to depend on.
	// This have the same size limit as step tag, 256 bytes for the key,
	// and 1024 bytes for the value.
	StepTag *StringPair `protobuf:"bytes,3,opt,name=step_tag,json=stepTag,proto3" json:"step_tag,omitempty"`
	// contains filtered or unexported fields
}

Specifies a dependency for instruction. An instruction being depended on needs to be step instruction, not test result instruction. If the dependency cannot be found, or the user does not have the ACL, the dependency chain will stop and Milo will not display the dependency. If a dependency cycle is detected, we will stop showing dependency once we detected the cycle.

func (*InstructionDependency) Descriptor deprecated

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

Deprecated: Use InstructionDependency.ProtoReflect.Descriptor instead.

func (*InstructionDependency) GetBuildId

func (x *InstructionDependency) GetBuildId() string

func (*InstructionDependency) GetStepName

func (x *InstructionDependency) GetStepName() string

func (*InstructionDependency) GetStepTag

func (x *InstructionDependency) GetStepTag() *StringPair

func (*InstructionDependency) ProtoMessage

func (*InstructionDependency) ProtoMessage()

func (*InstructionDependency) ProtoReflect

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

func (*InstructionDependency) Reset

func (x *InstructionDependency) Reset()

func (*InstructionDependency) String

func (x *InstructionDependency) String() string

type InstructionTarget

type InstructionTarget int32
const (
	InstructionTarget_INSTRUCTION_TARGET_UNSPECIFIED InstructionTarget = 0
	// For running in a local machine.
	InstructionTarget_LOCAL InstructionTarget = 1
	// For running remotely.
	InstructionTarget_REMOTE InstructionTarget = 2
	// For prebuilt images.
	InstructionTarget_PREBUILT InstructionTarget = 3
)

func (InstructionTarget) Descriptor

func (InstructionTarget) Enum

func (InstructionTarget) EnumDescriptor deprecated

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

Deprecated: Use InstructionTarget.Descriptor instead.

func (InstructionTarget) Number

func (InstructionTarget) String

func (x InstructionTarget) String() string

func (InstructionTarget) Type

type Instructions

type Instructions struct {
	Instructions []*Instruction `protobuf:"bytes,1,rep,name=instructions,proto3" json:"instructions,omitempty"`
	// contains filtered or unexported fields
}

A collection of instructions. Used for step instruction. This has a size limit of 1MB.

func (*Instructions) Descriptor deprecated

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

Deprecated: Use Instructions.ProtoReflect.Descriptor instead.

func (*Instructions) GetInstructions

func (x *Instructions) GetInstructions() []*Instruction

func (*Instructions) ProtoMessage

func (*Instructions) ProtoMessage()

func (*Instructions) ProtoReflect

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

func (*Instructions) Reset

func (x *Instructions) Reset()

func (*Instructions) String

func (x *Instructions) String() string

type Invocation

type Invocation struct {

	// Can be used to refer to this invocation, e.g. in ResultDB.GetInvocation
	// RPC.
	// Format: invocations/{INVOCATION_ID}
	// See also https://aip.dev/122.
	//
	// Output only.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Current state of the invocation.
	//
	// At creation time this can be set to FINALIZING e.g. if this invocation is
	// a simple wrapper of another and will itself not be modified.
	//
	// Otherwise this is an output only field.
	State Invocation_State `protobuf:"varint,2,opt,name=state,proto3,enum=luci.resultdb.v1.Invocation_State" json:"state,omitempty"`
	// When the invocation was created.
	// Output only.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Invocation-level string key-value pairs.
	// A key can be repeated.
	Tags []*StringPair `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"`
	// When the invocation started to finalize, i.e. transitioned to FINALIZING
	// state. This means the invocation is immutable but directly or indirectly
	// included invocations may not be.
	//
	// Output only.
	FinalizeStartTime *timestamppb.Timestamp `protobuf:"bytes,19,opt,name=finalize_start_time,json=finalizeStartTime,proto3" json:"finalize_start_time,omitempty"`
	// When the invocation was finalized, i.e. transitioned to FINALIZED state.
	// If this field is set, implies that the invocation is finalized. This
	// means the invocation and directly or indirectly included invocations
	// are immutable.
	//
	// Output only.
	FinalizeTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=finalize_time,json=finalizeTime,proto3" json:"finalize_time,omitempty"`
	// Timestamp when the invocation will be forcefully finalized.
	// Can be extended with UpdateInvocation until finalized.
	Deadline *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=deadline,proto3" json:"deadline,omitempty"`
	// Names of invocations included into this one. Overall results of this
	// invocation is a UNION of results directly included into this invocation
	// and results from the included invocations, recursively.
	// For example, a Buildbucket build invocation may include invocations of its
	// child swarming tasks and represent overall result of the build,
	// encapsulating the internal structure of the build.
	//
	// The graph is directed.
	// There can be at most one edge between a given pair of invocations.
	// The shape of the graph does not matter. What matters is only the set of
	// reachable invocations. Thus cycles are allowed and are noop.
	//
	// QueryTestResults returns test results from the transitive closure of
	// invocations.
	//
	// This field can be set under Recorder.CreateInvocationsRequest to include
	// existing invocations at the moment of invocation creation.
	// New invocations created in the same batch (via
	// Recorder.BatchCreateInvocationsRequest) are also allowed.
	// Otherwise, this field is to be treated as Output only.
	//
	// To modify included invocations, use Recorder.UpdateIncludedInvocations in
	// all other cases.
	IncludedInvocations []string `protobuf:"bytes,8,rep,name=included_invocations,json=includedInvocations,proto3" json:"included_invocations,omitempty"`
	// Whether this invocation is a root of the invocation graph for export purposes.
	//
	// To help downstream systems (like LUCI Analysis) make sense of test results,
	// and gather overall context for a result, ResultDB data export is centered
	// around export roots.
	// The export roots typically represent a top-level buildbucket build, like a
	// postsubmit build or presubmit tryjob. Test results are only exported if
	// they are included from a root. They may be exported multiple times of they
	// are included by multiple roots (e.g. in case of re-used test results).
	// Re-used test results can be identified because the parent invocation of the
	// test result will be the same even though the export root will be different.
	//
	// N.B. Export roots do not affect legacy BigQuery exports configured by the
	// BigQueryExports field.
	IsExportRoot bool `protobuf:"varint,21,opt,name=is_export_root,json=isExportRoot,proto3" json:"is_export_root,omitempty"`
	// bigquery_exports indicates what BigQuery table(s) that results in this
	// invocation should export to.
	//
	// Legacy feature: Prefer to use LUCI Analysis exports instead.
	BigqueryExports []*BigQueryExport `protobuf:"bytes,9,rep,name=bigquery_exports,json=bigqueryExports,proto3" json:"bigquery_exports,omitempty"`
	// LUCI identity (e.g. "user:<email>") who created the invocation.
	// Typically, a LUCI service account (e.g.
	// "user:cr-buildbucket@appspot.gserviceaccount.com"), but can also be a user
	// (e.g. "user:johndoe@example.com").
	//
	// Output only.
	CreatedBy string `protobuf:"bytes,10,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"`
	// Full name of the resource that produced results in this invocation.
	// See also https://aip.dev/122#full-resource-names
	// Typical examples:
	// - Swarming task: "//chromium-swarm.appspot.com/tasks/deadbeef"
	// - Buildbucket build: "//cr-buildbucket.appspot.com/builds/1234567890".
	ProducerResource string `protobuf:"bytes,11,opt,name=producer_resource,json=producerResource,proto3" json:"producer_resource,omitempty"`
	// Realm that the invocation exists under.
	// See https://chromium.googlesource.com/infra/luci/luci-py/+/refs/heads/master/appengine/auth_service/proto/realms_config.proto
	Realm string `protobuf:"bytes,12,opt,name=realm,proto3" json:"realm,omitempty"`
	// Deprecated. Values specified here are ignored.
	HistoryOptions *HistoryOptions `protobuf:"bytes,13,opt,name=history_options,json=historyOptions,proto3" json:"history_options,omitempty"`
	// Arbitrary JSON object that contains structured, domain-specific properties
	// of the invocation.
	//
	// The serialized size must be <= 16 KB.
	Properties *structpb.Struct `protobuf:"bytes,14,opt,name=properties,proto3" json:"properties,omitempty"`
	// The code sources which were tested by this invocation.
	// This is used to index test results for test history, and for
	// related analyses (e.g. culprit analysis / changepoint analyses).
	//
	// The sources specified here applies only to:
	//   - the test results directly contained in this invocation, and
	//   - any directly included invocations which set their source_spec.inherit to
	//     true.
	//
	// Clients should be careful to ensure the uploaded source spec is consistent
	// between included invocations that upload the same test variants.
	// Verdicts are associated with the sources of *any* of their constituent
	// test results, so if there is inconsistency between included invocations,
	// the position of the verdict becomes not well defined.
	//
	// Note that the sources specified here are shared with included invocations
	// regardless of the realm of those included invocations.
	//
	// Attempting to update this field to a value other than its current value
	// after is_source_spec_final is set will generate an error.
	SourceSpec *SourceSpec `protobuf:"bytes,15,opt,name=source_spec,json=sourceSpec,proto3" json:"source_spec,omitempty"`
	// Whether the code sources specified by source_spec are final (immutable).
	//
	// To facilitate rapid export of invocations inheriting sources from this
	// invocation, this property should be set to true as soon as possible
	// after the invocation's sources are fixed. In most cases, clients
	// will want to set this property to true at the same time as they set
	// source_spec.
	//
	// This field is client owned. Consistent with https://google.aip.dev/129,
	// it will not be forced to true when the invocation starts to finalize, even
	// if its effective value will always be true at that point.
	IsSourceSpecFinal bool `protobuf:"varint,20,opt,name=is_source_spec_final,json=isSourceSpecFinal,proto3" json:"is_source_spec_final,omitempty"`
	// A user-specified baseline identifier that maps to a set of test variants.
	// Often, this will be the source that generated the test result, such as the
	// builder name for Chromium. For example, the baseline identifier may be
	// try:linux-rel. The supported syntax for a baseline identifier is
	// ^[a-z0-9\-_.]{1,100}:[a-zA-Z0-9\-_.\(\) ]{1,128}`$. This syntax was selected
	// to allow <buildbucket bucket name>:<buildbucket builder name> as a valid
	// baseline ID.
	// See go/src/go.chromium.org/luci/buildbucket/proto/builder_common.proto for
	// character lengths for buildbucket bucket name and builder name.
	//
	// Baselines are used to identify new tests; a subtraction between the set of
	// test variants for a baseline in the Baselines table and test variants from
	// a given invocation determines whether a test is new.
	//
	// The caller must have `resultdb.baselines.put` to be able to
	// modify this field.
	BaselineId string `protobuf:"bytes,16,opt,name=baseline_id,json=baselineId,proto3" json:"baseline_id,omitempty"`
	// Instruction for the invocation.
	// Only applicable to test results directly contained in this invocation,
	// i.e. it does not apply to test results in included invocations.
	TestInstruction *Instruction `protobuf:"bytes,17,opt,name=test_instruction,json=testInstruction,proto3" json:"test_instruction,omitempty"`
	// Instructions for the steps.
	// Only useful for a build-level invocation.
	// It contains all instructions of steps which belong to the build.
	StepInstructions *Instructions `protobuf:"bytes,18,opt,name=step_instructions,json=stepInstructions,proto3" json:"step_instructions,omitempty"`
	// contains filtered or unexported fields
}

A conceptual container of results. Immutable once finalized. It represents all results of some computation; examples: swarming task, buildbucket build, CQ attempt. Composable: can include other invocations, see inclusion.proto.

Next id: 22.

func (*Invocation) Descriptor deprecated

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

Deprecated: Use Invocation.ProtoReflect.Descriptor instead.

func (*Invocation) GetBaselineId

func (x *Invocation) GetBaselineId() string

func (*Invocation) GetBigqueryExports

func (x *Invocation) GetBigqueryExports() []*BigQueryExport

func (*Invocation) GetCreateTime

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

func (*Invocation) GetCreatedBy

func (x *Invocation) GetCreatedBy() string

func (*Invocation) GetDeadline

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

func (*Invocation) GetFinalizeStartTime

func (x *Invocation) GetFinalizeStartTime() *timestamppb.Timestamp

func (*Invocation) GetFinalizeTime

func (x *Invocation) GetFinalizeTime() *timestamppb.Timestamp

func (*Invocation) GetHistoryOptions

func (x *Invocation) GetHistoryOptions() *HistoryOptions

func (*Invocation) GetIncludedInvocations

func (x *Invocation) GetIncludedInvocations() []string

func (*Invocation) GetIsExportRoot

func (x *Invocation) GetIsExportRoot() bool

func (*Invocation) GetIsSourceSpecFinal

func (x *Invocation) GetIsSourceSpecFinal() bool

func (*Invocation) GetName

func (x *Invocation) GetName() string

func (*Invocation) GetProducerResource

func (x *Invocation) GetProducerResource() string

func (*Invocation) GetProperties

func (x *Invocation) GetProperties() *structpb.Struct

func (*Invocation) GetRealm

func (x *Invocation) GetRealm() string

func (*Invocation) GetSourceSpec

func (x *Invocation) GetSourceSpec() *SourceSpec

func (*Invocation) GetState

func (x *Invocation) GetState() Invocation_State

func (*Invocation) GetStepInstructions

func (x *Invocation) GetStepInstructions() *Instructions

func (*Invocation) GetTags

func (x *Invocation) GetTags() []*StringPair

func (*Invocation) GetTestInstruction

func (x *Invocation) GetTestInstruction() *Instruction

func (*Invocation) ProtoMessage

func (*Invocation) ProtoMessage()

func (*Invocation) ProtoReflect

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

func (*Invocation) Reset

func (x *Invocation) Reset()

func (*Invocation) String

func (x *Invocation) String() string

type InvocationFinalizedNotification

type InvocationFinalizedNotification struct {

	// The name of the invocation that was finalized.
	// Format: invocations/{INVOCATION_ID}.
	Invocation string `protobuf:"bytes,1,opt,name=invocation,proto3" json:"invocation,omitempty"`
	// The LUCI realm that owns the invocation.
	// E.g. "chromium:ci".
	Realm string `protobuf:"bytes,2,opt,name=realm,proto3" json:"realm,omitempty"`
	// contains filtered or unexported fields
}

A message notifying that an invocation has been finalized, i.e. that an invocation's test results are now immutable and are safe to be exported.

The message is sent over the `v1.invocation_finalized` Cloud Pub/Sub topic in JSON-serialized form.

Next id: 3.

func (*InvocationFinalizedNotification) Descriptor deprecated

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

Deprecated: Use InvocationFinalizedNotification.ProtoReflect.Descriptor instead.

func (*InvocationFinalizedNotification) GetInvocation

func (x *InvocationFinalizedNotification) GetInvocation() string

func (*InvocationFinalizedNotification) GetRealm

func (*InvocationFinalizedNotification) ProtoMessage

func (*InvocationFinalizedNotification) ProtoMessage()

func (*InvocationFinalizedNotification) ProtoReflect

func (*InvocationFinalizedNotification) Reset

func (*InvocationFinalizedNotification) String

type InvocationReadyForExportNotification

type InvocationReadyForExportNotification struct {

	// The export root with respect to which the export is occurring.
	//
	// Format: invocations/{ROOT_INVOCATION_ID}.
	RootInvocation string `protobuf:"bytes,1,opt,name=root_invocation,json=rootInvocation,proto3" json:"root_invocation,omitempty"`
	// The LUCI realm that owns the root invocation.
	RootInvocationRealm string `protobuf:"bytes,2,opt,name=root_invocation_realm,json=rootInvocationRealm,proto3" json:"root_invocation_realm,omitempty"`
	// The name of the ResultDB invocation included by root_invocation whose
	// immediate properties, test results and artifacts are now immutable
	// (in FINALIZING OR FINALIZED state). Note that child invocations included
	// by `invocation` may not yet be immutable.
	//
	// This may be equal to root_invocation, to indicate test results, artifacts
	// and properties immediately inside root_invocation are immutable and ready
	// for ingestion.
	//
	// Format: invocations/{INVOCATION_ID}.
	Invocation string `protobuf:"bytes,3,opt,name=invocation,proto3" json:"invocation,omitempty"`
	// The LUCI realm that owns `invocation`.
	InvocationRealm string `protobuf:"bytes,4,opt,name=invocation_realm,json=invocationRealm,proto3" json:"invocation_realm,omitempty"`
	// The resolved sources for `invocation`, if any.
	//
	// As sources may be inherited, the sources resolved for the same
	// invocation may vary between export roots. This typically occurs when
	// a project uses testing task deduplication, and the different sources
	// deduplicate to the same testing task as they compile to
	// byte-for-byte-identical testing artifacts.
	Sources *Sources `protobuf:"bytes,5,opt,name=sources,proto3" json:"sources,omitempty"`
	// contains filtered or unexported fields
}

InvocationReadyForExportNotification notifies that the properties, test results and artifacts directly inside invocation `invocation`, within the context of export root `root_invocation`, are now immutable and ready for consumption by downstream systems.

If a given invocation is included by multiple export roots, a message will be sent for each such root.

When sent over v1.invocation_ready_for_export Cloud Pub/Sub, an attribute "luci_project" will be attached to the message, which will contain the LUCI Project of the `root_invocation_realm`.

func (*InvocationReadyForExportNotification) Descriptor deprecated

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

Deprecated: Use InvocationReadyForExportNotification.ProtoReflect.Descriptor instead.

func (*InvocationReadyForExportNotification) GetInvocation

func (x *InvocationReadyForExportNotification) GetInvocation() string

func (*InvocationReadyForExportNotification) GetInvocationRealm

func (x *InvocationReadyForExportNotification) GetInvocationRealm() string

func (*InvocationReadyForExportNotification) GetRootInvocation

func (x *InvocationReadyForExportNotification) GetRootInvocation() string

func (*InvocationReadyForExportNotification) GetRootInvocationRealm

func (x *InvocationReadyForExportNotification) GetRootInvocationRealm() string

func (*InvocationReadyForExportNotification) GetSources

func (*InvocationReadyForExportNotification) ProtoMessage

func (*InvocationReadyForExportNotification) ProtoMessage()

func (*InvocationReadyForExportNotification) ProtoReflect

func (*InvocationReadyForExportNotification) Reset

func (*InvocationReadyForExportNotification) String

type Invocation_State

type Invocation_State int32
const (
	// The default value. This value is used if the state is omitted.
	Invocation_STATE_UNSPECIFIED Invocation_State = 0
	// The invocation was created and accepts new results.
	Invocation_ACTIVE Invocation_State = 1
	// The invocation is in the process of transitioning into FINALIZED state.
	// This will happen automatically soon after all of its directly or
	// indirectly included invocations become inactive.
	Invocation_FINALIZING Invocation_State = 2
	// The invocation is immutable and no longer accepts new results nor
	// inclusions directly or indirectly.
	Invocation_FINALIZED Invocation_State = 3
)

func (Invocation_State) Descriptor

func (Invocation_State) Enum

func (Invocation_State) EnumDescriptor deprecated

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

Deprecated: Use Invocation_State.Descriptor instead.

func (Invocation_State) Number

func (Invocation_State) String

func (x Invocation_State) String() string

func (Invocation_State) Type

type IssueTrackerComponent

type IssueTrackerComponent struct {

	// The Google Issue Tracker component ID.
	ComponentId int64 `protobuf:"varint,1,opt,name=component_id,json=componentId,proto3" json:"component_id,omitempty"`
	// contains filtered or unexported fields
}

A component in Google Issue Tracker, sometimes known as Buganizer, available at https://issuetracker.google.com.

func (*IssueTrackerComponent) Descriptor deprecated

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

Deprecated: Use IssueTrackerComponent.ProtoReflect.Descriptor instead.

func (*IssueTrackerComponent) GetComponentId

func (x *IssueTrackerComponent) GetComponentId() int64

func (*IssueTrackerComponent) ProtoMessage

func (*IssueTrackerComponent) ProtoMessage()

func (*IssueTrackerComponent) ProtoReflect

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

func (*IssueTrackerComponent) Reset

func (x *IssueTrackerComponent) Reset()

func (*IssueTrackerComponent) String

func (x *IssueTrackerComponent) String() string

type ListArtifactsRequest

type ListArtifactsRequest struct {

	// Name of the parent, e.g. an invocation (see Invocation.name) or
	// a test result (see TestResult.name).
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The maximum number of artifacts to return.
	//
	// The service may return fewer than this value.
	// If unspecified, at most 100 artifacts will be returned.
	// The maximum value is 1000; values above 1000 will be coerced to 1000.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// A page token, received from a previous `ListArtifacts` call.
	// Provide this to retrieve the subsequent page.
	//
	// When paginating, all other parameters provided to `ListArtifacts` MUST
	// match the call that provided the page token.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

A request message for ListArtifacts RPC.

func (*ListArtifactsRequest) Descriptor deprecated

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

Deprecated: Use ListArtifactsRequest.ProtoReflect.Descriptor instead.

func (*ListArtifactsRequest) GetPageSize

func (x *ListArtifactsRequest) GetPageSize() int32

func (*ListArtifactsRequest) GetPageToken

func (x *ListArtifactsRequest) GetPageToken() string

func (*ListArtifactsRequest) GetParent

func (x *ListArtifactsRequest) GetParent() string

func (*ListArtifactsRequest) ProtoMessage

func (*ListArtifactsRequest) ProtoMessage()

func (*ListArtifactsRequest) ProtoReflect

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

func (*ListArtifactsRequest) Reset

func (x *ListArtifactsRequest) Reset()

func (*ListArtifactsRequest) String

func (x *ListArtifactsRequest) String() string

type ListArtifactsResponse

type ListArtifactsResponse struct {

	// The artifacts from the specified parent.
	Artifacts []*Artifact `protobuf:"bytes,1,rep,name=artifacts,proto3" json:"artifacts,omitempty"`
	// A token, which can be sent as `page_token` to retrieve the next page.
	// If this field is omitted, there were no subsequent pages at the time of
	// request.
	// If the invocation is not finalized, more results may appear later.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

A response message for ListArtifacts RPC.

func (*ListArtifactsResponse) Descriptor deprecated

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

Deprecated: Use ListArtifactsResponse.ProtoReflect.Descriptor instead.

func (*ListArtifactsResponse) GetArtifacts

func (x *ListArtifactsResponse) GetArtifacts() []*Artifact

func (*ListArtifactsResponse) GetNextPageToken

func (x *ListArtifactsResponse) GetNextPageToken() string

func (*ListArtifactsResponse) ProtoMessage

func (*ListArtifactsResponse) ProtoMessage()

func (*ListArtifactsResponse) ProtoReflect

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

func (*ListArtifactsResponse) Reset

func (x *ListArtifactsResponse) Reset()

func (*ListArtifactsResponse) String

func (x *ListArtifactsResponse) String() string

type ListTestExonerationsRequest

type ListTestExonerationsRequest struct {

	// Name of the invocation, e.g. "invocations/{id}".
	Invocation string `protobuf:"bytes,1,opt,name=invocation,proto3" json:"invocation,omitempty"`
	// The maximum number of test exonerations to return.
	//
	// The service may return fewer than this value.
	// If unspecified, at most 100 test exonerations will be returned.
	// The maximum value is 1000; values above 1000 will be coerced to 1000.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// A page token, received from a previous `ListTestExonerations` call.
	// Provide this to retrieve the subsequent page.
	//
	// When paginating, all other parameters provided to `ListTestExonerations`
	// MUST match the call that provided the page token.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

A request message for ListTestExonerations RPC.

func (*ListTestExonerationsRequest) Descriptor deprecated

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

Deprecated: Use ListTestExonerationsRequest.ProtoReflect.Descriptor instead.

func (*ListTestExonerationsRequest) GetInvocation

func (x *ListTestExonerationsRequest) GetInvocation() string

func (*ListTestExonerationsRequest) GetPageSize

func (x *ListTestExonerationsRequest) GetPageSize() int32

func (*ListTestExonerationsRequest) GetPageToken

func (x *ListTestExonerationsRequest) GetPageToken() string

func (*ListTestExonerationsRequest) ProtoMessage

func (*ListTestExonerationsRequest) ProtoMessage()

func (*ListTestExonerationsRequest) ProtoReflect

func (*ListTestExonerationsRequest) Reset

func (x *ListTestExonerationsRequest) Reset()

func (*ListTestExonerationsRequest) String

func (x *ListTestExonerationsRequest) String() string

type ListTestExonerationsResponse

type ListTestExonerationsResponse struct {

	// The test exonerations from the specified invocation.
	TestExonerations []*TestExoneration `protobuf:"bytes,1,rep,name=test_exonerations,json=testExonerations,proto3" json:"test_exonerations,omitempty"`
	// A token, which can be sent as `page_token` to retrieve the next page.
	// If this field is omitted, there were no subsequent pages at the time of
	// request.
	// If the invocation is not finalized, more results may appear later.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

A response message for ListTestExonerations RPC.

func (*ListTestExonerationsResponse) Descriptor deprecated

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

Deprecated: Use ListTestExonerationsResponse.ProtoReflect.Descriptor instead.

func (*ListTestExonerationsResponse) GetNextPageToken

func (x *ListTestExonerationsResponse) GetNextPageToken() string

func (*ListTestExonerationsResponse) GetTestExonerations

func (x *ListTestExonerationsResponse) GetTestExonerations() []*TestExoneration

func (*ListTestExonerationsResponse) ProtoMessage

func (*ListTestExonerationsResponse) ProtoMessage()

func (*ListTestExonerationsResponse) ProtoReflect

func (*ListTestExonerationsResponse) Reset

func (x *ListTestExonerationsResponse) Reset()

func (*ListTestExonerationsResponse) String

type ListTestResultsRequest

type ListTestResultsRequest struct {

	// Name of the invocation, e.g. "invocations/{id}".
	Invocation string `protobuf:"bytes,1,opt,name=invocation,proto3" json:"invocation,omitempty"`
	// The maximum number of test results to return.
	//
	// The service may return fewer than this value.
	// If unspecified, at most 100 test results will be returned.
	// The maximum value is 1000; values above 1000 will be coerced to 1000.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// A page token, received from a previous `ListTestResults` call.
	// Provide this to retrieve the subsequent page.
	//
	// When paginating, all other parameters provided to `ListTestResults` MUST
	// match the call that provided the page token.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// Fields to include in the response.
	// If not set, the default mask is used where summary_html and tags are
	// excluded.
	// Test result names will always be included even if "name" is not a part of
	// the mask.
	ReadMask *fieldmaskpb.FieldMask `protobuf:"bytes,4,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"`
	// contains filtered or unexported fields
}

A request message for ListTestResults RPC.

func (*ListTestResultsRequest) Descriptor deprecated

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

Deprecated: Use ListTestResultsRequest.ProtoReflect.Descriptor instead.

func (*ListTestResultsRequest) GetInvocation

func (x *ListTestResultsRequest) GetInvocation() string

func (*ListTestResultsRequest) GetPageSize

func (x *ListTestResultsRequest) GetPageSize() int32

func (*ListTestResultsRequest) GetPageToken

func (x *ListTestResultsRequest) GetPageToken() string

func (*ListTestResultsRequest) GetReadMask

func (x *ListTestResultsRequest) GetReadMask() *fieldmaskpb.FieldMask

func (*ListTestResultsRequest) ProtoMessage

func (*ListTestResultsRequest) ProtoMessage()

func (*ListTestResultsRequest) ProtoReflect

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

func (*ListTestResultsRequest) Reset

func (x *ListTestResultsRequest) Reset()

func (*ListTestResultsRequest) String

func (x *ListTestResultsRequest) String() string

type ListTestResultsResponse

type ListTestResultsResponse struct {

	// The test results from the specified invocation.
	TestResults []*TestResult `protobuf:"bytes,1,rep,name=test_results,json=testResults,proto3" json:"test_results,omitempty"`
	// A token, which can be sent as `page_token` to retrieve the next page.
	// If this field is omitted, there were no subsequent pages at the time of
	// request.
	// If the invocation is not finalized, more results may appear later.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

A response message for ListTestResults RPC.

func (*ListTestResultsResponse) Descriptor deprecated

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

Deprecated: Use ListTestResultsResponse.ProtoReflect.Descriptor instead.

func (*ListTestResultsResponse) GetNextPageToken

func (x *ListTestResultsResponse) GetNextPageToken() string

func (*ListTestResultsResponse) GetTestResults

func (x *ListTestResultsResponse) GetTestResults() []*TestResult

func (*ListTestResultsResponse) ProtoMessage

func (*ListTestResultsResponse) ProtoMessage()

func (*ListTestResultsResponse) ProtoReflect

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

func (*ListTestResultsResponse) Reset

func (x *ListTestResultsResponse) Reset()

func (*ListTestResultsResponse) String

func (x *ListTestResultsResponse) String() string

type MarkInvocationSubmittedRequest

type MarkInvocationSubmittedRequest struct {

	// Name of the invocation, e.g. "invocations/{id}".
	Invocation string `protobuf:"bytes,1,opt,name=invocation,proto3" json:"invocation,omitempty"`
	// contains filtered or unexported fields
}

A request message for MarkInvocationSubmitted RPC. To use this RPC, callers need:

  • resultdb.invocations.setSubmitted in the realm the <project>:@project, where project is the project of the nominated invocation.

func (*MarkInvocationSubmittedRequest) Descriptor deprecated

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

Deprecated: Use MarkInvocationSubmittedRequest.ProtoReflect.Descriptor instead.

func (*MarkInvocationSubmittedRequest) GetInvocation

func (x *MarkInvocationSubmittedRequest) GetInvocation() string

func (*MarkInvocationSubmittedRequest) ProtoMessage

func (*MarkInvocationSubmittedRequest) ProtoMessage()

func (*MarkInvocationSubmittedRequest) ProtoReflect

func (*MarkInvocationSubmittedRequest) Reset

func (x *MarkInvocationSubmittedRequest) Reset()

func (*MarkInvocationSubmittedRequest) String

type MockRecorderClient

type MockRecorderClient struct {
	// contains filtered or unexported fields
}

MockRecorderClient is a mock of RecorderClient interface.

func NewMockRecorderClient

func NewMockRecorderClient(ctrl *gomock.Controller) *MockRecorderClient

NewMockRecorderClient creates a new mock instance.

func (*MockRecorderClient) BatchCreateArtifacts

BatchCreateArtifacts mocks base method.

func (*MockRecorderClient) BatchCreateInvocations

BatchCreateInvocations mocks base method.

func (*MockRecorderClient) BatchCreateTestExonerations

BatchCreateTestExonerations mocks base method.

func (*MockRecorderClient) BatchCreateTestResults

BatchCreateTestResults mocks base method.

func (*MockRecorderClient) CreateInvocation

func (m *MockRecorderClient) CreateInvocation(ctx context.Context, in *CreateInvocationRequest, opts ...grpc.CallOption) (*Invocation, error)

CreateInvocation mocks base method.

func (*MockRecorderClient) CreateTestExoneration

func (m *MockRecorderClient) CreateTestExoneration(ctx context.Context, in *CreateTestExonerationRequest, opts ...grpc.CallOption) (*TestExoneration, error)

CreateTestExoneration mocks base method.

func (*MockRecorderClient) CreateTestResult

func (m *MockRecorderClient) CreateTestResult(ctx context.Context, in *CreateTestResultRequest, opts ...grpc.CallOption) (*TestResult, error)

CreateTestResult mocks base method.

func (*MockRecorderClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRecorderClient) FinalizeInvocation

func (m *MockRecorderClient) FinalizeInvocation(ctx context.Context, in *FinalizeInvocationRequest, opts ...grpc.CallOption) (*Invocation, error)

FinalizeInvocation mocks base method.

func (*MockRecorderClient) MarkInvocationSubmitted

func (m *MockRecorderClient) MarkInvocationSubmitted(ctx context.Context, in *MarkInvocationSubmittedRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)

MarkInvocationSubmitted mocks base method.

func (*MockRecorderClient) UpdateIncludedInvocations

func (m *MockRecorderClient) UpdateIncludedInvocations(ctx context.Context, in *UpdateIncludedInvocationsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)

UpdateIncludedInvocations mocks base method.

func (*MockRecorderClient) UpdateInvocation

func (m *MockRecorderClient) UpdateInvocation(ctx context.Context, in *UpdateInvocationRequest, opts ...grpc.CallOption) (*Invocation, error)

UpdateInvocation mocks base method.

type MockRecorderClientMockRecorder

type MockRecorderClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockRecorderClientMockRecorder is the mock recorder for MockRecorderClient.

func (*MockRecorderClientMockRecorder) BatchCreateArtifacts

func (mr *MockRecorderClientMockRecorder) BatchCreateArtifacts(ctx, in interface{}, opts ...interface{}) *gomock.Call

BatchCreateArtifacts indicates an expected call of BatchCreateArtifacts.

func (*MockRecorderClientMockRecorder) BatchCreateInvocations

func (mr *MockRecorderClientMockRecorder) BatchCreateInvocations(ctx, in interface{}, opts ...interface{}) *gomock.Call

BatchCreateInvocations indicates an expected call of BatchCreateInvocations.

func (*MockRecorderClientMockRecorder) BatchCreateTestExonerations

func (mr *MockRecorderClientMockRecorder) BatchCreateTestExonerations(ctx, in interface{}, opts ...interface{}) *gomock.Call

BatchCreateTestExonerations indicates an expected call of BatchCreateTestExonerations.

func (*MockRecorderClientMockRecorder) BatchCreateTestResults

func (mr *MockRecorderClientMockRecorder) BatchCreateTestResults(ctx, in interface{}, opts ...interface{}) *gomock.Call

BatchCreateTestResults indicates an expected call of BatchCreateTestResults.

func (*MockRecorderClientMockRecorder) CreateInvocation

func (mr *MockRecorderClientMockRecorder) CreateInvocation(ctx, in interface{}, opts ...interface{}) *gomock.Call

CreateInvocation indicates an expected call of CreateInvocation.

func (*MockRecorderClientMockRecorder) CreateTestExoneration

func (mr *MockRecorderClientMockRecorder) CreateTestExoneration(ctx, in interface{}, opts ...interface{}) *gomock.Call

CreateTestExoneration indicates an expected call of CreateTestExoneration.

func (*MockRecorderClientMockRecorder) CreateTestResult

func (mr *MockRecorderClientMockRecorder) CreateTestResult(ctx, in interface{}, opts ...interface{}) *gomock.Call

CreateTestResult indicates an expected call of CreateTestResult.

func (*MockRecorderClientMockRecorder) FinalizeInvocation

func (mr *MockRecorderClientMockRecorder) FinalizeInvocation(ctx, in interface{}, opts ...interface{}) *gomock.Call

FinalizeInvocation indicates an expected call of FinalizeInvocation.

func (*MockRecorderClientMockRecorder) MarkInvocationSubmitted

func (mr *MockRecorderClientMockRecorder) MarkInvocationSubmitted(ctx, in interface{}, opts ...interface{}) *gomock.Call

MarkInvocationSubmitted indicates an expected call of MarkInvocationSubmitted.

func (*MockRecorderClientMockRecorder) UpdateIncludedInvocations

func (mr *MockRecorderClientMockRecorder) UpdateIncludedInvocations(ctx, in interface{}, opts ...interface{}) *gomock.Call

UpdateIncludedInvocations indicates an expected call of UpdateIncludedInvocations.

func (*MockRecorderClientMockRecorder) UpdateInvocation

func (mr *MockRecorderClientMockRecorder) UpdateInvocation(ctx, in interface{}, opts ...interface{}) *gomock.Call

UpdateInvocation indicates an expected call of UpdateInvocation.

type MockRecorderServer

type MockRecorderServer struct {
	// contains filtered or unexported fields
}

MockRecorderServer is a mock of RecorderServer interface.

func NewMockRecorderServer

func NewMockRecorderServer(ctrl *gomock.Controller) *MockRecorderServer

NewMockRecorderServer creates a new mock instance.

func (*MockRecorderServer) BatchCreateArtifacts

BatchCreateArtifacts mocks base method.

func (*MockRecorderServer) BatchCreateInvocations

BatchCreateInvocations mocks base method.

func (*MockRecorderServer) BatchCreateTestExonerations

BatchCreateTestExonerations mocks base method.

func (*MockRecorderServer) BatchCreateTestResults

BatchCreateTestResults mocks base method.

func (*MockRecorderServer) CreateInvocation

func (m *MockRecorderServer) CreateInvocation(arg0 context.Context, arg1 *CreateInvocationRequest) (*Invocation, error)

CreateInvocation mocks base method.

func (*MockRecorderServer) CreateTestExoneration

func (m *MockRecorderServer) CreateTestExoneration(arg0 context.Context, arg1 *CreateTestExonerationRequest) (*TestExoneration, error)

CreateTestExoneration mocks base method.

func (*MockRecorderServer) CreateTestResult

func (m *MockRecorderServer) CreateTestResult(arg0 context.Context, arg1 *CreateTestResultRequest) (*TestResult, error)

CreateTestResult mocks base method.

func (*MockRecorderServer) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRecorderServer) FinalizeInvocation

func (m *MockRecorderServer) FinalizeInvocation(arg0 context.Context, arg1 *FinalizeInvocationRequest) (*Invocation, error)

FinalizeInvocation mocks base method.

func (*MockRecorderServer) MarkInvocationSubmitted

func (m *MockRecorderServer) MarkInvocationSubmitted(arg0 context.Context, arg1 *MarkInvocationSubmittedRequest) (*emptypb.Empty, error)

MarkInvocationSubmitted mocks base method.

func (*MockRecorderServer) UpdateIncludedInvocations

func (m *MockRecorderServer) UpdateIncludedInvocations(arg0 context.Context, arg1 *UpdateIncludedInvocationsRequest) (*emptypb.Empty, error)

UpdateIncludedInvocations mocks base method.

func (*MockRecorderServer) UpdateInvocation

func (m *MockRecorderServer) UpdateInvocation(arg0 context.Context, arg1 *UpdateInvocationRequest) (*Invocation, error)

UpdateInvocation mocks base method.

type MockRecorderServerMockRecorder

type MockRecorderServerMockRecorder struct {
	// contains filtered or unexported fields
}

MockRecorderServerMockRecorder is the mock recorder for MockRecorderServer.

func (*MockRecorderServerMockRecorder) BatchCreateArtifacts

func (mr *MockRecorderServerMockRecorder) BatchCreateArtifacts(arg0, arg1 interface{}) *gomock.Call

BatchCreateArtifacts indicates an expected call of BatchCreateArtifacts.

func (*MockRecorderServerMockRecorder) BatchCreateInvocations

func (mr *MockRecorderServerMockRecorder) BatchCreateInvocations(arg0, arg1 interface{}) *gomock.Call

BatchCreateInvocations indicates an expected call of BatchCreateInvocations.

func (*MockRecorderServerMockRecorder) BatchCreateTestExonerations

func (mr *MockRecorderServerMockRecorder) BatchCreateTestExonerations(arg0, arg1 interface{}) *gomock.Call

BatchCreateTestExonerations indicates an expected call of BatchCreateTestExonerations.

func (*MockRecorderServerMockRecorder) BatchCreateTestResults

func (mr *MockRecorderServerMockRecorder) BatchCreateTestResults(arg0, arg1 interface{}) *gomock.Call

BatchCreateTestResults indicates an expected call of BatchCreateTestResults.

func (*MockRecorderServerMockRecorder) CreateInvocation

func (mr *MockRecorderServerMockRecorder) CreateInvocation(arg0, arg1 interface{}) *gomock.Call

CreateInvocation indicates an expected call of CreateInvocation.

func (*MockRecorderServerMockRecorder) CreateTestExoneration

func (mr *MockRecorderServerMockRecorder) CreateTestExoneration(arg0, arg1 interface{}) *gomock.Call

CreateTestExoneration indicates an expected call of CreateTestExoneration.

func (*MockRecorderServerMockRecorder) CreateTestResult

func (mr *MockRecorderServerMockRecorder) CreateTestResult(arg0, arg1 interface{}) *gomock.Call

CreateTestResult indicates an expected call of CreateTestResult.

func (*MockRecorderServerMockRecorder) FinalizeInvocation

func (mr *MockRecorderServerMockRecorder) FinalizeInvocation(arg0, arg1 interface{}) *gomock.Call

FinalizeInvocation indicates an expected call of FinalizeInvocation.

func (*MockRecorderServerMockRecorder) MarkInvocationSubmitted

func (mr *MockRecorderServerMockRecorder) MarkInvocationSubmitted(arg0, arg1 interface{}) *gomock.Call

MarkInvocationSubmitted indicates an expected call of MarkInvocationSubmitted.

func (*MockRecorderServerMockRecorder) UpdateIncludedInvocations

func (mr *MockRecorderServerMockRecorder) UpdateIncludedInvocations(arg0, arg1 interface{}) *gomock.Call

UpdateIncludedInvocations indicates an expected call of UpdateIncludedInvocations.

func (*MockRecorderServerMockRecorder) UpdateInvocation

func (mr *MockRecorderServerMockRecorder) UpdateInvocation(arg0, arg1 interface{}) *gomock.Call

UpdateInvocation indicates an expected call of UpdateInvocation.

type MockResultDBClient

type MockResultDBClient struct {
	// contains filtered or unexported fields
}

MockResultDBClient is a mock of ResultDBClient interface.

func NewMockResultDBClient

func NewMockResultDBClient(ctrl *gomock.Controller) *MockResultDBClient

NewMockResultDBClient creates a new mock instance.

func (*MockResultDBClient) BatchGetTestVariants

BatchGetTestVariants mocks base method.

func (*MockResultDBClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockResultDBClient) GetArtifact

func (m *MockResultDBClient) GetArtifact(ctx context.Context, in *GetArtifactRequest, opts ...grpc.CallOption) (*Artifact, error)

GetArtifact mocks base method.

func (*MockResultDBClient) GetInvocation

func (m *MockResultDBClient) GetInvocation(ctx context.Context, in *GetInvocationRequest, opts ...grpc.CallOption) (*Invocation, error)

GetInvocation mocks base method.

func (*MockResultDBClient) GetTestExoneration

func (m *MockResultDBClient) GetTestExoneration(ctx context.Context, in *GetTestExonerationRequest, opts ...grpc.CallOption) (*TestExoneration, error)

GetTestExoneration mocks base method.

func (*MockResultDBClient) GetTestResult

func (m *MockResultDBClient) GetTestResult(ctx context.Context, in *GetTestResultRequest, opts ...grpc.CallOption) (*TestResult, error)

GetTestResult mocks base method.

func (*MockResultDBClient) ListArtifacts

ListArtifacts mocks base method.

func (*MockResultDBClient) ListTestExonerations

ListTestExonerations mocks base method.

func (*MockResultDBClient) ListTestResults

ListTestResults mocks base method.

func (*MockResultDBClient) QueryArtifacts

QueryArtifacts mocks base method.

func (*MockResultDBClient) QueryNewTestVariants

QueryNewTestVariants mocks base method.

func (*MockResultDBClient) QueryTestExonerations

QueryTestExonerations mocks base method.

func (*MockResultDBClient) QueryTestMetadata

QueryTestMetadata mocks base method.

func (*MockResultDBClient) QueryTestResultStatistics

QueryTestResultStatistics mocks base method.

func (*MockResultDBClient) QueryTestResults

QueryTestResults mocks base method.

func (*MockResultDBClient) QueryTestVariants

QueryTestVariants mocks base method.

type MockResultDBClientMockRecorder

type MockResultDBClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockResultDBClientMockRecorder is the mock recorder for MockResultDBClient.

func (*MockResultDBClientMockRecorder) BatchGetTestVariants

func (mr *MockResultDBClientMockRecorder) BatchGetTestVariants(ctx, in interface{}, opts ...interface{}) *gomock.Call

BatchGetTestVariants indicates an expected call of BatchGetTestVariants.

func (*MockResultDBClientMockRecorder) GetArtifact

func (mr *MockResultDBClientMockRecorder) GetArtifact(ctx, in interface{}, opts ...interface{}) *gomock.Call

GetArtifact indicates an expected call of GetArtifact.

func (*MockResultDBClientMockRecorder) GetInvocation

func (mr *MockResultDBClientMockRecorder) GetInvocation(ctx, in interface{}, opts ...interface{}) *gomock.Call

GetInvocation indicates an expected call of GetInvocation.

func (*MockResultDBClientMockRecorder) GetTestExoneration

func (mr *MockResultDBClientMockRecorder) GetTestExoneration(ctx, in interface{}, opts ...interface{}) *gomock.Call

GetTestExoneration indicates an expected call of GetTestExoneration.

func (*MockResultDBClientMockRecorder) GetTestResult

func (mr *MockResultDBClientMockRecorder) GetTestResult(ctx, in interface{}, opts ...interface{}) *gomock.Call

GetTestResult indicates an expected call of GetTestResult.

func (*MockResultDBClientMockRecorder) ListArtifacts

func (mr *MockResultDBClientMockRecorder) ListArtifacts(ctx, in interface{}, opts ...interface{}) *gomock.Call

ListArtifacts indicates an expected call of ListArtifacts.

func (*MockResultDBClientMockRecorder) ListTestExonerations

func (mr *MockResultDBClientMockRecorder) ListTestExonerations(ctx, in interface{}, opts ...interface{}) *gomock.Call

ListTestExonerations indicates an expected call of ListTestExonerations.

func (*MockResultDBClientMockRecorder) ListTestResults

func (mr *MockResultDBClientMockRecorder) ListTestResults(ctx, in interface{}, opts ...interface{}) *gomock.Call

ListTestResults indicates an expected call of ListTestResults.

func (*MockResultDBClientMockRecorder) QueryArtifacts

func (mr *MockResultDBClientMockRecorder) QueryArtifacts(ctx, in interface{}, opts ...interface{}) *gomock.Call

QueryArtifacts indicates an expected call of QueryArtifacts.

func (*MockResultDBClientMockRecorder) QueryNewTestVariants

func (mr *MockResultDBClientMockRecorder) QueryNewTestVariants(ctx, in interface{}, opts ...interface{}) *gomock.Call

QueryNewTestVariants indicates an expected call of QueryNewTestVariants.

func (*MockResultDBClientMockRecorder) QueryTestExonerations

func (mr *MockResultDBClientMockRecorder) QueryTestExonerations(ctx, in interface{}, opts ...interface{}) *gomock.Call

QueryTestExonerations indicates an expected call of QueryTestExonerations.

func (*MockResultDBClientMockRecorder) QueryTestMetadata

func (mr *MockResultDBClientMockRecorder) QueryTestMetadata(ctx, in interface{}, opts ...interface{}) *gomock.Call

QueryTestMetadata indicates an expected call of QueryTestMetadata.

func (*MockResultDBClientMockRecorder) QueryTestResultStatistics

func (mr *MockResultDBClientMockRecorder) QueryTestResultStatistics(ctx, in interface{}, opts ...interface{}) *gomock.Call

QueryTestResultStatistics indicates an expected call of QueryTestResultStatistics.

func (*MockResultDBClientMockRecorder) QueryTestResults

func (mr *MockResultDBClientMockRecorder) QueryTestResults(ctx, in interface{}, opts ...interface{}) *gomock.Call

QueryTestResults indicates an expected call of QueryTestResults.

func (*MockResultDBClientMockRecorder) QueryTestVariants

func (mr *MockResultDBClientMockRecorder) QueryTestVariants(ctx, in interface{}, opts ...interface{}) *gomock.Call

QueryTestVariants indicates an expected call of QueryTestVariants.

type MockResultDBServer

type MockResultDBServer struct {
	// contains filtered or unexported fields
}

MockResultDBServer is a mock of ResultDBServer interface.

func NewMockResultDBServer

func NewMockResultDBServer(ctrl *gomock.Controller) *MockResultDBServer

NewMockResultDBServer creates a new mock instance.

func (*MockResultDBServer) BatchGetTestVariants

BatchGetTestVariants mocks base method.

func (*MockResultDBServer) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockResultDBServer) GetArtifact

func (m *MockResultDBServer) GetArtifact(arg0 context.Context, arg1 *GetArtifactRequest) (*Artifact, error)

GetArtifact mocks base method.

func (*MockResultDBServer) GetInvocation

func (m *MockResultDBServer) GetInvocation(arg0 context.Context, arg1 *GetInvocationRequest) (*Invocation, error)

GetInvocation mocks base method.

func (*MockResultDBServer) GetTestExoneration

func (m *MockResultDBServer) GetTestExoneration(arg0 context.Context, arg1 *GetTestExonerationRequest) (*TestExoneration, error)

GetTestExoneration mocks base method.

func (*MockResultDBServer) GetTestResult

func (m *MockResultDBServer) GetTestResult(arg0 context.Context, arg1 *GetTestResultRequest) (*TestResult, error)

GetTestResult mocks base method.

func (*MockResultDBServer) ListArtifacts

ListArtifacts mocks base method.

func (*MockResultDBServer) ListTestExonerations

ListTestExonerations mocks base method.

func (*MockResultDBServer) ListTestResults

ListTestResults mocks base method.

func (*MockResultDBServer) QueryArtifacts

QueryArtifacts mocks base method.

func (*MockResultDBServer) QueryNewTestVariants

QueryNewTestVariants mocks base method.

func (*MockResultDBServer) QueryTestExonerations

QueryTestExonerations mocks base method.

func (*MockResultDBServer) QueryTestMetadata

QueryTestMetadata mocks base method.

func (*MockResultDBServer) QueryTestResultStatistics

QueryTestResultStatistics mocks base method.

func (*MockResultDBServer) QueryTestResults

QueryTestResults mocks base method.

func (*MockResultDBServer) QueryTestVariants

QueryTestVariants mocks base method.

type MockResultDBServerMockRecorder

type MockResultDBServerMockRecorder struct {
	// contains filtered or unexported fields
}

MockResultDBServerMockRecorder is the mock recorder for MockResultDBServer.

func (*MockResultDBServerMockRecorder) BatchGetTestVariants

func (mr *MockResultDBServerMockRecorder) BatchGetTestVariants(arg0, arg1 interface{}) *gomock.Call

BatchGetTestVariants indicates an expected call of BatchGetTestVariants.

func (*MockResultDBServerMockRecorder) GetArtifact

func (mr *MockResultDBServerMockRecorder) GetArtifact(arg0, arg1 interface{}) *gomock.Call

GetArtifact indicates an expected call of GetArtifact.

func (*MockResultDBServerMockRecorder) GetInvocation

func (mr *MockResultDBServerMockRecorder) GetInvocation(arg0, arg1 interface{}) *gomock.Call

GetInvocation indicates an expected call of GetInvocation.

func (*MockResultDBServerMockRecorder) GetTestExoneration

func (mr *MockResultDBServerMockRecorder) GetTestExoneration(arg0, arg1 interface{}) *gomock.Call

GetTestExoneration indicates an expected call of GetTestExoneration.

func (*MockResultDBServerMockRecorder) GetTestResult

func (mr *MockResultDBServerMockRecorder) GetTestResult(arg0, arg1 interface{}) *gomock.Call

GetTestResult indicates an expected call of GetTestResult.

func (*MockResultDBServerMockRecorder) ListArtifacts

func (mr *MockResultDBServerMockRecorder) ListArtifacts(arg0, arg1 interface{}) *gomock.Call

ListArtifacts indicates an expected call of ListArtifacts.

func (*MockResultDBServerMockRecorder) ListTestExonerations

func (mr *MockResultDBServerMockRecorder) ListTestExonerations(arg0, arg1 interface{}) *gomock.Call

ListTestExonerations indicates an expected call of ListTestExonerations.

func (*MockResultDBServerMockRecorder) ListTestResults

func (mr *MockResultDBServerMockRecorder) ListTestResults(arg0, arg1 interface{}) *gomock.Call

ListTestResults indicates an expected call of ListTestResults.

func (*MockResultDBServerMockRecorder) QueryArtifacts

func (mr *MockResultDBServerMockRecorder) QueryArtifacts(arg0, arg1 interface{}) *gomock.Call

QueryArtifacts indicates an expected call of QueryArtifacts.

func (*MockResultDBServerMockRecorder) QueryNewTestVariants

func (mr *MockResultDBServerMockRecorder) QueryNewTestVariants(arg0, arg1 interface{}) *gomock.Call

QueryNewTestVariants indicates an expected call of QueryNewTestVariants.

func (*MockResultDBServerMockRecorder) QueryTestExonerations

func (mr *MockResultDBServerMockRecorder) QueryTestExonerations(arg0, arg1 interface{}) *gomock.Call

QueryTestExonerations indicates an expected call of QueryTestExonerations.

func (*MockResultDBServerMockRecorder) QueryTestMetadata

func (mr *MockResultDBServerMockRecorder) QueryTestMetadata(arg0, arg1 interface{}) *gomock.Call

QueryTestMetadata indicates an expected call of QueryTestMetadata.

func (*MockResultDBServerMockRecorder) QueryTestResultStatistics

func (mr *MockResultDBServerMockRecorder) QueryTestResultStatistics(arg0, arg1 interface{}) *gomock.Call

QueryTestResultStatistics indicates an expected call of QueryTestResultStatistics.

func (*MockResultDBServerMockRecorder) QueryTestResults

func (mr *MockResultDBServerMockRecorder) QueryTestResults(arg0, arg1 interface{}) *gomock.Call

QueryTestResults indicates an expected call of QueryTestResults.

func (*MockResultDBServerMockRecorder) QueryTestVariants

func (mr *MockResultDBServerMockRecorder) QueryTestVariants(arg0, arg1 interface{}) *gomock.Call

QueryTestVariants indicates an expected call of QueryTestVariants.

type MonorailComponent

type MonorailComponent struct {

	// The monorail project name.
	Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	// The monorail component value. E.g. "Blink>Accessibility".
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

A component in monorail issue tracker, available at https://bugs.chromium.org.

func (*MonorailComponent) Descriptor deprecated

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

Deprecated: Use MonorailComponent.ProtoReflect.Descriptor instead.

func (*MonorailComponent) GetProject

func (x *MonorailComponent) GetProject() string

func (*MonorailComponent) GetValue

func (x *MonorailComponent) GetValue() string

func (*MonorailComponent) ProtoMessage

func (*MonorailComponent) ProtoMessage()

func (*MonorailComponent) ProtoReflect

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

func (*MonorailComponent) Reset

func (x *MonorailComponent) Reset()

func (*MonorailComponent) String

func (x *MonorailComponent) String() string

type QueryArtifactsRequest

type QueryArtifactsRequest struct {

	// Retrieve artifacts included in these invocations, directly or indirectly
	// (via Invocation.included_invocations and via contained test results).
	//
	// Specifying multiple invocations is equivalent to querying one invocation
	// that includes these.
	Invocations []string `protobuf:"bytes,1,rep,name=invocations,proto3" json:"invocations,omitempty"`
	// An artifact in the response must satisfy this predicate.
	Predicate *ArtifactPredicate `protobuf:"bytes,2,opt,name=predicate,proto3" json:"predicate,omitempty"`
	// The maximum number of artifacts to return.
	//
	// The service may return fewer than this value.
	// If unspecified, at most 100 artifacts will be returned.
	// The maximum value is 1000; values above 1000 will be coerced to 1000.
	PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// A page token, received from a previous `QueryArtifacts` call.
	// Provide this to retrieve the subsequent page.
	//
	// When paginating, all other parameters provided to `QueryArtifacts` MUST
	// match the call that provided the page token.
	PageToken string `protobuf:"bytes,5,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

A request message for QueryArtifacts RPC.

func (*QueryArtifactsRequest) Descriptor deprecated

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

Deprecated: Use QueryArtifactsRequest.ProtoReflect.Descriptor instead.

func (*QueryArtifactsRequest) GetInvocations

func (x *QueryArtifactsRequest) GetInvocations() []string

func (*QueryArtifactsRequest) GetPageSize

func (x *QueryArtifactsRequest) GetPageSize() int32

func (*QueryArtifactsRequest) GetPageToken

func (x *QueryArtifactsRequest) GetPageToken() string

func (*QueryArtifactsRequest) GetPredicate

func (x *QueryArtifactsRequest) GetPredicate() *ArtifactPredicate

func (*QueryArtifactsRequest) ProtoMessage

func (*QueryArtifactsRequest) ProtoMessage()

func (*QueryArtifactsRequest) ProtoReflect

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

func (*QueryArtifactsRequest) Reset

func (x *QueryArtifactsRequest) Reset()

func (*QueryArtifactsRequest) String

func (x *QueryArtifactsRequest) String() string

type QueryArtifactsResponse

type QueryArtifactsResponse struct {

	// Matched artifacts.
	// First invocation-level artifacts, then test-result-level artifacts
	// ordered by parent invocation ID, test ID and artifact ID.
	Artifacts []*Artifact `protobuf:"bytes,1,rep,name=artifacts,proto3" json:"artifacts,omitempty"`
	// A token, which can be sent as `page_token` to retrieve the next page.
	// If this field is omitted, there were no subsequent pages at the time of
	// request.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

A response message for QueryArtifacts RPC.

func (*QueryArtifactsResponse) Descriptor deprecated

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

Deprecated: Use QueryArtifactsResponse.ProtoReflect.Descriptor instead.

func (*QueryArtifactsResponse) GetArtifacts

func (x *QueryArtifactsResponse) GetArtifacts() []*Artifact

func (*QueryArtifactsResponse) GetNextPageToken

func (x *QueryArtifactsResponse) GetNextPageToken() string

func (*QueryArtifactsResponse) ProtoMessage

func (*QueryArtifactsResponse) ProtoMessage()

func (*QueryArtifactsResponse) ProtoReflect

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

func (*QueryArtifactsResponse) Reset

func (x *QueryArtifactsResponse) Reset()

func (*QueryArtifactsResponse) String

func (x *QueryArtifactsResponse) String() string

type QueryNewTestVariantsRequest

type QueryNewTestVariantsRequest struct {

	// Name of the invocation, e.g. "invocations/{id}".
	Invocation string `protobuf:"bytes,1,opt,name=invocation,proto3" json:"invocation,omitempty"`
	// The baseline to compare test variants against, to determine if they are new.
	// e.g. “projects/{project}/baselines/{baseline_id}”.
	// For example, in the project "chromium", the baseline_id may be
	// "try:linux-rel".
	Baseline string `protobuf:"bytes,2,opt,name=baseline,proto3" json:"baseline,omitempty"`
	// contains filtered or unexported fields
}

A request message for QueryNewTestVariants RPC. To use this RPC, callers need:

  • resultdb.baselines.get in the realm the <baseline_project>:@project, where baseline_project is the LUCI project that contains the baseline.
  • resultdb.testResults.list in the realm of the invocation which is being queried.

func (*QueryNewTestVariantsRequest) Descriptor deprecated

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

Deprecated: Use QueryNewTestVariantsRequest.ProtoReflect.Descriptor instead.

func (*QueryNewTestVariantsRequest) GetBaseline

func (x *QueryNewTestVariantsRequest) GetBaseline() string

func (*QueryNewTestVariantsRequest) GetInvocation

func (x *QueryNewTestVariantsRequest) GetInvocation() string

func (*QueryNewTestVariantsRequest) ProtoMessage

func (*QueryNewTestVariantsRequest) ProtoMessage()

func (*QueryNewTestVariantsRequest) ProtoReflect

func (*QueryNewTestVariantsRequest) Reset

func (x *QueryNewTestVariantsRequest) Reset()

func (*QueryNewTestVariantsRequest) String

func (x *QueryNewTestVariantsRequest) String() string

type QueryNewTestVariantsResponse

type QueryNewTestVariantsResponse struct {

	// Indicates whether the baseline has been populated with at least 72 hours
	// of data and the results can be relied upon.
	IsBaselineReady bool `protobuf:"varint,1,opt,name=is_baseline_ready,json=isBaselineReady,proto3" json:"is_baseline_ready,omitempty"`
	// Test variants that are new, meaning that they have not been part of
	// a submitted run prior.
	NewTestVariants []*QueryNewTestVariantsResponse_NewTestVariant `protobuf:"bytes,2,rep,name=new_test_variants,json=newTestVariants,proto3" json:"new_test_variants,omitempty"`
	// contains filtered or unexported fields
}

A response message for QueryNewTestVariants RPC.

func (*QueryNewTestVariantsResponse) Descriptor deprecated

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

Deprecated: Use QueryNewTestVariantsResponse.ProtoReflect.Descriptor instead.

func (*QueryNewTestVariantsResponse) GetIsBaselineReady

func (x *QueryNewTestVariantsResponse) GetIsBaselineReady() bool

func (*QueryNewTestVariantsResponse) GetNewTestVariants

func (*QueryNewTestVariantsResponse) ProtoMessage

func (*QueryNewTestVariantsResponse) ProtoMessage()

func (*QueryNewTestVariantsResponse) ProtoReflect

func (*QueryNewTestVariantsResponse) Reset

func (x *QueryNewTestVariantsResponse) Reset()

func (*QueryNewTestVariantsResponse) String

type QueryNewTestVariantsResponse_NewTestVariant

type QueryNewTestVariantsResponse_NewTestVariant struct {

	// A unique identifier of the test in a LUCI project.
	// Regex: ^[[::print::]]{1,256}$
	//
	// Refer to TestResult.test_id for details.
	TestId string `protobuf:"bytes,1,opt,name=test_id,json=testId,proto3" json:"test_id,omitempty"`
	// Hash of the variant.
	// hex(sha256(sorted(”.join('%s:%s\n' for k, v in variant.items())))).
	VariantHash string `protobuf:"bytes,2,opt,name=variant_hash,json=variantHash,proto3" json:"variant_hash,omitempty"`
	// contains filtered or unexported fields
}

Represents a new test, which contains minimal information to uniquely identify a TestVariant.

func (*QueryNewTestVariantsResponse_NewTestVariant) Descriptor deprecated

Deprecated: Use QueryNewTestVariantsResponse_NewTestVariant.ProtoReflect.Descriptor instead.

func (*QueryNewTestVariantsResponse_NewTestVariant) GetTestId

func (*QueryNewTestVariantsResponse_NewTestVariant) GetVariantHash

func (*QueryNewTestVariantsResponse_NewTestVariant) ProtoMessage

func (*QueryNewTestVariantsResponse_NewTestVariant) ProtoReflect

func (*QueryNewTestVariantsResponse_NewTestVariant) Reset

func (*QueryNewTestVariantsResponse_NewTestVariant) String

type QueryTestExonerationsRequest

type QueryTestExonerationsRequest struct {

	// Retrieve test exonerations included in these invocations, directly or
	// indirectly (via Invocation.included_invocations).
	//
	// Specifying multiple invocations is equivalent to querying one invocation
	// that includes these.
	Invocations []string `protobuf:"bytes,1,rep,name=invocations,proto3" json:"invocations,omitempty"`
	// A test exoneration in the response must satisfy this predicate.
	Predicate *TestExonerationPredicate `protobuf:"bytes,2,opt,name=predicate,proto3" json:"predicate,omitempty"`
	// The maximum number of test exonerations to return.
	//
	// The service may return fewer than this value.
	// If unspecified, at most 100 test exonerations will be returned.
	// The maximum value is 1000; values above 1000 will be coerced to 1000.
	PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// A page token, received from a previous `QueryTestExonerations` call.
	// Provide this to retrieve the subsequent page.
	//
	// When paginating, all other parameters provided to `QueryTestExonerations`
	// MUST match the call that provided the page token.
	PageToken string `protobuf:"bytes,5,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

A request message for QueryTestExonerations RPC.

func (*QueryTestExonerationsRequest) Descriptor deprecated

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

Deprecated: Use QueryTestExonerationsRequest.ProtoReflect.Descriptor instead.

func (*QueryTestExonerationsRequest) GetInvocations

func (x *QueryTestExonerationsRequest) GetInvocations() []string

func (*QueryTestExonerationsRequest) GetPageSize

func (x *QueryTestExonerationsRequest) GetPageSize() int32

func (*QueryTestExonerationsRequest) GetPageToken

func (x *QueryTestExonerationsRequest) GetPageToken() string

func (*QueryTestExonerationsRequest) GetPredicate

func (*QueryTestExonerationsRequest) ProtoMessage

func (*QueryTestExonerationsRequest) ProtoMessage()

func (*QueryTestExonerationsRequest) ProtoReflect

func (*QueryTestExonerationsRequest) Reset

func (x *QueryTestExonerationsRequest) Reset()

func (*QueryTestExonerationsRequest) String

type QueryTestExonerationsResponse

type QueryTestExonerationsResponse struct {

	// The test exonerations matching the predicate.
	// Ordered by parent invocation ID, test ID and exoneration ID.
	TestExonerations []*TestExoneration `protobuf:"bytes,1,rep,name=test_exonerations,json=testExonerations,proto3" json:"test_exonerations,omitempty"`
	// A token, which can be sent as `page_token` to retrieve the next page.
	// If this field is omitted, there were no subsequent pages at the time of
	// request.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

A response message for QueryTestExonerations RPC.

func (*QueryTestExonerationsResponse) Descriptor deprecated

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

Deprecated: Use QueryTestExonerationsResponse.ProtoReflect.Descriptor instead.

func (*QueryTestExonerationsResponse) GetNextPageToken

func (x *QueryTestExonerationsResponse) GetNextPageToken() string

func (*QueryTestExonerationsResponse) GetTestExonerations

func (x *QueryTestExonerationsResponse) GetTestExonerations() []*TestExoneration

func (*QueryTestExonerationsResponse) ProtoMessage

func (*QueryTestExonerationsResponse) ProtoMessage()

func (*QueryTestExonerationsResponse) ProtoReflect

func (*QueryTestExonerationsResponse) Reset

func (x *QueryTestExonerationsResponse) Reset()

func (*QueryTestExonerationsResponse) String

type QueryTestMetadataRequest

type QueryTestMetadataRequest struct {

	// The LUCI Project to query.
	Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	// Filters to apply to the returned test metadata.
	Predicate *TestMetadataPredicate `protobuf:"bytes,2,opt,name=predicate,proto3" json:"predicate,omitempty"`
	// The maximum number of test metadata entries to return.
	//
	// The service may return fewer than this value.
	// If unspecified, at most 1000 test metadata entries will be returned.
	// The maximum value is 100K; values above 100K will be coerced to 100K.
	PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// A page token, received from a previous `QueryTestMetadata` call.
	// Provide this to retrieve the subsequent page.
	//
	// When paginating, all other parameters provided to `QueryTestMetadata` MUST
	// match the call that provided the page token.
	PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

A request message for QueryTestMetadata RPC.

func (*QueryTestMetadataRequest) Descriptor deprecated

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

Deprecated: Use QueryTestMetadataRequest.ProtoReflect.Descriptor instead.

func (*QueryTestMetadataRequest) GetPageSize

func (x *QueryTestMetadataRequest) GetPageSize() int32

func (*QueryTestMetadataRequest) GetPageToken

func (x *QueryTestMetadataRequest) GetPageToken() string

func (*QueryTestMetadataRequest) GetPredicate

func (*QueryTestMetadataRequest) GetProject

func (x *QueryTestMetadataRequest) GetProject() string

func (*QueryTestMetadataRequest) ProtoMessage

func (*QueryTestMetadataRequest) ProtoMessage()

func (*QueryTestMetadataRequest) ProtoReflect

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

func (*QueryTestMetadataRequest) Reset

func (x *QueryTestMetadataRequest) Reset()

func (*QueryTestMetadataRequest) String

func (x *QueryTestMetadataRequest) String() string

type QueryTestMetadataResponse

type QueryTestMetadataResponse struct {

	// The matched testMetadata.
	TestMetadata []*TestMetadataDetail `protobuf:"bytes,1,rep,name=testMetadata,proto3" json:"testMetadata,omitempty"`
	// A token, which can be sent as `page_token` to retrieve the next page.
	// If this field is omitted, there were no subsequent pages at the time of
	// request.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

A response message for QueryTestMetadata RPC.

func (*QueryTestMetadataResponse) Descriptor deprecated

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

Deprecated: Use QueryTestMetadataResponse.ProtoReflect.Descriptor instead.

func (*QueryTestMetadataResponse) GetNextPageToken

func (x *QueryTestMetadataResponse) GetNextPageToken() string

func (*QueryTestMetadataResponse) GetTestMetadata

func (x *QueryTestMetadataResponse) GetTestMetadata() []*TestMetadataDetail

func (*QueryTestMetadataResponse) ProtoMessage

func (*QueryTestMetadataResponse) ProtoMessage()

func (*QueryTestMetadataResponse) ProtoReflect

func (*QueryTestMetadataResponse) Reset

func (x *QueryTestMetadataResponse) Reset()

func (*QueryTestMetadataResponse) String

func (x *QueryTestMetadataResponse) String() string

type QueryTestResultStatisticsRequest

type QueryTestResultStatisticsRequest struct {

	// Retrieve statistics of test result belong to these invocations,
	// directly or indirectly (via Invocation.included_invocations).
	//
	// Specifying multiple invocations is equivalent to requesting one invocation
	// that includes these.
	Invocations []string `protobuf:"bytes,1,rep,name=invocations,proto3" json:"invocations,omitempty"`
	// contains filtered or unexported fields
}

A request message for QueryTestResultStatistics RPC.

func (*QueryTestResultStatisticsRequest) Descriptor deprecated

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

Deprecated: Use QueryTestResultStatisticsRequest.ProtoReflect.Descriptor instead.

func (*QueryTestResultStatisticsRequest) GetInvocations

func (x *QueryTestResultStatisticsRequest) GetInvocations() []string

func (*QueryTestResultStatisticsRequest) ProtoMessage

func (*QueryTestResultStatisticsRequest) ProtoMessage()

func (*QueryTestResultStatisticsRequest) ProtoReflect

func (*QueryTestResultStatisticsRequest) Reset

func (*QueryTestResultStatisticsRequest) String

type QueryTestResultStatisticsResponse

type QueryTestResultStatisticsResponse struct {

	// Total number of test results.
	TotalTestResults int64 `protobuf:"varint,1,opt,name=total_test_results,json=totalTestResults,proto3" json:"total_test_results,omitempty"`
	// contains filtered or unexported fields
}

A response message for QueryTestResultStatistics RPC.

func (*QueryTestResultStatisticsResponse) Descriptor deprecated

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

Deprecated: Use QueryTestResultStatisticsResponse.ProtoReflect.Descriptor instead.

func (*QueryTestResultStatisticsResponse) GetTotalTestResults

func (x *QueryTestResultStatisticsResponse) GetTotalTestResults() int64

func (*QueryTestResultStatisticsResponse) ProtoMessage

func (*QueryTestResultStatisticsResponse) ProtoMessage()

func (*QueryTestResultStatisticsResponse) ProtoReflect

func (*QueryTestResultStatisticsResponse) Reset

func (*QueryTestResultStatisticsResponse) String

type QueryTestResultsRequest

type QueryTestResultsRequest struct {

	// Retrieve test results included in these invocations, directly or indirectly
	// (via Invocation.included_invocations).
	//
	// Specifying multiple invocations is equivalent to querying one invocation
	// that includes these.
	Invocations []string `protobuf:"bytes,1,rep,name=invocations,proto3" json:"invocations,omitempty"`
	// A test result in the response must satisfy this predicate.
	Predicate *TestResultPredicate `protobuf:"bytes,2,opt,name=predicate,proto3" json:"predicate,omitempty"`
	// The maximum number of test results to return.
	//
	// The service may return fewer than this value.
	// If unspecified, at most 100 test results will be returned.
	// The maximum value is 1000; values above 1000 will be coerced to 1000.
	PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// A page token, received from a previous `QueryTestResults` call.
	// Provide this to retrieve the subsequent page.
	//
	// When paginating, all other parameters provided to `QueryTestResults` MUST
	// match the call that provided the page token.
	PageToken string `protobuf:"bytes,5,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// Fields to include in the response.
	// If not set, the default mask is used where summary_html and tags are
	// excluded.
	// Test result names will always be included even if "name" is not a part of
	// the mask.
	ReadMask *fieldmaskpb.FieldMask `protobuf:"bytes,6,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"`
	// contains filtered or unexported fields
}

A request message for QueryTestResults RPC.

func (*QueryTestResultsRequest) Descriptor deprecated

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

Deprecated: Use QueryTestResultsRequest.ProtoReflect.Descriptor instead.

func (*QueryTestResultsRequest) GetInvocations

func (x *QueryTestResultsRequest) GetInvocations() []string

func (*QueryTestResultsRequest) GetPageSize

func (x *QueryTestResultsRequest) GetPageSize() int32

func (*QueryTestResultsRequest) GetPageToken

func (x *QueryTestResultsRequest) GetPageToken() string

func (*QueryTestResultsRequest) GetPredicate

func (x *QueryTestResultsRequest) GetPredicate() *TestResultPredicate

func (*QueryTestResultsRequest) GetReadMask

func (x *QueryTestResultsRequest) GetReadMask() *fieldmaskpb.FieldMask

func (*QueryTestResultsRequest) ProtoMessage

func (*QueryTestResultsRequest) ProtoMessage()

func (*QueryTestResultsRequest) ProtoReflect

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

func (*QueryTestResultsRequest) Reset

func (x *QueryTestResultsRequest) Reset()

func (*QueryTestResultsRequest) String

func (x *QueryTestResultsRequest) String() string

type QueryTestResultsResponse

type QueryTestResultsResponse struct {

	// Matched test results.
	// Ordered by parent invocation ID, test ID and result ID.
	TestResults []*TestResult `protobuf:"bytes,1,rep,name=test_results,json=testResults,proto3" json:"test_results,omitempty"`
	// A token, which can be sent as `page_token` to retrieve the next page.
	// If this field is omitted, there were no subsequent pages at the time of
	// request.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

A response message for QueryTestResults RPC.

func (*QueryTestResultsResponse) Descriptor deprecated

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

Deprecated: Use QueryTestResultsResponse.ProtoReflect.Descriptor instead.

func (*QueryTestResultsResponse) GetNextPageToken

func (x *QueryTestResultsResponse) GetNextPageToken() string

func (*QueryTestResultsResponse) GetTestResults

func (x *QueryTestResultsResponse) GetTestResults() []*TestResult

func (*QueryTestResultsResponse) ProtoMessage

func (*QueryTestResultsResponse) ProtoMessage()

func (*QueryTestResultsResponse) ProtoReflect

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

func (*QueryTestResultsResponse) Reset

func (x *QueryTestResultsResponse) Reset()

func (*QueryTestResultsResponse) String

func (x *QueryTestResultsResponse) String() string

type QueryTestVariantsRequest

type QueryTestVariantsRequest struct {

	// Retrieve test variants included in these invocations, directly or indirectly
	// (via Invocation.included_invocations).
	//
	// Specifying multiple invocations is equivalent to querying one invocation
	// that includes these.
	Invocations []string `protobuf:"bytes,2,rep,name=invocations,proto3" json:"invocations,omitempty"`
	// A test variant must satisfy this predicate.
	Predicate *TestVariantPredicate `protobuf:"bytes,6,opt,name=predicate,proto3" json:"predicate,omitempty"`
	// The maximum number of test results to be included in a test variant.
	//
	// If a test variant has more results than the limit, the remaining results
	// will not be returned.
	// If unspecified, at most 10 results will be included in a test variant.
	// The maximum value is 100; values above 100 will be coerced to 100.
	ResultLimit int32 `protobuf:"varint,8,opt,name=result_limit,json=resultLimit,proto3" json:"result_limit,omitempty"`
	// The maximum number of test variants to return.
	//
	// The service may return fewer than this value.
	// If unspecified, at most 100 test variants will be returned.
	// The maximum value is 10,000; values above 10,000 will be coerced to 10,000.
	PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// A page token, received from a previous `QueryTestVariants` call.
	// Provide this to retrieve the subsequent page.
	//
	// When paginating, all other parameters provided to `QueryTestVariants` MUST
	// match the call that provided the page token.
	PageToken string `protobuf:"bytes,5,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// Fields to include in the response.
	// If not set, the default mask is used where all fields are included.
	//
	// The following fields in results.*.result will NEVER be included even when
	// specified:
	// * test_id
	// * variant_hash
	// * variant
	// * test_metadata
	// Those values can be found in the parent test variant objects.
	//
	// The following fields will ALWAYS be included even when NOT specified:
	// * test_id
	// * variant_hash
	// * status
	ReadMask *fieldmaskpb.FieldMask `protobuf:"bytes,7,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"`
	// contains filtered or unexported fields
}

A request message for QueryTestVariants RPC. Next id: 9.

func (*QueryTestVariantsRequest) Descriptor deprecated

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

Deprecated: Use QueryTestVariantsRequest.ProtoReflect.Descriptor instead.

func (*QueryTestVariantsRequest) GetInvocations

func (x *QueryTestVariantsRequest) GetInvocations() []string

func (*QueryTestVariantsRequest) GetPageSize

func (x *QueryTestVariantsRequest) GetPageSize() int32

func (*QueryTestVariantsRequest) GetPageToken

func (x *QueryTestVariantsRequest) GetPageToken() string

func (*QueryTestVariantsRequest) GetPredicate

func (*QueryTestVariantsRequest) GetReadMask

func (*QueryTestVariantsRequest) GetResultLimit

func (x *QueryTestVariantsRequest) GetResultLimit() int32

func (*QueryTestVariantsRequest) ProtoMessage

func (*QueryTestVariantsRequest) ProtoMessage()

func (*QueryTestVariantsRequest) ProtoReflect

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

func (*QueryTestVariantsRequest) Reset

func (x *QueryTestVariantsRequest) Reset()

func (*QueryTestVariantsRequest) String

func (x *QueryTestVariantsRequest) String() string

type QueryTestVariantsResponse

type QueryTestVariantsResponse struct {

	// Matched test variants.
	// Ordered by TestVariantStatus, test_id, then variant_hash
	TestVariants []*TestVariant `protobuf:"bytes,1,rep,name=test_variants,json=testVariants,proto3" json:"test_variants,omitempty"`
	// A token, which can be sent as `page_token` to retrieve the next page.
	// If this field is omitted, there were no subsequent pages at the time of
	// request.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// The code sources tested by the returned test variants. The sources are keyed
	// by an ID which allows them to be cross-referenced from TestVariant.sources_id.
	//
	// The sources are returned via this map instead of directly on the TestVariant
	// to avoid excessive response size. Each source message could be up to a few
	// kilobytes and there are usually no more than a handful of different sources
	// tested in an invocation, so deduplicating them here reduces response size.
	Sources map[string]*Sources `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

A response message for QueryTestVariants RPC.

func (*QueryTestVariantsResponse) Descriptor deprecated

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

Deprecated: Use QueryTestVariantsResponse.ProtoReflect.Descriptor instead.

func (*QueryTestVariantsResponse) GetNextPageToken

func (x *QueryTestVariantsResponse) GetNextPageToken() string

func (*QueryTestVariantsResponse) GetSources

func (x *QueryTestVariantsResponse) GetSources() map[string]*Sources

func (*QueryTestVariantsResponse) GetTestVariants

func (x *QueryTestVariantsResponse) GetTestVariants() []*TestVariant

func (*QueryTestVariantsResponse) ProtoMessage

func (*QueryTestVariantsResponse) ProtoMessage()

func (*QueryTestVariantsResponse) ProtoReflect

func (*QueryTestVariantsResponse) Reset

func (x *QueryTestVariantsResponse) Reset()

func (*QueryTestVariantsResponse) String

func (x *QueryTestVariantsResponse) String() string

type RecorderClient

type RecorderClient interface {
	// Creates a new invocation.
	// The request specifies the invocation id and its contents.
	//
	// The response header metadata contains "update-token" required for future
	// updates, including finalization.
	//
	// If invocation with the given ID already exists, returns ALREADY_EXISTS
	// error code.
	CreateInvocation(ctx context.Context, in *CreateInvocationRequest, opts ...grpc.CallOption) (*Invocation, error)
	// Creates multiple invocations in a single rpc.
	//
	// The response header metadata contains a multi-valued "update-token"
	// required for future updates, including finalization. The tokens will be
	// given in the same order as BatchCreateInvocationRequest.requests.
	BatchCreateInvocations(ctx context.Context, in *BatchCreateInvocationsRequest, opts ...grpc.CallOption) (*BatchCreateInvocationsResponse, error)
	// Updates an existing non-finalized invocation.
	UpdateInvocation(ctx context.Context, in *UpdateInvocationRequest, opts ...grpc.CallOption) (*Invocation, error)
	// Transitions the given invocation to the state FINALIZED.
	FinalizeInvocation(ctx context.Context, in *FinalizeInvocationRequest, opts ...grpc.CallOption) (*Invocation, error)
	// Updates inclusions for a non-finalized invocation.
	UpdateIncludedInvocations(ctx context.Context, in *UpdateIncludedInvocationsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Recursively marks all test variants associated with the invocation as
	// submitted, merging them into the invocation's associated baseline.
	MarkInvocationSubmitted(ctx context.Context, in *MarkInvocationSubmittedRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Appends a test result to a non-finalized invocation.
	CreateTestResult(ctx context.Context, in *CreateTestResultRequest, opts ...grpc.CallOption) (*TestResult, error)
	// Atomically appends a batch of test results to a non-finalized invocation.
	BatchCreateTestResults(ctx context.Context, in *BatchCreateTestResultsRequest, opts ...grpc.CallOption) (*BatchCreateTestResultsResponse, error)
	// Appends a test exoneration to a non-finalized invocation.
	CreateTestExoneration(ctx context.Context, in *CreateTestExonerationRequest, opts ...grpc.CallOption) (*TestExoneration, error)
	// Atomically appends a batch of test exonerations to a non-finalized
	// invocation.
	BatchCreateTestExonerations(ctx context.Context, in *BatchCreateTestExonerationsRequest, opts ...grpc.CallOption) (*BatchCreateTestExonerationsResponse, error)
	// Create multiple artifacts.
	//
	// An artifact can be either invocation-level or test-result-level.
	// See Artifact.name for more info.
	BatchCreateArtifacts(ctx context.Context, in *BatchCreateArtifactsRequest, opts ...grpc.CallOption) (*BatchCreateArtifactsResponse, error)
}

RecorderClient is the client API for Recorder service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewRecorderClient

func NewRecorderClient(cc grpc.ClientConnInterface) RecorderClient

func NewRecorderPRPCClient

func NewRecorderPRPCClient(client *prpc.Client) RecorderClient

type RecorderServer

type RecorderServer interface {
	// Creates a new invocation.
	// The request specifies the invocation id and its contents.
	//
	// The response header metadata contains "update-token" required for future
	// updates, including finalization.
	//
	// If invocation with the given ID already exists, returns ALREADY_EXISTS
	// error code.
	CreateInvocation(context.Context, *CreateInvocationRequest) (*Invocation, error)
	// Creates multiple invocations in a single rpc.
	//
	// The response header metadata contains a multi-valued "update-token"
	// required for future updates, including finalization. The tokens will be
	// given in the same order as BatchCreateInvocationRequest.requests.
	BatchCreateInvocations(context.Context, *BatchCreateInvocationsRequest) (*BatchCreateInvocationsResponse, error)
	// Updates an existing non-finalized invocation.
	UpdateInvocation(context.Context, *UpdateInvocationRequest) (*Invocation, error)
	// Transitions the given invocation to the state FINALIZED.
	FinalizeInvocation(context.Context, *FinalizeInvocationRequest) (*Invocation, error)
	// Updates inclusions for a non-finalized invocation.
	UpdateIncludedInvocations(context.Context, *UpdateIncludedInvocationsRequest) (*emptypb.Empty, error)
	// Recursively marks all test variants associated with the invocation as
	// submitted, merging them into the invocation's associated baseline.
	MarkInvocationSubmitted(context.Context, *MarkInvocationSubmittedRequest) (*emptypb.Empty, error)
	// Appends a test result to a non-finalized invocation.
	CreateTestResult(context.Context, *CreateTestResultRequest) (*TestResult, error)
	// Atomically appends a batch of test results to a non-finalized invocation.
	BatchCreateTestResults(context.Context, *BatchCreateTestResultsRequest) (*BatchCreateTestResultsResponse, error)
	// Appends a test exoneration to a non-finalized invocation.
	CreateTestExoneration(context.Context, *CreateTestExonerationRequest) (*TestExoneration, error)
	// Atomically appends a batch of test exonerations to a non-finalized
	// invocation.
	BatchCreateTestExonerations(context.Context, *BatchCreateTestExonerationsRequest) (*BatchCreateTestExonerationsResponse, error)
	// Create multiple artifacts.
	//
	// An artifact can be either invocation-level or test-result-level.
	// See Artifact.name for more info.
	BatchCreateArtifacts(context.Context, *BatchCreateArtifactsRequest) (*BatchCreateArtifactsResponse, error)
}

RecorderServer is the server API for Recorder service.

type ResultDBClient

type ResultDBClient interface {
	// Retrieves an invocation.
	GetInvocation(ctx context.Context, in *GetInvocationRequest, opts ...grpc.CallOption) (*Invocation, error)
	// Retrieves a test result.
	GetTestResult(ctx context.Context, in *GetTestResultRequest, opts ...grpc.CallOption) (*TestResult, error)
	// Retrieves test results for a parent invocation.
	//
	// Note: response does not contain test results of included invocations.
	// Use QueryTestResults instead.
	ListTestResults(ctx context.Context, in *ListTestResultsRequest, opts ...grpc.CallOption) (*ListTestResultsResponse, error)
	// Retrieves a test exoneration.
	GetTestExoneration(ctx context.Context, in *GetTestExonerationRequest, opts ...grpc.CallOption) (*TestExoneration, error)
	// Retrieves test exonerations for a parent invocation.
	//
	// Note: response does not contain test results of included invocations.
	// Use QueryTestExonerations instead.
	ListTestExonerations(ctx context.Context, in *ListTestExonerationsRequest, opts ...grpc.CallOption) (*ListTestExonerationsResponse, error)
	// Retrieves test results from an invocation, recursively.
	// Supports invocation inclusions.
	// Supports advanced filtering.
	// Examples: go/resultdb-rpc#querytestresults
	QueryTestResults(ctx context.Context, in *QueryTestResultsRequest, opts ...grpc.CallOption) (*QueryTestResultsResponse, error)
	// Retrieves test exonerations from an invocation.
	// Supports invocation inclusions.
	// Supports advanced filtering.
	QueryTestExonerations(ctx context.Context, in *QueryTestExonerationsRequest, opts ...grpc.CallOption) (*QueryTestExonerationsResponse, error)
	// Retrieves the test result statistics of an invocation.
	// Currently supports total number of test results belong to the invocation,
	// directly and indirectly.
	QueryTestResultStatistics(ctx context.Context, in *QueryTestResultStatisticsRequest, opts ...grpc.CallOption) (*QueryTestResultStatisticsResponse, error)
	// Calculate new test variants by running the difference between the tests
	// run in the given invocation against the submitted test history for the
	// source.
	QueryNewTestVariants(ctx context.Context, in *QueryNewTestVariantsRequest, opts ...grpc.CallOption) (*QueryNewTestVariantsResponse, error)
	// Retrieves an artifact.
	GetArtifact(ctx context.Context, in *GetArtifactRequest, opts ...grpc.CallOption) (*Artifact, error)
	// Retrieves artifacts for a parent invocation/testResult.
	//
	// Note: if the parent is an invocation, the response does not contain
	// artifacts of included invocations. Use QueryArtifacts instead.
	ListArtifacts(ctx context.Context, in *ListArtifactsRequest, opts ...grpc.CallOption) (*ListArtifactsResponse, error)
	// Retrieves artifacts from an invocation, recursively.
	// Can retrieve artifacts of test results included in the invocation
	// directly or indirectly.
	// Supports invocation inclusions.
	QueryArtifacts(ctx context.Context, in *QueryArtifactsRequest, opts ...grpc.CallOption) (*QueryArtifactsResponse, error)
	// Retrieves test variants from an invocation, recursively.
	// Supports invocation inclusions.
	QueryTestVariants(ctx context.Context, in *QueryTestVariantsRequest, opts ...grpc.CallOption) (*QueryTestVariantsResponse, error)
	// Retrieves test variants from a single invocation, matching the specified
	// test IDs and hashes.
	BatchGetTestVariants(ctx context.Context, in *BatchGetTestVariantsRequest, opts ...grpc.CallOption) (*BatchGetTestVariantsResponse, error)
	// Retrieves test metadata from a LUCI project, matching the predicate.
	QueryTestMetadata(ctx context.Context, in *QueryTestMetadataRequest, opts ...grpc.CallOption) (*QueryTestMetadataResponse, error)
}

ResultDBClient is the client API for ResultDB service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewResultDBClient

func NewResultDBClient(cc grpc.ClientConnInterface) ResultDBClient

func NewResultDBPRPCClient

func NewResultDBPRPCClient(client *prpc.Client) ResultDBClient

type ResultDBServer

type ResultDBServer interface {
	// Retrieves an invocation.
	GetInvocation(context.Context, *GetInvocationRequest) (*Invocation, error)
	// Retrieves a test result.
	GetTestResult(context.Context, *GetTestResultRequest) (*TestResult, error)
	// Retrieves test results for a parent invocation.
	//
	// Note: response does not contain test results of included invocations.
	// Use QueryTestResults instead.
	ListTestResults(context.Context, *ListTestResultsRequest) (*ListTestResultsResponse, error)
	// Retrieves a test exoneration.
	GetTestExoneration(context.Context, *GetTestExonerationRequest) (*TestExoneration, error)
	// Retrieves test exonerations for a parent invocation.
	//
	// Note: response does not contain test results of included invocations.
	// Use QueryTestExonerations instead.
	ListTestExonerations(context.Context, *ListTestExonerationsRequest) (*ListTestExonerationsResponse, error)
	// Retrieves test results from an invocation, recursively.
	// Supports invocation inclusions.
	// Supports advanced filtering.
	// Examples: go/resultdb-rpc#querytestresults
	QueryTestResults(context.Context, *QueryTestResultsRequest) (*QueryTestResultsResponse, error)
	// Retrieves test exonerations from an invocation.
	// Supports invocation inclusions.
	// Supports advanced filtering.
	QueryTestExonerations(context.Context, *QueryTestExonerationsRequest) (*QueryTestExonerationsResponse, error)
	// Retrieves the test result statistics of an invocation.
	// Currently supports total number of test results belong to the invocation,
	// directly and indirectly.
	QueryTestResultStatistics(context.Context, *QueryTestResultStatisticsRequest) (*QueryTestResultStatisticsResponse, error)
	// Calculate new test variants by running the difference between the tests
	// run in the given invocation against the submitted test history for the
	// source.
	QueryNewTestVariants(context.Context, *QueryNewTestVariantsRequest) (*QueryNewTestVariantsResponse, error)
	// Retrieves an artifact.
	GetArtifact(context.Context, *GetArtifactRequest) (*Artifact, error)
	// Retrieves artifacts for a parent invocation/testResult.
	//
	// Note: if the parent is an invocation, the response does not contain
	// artifacts of included invocations. Use QueryArtifacts instead.
	ListArtifacts(context.Context, *ListArtifactsRequest) (*ListArtifactsResponse, error)
	// Retrieves artifacts from an invocation, recursively.
	// Can retrieve artifacts of test results included in the invocation
	// directly or indirectly.
	// Supports invocation inclusions.
	QueryArtifacts(context.Context, *QueryArtifactsRequest) (*QueryArtifactsResponse, error)
	// Retrieves test variants from an invocation, recursively.
	// Supports invocation inclusions.
	QueryTestVariants(context.Context, *QueryTestVariantsRequest) (*QueryTestVariantsResponse, error)
	// Retrieves test variants from a single invocation, matching the specified
	// test IDs and hashes.
	BatchGetTestVariants(context.Context, *BatchGetTestVariantsRequest) (*BatchGetTestVariantsResponse, error)
	// Retrieves test metadata from a LUCI project, matching the predicate.
	QueryTestMetadata(context.Context, *QueryTestMetadataRequest) (*QueryTestMetadataResponse, error)
}

ResultDBServer is the server API for ResultDB service.

type SkipReason

type SkipReason int32

Machine-readable reason that a test execution was skipped. Only reasons actually used are listed here, if you need a new reason please add it here and send a CL to the OWNERS.

const (
	// Skip reason was not specified.
	// This represents an unset field which should be used for non-skip test
	// result statuses.  It can also be used if none of the other statuses
	// apply.
	SkipReason_SKIP_REASON_UNSPECIFIED SkipReason = 0
	// Disabled automatically in response to a test skipping policy that skips
	// flaky tests.
	// Used for ChromeOS CQ test filtering.
	SkipReason_AUTOMATICALLY_DISABLED_FOR_FLAKINESS SkipReason = 1
)

func (SkipReason) Descriptor

func (SkipReason) Descriptor() protoreflect.EnumDescriptor

func (SkipReason) Enum

func (x SkipReason) Enum() *SkipReason

func (SkipReason) EnumDescriptor deprecated

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

Deprecated: Use SkipReason.Descriptor instead.

func (SkipReason) Number

func (x SkipReason) Number() protoreflect.EnumNumber

func (SkipReason) String

func (x SkipReason) String() string

func (SkipReason) Type

type SourceRef

type SourceRef struct {

	// The source control system used.
	// Only gitiles is supported at this moment. If other systems need to be
	// supported in future (e.g. non-gitiles git, subversion, google storage
	// buckets), they can be added here
	//
	// Types that are assignable to System:
	//
	//	*SourceRef_Gitiles
	System isSourceRef_System `protobuf_oneof:"system"`
	// contains filtered or unexported fields
}

Represents a reference in a source control system.

func (*SourceRef) Descriptor deprecated

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

Deprecated: Use SourceRef.ProtoReflect.Descriptor instead.

func (*SourceRef) GetGitiles

func (x *SourceRef) GetGitiles() *GitilesRef

func (*SourceRef) GetSystem

func (m *SourceRef) GetSystem() isSourceRef_System

func (*SourceRef) ProtoMessage

func (*SourceRef) ProtoMessage()

func (*SourceRef) ProtoReflect

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

func (*SourceRef) Reset

func (x *SourceRef) Reset()

func (*SourceRef) String

func (x *SourceRef) String() string

type SourceRef_Gitiles

type SourceRef_Gitiles struct {
	// A branch in gitiles repository.
	Gitiles *GitilesRef `protobuf:"bytes,1,opt,name=gitiles,proto3,oneof"`
}

type SourceSpec

type SourceSpec struct {

	// Specifies the source position that was tested.
	// Either this or inherit_sources may be set, but not both.
	Sources *Sources `protobuf:"bytes,1,opt,name=sources,proto3" json:"sources,omitempty"`
	// Specifies that the source position of the invocation is inherited
	// from the parent invocation it is included in.
	//
	// # Use case
	// This is useful in situations where the testing infrastructure deduplicates
	// execution of tests on identical binaries (e.g. using swarming's task
	// deduplication feature).
	//
	// Let A be the invocation for a swarming task that receives only a
	// test binary as input, with task deduplication enabled.
	// Let B be the invocation for a buildbucket build which built the
	// binary from sources (or at the very least knew the sources)
	// and triggered invocation A.
	// Invocation B includes invocation A.
	//
	// By setting A's source_spec to inherit, and specifying the sources
	// on invocation B, the test results in A will be associated with
	// the sources specified on invocation B, when queried via invocation B.
	//
	// This allows further invocations B2, B3 ... BN to be created which also
	// re-use the test results in A but associate them with possibly different
	// sources when queried via B2 ... BN (this is valid so long as the sources
	// produce a binary-identical testing input).
	//
	// # Multiple inclusion paths
	// It is possible for an invocation A to be included in the reachable
	// invocation graph for an invocation C in more than one way.
	//
	// For example, we may have:
	//
	//	A -> B1 -> C
	//	A -> B2 -> C
	//
	// as two paths of inclusion.
	//
	// If A sets inherit to true, the commit position assigned to its
	// test results will be selected via *one* of the paths of inclusion
	// into C (i.e. from B1 or B2).
	//
	// However, which path is selected is not guaranteed, so if clients
	// must include the same invocation multiple times, they should
	// make the source position via all paths the same.
	Inherit bool `protobuf:"varint,2,opt,name=inherit,proto3" json:"inherit,omitempty"`
	// contains filtered or unexported fields
}

Specifies the source code that was tested in an invocation, either directly (via the sources field) or indirectly (via inherit_sources).

func (*SourceSpec) Descriptor deprecated

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

Deprecated: Use SourceSpec.ProtoReflect.Descriptor instead.

func (*SourceSpec) GetInherit

func (x *SourceSpec) GetInherit() bool

func (*SourceSpec) GetSources

func (x *SourceSpec) GetSources() *Sources

func (*SourceSpec) ProtoMessage

func (*SourceSpec) ProtoMessage()

func (*SourceSpec) ProtoReflect

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

func (*SourceSpec) Reset

func (x *SourceSpec) Reset()

func (*SourceSpec) String

func (x *SourceSpec) String() string

type Sources

type Sources struct {

	// The base version of code sources checked out. Mandatory.
	// If necessary, we could add support for non-gitiles sources here in
	// future, using a oneof statement. E.g.
	//
	//	oneof system {
	//	   GitilesCommit gitiles_commit = 1;
	//	   SubversionRevision svn_revision = 4;
	//	   ...
	//	}
	GitilesCommit *GitilesCommit `protobuf:"bytes,1,opt,name=gitiles_commit,json=gitilesCommit,proto3" json:"gitiles_commit,omitempty"`
	// The changelist(s) which were applied upon the base version of sources
	// checked out. E.g. in commit queue tryjobs.
	//
	// At most 10 changelist(s) may be specified here. If there
	// are more, only include the first 10 and set is_dirty.
	Changelists []*GerritChange `protobuf:"bytes,2,rep,name=changelists,proto3" json:"changelists,omitempty"`
	// Whether there were any changes made to the sources, not described above.
	// For example, a version of a dependency was upgraded before testing (e.g.
	// in an autoroller recipe).
	//
	// Cherry-picking a changelist on top of the base checkout is not considered
	// making the sources dirty as it is reported separately above.
	IsDirty bool `protobuf:"varint,3,opt,name=is_dirty,json=isDirty,proto3" json:"is_dirty,omitempty"`
	// contains filtered or unexported fields
}

Specifies the source code that was tested.

func (*Sources) Descriptor deprecated

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

Deprecated: Use Sources.ProtoReflect.Descriptor instead.

func (*Sources) GetChangelists

func (x *Sources) GetChangelists() []*GerritChange

func (*Sources) GetGitilesCommit

func (x *Sources) GetGitilesCommit() *GitilesCommit

func (*Sources) GetIsDirty

func (x *Sources) GetIsDirty() bool

func (*Sources) ProtoMessage

func (*Sources) ProtoMessage()

func (*Sources) ProtoReflect

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

func (*Sources) Reset

func (x *Sources) Reset()

func (*Sources) String

func (x *Sources) String() string

type StringPair

type StringPair struct {

	// Regex: ^[a-z][a-z0-9_]*(/[a-z][a-z0-9_]*)*$
	// Max length: 64.
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// Max length: 256.
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

A string key-value pair. Typically used for tagging, see Invocation.tags

func (*StringPair) Descriptor deprecated

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

Deprecated: Use StringPair.ProtoReflect.Descriptor instead.

func (*StringPair) GetKey

func (x *StringPair) GetKey() string

func (*StringPair) GetValue

func (x *StringPair) GetValue() string

func (*StringPair) ProtoMessage

func (*StringPair) ProtoMessage()

func (*StringPair) ProtoReflect

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

func (*StringPair) Reset

func (x *StringPair) Reset()

func (*StringPair) String

func (x *StringPair) String() string

type TargetedInstruction

type TargetedInstruction struct {

	// The targets that this instruction is for, like "local", "remote" or "prebuilt"
	Targets []InstructionTarget `protobuf:"varint,1,rep,packed,name=targets,proto3,enum=luci.resultdb.v1.InstructionTarget" json:"targets,omitempty"`
	// Another instruction that this instruction depends on.
	// At the moment, one instruction can have at most 1 dependency.
	// Make this repeated for forward compatibility.
	Dependency []*InstructionDependency `protobuf:"bytes,2,rep,name=dependency,proto3" json:"dependency,omitempty"`
	// The content of the instruction, in markdown format.
	// Placeholders may be used and will be populated with real
	// information when displayed in the UI.
	// This will be limit to 10KB. If the content is longer than 10KB,
	// an error will be returned.
	// See go/luci-failure-reproduction-instructions-dd for details.
	Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

Instruction for specific targets. Instruction for different targets may have the same or different dependency and content.

func (*TargetedInstruction) Descriptor deprecated

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

Deprecated: Use TargetedInstruction.ProtoReflect.Descriptor instead.

func (*TargetedInstruction) GetContent

func (x *TargetedInstruction) GetContent() string

func (*TargetedInstruction) GetDependency

func (x *TargetedInstruction) GetDependency() []*InstructionDependency

func (*TargetedInstruction) GetTargets

func (x *TargetedInstruction) GetTargets() []InstructionTarget

func (*TargetedInstruction) ProtoMessage

func (*TargetedInstruction) ProtoMessage()

func (*TargetedInstruction) ProtoReflect

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

func (*TargetedInstruction) Reset

func (x *TargetedInstruction) Reset()

func (*TargetedInstruction) String

func (x *TargetedInstruction) String() string

type TestExoneration

type TestExoneration struct {

	// Can be used to refer to this test exoneration, e.g. in
	// ResultDB.GetTestExoneration RPC.
	// Format:
	// invocations/{INVOCATION_ID}/tests/{URL_ESCAPED_TEST_ID}/exonerations/{EXONERATION_ID}.
	// URL_ESCAPED_TEST_ID is test_variant.test_id escaped with
	// https://golang.org/pkg/net/url/#PathEscape See also https://aip.dev/122.
	//
	// Output only.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Test identifier, see TestResult.test_id.
	TestId string `protobuf:"bytes,2,opt,name=test_id,json=testId,proto3" json:"test_id,omitempty"`
	// Description of the variant of the test, see Variant type.
	// Unlike TestResult.extra_variant_pairs, this one must be a full definition
	// of the variant, i.e. it is not combined with Invocation.base_test_variant.
	Variant *Variant `protobuf:"bytes,3,opt,name=variant,proto3" json:"variant,omitempty"`
	// Identifies an exoneration in a given invocation and test id.
	// It is server-generated.
	ExonerationId string `protobuf:"bytes,4,opt,name=exoneration_id,json=exonerationId,proto3" json:"exoneration_id,omitempty"`
	// Reasoning behind the exoneration, in HTML.
	// MUST be sanitized before rendering in the browser.
	ExplanationHtml string `protobuf:"bytes,5,opt,name=explanation_html,json=explanationHtml,proto3" json:"explanation_html,omitempty"`
	// Hash of the variant.
	// hex(sha256(sorted(”.join('%s:%s\n' for k, v in variant.items())))).
	VariantHash string `protobuf:"bytes,6,opt,name=variant_hash,json=variantHash,proto3" json:"variant_hash,omitempty"`
	// Reasoning behind the exoneration, in machine-readable form.
	// Used to assist downstream analyses, such as automatic bug-filing.
	// This allow detection of e.g. critical tests failing in presubmit,
	// even if they are being exonerated because they fail on other CLs.
	Reason ExonerationReason `protobuf:"varint,7,opt,name=reason,proto3,enum=luci.resultdb.v1.ExonerationReason" json:"reason,omitempty"`
	// Whether the test exoneration has been masked so that it includes only
	// metadata. The metadata fields for a TestExoneration are:
	// * name
	// * test_id
	// * exoneration_id
	// * variant_hash
	// * explanation_html
	// * reason
	//
	// Output only.
	IsMasked bool `protobuf:"varint,8,opt,name=is_masked,json=isMasked,proto3" json:"is_masked,omitempty"`
	// contains filtered or unexported fields
}

Indicates the test subject (e.g. a CL) is absolved from blame for an unexpected result of a test variant. For example, the test variant fails both with and without CL, so it is not CL's fault.

func (*TestExoneration) Descriptor deprecated

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

Deprecated: Use TestExoneration.ProtoReflect.Descriptor instead.

func (*TestExoneration) GetExonerationId

func (x *TestExoneration) GetExonerationId() string

func (*TestExoneration) GetExplanationHtml

func (x *TestExoneration) GetExplanationHtml() string

func (*TestExoneration) GetIsMasked

func (x *TestExoneration) GetIsMasked() bool

func (*TestExoneration) GetName

func (x *TestExoneration) GetName() string

func (*TestExoneration) GetReason

func (x *TestExoneration) GetReason() ExonerationReason

func (*TestExoneration) GetTestId

func (x *TestExoneration) GetTestId() string

func (*TestExoneration) GetVariant

func (x *TestExoneration) GetVariant() *Variant

func (*TestExoneration) GetVariantHash

func (x *TestExoneration) GetVariantHash() string

func (*TestExoneration) ProtoMessage

func (*TestExoneration) ProtoMessage()

func (*TestExoneration) ProtoReflect

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

func (*TestExoneration) Reset

func (x *TestExoneration) Reset()

func (*TestExoneration) String

func (x *TestExoneration) String() string

type TestExonerationPredicate

type TestExonerationPredicate struct {

	// A test exoneration must have a test id matching this regular expression
	// entirely, i.e. the expression is implicitly wrapped with ^ and $.
	TestIdRegexp string `protobuf:"bytes,1,opt,name=test_id_regexp,json=testIdRegexp,proto3" json:"test_id_regexp,omitempty"`
	// A test exoneration must have a variant satisfying this predicate.
	Variant *VariantPredicate `protobuf:"bytes,2,opt,name=variant,proto3" json:"variant,omitempty"`
	// contains filtered or unexported fields
}

Represents a function TestExoneration -> bool. Empty message matches all test exonerations.

func (*TestExonerationPredicate) Descriptor deprecated

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

Deprecated: Use TestExonerationPredicate.ProtoReflect.Descriptor instead.

func (*TestExonerationPredicate) GetTestIdRegexp

func (x *TestExonerationPredicate) GetTestIdRegexp() string

func (*TestExonerationPredicate) GetVariant

func (x *TestExonerationPredicate) GetVariant() *VariantPredicate

func (*TestExonerationPredicate) ProtoMessage

func (*TestExonerationPredicate) ProtoMessage()

func (*TestExonerationPredicate) ProtoReflect

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

func (*TestExonerationPredicate) Reset

func (x *TestExonerationPredicate) Reset()

func (*TestExonerationPredicate) String

func (x *TestExonerationPredicate) String() string

type TestLocation

type TestLocation struct {

	// Gitiles URL as the identifier for a repo.
	// Format for Gitiles URL: https://<host>/<project>
	// For example "https://chromium.googlesource.com/chromium/src"
	// Must not end with ".git".
	// SHOULD be specified.
	Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
	// Name of the file where the test is defined.
	// For files in a repository, must start with "//"
	// Example: "//components/payments/core/payment_request_data_util_unittest.cc"
	// Max length: 512.
	// MUST not use backslashes.
	// Required.
	FileName string `protobuf:"bytes,2,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
	// One-based line number where the test is defined.
	Line int32 `protobuf:"varint,3,opt,name=line,proto3" json:"line,omitempty"`
	// contains filtered or unexported fields
}

Location of the test definition.

func (*TestLocation) Descriptor deprecated

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

Deprecated: Use TestLocation.ProtoReflect.Descriptor instead.

func (*TestLocation) GetFileName

func (x *TestLocation) GetFileName() string

func (*TestLocation) GetLine

func (x *TestLocation) GetLine() int32

func (*TestLocation) GetRepo

func (x *TestLocation) GetRepo() string

func (*TestLocation) ProtoMessage

func (*TestLocation) ProtoMessage()

func (*TestLocation) ProtoReflect

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

func (*TestLocation) Reset

func (x *TestLocation) Reset()

func (*TestLocation) String

func (x *TestLocation) String() string

type TestMetadata

type TestMetadata struct {

	// The original test name.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Where the test is defined, e.g. the file name.
	// location.repo MUST be specified.
	Location *TestLocation `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"`
	// The issue tracker component associated with the test, if any.
	// Bugs related to the test may be filed here.
	BugComponent *BugComponent `protobuf:"bytes,3,opt,name=bug_component,json=bugComponent,proto3" json:"bug_component,omitempty"`
	// Identifies the schema of the JSON object in the properties field.
	// Use the fully-qualified name of the source protocol buffer.
	// eg. chromiumos.test.api.TestCaseInfo
	// ResultDB will *not* validate the properties field with respect to this
	// schema. Downstream systems may however use this field to inform how the
	// properties field is interpreted.
	PropertiesSchema string `protobuf:"bytes,4,opt,name=properties_schema,json=propertiesSchema,proto3" json:"properties_schema,omitempty"`
	// Arbitrary JSON object that contains structured, domain-specific properties
	// of the test.
	//
	// The serialized size must be <= 4096 bytes.
	//
	// If this field is specified, properties_schema must also be specified.
	Properties *structpb.Struct `protobuf:"bytes,5,opt,name=properties,proto3" json:"properties,omitempty"`
	// contains filtered or unexported fields
}

Information about a test.

func (*TestMetadata) Descriptor deprecated

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

Deprecated: Use TestMetadata.ProtoReflect.Descriptor instead.

func (*TestMetadata) GetBugComponent

func (x *TestMetadata) GetBugComponent() *BugComponent

func (*TestMetadata) GetLocation

func (x *TestMetadata) GetLocation() *TestLocation

func (*TestMetadata) GetName

func (x *TestMetadata) GetName() string

func (*TestMetadata) GetProperties

func (x *TestMetadata) GetProperties() *structpb.Struct

func (*TestMetadata) GetPropertiesSchema

func (x *TestMetadata) GetPropertiesSchema() string

func (*TestMetadata) ProtoMessage

func (*TestMetadata) ProtoMessage()

func (*TestMetadata) ProtoReflect

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

func (*TestMetadata) Reset

func (x *TestMetadata) Reset()

func (*TestMetadata) String

func (x *TestMetadata) String() string

type TestMetadataDetail

type TestMetadataDetail struct {

	// Can be used to refer to a test metadata, e.g. in ResultDB.QueryTestMetadata
	// RPC.
	// Format:
	// "projects/{PROJECT}/refs/{REF_HASH}/tests/{URL_ESCAPED_TEST_ID}".
	// where URL_ESCAPED_TEST_ID is test_id escaped with
	// https://golang.org/pkg/net/url/#PathEscape. See also https://aip.dev/122.
	//
	// Output only.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The LUCI project.
	Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
	// A unique identifier of a test in a LUCI project.
	// Refer to TestResult.test_id for details.
	TestId string `protobuf:"bytes,3,opt,name=test_id,json=testId,proto3" json:"test_id,omitempty"`
	// Hexadecimal encoded hash string of the source_ref.
	// A given source_ref always hashes to the same ref_hash value.
	RefHash string `protobuf:"bytes,12,opt,name=ref_hash,json=refHash,proto3" json:"ref_hash,omitempty"`
	// A reference in the source control system where the test metadata comes from.
	SourceRef *SourceRef `protobuf:"bytes,4,opt,name=source_ref,json=sourceRef,proto3" json:"source_ref,omitempty"`
	// Test metadata content.
	TestMetadata *TestMetadata `protobuf:"bytes,5,opt,name=testMetadata,proto3" json:"testMetadata,omitempty"`
	// contains filtered or unexported fields
}

Information about a test metadata.

func (*TestMetadataDetail) Descriptor deprecated

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

Deprecated: Use TestMetadataDetail.ProtoReflect.Descriptor instead.

func (*TestMetadataDetail) GetName

func (x *TestMetadataDetail) GetName() string

func (*TestMetadataDetail) GetProject

func (x *TestMetadataDetail) GetProject() string

func (*TestMetadataDetail) GetRefHash

func (x *TestMetadataDetail) GetRefHash() string

func (*TestMetadataDetail) GetSourceRef

func (x *TestMetadataDetail) GetSourceRef() *SourceRef

func (*TestMetadataDetail) GetTestId

func (x *TestMetadataDetail) GetTestId() string

func (*TestMetadataDetail) GetTestMetadata

func (x *TestMetadataDetail) GetTestMetadata() *TestMetadata

func (*TestMetadataDetail) ProtoMessage

func (*TestMetadataDetail) ProtoMessage()

func (*TestMetadataDetail) ProtoReflect

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

func (*TestMetadataDetail) Reset

func (x *TestMetadataDetail) Reset()

func (*TestMetadataDetail) String

func (x *TestMetadataDetail) String() string

type TestMetadataPredicate

type TestMetadataPredicate struct {

	// A test metadata must have the test id in this list.
	TestIds []string `protobuf:"bytes,1,rep,name=test_ids,json=testIds,proto3" json:"test_ids,omitempty"`
	// contains filtered or unexported fields
}

Represents a function TestMetadata -> bool. Empty message matches all test metadata.

func (*TestMetadataPredicate) Descriptor deprecated

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

Deprecated: Use TestMetadataPredicate.ProtoReflect.Descriptor instead.

func (*TestMetadataPredicate) GetTestIds

func (x *TestMetadataPredicate) GetTestIds() []string

func (*TestMetadataPredicate) ProtoMessage

func (*TestMetadataPredicate) ProtoMessage()

func (*TestMetadataPredicate) ProtoReflect

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

func (*TestMetadataPredicate) Reset

func (x *TestMetadataPredicate) Reset()

func (*TestMetadataPredicate) String

func (x *TestMetadataPredicate) String() string

type TestResult

type TestResult struct {

	// Can be used to refer to this test result, e.g. in ResultDB.GetTestResult
	// RPC.
	// Format:
	// "invocations/{INVOCATION_ID}/tests/{URL_ESCAPED_TEST_ID}/results/{RESULT_ID}".
	// where URL_ESCAPED_TEST_ID is test_id escaped with
	// https://golang.org/pkg/net/url/#PathEscape See also https://aip.dev/122.
	//
	// Output only.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Test id, a unique identifier of the test in a LUCI project.
	// Regex: ^[[::print::]]{1,512}$
	//
	// If two tests have a common test id prefix that ends with a
	// non-alphanumeric character, they considered a part of a group. Examples:
	// - "a/b/c"
	// - "a/b/d"
	// - "a/b/e:x"
	// - "a/b/e:y"
	// - "a/f"
	// This defines the following groups:
	//   - All items belong to one group because of the common prefix "a/"
	//   - Within that group, the first 4 form a sub-group because of the common
	//     prefix "a/b/"
	//   - Within that group, "a/b/e:x" and "a/b/e:y" form a sub-group because of
	//     the common prefix "a/b/e:".
	//
	// This can be used in UI.
	// LUCI does not interpret test ids in any other way.
	TestId string `protobuf:"bytes,2,opt,name=test_id,json=testId,proto3" json:"test_id,omitempty"`
	// Identifies a test result in a given invocation and test id.
	// Regex: ^[a-z0-9\-_.]{1,32}$
	ResultId string `protobuf:"bytes,3,opt,name=result_id,json=resultId,proto3" json:"result_id,omitempty"`
	// Description of one specific way of running the test,
	// e.g. a specific bucket, builder and a test suite.
	Variant *Variant `protobuf:"bytes,4,opt,name=variant,proto3" json:"variant,omitempty"`
	// Whether the result of test case execution is expected.
	// In a typical Chromium CL, 99%+ of test results are expected.
	// Users are typically interested only in the unexpected results.
	//
	// An unexpected result != test case failure. There are test cases that are
	// expected to fail/skip/crash. The test harness compares the actual status
	// with the expected one(s) and this field is the result of the comparison.
	Expected bool `protobuf:"varint,5,opt,name=expected,proto3" json:"expected,omitempty"`
	// Machine-readable status of the test case.
	// MUST NOT be STATUS_UNSPECIFIED.
	Status TestStatus `protobuf:"varint,6,opt,name=status,proto3,enum=luci.resultdb.v1.TestStatus" json:"status,omitempty"`
	// Human-readable explanation of the result, in HTML.
	// MUST be sanitized before rendering in the browser.
	//
	// The size of the summary must be equal to or smaller than 4096 bytes in
	// UTF-8.
	//
	// Supports artifact embedding using custom tags:
	//   - <text-artifact> renders contents of an artifact as text.
	//     Usage:
	//   - To embed result level artifact: <text-artifact
	//     artifact-id="<artifact_id>">
	//   - To embed invocation level artifact: <text-artifact
	//     artifact-id="<artifact_id>" inv-level>
	SummaryHtml string `protobuf:"bytes,7,opt,name=summary_html,json=summaryHtml,proto3" json:"summary_html,omitempty"`
	// The point in time when the test case started to execute.
	StartTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// Duration of the test case execution.
	// MUST be equal to or greater than 0.
	Duration *durationpb.Duration `protobuf:"bytes,9,opt,name=duration,proto3" json:"duration,omitempty"`
	// Metadata for this test result.
	// It might describe this particular execution or the test case.
	// A key can be repeated.
	Tags []*StringPair `protobuf:"bytes,10,rep,name=tags,proto3" json:"tags,omitempty"`
	// Hash of the variant.
	// hex(sha256(sorted(”.join('%s:%s\n' for k, v in variant.items())))).
	//
	// Output only.
	VariantHash string `protobuf:"bytes,12,opt,name=variant_hash,json=variantHash,proto3" json:"variant_hash,omitempty"`
	// Information about the test at the time of its execution.
	TestMetadata *TestMetadata `protobuf:"bytes,13,opt,name=test_metadata,json=testMetadata,proto3" json:"test_metadata,omitempty"`
	// Information about the test failure. Only present if the test failed.
	FailureReason *FailureReason `protobuf:"bytes,14,opt,name=failure_reason,json=failureReason,proto3" json:"failure_reason,omitempty"`
	// Arbitrary JSON object that contains structured, domain-specific properties
	// of the test result.
	//
	// The serialized size must be <= 8 KB.
	Properties *structpb.Struct `protobuf:"bytes,15,opt,name=properties,proto3" json:"properties,omitempty"`
	// Whether the test result has been masked so that it includes only metadata.
	// The metadata fields for a TestResult are:
	// * name
	// * test_id
	// * result_id
	// * expected
	// * status
	// * start_time
	// * duration
	// * variant_hash
	// * failure_reason.primary_error_message (truncated to 140 characters)
	// * skip_reason
	//
	// Output only.
	IsMasked bool `protobuf:"varint,16,opt,name=is_masked,json=isMasked,proto3" json:"is_masked,omitempty"`
	// Reasoning behind a test skip, in machine-readable form.
	// Used to assist downstream analyses, such as automatic bug-filing.
	// MUST not be set unless status is SKIP.
	SkipReason SkipReason `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

A result of a functional test case. Often a single test case is executed multiple times and has multiple results, a single test suite has multiple test cases, and the same test suite can be executed in different variants (OS, GPU, compile flags, etc).

This message does not specify the test id. It should be available in the message that embeds this message.

Next id: 17.

func (*TestResult) Descriptor deprecated

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

Deprecated: Use TestResult.ProtoReflect.Descriptor instead.

func (*TestResult) GetDuration

func (x *TestResult) GetDuration() *durationpb.Duration

func (*TestResult) GetExpected

func (x *TestResult) GetExpected() bool

func (*TestResult) GetFailureReason

func (x *TestResult) GetFailureReason() *FailureReason

func (*TestResult) GetIsMasked

func (x *TestResult) GetIsMasked() bool

func (*TestResult) GetName

func (x *TestResult) GetName() string

func (*TestResult) GetProperties

func (x *TestResult) GetProperties() *structpb.Struct

func (*TestResult) GetResultId

func (x *TestResult) GetResultId() string

func (*TestResult) GetSkipReason

func (x *TestResult) GetSkipReason() SkipReason

func (*TestResult) GetStartTime

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

func (*TestResult) GetStatus

func (x *TestResult) GetStatus() TestStatus

func (*TestResult) GetSummaryHtml

func (x *TestResult) GetSummaryHtml() string

func (*TestResult) GetTags

func (x *TestResult) GetTags() []*StringPair

func (*TestResult) GetTestId

func (x *TestResult) GetTestId() string

func (*TestResult) GetTestMetadata

func (x *TestResult) GetTestMetadata() *TestMetadata

func (*TestResult) GetVariant

func (x *TestResult) GetVariant() *Variant

func (*TestResult) GetVariantHash

func (x *TestResult) GetVariantHash() string

func (*TestResult) ProtoMessage

func (*TestResult) ProtoMessage()

func (*TestResult) ProtoReflect

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

func (*TestResult) Reset

func (x *TestResult) Reset()

func (*TestResult) String

func (x *TestResult) String() string

type TestResultBundle

type TestResultBundle struct {

	// Result of the test variant execution.
	Result *TestResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

Outcomes of an execution of the test variant.

func (*TestResultBundle) Descriptor deprecated

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

Deprecated: Use TestResultBundle.ProtoReflect.Descriptor instead.

func (*TestResultBundle) GetResult

func (x *TestResultBundle) GetResult() *TestResult

func (*TestResultBundle) ProtoMessage

func (*TestResultBundle) ProtoMessage()

func (*TestResultBundle) ProtoReflect

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

func (*TestResultBundle) Reset

func (x *TestResultBundle) Reset()

func (*TestResultBundle) String

func (x *TestResultBundle) String() string

type TestResultPredicate

type TestResultPredicate struct {

	// A test result must have a test id matching this regular expression
	// entirely, i.e. the expression is implicitly wrapped with ^ and $.
	TestIdRegexp string `protobuf:"bytes,1,opt,name=test_id_regexp,json=testIdRegexp,proto3" json:"test_id_regexp,omitempty"`
	// A test result must have a variant satisfying this predicate.
	Variant *VariantPredicate `protobuf:"bytes,2,opt,name=variant,proto3" json:"variant,omitempty"`
	// A test result must match this predicate based on TestResult.expected field.
	// Most clients would want to override this field because the default
	// typically causes a large response size.
	Expectancy TestResultPredicate_Expectancy `` /* 127-byte string literal not displayed */
	// If true, filter out exonerated test variants.
	// Mutually exclusive with Expectancy.ALL.
	//
	// If false, the filter is NOT applied.
	// That is, the test result may or may not be exonerated.
	ExcludeExonerated bool `protobuf:"varint,4,opt,name=exclude_exonerated,json=excludeExonerated,proto3" json:"exclude_exonerated,omitempty"`
	// contains filtered or unexported fields
}

Represents a function TestResult -> bool. Empty message matches all test results.

Most clients would want to set expected_results to VARIANTS_WITH_UNEXPECTED_RESULTS.

func (*TestResultPredicate) Descriptor deprecated

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

Deprecated: Use TestResultPredicate.ProtoReflect.Descriptor instead.

func (*TestResultPredicate) GetExcludeExonerated

func (x *TestResultPredicate) GetExcludeExonerated() bool

func (*TestResultPredicate) GetExpectancy

func (*TestResultPredicate) GetTestIdRegexp

func (x *TestResultPredicate) GetTestIdRegexp() string

func (*TestResultPredicate) GetVariant

func (x *TestResultPredicate) GetVariant() *VariantPredicate

func (*TestResultPredicate) ProtoMessage

func (*TestResultPredicate) ProtoMessage()

func (*TestResultPredicate) ProtoReflect

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

func (*TestResultPredicate) Reset

func (x *TestResultPredicate) Reset()

func (*TestResultPredicate) String

func (x *TestResultPredicate) String() string

type TestResultPredicate_Expectancy

type TestResultPredicate_Expectancy int32

Filters test results based on TestResult.expected field.

const (
	// All test results satisfy this.
	// WARNING: using this significantly increases response size and latency.
	TestResultPredicate_ALL TestResultPredicate_Expectancy = 0
	// A test result must belong to a test variant that has one or more
	// unexpected results. It can be used to fetch both unexpected and flakily
	// expected results.
	//
	// Note that the predicate is defined at the test variant level.
	// For example, if a test variant expects a PASS and has results
	// [FAIL, FAIL, PASS], then all results satisfy the predicate because
	// the variant satisfies the predicate.
	TestResultPredicate_VARIANTS_WITH_UNEXPECTED_RESULTS TestResultPredicate_Expectancy = 1
	// Similar to VARIANTS_WITH_UNEXPECTED_RESULTS, but the test variant
	// must not have any expected results.
	TestResultPredicate_VARIANTS_WITH_ONLY_UNEXPECTED_RESULTS TestResultPredicate_Expectancy = 2
)

func (TestResultPredicate_Expectancy) Descriptor

func (TestResultPredicate_Expectancy) Enum

func (TestResultPredicate_Expectancy) EnumDescriptor deprecated

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

Deprecated: Use TestResultPredicate_Expectancy.Descriptor instead.

func (TestResultPredicate_Expectancy) Number

func (TestResultPredicate_Expectancy) String

func (TestResultPredicate_Expectancy) Type

type TestStatus

type TestStatus int32

Machine-readable status of a test result.

const (
	// Status was not specified.
	// Not to be used in actual test results; serves as a default value for an
	// unset field.
	TestStatus_STATUS_UNSPECIFIED TestStatus = 0
	// The test case has passed.
	TestStatus_PASS TestStatus = 1
	// The test case has failed.
	// Suggests that the code under test is incorrect, but it is also possible
	// that the test is incorrect or it is a flake.
	TestStatus_FAIL TestStatus = 2
	// The test case has crashed during execution.
	// The outcome is inconclusive: the code under test might or might not be
	// correct, but the test+code is incorrect.
	TestStatus_CRASH TestStatus = 3
	// The test case has started, but was aborted before finishing.
	// A common reason: timeout.
	TestStatus_ABORT TestStatus = 4
	// The test case did not execute.
	// Examples:
	//   - The execution of the collection of test cases, such as a test
	//     binary, was aborted prematurely and execution of some test cases was
	//     skipped.
	//   - The test harness configuration specified that the test case MUST be
	//     skipped.
	TestStatus_SKIP TestStatus = 5
)

func (TestStatus) Descriptor

func (TestStatus) Descriptor() protoreflect.EnumDescriptor

func (TestStatus) Enum

func (x TestStatus) Enum() *TestStatus

func (TestStatus) EnumDescriptor deprecated

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

Deprecated: Use TestStatus.Descriptor instead.

func (TestStatus) Number

func (x TestStatus) Number() protoreflect.EnumNumber

func (TestStatus) String

func (x TestStatus) String() string

func (TestStatus) Type

type TestVariant

type TestVariant struct {

	// A unique identifier of the test in a LUCI project.
	// Regex: ^[[::print::]]{1,256}$
	//
	// Refer to TestResult.test_id for details.
	TestId string `protobuf:"bytes,1,opt,name=test_id,json=testId,proto3" json:"test_id,omitempty"`
	// Description of one specific way of running the test,
	// e.g. a specific bucket, builder and a test suite.
	Variant *Variant `protobuf:"bytes,2,opt,name=variant,proto3" json:"variant,omitempty"`
	// Hash of the variant.
	// hex(sha256(sorted(”.join('%s:%s\n' for k, v in variant.items())))).
	VariantHash string `protobuf:"bytes,3,opt,name=variant_hash,json=variantHash,proto3" json:"variant_hash,omitempty"`
	// Status of the test variant.
	Status TestVariantStatus `protobuf:"varint,4,opt,name=status,proto3,enum=luci.resultdb.v1.TestVariantStatus" json:"status,omitempty"`
	// Outcomes of the test variant.
	Results []*TestResultBundle `protobuf:"bytes,5,rep,name=results,proto3" json:"results,omitempty"`
	// Test exonerations if any test variant is exonerated.
	Exonerations []*TestExoneration `protobuf:"bytes,6,rep,name=exonerations,proto3" json:"exonerations,omitempty"`
	// Information about the test at the time of its execution.
	//
	// All test results of the same test variant should report the same test
	// metadata. This RPC relies on this rule and returns test metadata from
	// *arbitrary* result of the test variant.
	TestMetadata *TestMetadata `protobuf:"bytes,7,opt,name=test_metadata,json=testMetadata,proto3" json:"test_metadata,omitempty"`
	// Whether the
	//   - test metadata; or
	//   - the variant definition; or
	//   - both the test metadata and variant definition
	//
	// have been masked from the test variant.
	//
	// Output only.
	IsMasked bool `protobuf:"varint,8,opt,name=is_masked,json=isMasked,proto3" json:"is_masked,omitempty"`
	// The identity of the code sources tested. This ID can be used
	// to lookup of the actual sources in QueryTestVariantsResponse.sources.
	//
	// All test results of the same test variant should be attached to the same
	// sources (via their respective invocation(s)). This RPC relies upon this
	// and returns sources from an *arbitrary* result of the test variant.
	//
	// If the code sources tested are not available, this field is blank.
	SourcesId string `protobuf:"bytes,9,opt,name=sources_id,json=sourcesId,proto3" json:"sources_id,omitempty"`
	// contains filtered or unexported fields
}

Represents a matching test variant with its outcomes.

func (*TestVariant) Descriptor deprecated

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

Deprecated: Use TestVariant.ProtoReflect.Descriptor instead.

func (*TestVariant) GetExonerations

func (x *TestVariant) GetExonerations() []*TestExoneration

func (*TestVariant) GetIsMasked

func (x *TestVariant) GetIsMasked() bool

func (*TestVariant) GetResults

func (x *TestVariant) GetResults() []*TestResultBundle

func (*TestVariant) GetSourcesId

func (x *TestVariant) GetSourcesId() string

func (*TestVariant) GetStatus

func (x *TestVariant) GetStatus() TestVariantStatus

func (*TestVariant) GetTestId

func (x *TestVariant) GetTestId() string

func (*TestVariant) GetTestMetadata

func (x *TestVariant) GetTestMetadata() *TestMetadata

func (*TestVariant) GetVariant

func (x *TestVariant) GetVariant() *Variant

func (*TestVariant) GetVariantHash

func (x *TestVariant) GetVariantHash() string

func (*TestVariant) ProtoMessage

func (*TestVariant) ProtoMessage()

func (*TestVariant) ProtoReflect

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

func (*TestVariant) Reset

func (x *TestVariant) Reset()

func (*TestVariant) String

func (x *TestVariant) String() string

type TestVariantPredicate

type TestVariantPredicate struct {

	// A test variant must have this status.
	Status TestVariantStatus `protobuf:"varint,1,opt,name=status,proto3,enum=luci.resultdb.v1.TestVariantStatus" json:"status,omitempty"`
	// contains filtered or unexported fields
}

Represents a function TestVariant -> bool. Empty message matches all test variants.

func (*TestVariantPredicate) Descriptor deprecated

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

Deprecated: Use TestVariantPredicate.ProtoReflect.Descriptor instead.

func (*TestVariantPredicate) GetStatus

func (x *TestVariantPredicate) GetStatus() TestVariantStatus

func (*TestVariantPredicate) ProtoMessage

func (*TestVariantPredicate) ProtoMessage()

func (*TestVariantPredicate) ProtoReflect

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

func (*TestVariantPredicate) Reset

func (x *TestVariantPredicate) Reset()

func (*TestVariantPredicate) String

func (x *TestVariantPredicate) String() string

type TestVariantStatus

type TestVariantStatus int32

Status of a test variant.

const (
	// a test variant must not have this status.
	// This is only used when filtering variants.
	TestVariantStatus_TEST_VARIANT_STATUS_UNSPECIFIED TestVariantStatus = 0
	// The test variant has no exonerations, and all results are unexpected.
	TestVariantStatus_UNEXPECTED TestVariantStatus = 10
	// The test variant has no exonerations, and all results are unexpectedly skipped.
	TestVariantStatus_UNEXPECTEDLY_SKIPPED TestVariantStatus = 20
	// The test variant has no exonerations, and has both expected and unexpected
	// results.
	TestVariantStatus_FLAKY TestVariantStatus = 30
	// The test variant has one or more test exonerations.
	TestVariantStatus_EXONERATED TestVariantStatus = 40
	// A special value that matches any test variant which doesn't have the status
	// EXPECTED. This includes all the above statuses. It will never be present on
	// returned results, it's only for use in predicates.
	TestVariantStatus_UNEXPECTED_MASK TestVariantStatus = 45
	// The test variant has no exonerations, and all results are expected.
	TestVariantStatus_EXPECTED TestVariantStatus = 50
)

func (TestVariantStatus) Descriptor

func (TestVariantStatus) Enum

func (TestVariantStatus) EnumDescriptor deprecated

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

Deprecated: Use TestVariantStatus.Descriptor instead.

func (TestVariantStatus) Number

func (TestVariantStatus) String

func (x TestVariantStatus) String() string

func (TestVariantStatus) Type

type TimeRange

type TimeRange struct {

	// The oldest timestamp to include in the range.
	Earliest *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=earliest,proto3" json:"earliest,omitempty"`
	// Include only timestamps that are strictly older than this.
	Latest *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=latest,proto3" json:"latest,omitempty"`
	// contains filtered or unexported fields
}

A range of timestamps.

Currently unused.

func (*TimeRange) Descriptor deprecated

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

Deprecated: Use TimeRange.ProtoReflect.Descriptor instead.

func (*TimeRange) GetEarliest

func (x *TimeRange) GetEarliest() *timestamppb.Timestamp

func (*TimeRange) GetLatest

func (x *TimeRange) GetLatest() *timestamppb.Timestamp

func (*TimeRange) ProtoMessage

func (*TimeRange) ProtoMessage()

func (*TimeRange) ProtoReflect

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

func (*TimeRange) Reset

func (x *TimeRange) Reset()

func (*TimeRange) String

func (x *TimeRange) String() string

type UnimplementedRecorderServer

type UnimplementedRecorderServer struct {
}

UnimplementedRecorderServer can be embedded to have forward compatible implementations.

func (*UnimplementedRecorderServer) CreateInvocation

func (*UnimplementedRecorderServer) CreateTestExoneration

func (*UnimplementedRecorderServer) CreateTestResult

func (*UnimplementedRecorderServer) FinalizeInvocation

func (*UnimplementedRecorderServer) MarkInvocationSubmitted

func (*UnimplementedRecorderServer) UpdateIncludedInvocations

func (*UnimplementedRecorderServer) UpdateInvocation

type UnimplementedResultDBServer

type UnimplementedResultDBServer struct {
}

UnimplementedResultDBServer can be embedded to have forward compatible implementations.

func (*UnimplementedResultDBServer) GetArtifact

func (*UnimplementedResultDBServer) GetInvocation

func (*UnimplementedResultDBServer) GetTestExoneration

func (*UnimplementedResultDBServer) GetTestResult

func (*UnimplementedResultDBServer) ListArtifacts

func (*UnimplementedResultDBServer) ListTestResults

func (*UnimplementedResultDBServer) QueryArtifacts

func (*UnimplementedResultDBServer) QueryTestMetadata

func (*UnimplementedResultDBServer) QueryTestResults

func (*UnimplementedResultDBServer) QueryTestVariants

type UpdateIncludedInvocationsRequest

type UpdateIncludedInvocationsRequest struct {

	// Name of the invocation to add/remove inclusions to/from,
	// see Invocation.name.
	// For example, name of the buildbucket build invocation that should include
	// a swarming task invocation.
	IncludingInvocation string `protobuf:"bytes,1,opt,name=including_invocation,json=includingInvocation,proto3" json:"including_invocation,omitempty"`
	// Names of the invocations to include, see Invocation.name.
	// If any of these invocations are already included, they will be silently
	// ignored for idempotency.
	AddInvocations []string `protobuf:"bytes,2,rep,name=add_invocations,json=addInvocations,proto3" json:"add_invocations,omitempty"`
	// Deprecated: Removing invocations is no longer supported. Do not use.
	RemoveInvocations []string `protobuf:"bytes,3,rep,name=remove_invocations,json=removeInvocations,proto3" json:"remove_invocations,omitempty"`
	// contains filtered or unexported fields
}

A request message for UpdateIncludedInvocations RPC.

func (*UpdateIncludedInvocationsRequest) Descriptor deprecated

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

Deprecated: Use UpdateIncludedInvocationsRequest.ProtoReflect.Descriptor instead.

func (*UpdateIncludedInvocationsRequest) GetAddInvocations

func (x *UpdateIncludedInvocationsRequest) GetAddInvocations() []string

func (*UpdateIncludedInvocationsRequest) GetIncludingInvocation

func (x *UpdateIncludedInvocationsRequest) GetIncludingInvocation() string

func (*UpdateIncludedInvocationsRequest) GetRemoveInvocations

func (x *UpdateIncludedInvocationsRequest) GetRemoveInvocations() []string

func (*UpdateIncludedInvocationsRequest) ProtoMessage

func (*UpdateIncludedInvocationsRequest) ProtoMessage()

func (*UpdateIncludedInvocationsRequest) ProtoReflect

func (*UpdateIncludedInvocationsRequest) Reset

func (*UpdateIncludedInvocationsRequest) String

type UpdateInvocationRequest

type UpdateInvocationRequest struct {

	// Invocation to update.
	Invocation *Invocation `protobuf:"bytes,1,opt,name=invocation,proto3" json:"invocation,omitempty"`
	// The list of fields to be updated.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

A request message for UpdateInvocation RPC.

func (*UpdateInvocationRequest) Descriptor deprecated

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

Deprecated: Use UpdateInvocationRequest.ProtoReflect.Descriptor instead.

func (*UpdateInvocationRequest) GetInvocation

func (x *UpdateInvocationRequest) GetInvocation() *Invocation

func (*UpdateInvocationRequest) GetUpdateMask

func (x *UpdateInvocationRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateInvocationRequest) ProtoMessage

func (*UpdateInvocationRequest) ProtoMessage()

func (*UpdateInvocationRequest) ProtoReflect

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

func (*UpdateInvocationRequest) Reset

func (x *UpdateInvocationRequest) Reset()

func (*UpdateInvocationRequest) String

func (x *UpdateInvocationRequest) String() string

type Variant

type Variant struct {

	// The definition of the variant.
	// Key and values must be valid StringPair keys and values, see their
	// constraints.
	Def map[string]string `` /* 147-byte string literal not displayed */
	// contains filtered or unexported fields
}

A key-value map describing one variant of a test case.

The same test case can be executed in different ways, for example on different OS, GPUs, with different compile options or runtime flags. A variant definition captures one variant. A test case with a specific variant definition is called test variant.

Guidelines for variant definition design:

  • This rule guides what keys MUST be present in the definition. A single expected result of a given test variant is enough to consider it passing (potentially flakily). If it is important to differentiate across a certain dimension (e.g. whether web tests are executed with or without site per process isolation), then there MUST be a key that captures the dimension (e.g. a name from test_suites.pyl). Otherwise, a pass in one variant will hide a failure of another one.

  • This rule guides what keys MUST NOT be present in the definition. A change in the key-value set essentially resets the test result history. For example, if GN args are among variant key-value pairs, then adding a new GN arg changes the identity of the test variant and resets its history.

In Chromium, variant keys are:

func (*Variant) Descriptor deprecated

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

Deprecated: Use Variant.ProtoReflect.Descriptor instead.

func (*Variant) GetDef

func (x *Variant) GetDef() map[string]string

func (*Variant) ProtoMessage

func (*Variant) ProtoMessage()

func (*Variant) ProtoReflect

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

func (*Variant) Reset

func (x *Variant) Reset()

func (*Variant) String

func (x *Variant) String() string

type VariantPredicate

type VariantPredicate struct {

	// Types that are assignable to Predicate:
	//
	//	*VariantPredicate_Equals
	//	*VariantPredicate_Contains
	Predicate isVariantPredicate_Predicate `protobuf_oneof:"predicate"`
	// contains filtered or unexported fields
}

Represents a function Variant -> bool.

func (*VariantPredicate) Descriptor deprecated

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

Deprecated: Use VariantPredicate.ProtoReflect.Descriptor instead.

func (*VariantPredicate) GetContains

func (x *VariantPredicate) GetContains() *Variant

func (*VariantPredicate) GetEquals

func (x *VariantPredicate) GetEquals() *Variant

func (*VariantPredicate) GetPredicate

func (m *VariantPredicate) GetPredicate() isVariantPredicate_Predicate

func (*VariantPredicate) ProtoMessage

func (*VariantPredicate) ProtoMessage()

func (*VariantPredicate) ProtoReflect

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

func (*VariantPredicate) Reset

func (x *VariantPredicate) Reset()

func (*VariantPredicate) String

func (x *VariantPredicate) String() string

type VariantPredicate_Contains

type VariantPredicate_Contains struct {
	// A variant's key-value pairs must contain those in this one.
	Contains *Variant `protobuf:"bytes,2,opt,name=contains,proto3,oneof"`
}

type VariantPredicate_Equals

type VariantPredicate_Equals struct {
	// A variant must be equal this definition exactly.
	Equals *Variant `protobuf:"bytes,1,opt,name=equals,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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