Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_go_chromium_org_luci_rts_presubmit_eval_proto_eval_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type GerritChange

type GerritChange struct {

	// Gerrit host, e.g. "chromium-review.googlesource.com".
	Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	// Gerrit project, e.g. "chromium/src".
	// It is required.
	Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
	// Change number,
	// e.g. 123 for https://chromium.googlesource.com/c/123
	Number int64 `protobuf:"varint,3,opt,name=number,proto3" json:"number,omitempty"`
	// contains filtered or unexported fields
}

A Gerrit CL.

func (*GerritChange) Descriptor

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

Deprecated: Use GerritChange.ProtoReflect.Descriptor instead.

func (*GerritChange) GetHost

func (x *GerritChange) GetHost() string

func (*GerritChange) GetNumber

func (x *GerritChange) GetNumber() 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 GerritPatchset

type GerritPatchset struct {

	// The CL.
	Change *GerritChange `protobuf:"bytes,1,opt,name=change,proto3" json:"change,omitempty"`
	// The patchset number.
	Patchset int64 `protobuf:"varint,2,opt,name=patchset,proto3" json:"patchset,omitempty"`
	// The files changed in the patchset.
	ChangedFiles []*SourceFile `protobuf:"bytes,3,rep,name=changed_files,json=changedFiles,proto3" json:"changed_files,omitempty"`
	// contains filtered or unexported fields
}

A Gerrit patchset.

func (*GerritPatchset) Descriptor

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

Deprecated: Use GerritPatchset.ProtoReflect.Descriptor instead.

func (*GerritPatchset) GetChange

func (x *GerritPatchset) GetChange() *GerritChange

func (*GerritPatchset) GetChangedFiles

func (x *GerritPatchset) GetChangedFiles() []*SourceFile

func (*GerritPatchset) GetPatchset

func (x *GerritPatchset) GetPatchset() int64

func (*GerritPatchset) ProtoMessage

func (*GerritPatchset) ProtoMessage()

func (*GerritPatchset) ProtoReflect

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

func (*GerritPatchset) Reset

func (x *GerritPatchset) Reset()

func (*GerritPatchset) String

func (x *GerritPatchset) String() string

type Record

type Record struct {

	// Types that are assignable to Data:
	//	*Record_RejectionFragment
	//	*Record_TestDuration
	Data isRecord_Data `protobuf_oneof:"data"`
	// contains filtered or unexported fields
}

One historical record. Used for streaming messages above. TODO(nodir): remove this message.

func (*Record) Descriptor

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

Deprecated: Use Record.ProtoReflect.Descriptor instead.

func (*Record) GetData

func (m *Record) GetData() isRecord_Data

func (*Record) GetRejectionFragment

func (x *Record) GetRejectionFragment() *RejectionFragment

func (*Record) GetTestDuration

func (x *Record) GetTestDuration() *TestDuration

func (*Record) ProtoMessage

func (*Record) ProtoMessage()

func (*Record) ProtoReflect

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

func (*Record) Reset

func (x *Record) Reset()

func (*Record) String

func (x *Record) String() string

type Record_RejectionFragment

type Record_RejectionFragment struct {
	// A code change rejection due to test failures.
	RejectionFragment *RejectionFragment `protobuf:"bytes,1,opt,name=rejection_fragment,json=rejectionFragment,proto3,oneof"`
}

type Record_TestDuration

type Record_TestDuration struct {
	// A record of test duration.
	TestDuration *TestDuration `protobuf:"bytes,2,opt,name=test_duration,json=testDuration,proto3,oneof"`
}

type Rejection

type Rejection struct {

	// The rejected patchsets.
	Patchsets []*GerritPatchset `protobuf:"bytes,1,rep,name=patchsets,proto3" json:"patchsets,omitempty"`
	// When the code change was rejected.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// List of test variants that caused the rejection.
	FailedTestVariants []*TestVariant `protobuf:"bytes,3,rep,name=failed_test_variants,json=failedTestVariants,proto3" json:"failed_test_variants,omitempty"`
	// contains filtered or unexported fields
}

A rejection of a code change due to test failures.

func (*Rejection) Descriptor

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

Deprecated: Use Rejection.ProtoReflect.Descriptor instead.

func (*Rejection) GetFailedTestVariants

func (x *Rejection) GetFailedTestVariants() []*TestVariant

func (*Rejection) GetPatchsets

func (x *Rejection) GetPatchsets() []*GerritPatchset

func (*Rejection) GetTimestamp

func (x *Rejection) GetTimestamp() *timestamppb.Timestamp

func (*Rejection) ProtoMessage

func (*Rejection) ProtoMessage()

func (*Rejection) ProtoReflect

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

func (*Rejection) Reset

func (x *Rejection) Reset()

func (*Rejection) String

func (x *Rejection) String() string

type RejectionFragment

type RejectionFragment struct {

	// Rejection data in this fragment.
	// May be unset, e.g. if this is a terminal fragment.
	Rejection *Rejection `protobuf:"bytes,1,opt,name=rejection,proto3" json:"rejection,omitempty"`
	// True if this is the last fragment of the Rejection in a sequence of
	// fragments. All fragments of the same rejection must be contiguous.
	//
	// Note that the following sequence of Records is valid:
	//  fragment for rejection R1
	//  test duration
	//  fragment for rejection R1, terminal
	//  fragment for rejection R2
	// Here there is a test duration record between rejection fragments.
	Terminal bool `protobuf:"varint,2,opt,name=terminal,proto3" json:"terminal,omitempty"`
	// contains filtered or unexported fields
}

One part of a split Rejection message.

Multiple fragments are combined with proto.Merge() called on their "rejection" fields. Note that repeated fields are concatenated.

TODO(nodir): remove this message.

func (*RejectionFragment) Descriptor

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

Deprecated: Use RejectionFragment.ProtoReflect.Descriptor instead.

func (*RejectionFragment) GetRejection

func (x *RejectionFragment) GetRejection() *Rejection

func (*RejectionFragment) GetTerminal

func (x *RejectionFragment) GetTerminal() bool

func (*RejectionFragment) ProtoMessage

func (*RejectionFragment) ProtoMessage()

func (*RejectionFragment) ProtoReflect

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

func (*RejectionFragment) Reset

func (x *RejectionFragment) Reset()

func (*RejectionFragment) String

func (x *RejectionFragment) String() string

type SourceFile

type SourceFile struct {

	// The repository identifier.
	// For googlesource.com repositories, it is a canonical URL, e.g.
	// https://chromium.googlesource.com/chromium/src
	Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
	// The file relative to the repo root. Starts with "//".
	Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

Identifies a source file.

func (*SourceFile) Descriptor

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

Deprecated: Use SourceFile.ProtoReflect.Descriptor instead.

func (*SourceFile) GetPath

func (x *SourceFile) GetPath() string

func (*SourceFile) GetRepo

func (x *SourceFile) GetRepo() string

func (*SourceFile) ProtoMessage

func (*SourceFile) ProtoMessage()

func (*SourceFile) ProtoReflect

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

func (*SourceFile) Reset

func (x *SourceFile) Reset()

func (*SourceFile) String

func (x *SourceFile) String() string

type TestDuration

type TestDuration struct {

	// The test variant that was measured.
	TestVariant *TestVariant `protobuf:"bytes,1,opt,name=test_variant,json=testVariant,proto3" json:"test_variant,omitempty"`
	// How long test execution took.
	Duration *durationpb.Duration `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"`
	// contains filtered or unexported fields
}

How long a test took.

func (*TestDuration) Descriptor

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

Deprecated: Use TestDuration.ProtoReflect.Descriptor instead.

func (*TestDuration) GetDuration

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

func (*TestDuration) GetTestVariant

func (x *TestDuration) GetTestVariant() *TestVariant

func (*TestDuration) ProtoMessage

func (*TestDuration) ProtoMessage()

func (*TestDuration) ProtoReflect

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

func (*TestDuration) Reset

func (x *TestDuration) Reset()

func (*TestDuration) String

func (x *TestDuration) String() string

type TestDurationRecord

type TestDurationRecord struct {

	// The patchset set that observed the test durations.
	Patchsets []*GerritPatchset `protobuf:"bytes,1,rep,name=patchsets,proto3" json:"patchsets,omitempty"`
	// A sample of test durations from results of the patchsets.
	TestDurations []*TestDuration `protobuf:"bytes,2,rep,name=test_durations,json=testDurations,proto3" json:"test_durations,omitempty"`
	// contains filtered or unexported fields
}

Code changes and a sample of test runs with their durations.

Normally these records are in a directory where .jsonl.gz files are GZIP-compressed JSON Lines files, where each entry is a protojson-encoded TestDurationRecord message.

func (*TestDurationRecord) Descriptor

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

Deprecated: Use TestDurationRecord.ProtoReflect.Descriptor instead.

func (*TestDurationRecord) GetPatchsets

func (x *TestDurationRecord) GetPatchsets() []*GerritPatchset

func (*TestDurationRecord) GetTestDurations

func (x *TestDurationRecord) GetTestDurations() []*TestDuration

func (*TestDurationRecord) ProtoMessage

func (*TestDurationRecord) ProtoMessage()

func (*TestDurationRecord) ProtoReflect

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

func (*TestDurationRecord) Reset

func (x *TestDurationRecord) Reset()

func (*TestDurationRecord) String

func (x *TestDurationRecord) String() string

type TestVariant

type TestVariant struct {

	// Test identifier.
	// For Chromium, a ResultDB TestID.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// One particular way to run this test, expressed as domain-specific key-value
	// pairs. Each element has format "<key>:<value>".
	// For Chromium, this is a ResultDB test variant.
	//
	// The keys must be unique. This is not a map for conveniency of extracting
	// from BigQuery which cannot convert tabular data to JSON objects with
	// dynamic keys.
	Variant []string `protobuf:"bytes,2,rep,name=variant,proto3" json:"variant,omitempty"`
	// Path of the file where the test is defined.
	FileName string `protobuf:"bytes,3,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
	// contains filtered or unexported fields
}

A single way to run a single test. For example, a particular test case on Windows 10.

func (*TestVariant) Descriptor

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

Deprecated: Use TestVariant.ProtoReflect.Descriptor instead.

func (*TestVariant) GetFileName

func (x *TestVariant) GetFileName() string

func (*TestVariant) GetId

func (x *TestVariant) GetId() string

func (*TestVariant) GetVariant

func (x *TestVariant) GetVariant() []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

Source Files