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

package sinkpb

import "go.chromium.org/luci/resultdb/proto/sink/v1"

Index

Package Files

gen.go sink.pb.go test_result.pb.go

Variables

var TestResultFile_Format_name = map[int32]string{
    0:  "LUCI",
    1:  "CHROMIUM_JSON_TEST_RESULTS",
    2:  "GOOGLE_TEST",
}
var TestResultFile_Format_value = map[string]int32{
    "LUCI":                       0,
    "CHROMIUM_JSON_TEST_RESULTS": 1,
    "GOOGLE_TEST":                2,
}
var TestStatus_name = map[int32]string{
    0:  "STATUS_UNSPECIFIED",
    1:  "PASS",
    2:  "FAIL",
    3:  "CRASH",
    4:  "ABORT",
    5:  "SKIP",
}
var TestStatus_value = map[string]int32{
    "STATUS_UNSPECIFIED": 0,
    "PASS":               1,
    "FAIL":               2,
    "CRASH":              3,
    "ABORT":              4,
    "SKIP":               5,
}

type Artifact Uses

type Artifact struct {
    // Types that are valid to be assigned to Body:
    //	*Artifact_FilePath
    //	*Artifact_Contents
    Body isArtifact_Body `protobuf_oneof:"body"`
    // Equivalent of luci.resultpb.Artifact.content_type.
    ContentType          string   `protobuf:"bytes,3,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A local equivalent of luci.resultdb.Artifact message in ../../rpc/v1/test_result.proto. See its comments for details. Does not have a name because the latter is avialable as a map key in TestResult.input_artifacts and TestResult.output_artifacts.

func (*Artifact) Descriptor Uses

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

func (*Artifact) GetBody Uses

func (m *Artifact) GetBody() isArtifact_Body

func (*Artifact) GetContentType Uses

func (m *Artifact) GetContentType() string

func (*Artifact) GetContents Uses

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

func (*Artifact) GetFilePath Uses

func (m *Artifact) GetFilePath() string

func (*Artifact) ProtoMessage Uses

func (*Artifact) ProtoMessage()

func (*Artifact) Reset Uses

func (m *Artifact) Reset()

func (*Artifact) String Uses

func (m *Artifact) String() string

func (*Artifact) XXX_DiscardUnknown Uses

func (m *Artifact) XXX_DiscardUnknown()

func (*Artifact) XXX_Marshal Uses

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

func (*Artifact) XXX_Merge Uses

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

func (*Artifact) XXX_OneofWrappers Uses

func (*Artifact) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Artifact) XXX_Size Uses

func (m *Artifact) XXX_Size() int

func (*Artifact) XXX_Unmarshal Uses

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

type Artifact_Contents Uses

type Artifact_Contents struct {
    Contents []byte `protobuf:"bytes,2,opt,name=contents,proto3,oneof"`
}

type Artifact_FilePath Uses

type Artifact_FilePath struct {
    FilePath string `protobuf:"bytes,1,opt,name=file_path,json=filePath,proto3,oneof"`
}

type Handshake Uses

type Handshake struct {
    // The auth token is available to eligible subprocesses via
    // test_results.uploader.auth_token LUCI_CONTEXT value.
    // More about LUCI_CONTEXT: https://chromium.googlesource.com/infra/luci/luci-py/+/6b6dad7aef994b96d3bb5b6f13fae8168938560f/client/LUCI_CONTEXT.md
    // If the value is unexpected, the server will close the connection.
    AuthToken            string   `protobuf:"bytes,1,opt,name=auth_token,json=authToken,proto3" json:"auth_token,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

The very first message in a ResultSink TCP connection.

func (*Handshake) Descriptor Uses

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

func (*Handshake) GetAuthToken Uses

func (m *Handshake) GetAuthToken() string

func (*Handshake) ProtoMessage Uses

func (*Handshake) ProtoMessage()

func (*Handshake) Reset Uses

func (m *Handshake) Reset()

func (*Handshake) String Uses

func (m *Handshake) String() string

func (*Handshake) XXX_DiscardUnknown Uses

func (m *Handshake) XXX_DiscardUnknown()

func (*Handshake) XXX_Marshal Uses

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

func (*Handshake) XXX_Merge Uses

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

func (*Handshake) XXX_Size Uses

func (m *Handshake) XXX_Size() int

func (*Handshake) XXX_Unmarshal Uses

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

type SinkMessageContainer Uses

type SinkMessageContainer struct {
    // Types that are valid to be assigned to Msg:
    //	*SinkMessageContainer_Handshake
    //	*SinkMessageContainer_TestResult
    //	*SinkMessageContainer_TestResultFile
    Msg                  isSinkMessageContainer_Msg `protobuf_oneof:"msg"`
    XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
    XXX_unrecognized     []byte                     `json:"-"`
    XXX_sizecache        int32                      `json:"-"`
}

A container of a message to a ResultSink server. The server accepts a sequence of these messages in JSON format.

func (*SinkMessageContainer) Descriptor Uses

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

func (*SinkMessageContainer) GetHandshake Uses

func (m *SinkMessageContainer) GetHandshake() *Handshake

func (*SinkMessageContainer) GetMsg Uses

func (m *SinkMessageContainer) GetMsg() isSinkMessageContainer_Msg

func (*SinkMessageContainer) GetTestResult Uses

func (m *SinkMessageContainer) GetTestResult() *TestResult

func (*SinkMessageContainer) GetTestResultFile Uses

func (m *SinkMessageContainer) GetTestResultFile() *TestResultFile

func (*SinkMessageContainer) ProtoMessage Uses

func (*SinkMessageContainer) ProtoMessage()

func (*SinkMessageContainer) Reset Uses

func (m *SinkMessageContainer) Reset()

func (*SinkMessageContainer) String Uses

func (m *SinkMessageContainer) String() string

func (*SinkMessageContainer) XXX_DiscardUnknown Uses

func (m *SinkMessageContainer) XXX_DiscardUnknown()

func (*SinkMessageContainer) XXX_Marshal Uses

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

func (*SinkMessageContainer) XXX_Merge Uses

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

func (*SinkMessageContainer) XXX_OneofWrappers Uses

func (*SinkMessageContainer) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*SinkMessageContainer) XXX_Size Uses

func (m *SinkMessageContainer) XXX_Size() int

func (*SinkMessageContainer) XXX_Unmarshal Uses

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

type SinkMessageContainer_Handshake Uses

type SinkMessageContainer_Handshake struct {
    Handshake *Handshake `protobuf:"bytes,1,opt,name=handshake,proto3,oneof"`
}

type SinkMessageContainer_TestResult Uses

type SinkMessageContainer_TestResult struct {
    TestResult *TestResult `protobuf:"bytes,2,opt,name=test_result,json=testResult,proto3,oneof"`
}

type SinkMessageContainer_TestResultFile Uses

type SinkMessageContainer_TestResultFile struct {
    TestResultFile *TestResultFile `protobuf:"bytes,3,opt,name=test_result_file,json=testResultFile,proto3,oneof"`
}

type TestResult Uses

type TestResult struct {
    // Equivalent of luci.resultpb.TestResult.TestId.
    TestId string `protobuf:"bytes,1,opt,name=test_id,json=testId,proto3" json:"test_id,omitempty"`
    // Equivalent of luci.resultpb.TestResult.result_id.
    ResultId string `protobuf:"bytes,2,opt,name=result_id,json=resultId,proto3" json:"result_id,omitempty"`
    // Equivalent of luci.resultpb.TestResult.extra_variant_pairs.
    ExtraVariantPairs *_type.Variant `protobuf:"bytes,3,opt,name=extra_variant_pairs,json=extraVariantPairs,proto3" json:"extra_variant_pairs,omitempty"`
    // Equivalent of luci.resultpb.TestResult.expected.
    Expected bool `protobuf:"varint,4,opt,name=expected,proto3" json:"expected,omitempty"`
    // Equivalent of luci.resultpb.TestResult.status.
    Status TestStatus `protobuf:"varint,5,opt,name=status,proto3,enum=luci.resultdb.sink.v1.TestStatus" json:"status,omitempty"`
    // Equivalent of luci.resultpb.TestResult.summary_html.
    SummaryHtml string `protobuf:"bytes,6,opt,name=summary_html,json=summaryHtml,proto3" json:"summary_html,omitempty"`
    // Equivalent of luci.resultpb.TestResult.start_time.
    StartTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
    // Equivalent of luci.resultpb.TestResult.run_duration.
    RunDuration *duration.Duration `protobuf:"bytes,8,opt,name=run_duration,json=runDuration,proto3" json:"run_duration,omitempty"`
    // Equivalent of luci.resultpb.TestResult.tags.
    Tags []*_type.StringPair `protobuf:"bytes,9,rep,name=tags,proto3" json:"tags,omitempty"`
    // Equivalent of luci.resultpb.TestResult.input_artifacts.
    // The map key is an artifact name.
    InputArtifacts map[string]*Artifact `protobuf:"bytes,10,rep,name=input_artifacts,json=inputArtifacts,proto3" json:"input_artifacts,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    // Equivalent of luci.resultpb.TestResult.output_artifacts.
    // The map key is an artifact name.
    OutputArtifacts      map[string]*Artifact `protobuf:"bytes,11,rep,name=output_artifacts,json=outputArtifacts,proto3" json:"output_artifacts,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 local equivalent of luci.resultdb.TestResult message in ../../rpc/v1/test_result.proto. See its comments for details.

func (*TestResult) Descriptor Uses

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

func (*TestResult) GetExpected Uses

func (m *TestResult) GetExpected() bool

func (*TestResult) GetExtraVariantPairs Uses

func (m *TestResult) GetExtraVariantPairs() *_type.Variant

func (*TestResult) GetInputArtifacts Uses

func (m *TestResult) GetInputArtifacts() map[string]*Artifact

func (*TestResult) GetOutputArtifacts Uses

func (m *TestResult) GetOutputArtifacts() map[string]*Artifact

func (*TestResult) GetResultId Uses

func (m *TestResult) GetResultId() string

func (*TestResult) GetRunDuration Uses

func (m *TestResult) GetRunDuration() *duration.Duration

func (*TestResult) GetStartTime Uses

func (m *TestResult) GetStartTime() *timestamp.Timestamp

func (*TestResult) GetStatus Uses

func (m *TestResult) GetStatus() TestStatus

func (*TestResult) GetSummaryHtml Uses

func (m *TestResult) GetSummaryHtml() string

func (*TestResult) GetTags Uses

func (m *TestResult) GetTags() []*_type.StringPair

func (*TestResult) GetTestId Uses

func (m *TestResult) GetTestId() string

func (*TestResult) ProtoMessage Uses

func (*TestResult) ProtoMessage()

func (*TestResult) Reset Uses

func (m *TestResult) Reset()

func (*TestResult) String Uses

func (m *TestResult) String() string

func (*TestResult) XXX_DiscardUnknown Uses

func (m *TestResult) XXX_DiscardUnknown()

func (*TestResult) XXX_Marshal Uses

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

func (*TestResult) XXX_Merge Uses

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

func (*TestResult) XXX_Size Uses

func (m *TestResult) XXX_Size() int

func (*TestResult) XXX_Unmarshal Uses

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

type TestResultFile Uses

type TestResultFile struct {
    // Absolute OS-native path to the results file on the same machine as the
    // ResultSink server.
    Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
    // Format of the file.
    Format               TestResultFile_Format `protobuf:"varint,2,opt,name=format,proto3,enum=luci.resultdb.sink.v1.TestResultFile_Format" json:"format,omitempty"`
    XXX_NoUnkeyedLiteral struct{}              `json:"-"`
    XXX_unrecognized     []byte                `json:"-"`
    XXX_sizecache        int32                 `json:"-"`
}

A file with test results.

func (*TestResultFile) Descriptor Uses

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

func (*TestResultFile) GetFormat Uses

func (m *TestResultFile) GetFormat() TestResultFile_Format

func (*TestResultFile) GetPath Uses

func (m *TestResultFile) GetPath() string

func (*TestResultFile) ProtoMessage Uses

func (*TestResultFile) ProtoMessage()

func (*TestResultFile) Reset Uses

func (m *TestResultFile) Reset()

func (*TestResultFile) String Uses

func (m *TestResultFile) String() string

func (*TestResultFile) XXX_DiscardUnknown Uses

func (m *TestResultFile) XXX_DiscardUnknown()

func (*TestResultFile) XXX_Marshal Uses

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

func (*TestResultFile) XXX_Merge Uses

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

func (*TestResultFile) XXX_Size Uses

func (m *TestResultFile) XXX_Size() int

func (*TestResultFile) XXX_Unmarshal Uses

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

type TestResultFile_Format Uses

type TestResultFile_Format int32

A result file format.

const (
    // The file is a sequence of TestResult JSON objects (not a JSON Array).
    // The default format.
    TestResultFile_LUCI TestResultFile_Format = 0
    // Chromium's JSON Test Results format
    // https://chromium.googlesource.com/chromium/src/+/master/docs/testing/json_test_results_format.md
    TestResultFile_CHROMIUM_JSON_TEST_RESULTS TestResultFile_Format = 1
    // GTest format.
    // Not well documented.
    // Implementation:
    // https://cs.chromium.org/chromium/src/base/test/launcher/test_results_tracker.cc
    TestResultFile_GOOGLE_TEST TestResultFile_Format = 2
)

func (TestResultFile_Format) EnumDescriptor Uses

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

func (TestResultFile_Format) String Uses

func (x TestResultFile_Format) String() string

type TestStatus Uses

type TestStatus int32

Machine-readable status of a test result.

This is a copy of luci.resultdb.rpc.v1.TestStatus in ../../rpc/v1/test_result.proto, because of https://aip.dev/215.

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) EnumDescriptor Uses

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

func (TestStatus) String Uses

func (x TestStatus) String() string

Package sinkpb imports 6 packages (graph) and is imported by 2 packages. Updated 2020-01-25. Refresh now. Tools for package owners.