luci: go.chromium.org/luci/resultdb/proto/type Index | Files

package typepb

import "go.chromium.org/luci/resultdb/proto/type"

Index

Package Files

common.pb.go gen.go

type StringPair Uses

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"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

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

func (*StringPair) Descriptor Uses

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

func (*StringPair) GetKey Uses

func (m *StringPair) GetKey() string

func (*StringPair) GetValue Uses

func (m *StringPair) GetValue() string

func (*StringPair) ProtoMessage Uses

func (*StringPair) ProtoMessage()

func (*StringPair) Reset Uses

func (m *StringPair) Reset()

func (*StringPair) String Uses

func (m *StringPair) String() string

func (*StringPair) XXX_DiscardUnknown Uses

func (m *StringPair) XXX_DiscardUnknown()

func (*StringPair) XXX_Marshal Uses

func (m *StringPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StringPair) XXX_Merge Uses

func (m *StringPair) XXX_Merge(src proto.Message)

func (*StringPair) XXX_Size Uses

func (m *StringPair) XXX_Size() int

func (*StringPair) XXX_Unmarshal Uses

func (m *StringPair) XXX_Unmarshal(b []byte) error

type Variant Uses

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 `protobuf:"bytes,1,rep,name=def,proto3" json:"def,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    XXX_NoUnkeyedLiteral struct{}          `json:"-"`
    XXX_unrecognized     []byte            `json:"-"`
    XXX_sizecache        int32             `json:"-"`
}

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, runtime flags or even with different values of the test parameter (for parameterized tests). 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, typical variant keys are: - bucket: the LUCI bucket, e.g. "ci" - builder: the LUCI builder, e.g. "linux-rel" - test_suite: a name from

https://cs.chromium.org/chromium/src/testing/buildbot/test_suites.pyl

func (*Variant) Descriptor Uses

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

func (*Variant) GetDef Uses

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

func (*Variant) ProtoMessage Uses

func (*Variant) ProtoMessage()

func (*Variant) Reset Uses

func (m *Variant) Reset()

func (*Variant) String Uses

func (m *Variant) String() string

func (*Variant) XXX_DiscardUnknown Uses

func (m *Variant) XXX_DiscardUnknown()

func (*Variant) XXX_Marshal Uses

func (m *Variant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Variant) XXX_Merge Uses

func (m *Variant) XXX_Merge(src proto.Message)

func (*Variant) XXX_Size Uses

func (m *Variant) XXX_Size() int

func (*Variant) XXX_Unmarshal Uses

func (m *Variant) XXX_Unmarshal(b []byte) error

Package typepb imports 3 packages (graph) and is imported by 7 packages. Updated 2019-12-14. Refresh now. Tools for package owners.