luci: go.chromium.org/luci/rts/presubmit/eval/proto Index | Files

package evalpb

import "go.chromium.org/luci/rts/presubmit/eval/proto"

Index

Package Files

eval.pb.go gen.go

Variables

var File_go_chromium_org_luci_rts_presubmit_eval_proto_eval_proto protoreflect.FileDescriptor

type GerritChange Uses

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 Uses

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

Deprecated: Use GerritChange.ProtoReflect.Descriptor instead.

func (*GerritChange) GetHost Uses

func (x *GerritChange) GetHost() string

func (*GerritChange) GetNumber Uses

func (x *GerritChange) GetNumber() int64

func (*GerritChange) GetProject Uses

func (x *GerritChange) GetProject() string

func (*GerritChange) ProtoMessage Uses

func (*GerritChange) ProtoMessage()

func (*GerritChange) ProtoReflect Uses

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

func (*GerritChange) Reset Uses

func (x *GerritChange) Reset()

func (*GerritChange) String Uses

func (x *GerritChange) String() string

type GerritPatchset Uses

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 Uses

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

Deprecated: Use GerritPatchset.ProtoReflect.Descriptor instead.

func (*GerritPatchset) GetChange Uses

func (x *GerritPatchset) GetChange() *GerritChange

func (*GerritPatchset) GetChangedFiles Uses

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

func (*GerritPatchset) GetPatchset Uses

func (x *GerritPatchset) GetPatchset() int64

func (*GerritPatchset) ProtoMessage Uses

func (*GerritPatchset) ProtoMessage()

func (*GerritPatchset) ProtoReflect Uses

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

func (*GerritPatchset) Reset Uses

func (x *GerritPatchset) Reset()

func (*GerritPatchset) String Uses

func (x *GerritPatchset) String() string

type Record Uses

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.

func (*Record) Descriptor Uses

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

Deprecated: Use Record.ProtoReflect.Descriptor instead.

func (*Record) GetData Uses

func (m *Record) GetData() isRecord_Data

func (*Record) GetRejectionFragment Uses

func (x *Record) GetRejectionFragment() *RejectionFragment

func (*Record) GetTestDuration Uses

func (x *Record) GetTestDuration() *TestDuration

func (*Record) ProtoMessage Uses

func (*Record) ProtoMessage()

func (*Record) ProtoReflect Uses

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

func (*Record) Reset Uses

func (x *Record) Reset()

func (*Record) String Uses

func (x *Record) String() string

type Record_RejectionFragment Uses

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 Uses

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

type Rejection Uses

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 Uses

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

Deprecated: Use Rejection.ProtoReflect.Descriptor instead.

func (*Rejection) GetFailedTestVariants Uses

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

func (*Rejection) GetPatchsets Uses

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

func (*Rejection) GetTimestamp Uses

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

func (*Rejection) ProtoMessage Uses

func (*Rejection) ProtoMessage()

func (*Rejection) ProtoReflect Uses

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

func (*Rejection) Reset Uses

func (x *Rejection) Reset()

func (*Rejection) String Uses

func (x *Rejection) String() string

type RejectionFragment Uses

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.

func (*RejectionFragment) Descriptor Uses

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

Deprecated: Use RejectionFragment.ProtoReflect.Descriptor instead.

func (*RejectionFragment) GetRejection Uses

func (x *RejectionFragment) GetRejection() *Rejection

func (*RejectionFragment) GetTerminal Uses

func (x *RejectionFragment) GetTerminal() bool

func (*RejectionFragment) ProtoMessage Uses

func (*RejectionFragment) ProtoMessage()

func (*RejectionFragment) ProtoReflect Uses

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

func (*RejectionFragment) Reset Uses

func (x *RejectionFragment) Reset()

func (*RejectionFragment) String Uses

func (x *RejectionFragment) String() string

type SourceFile Uses

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 Uses

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

Deprecated: Use SourceFile.ProtoReflect.Descriptor instead.

func (*SourceFile) GetPath Uses

func (x *SourceFile) GetPath() string

func (*SourceFile) GetRepo Uses

func (x *SourceFile) GetRepo() string

func (*SourceFile) ProtoMessage Uses

func (*SourceFile) ProtoMessage()

func (*SourceFile) ProtoReflect Uses

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

func (*SourceFile) Reset Uses

func (x *SourceFile) Reset()

func (*SourceFile) String Uses

func (x *SourceFile) String() string

type TestDuration Uses

type TestDuration struct {

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

How long a test took.

func (*TestDuration) Descriptor Uses

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

Deprecated: Use TestDuration.ProtoReflect.Descriptor instead.

func (*TestDuration) GetDuration Uses

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

func (*TestDuration) GetPatchsets Uses

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

func (*TestDuration) GetTestVariant Uses

func (x *TestDuration) GetTestVariant() *TestVariant

func (*TestDuration) ProtoMessage Uses

func (*TestDuration) ProtoMessage()

func (*TestDuration) ProtoReflect Uses

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

func (*TestDuration) Reset Uses

func (x *TestDuration) Reset()

func (*TestDuration) String Uses

func (x *TestDuration) String() string

type TestVariant Uses

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.
    // For Chromium, this is a ResultDB test variant.
    Variant map[string]string `protobuf:"bytes,2,rep,name=variant,proto3" json:"variant,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    // 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 Uses

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

Deprecated: Use TestVariant.ProtoReflect.Descriptor instead.

func (*TestVariant) GetFileName Uses

func (x *TestVariant) GetFileName() string

func (*TestVariant) GetId Uses

func (x *TestVariant) GetId() string

func (*TestVariant) GetVariant Uses

func (x *TestVariant) GetVariant() map[string]string

func (*TestVariant) ProtoMessage Uses

func (*TestVariant) ProtoMessage()

func (*TestVariant) ProtoReflect Uses

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

func (*TestVariant) Reset Uses

func (x *TestVariant) Reset()

func (*TestVariant) String Uses

func (x *TestVariant) String() string

Package evalpb imports 6 packages (graph) and is imported by 2 packages. Updated 2020-11-27. Refresh now. Tools for package owners.