Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_go_chromium_org_luci_resultdb_proto_bq_artifact_row_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_resultdb_proto_bq_common_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_resultdb_proto_bq_test_result_row_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type InvocationRecord

type InvocationRecord struct {

	// The ID of the invocation.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Tags represents Invocation-level string key-value pairs.
	// A key can be repeated.
	Tags []*v1.StringPair `protobuf:"bytes,2,rep,name=tags,proto3" json:"tags,omitempty"`
	// The LUCI Realm the invocation exists under.
	Realm string `protobuf:"bytes,3,opt,name=realm,proto3" json:"realm,omitempty"`
	// contains filtered or unexported fields
}

func (*InvocationRecord) Descriptor

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

    Deprecated: Use InvocationRecord.ProtoReflect.Descriptor instead.

    func (*InvocationRecord) GetId

    func (x *InvocationRecord) GetId() string

    func (*InvocationRecord) GetRealm

    func (x *InvocationRecord) GetRealm() string

    func (*InvocationRecord) GetTags

    func (x *InvocationRecord) GetTags() []*v1.StringPair

    func (*InvocationRecord) ProtoMessage

    func (*InvocationRecord) ProtoMessage()

    func (*InvocationRecord) ProtoReflect

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

    func (*InvocationRecord) Reset

    func (x *InvocationRecord) Reset()

    func (*InvocationRecord) String

    func (x *InvocationRecord) String() string

    type TestResultRow

    type TestResultRow struct {
    
    	// Exported contains info of the exported invocation.
    	//
    	// Note: it's possible that this invocation is not the result's
    	// immediate parent invocation, but the including invocation.
    	// For example if the BigQuery table is for all test results of Chromium CI
    	// builds, then the exported invocation is for a CI build, which includes
    	// multiple invocations for swarming tasks within that build.
    	Exported *InvocationRecord `protobuf:"bytes,1,opt,name=exported,proto3" json:"exported,omitempty"`
    	// Parent contains info of the result's immediate parent invocation.
    	Parent *InvocationRecord `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty"`
    	// Name of the test result.
    	// Format:
    	// "invocations/{PARENT.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.
    	Name string `protobuf:"bytes,17,opt,name=name,proto3" json:"name,omitempty"`
    	// Is a unique identifier of the 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"`
    	// Identifies a test result in a given invocation and test id.
    	ResultId string `protobuf:"bytes,4,opt,name=result_id,json=resultId,proto3" json:"result_id,omitempty"`
    	// Describes one specific way of running the test,
    	// e.g. a specific bucket, builder and a test suite.
    	Variant []*v1.StringPair `protobuf:"bytes,5,rep,name=variant,proto3" json:"variant,omitempty"`
    	// A hex-encoded sha256 of concatenated "<key>:<value>\n" variant pairs.
    	VariantHash string `protobuf:"bytes,6,opt,name=variant_hash,json=variantHash,proto3" json:"variant_hash,omitempty"`
    	// Expected is a flag indicating whether the result of test case execution is expected.
    	// Refer to TestResult.Expected for details.
    	Expected bool `protobuf:"varint,7,opt,name=expected,proto3" json:"expected,omitempty"`
    	// Status of the test result.
    	// See TestStatus for possible values.
    	Status string `protobuf:"bytes,8,opt,name=status,proto3" json:"status,omitempty"`
    	// A human-readable explanation of the result, in HTML.
    	SummaryHtml string `protobuf:"bytes,9,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,10,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
    	// Duration of the test case execution in seconds.
    	Duration *durationpb.Duration `protobuf:"bytes,11,opt,name=duration,proto3" json:"duration,omitempty"`
    	// Tags contains metadata for this test result.
    	// It might describe this particular execution or the test case.
    	Tags []*v1.StringPair `protobuf:"bytes,12,rep,name=tags,proto3" json:"tags,omitempty"`
    	// If the failures of the test variant are exonerated.
    	// Note: the exoneration is at the test variant level, not result level.
    	Exonerated bool `protobuf:"varint,13,opt,name=exonerated,proto3" json:"exonerated,omitempty"`
    	// Partition_time is used to partition the table.
    	// It is the time when exported invocation was created in Spanner.
    	// Note: it is NOT the time when the row is inserted into BigQuery table.
    	// https://cloud.google.com/bigquery/docs/creating-column-partitions#limitations
    	// mentions "The partitioning column must be a top-level field."
    	// So we keep this column here instead of adding the CreateTime to Invocation.
    	PartitionTime *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=partition_time,json=partitionTime,proto3" json:"partition_time,omitempty"`
    	// Metadata of the test case,
    	// e.g. the original test name and test location.
    	TestMetadata *v1.TestMetadata `protobuf:"bytes,16,opt,name=test_metadata,json=testMetadata,proto3" json:"test_metadata,omitempty"`
    	// contains filtered or unexported fields
    }

      TestResultRow represents a row in a BigQuery table for result of a functional test case. Next id: 18.

      func (*TestResultRow) Descriptor

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

        Deprecated: Use TestResultRow.ProtoReflect.Descriptor instead.

        func (*TestResultRow) GetDuration

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

        func (*TestResultRow) GetExonerated

        func (x *TestResultRow) GetExonerated() bool

        func (*TestResultRow) GetExpected

        func (x *TestResultRow) GetExpected() bool

        func (*TestResultRow) GetExported

        func (x *TestResultRow) GetExported() *InvocationRecord

        func (*TestResultRow) GetName

        func (x *TestResultRow) GetName() string

        func (*TestResultRow) GetParent

        func (x *TestResultRow) GetParent() *InvocationRecord

        func (*TestResultRow) GetPartitionTime

        func (x *TestResultRow) GetPartitionTime() *timestamppb.Timestamp

        func (*TestResultRow) GetResultId

        func (x *TestResultRow) GetResultId() string

        func (*TestResultRow) GetStartTime

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

        func (*TestResultRow) GetStatus

        func (x *TestResultRow) GetStatus() string

        func (*TestResultRow) GetSummaryHtml

        func (x *TestResultRow) GetSummaryHtml() string

        func (*TestResultRow) GetTags

        func (x *TestResultRow) GetTags() []*v1.StringPair

        func (*TestResultRow) GetTestId

        func (x *TestResultRow) GetTestId() string

        func (*TestResultRow) GetTestMetadata

        func (x *TestResultRow) GetTestMetadata() *v1.TestMetadata

        func (*TestResultRow) GetVariant

        func (x *TestResultRow) GetVariant() []*v1.StringPair

        func (*TestResultRow) GetVariantHash

        func (x *TestResultRow) GetVariantHash() string

        func (*TestResultRow) ProtoMessage

        func (*TestResultRow) ProtoMessage()

        func (*TestResultRow) ProtoReflect

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

        func (*TestResultRow) Reset

        func (x *TestResultRow) Reset()

        func (*TestResultRow) String

        func (x *TestResultRow) String() string

        type TextArtifactRow

        type TextArtifactRow struct {
        
        	// Exported contains info of the exported invocation.
        	//
        	// Note: it's possible that this invocation is not the artifact's
        	// immediate parent invocation, but the including invocation.
        	// For example if the BigQuery table is for all artifacts of Chromium CI
        	// builds, then the exported invocation is for a CI build, which includes
        	// multiple invocations for swarming tasks within that build.
        	Exported *InvocationRecord `protobuf:"bytes,1,opt,name=exported,proto3" json:"exported,omitempty"`
        	// Parent contains info of the artifact's immediate parent invocation.
        	Parent *InvocationRecord `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty"`
        	// Test_id and result_id can identify the test result in the invocation
        	// this artifact belongs to.
        	// They will be empty if the artifact is an invocation-level artifact.
        	TestId   string `protobuf:"bytes,3,opt,name=test_id,json=testId,proto3" json:"test_id,omitempty"`
        	ResultId string `protobuf:"bytes,4,opt,name=result_id,json=resultId,proto3" json:"result_id,omitempty"`
        	// Id of the artifact.
        	// Regex: ^[[:word:]]([[:print:]]{0,254}[[:word:]])?$
        	//
        	// Refer to luci.resultdb.v1.Artifact.artifact_id for details.
        	ArtifactId string `protobuf:"bytes,5,opt,name=artifact_id,json=artifactId,proto3" json:"artifact_id,omitempty"`
        	// Id of the artifact shard.
        	// Row size limit is 5MB according to
        	// https://cloud.google.com/bigquery/quotas#streaming_inserts
        	// If the size of the artifact content is larger than that, the data will be
        	// sharded at the nearest previous line break ("\r\n" first, if not exist
        	// then "\n" or "\r").
        	// Shard_id is monotonically increasing and starts at 0.
        	ShardId int32 `protobuf:"varint,6,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"`
        	// Artifact shard content.
        	// Encoded as UTF-8. Invalid characters are replaced with the replacement
        	// character (U+FFFD).
        	Content string `protobuf:"bytes,7,opt,name=content,proto3" json:"content,omitempty"`
        	// Partition_time is used to partition the table.
        	// It is the time when exported invocation was created in Spanner.
        	// Note: it is NOT the time when the row is inserted into BigQuery table.
        	// https://cloud.google.com/bigquery/docs/creating-column-partitions#limitations
        	// mentions "The partitioning column must be a top-level field."
        	// So we keep this column here instead of adding the CreateTime to Invocation.
        	PartitionTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=partition_time,json=partitionTime,proto3" json:"partition_time,omitempty"`
        	// contains filtered or unexported fields
        }

          TextArtifactRow represents a row in a BigQuery table for a text artifact.

          func (*TextArtifactRow) Descriptor

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

            Deprecated: Use TextArtifactRow.ProtoReflect.Descriptor instead.

            func (*TextArtifactRow) GetArtifactId

            func (x *TextArtifactRow) GetArtifactId() string

            func (*TextArtifactRow) GetContent

            func (x *TextArtifactRow) GetContent() string

            func (*TextArtifactRow) GetExported

            func (x *TextArtifactRow) GetExported() *InvocationRecord

            func (*TextArtifactRow) GetParent

            func (x *TextArtifactRow) GetParent() *InvocationRecord

            func (*TextArtifactRow) GetPartitionTime

            func (x *TextArtifactRow) GetPartitionTime() *timestamppb.Timestamp

            func (*TextArtifactRow) GetResultId

            func (x *TextArtifactRow) GetResultId() string

            func (*TextArtifactRow) GetShardId

            func (x *TextArtifactRow) GetShardId() int32

            func (*TextArtifactRow) GetTestId

            func (x *TextArtifactRow) GetTestId() string

            func (*TextArtifactRow) ProtoMessage

            func (*TextArtifactRow) ProtoMessage()

            func (*TextArtifactRow) ProtoReflect

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

            func (*TextArtifactRow) Reset

            func (x *TextArtifactRow) Reset()

            func (*TextArtifactRow) String

            func (x *TextArtifactRow) String() string