proto: go.chromium.org/chromiumos/infra/proto/go/test_platform/analytics Index | Files

package analytics

import "go.chromium.org/chromiumos/infra/proto/go/test_platform/analytics"

Index

Package Files

result.pb.go

type Status Uses

type Status struct {
    // All the currently possible values (corresponding to
    // testplatform.Taskstate.LifeCycle enum values):
    //   NORMAL STATUS:
    //
    //     PENDING: task is pending somewhere and does not run.
    //     RUNNING: task is running.
    //     COMPLETED: ran to completion without being cancelled externally,
    //       regardless of whether it succeeded or failed. A task is completed
    //       only if all its sub-tasks have reached the end, either with a normal
    //       or abnormal status.
    //
    //   ABNORMAL STATUS:
    //
    //     CANCELLED: never got a chance to run, cancelled externally.
    //     REJECTED: never got a chance to run, rejected due to unsatisfiable
    //       depenedencies.
    //     ABORTED: started running but was cancelled externally while running.
    Value                string   `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

The latest known status of a task, may change as the run progresses.

func (*Status) Descriptor Uses

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

func (*Status) GetValue Uses

func (m *Status) GetValue() string

func (*Status) ProtoMessage Uses

func (*Status) ProtoMessage()

func (*Status) Reset Uses

func (m *Status) Reset()

func (*Status) String Uses

func (m *Status) String() string

func (*Status) XXX_DiscardUnknown Uses

func (m *Status) XXX_DiscardUnknown()

func (*Status) XXX_Marshal Uses

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

func (*Status) XXX_Merge Uses

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

func (*Status) XXX_Size Uses

func (m *Status) XXX_Size() int

func (*Status) XXX_Unmarshal Uses

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

type TestCaseResult Uses

type TestCaseResult struct {
    // A unique name for this test case run,
    // format "testCaseResults/TEST_RUNNER_BUILD_ID/TEST_CASE_NAME", e.g.
    // "testCaseResults/8879199769272202448/provision_AutoUpdate.double".
    // Required field.
    Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
    // Test case name as it appears in status.log,
    // e.g. "provision_AutoUpdate.double".
    DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
    // The TestRun.build_id of the parent test run.
    ParentBuildId int64    `protobuf:"varint,3,opt,name=parent_build_id,json=parentBuildId,proto3" json:"parent_build_id,omitempty"`
    Verdict       *Verdict `protobuf:"bytes,4,opt,name=verdict,proto3" json:"verdict,omitempty"`
    // A one line human readable description of what happened during test
    // case execution (e.g. error/warning message). Not intended to be machine
    // parseable. There's no guarantee that a given root cause will always
    // resolve to the same summary.
    HumanReadableSummary string   `protobuf:"bytes,5,opt,name=human_readable_summary,json=humanReadableSummary,proto3" json:"human_readable_summary,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

TestCaseResult describes the result of an individual test case.

func (*TestCaseResult) Descriptor Uses

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

func (*TestCaseResult) GetDisplayName Uses

func (m *TestCaseResult) GetDisplayName() string

func (*TestCaseResult) GetHumanReadableSummary Uses

func (m *TestCaseResult) GetHumanReadableSummary() string

func (*TestCaseResult) GetParentBuildId Uses

func (m *TestCaseResult) GetParentBuildId() int64

func (*TestCaseResult) GetUid Uses

func (m *TestCaseResult) GetUid() string

func (*TestCaseResult) GetVerdict Uses

func (m *TestCaseResult) GetVerdict() *Verdict

func (*TestCaseResult) ProtoMessage Uses

func (*TestCaseResult) ProtoMessage()

func (*TestCaseResult) Reset Uses

func (m *TestCaseResult) Reset()

func (*TestCaseResult) String Uses

func (m *TestCaseResult) String() string

func (*TestCaseResult) XXX_DiscardUnknown Uses

func (m *TestCaseResult) XXX_DiscardUnknown()

func (*TestCaseResult) XXX_Marshal Uses

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

func (*TestCaseResult) XXX_Merge Uses

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

func (*TestCaseResult) XXX_Size Uses

func (m *TestCaseResult) XXX_Size() int

func (*TestCaseResult) XXX_Unmarshal Uses

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

type TestPlanRun Uses

type TestPlanRun struct {
    // A unique name to identify this test plan run, format
    // "testPlanRuns/CTP_BUILD_ID/REQ_KEY", where REQ_KEY is the CTP
    // request’s key in the multiple-request,
    // e.g. "testPlanRuns/8879199769272202448/octopus_ampton"
    // Required field.
    Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
    // CTP build ID.
    BuildId int64 `protobuf:"varint,2,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"`
    // Suite name. If the test plan is running an autotest suite,
    // this field is the autotest suite name, e.g. wifi_interop.
    Suite string `protobuf:"bytes,3,opt,name=suite,proto3" json:"suite,omitempty"`
    // Human friendly url to access this run.
    ExecutionUrl string `protobuf:"bytes,4,opt,name=execution_url,json=executionUrl,proto3" json:"execution_url,omitempty"`
    // The dut_pool in which the test plan ran, e.g. "DUT_POOL_QUOTA" or
    // "wificell".
    // It is case sensitive: "WIFICELL" and "wificell" represent different
    // pools.
    // Note that legacy pools "suites", "bvt" and "pcq" have been integrated
    // into "DUT_POOL_QUOTA" and legacy pool "cts" has been renamed to
    // "DUT_POOL_CTS".
    DutPool string `protobuf:"bytes,5,opt,name=dut_pool,json=dutPool,proto3" json:"dut_pool,omitempty"`
    // The build target, a.k.a board name, e.g. "hatch", "octopus".
    BuildTarget string `protobuf:"bytes,6,opt,name=build_target,json=buildTarget,proto3" json:"build_target,omitempty"`
    // CrOS build version, e.g. "R84/13091.0.0".
    ChromeosBuild string  `protobuf:"bytes,7,opt,name=chromeos_build,json=chromeosBuild,proto3" json:"chromeos_build,omitempty"`
    Status        *Status `protobuf:"bytes,8,opt,name=status,proto3" json:"status,omitempty"`
    // Event timestamp of test plan run, e.g. start time, end time.
    Timeline             *Timeline `protobuf:"bytes,9,opt,name=timeline,proto3" json:"timeline,omitempty"`
    XXX_NoUnkeyedLiteral struct{}  `json:"-"`
    XXX_unrecognized     []byte    `json:"-"`
    XXX_sizecache        int32     `json:"-"`
}

TestPlanRun represents the test request defined by users and its running status.

func (*TestPlanRun) Descriptor Uses

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

func (*TestPlanRun) GetBuildId Uses

func (m *TestPlanRun) GetBuildId() int64

func (*TestPlanRun) GetBuildTarget Uses

func (m *TestPlanRun) GetBuildTarget() string

func (*TestPlanRun) GetChromeosBuild Uses

func (m *TestPlanRun) GetChromeosBuild() string

func (*TestPlanRun) GetDutPool Uses

func (m *TestPlanRun) GetDutPool() string

func (*TestPlanRun) GetExecutionUrl Uses

func (m *TestPlanRun) GetExecutionUrl() string

func (*TestPlanRun) GetStatus Uses

func (m *TestPlanRun) GetStatus() *Status

func (*TestPlanRun) GetSuite Uses

func (m *TestPlanRun) GetSuite() string

func (*TestPlanRun) GetTimeline Uses

func (m *TestPlanRun) GetTimeline() *Timeline

func (*TestPlanRun) GetUid Uses

func (m *TestPlanRun) GetUid() string

func (*TestPlanRun) ProtoMessage Uses

func (*TestPlanRun) ProtoMessage()

func (*TestPlanRun) Reset Uses

func (m *TestPlanRun) Reset()

func (*TestPlanRun) String Uses

func (m *TestPlanRun) String() string

func (*TestPlanRun) XXX_DiscardUnknown Uses

func (m *TestPlanRun) XXX_DiscardUnknown()

func (*TestPlanRun) XXX_Marshal Uses

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

func (*TestPlanRun) XXX_Merge Uses

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

func (*TestPlanRun) XXX_Size Uses

func (m *TestPlanRun) XXX_Size() int

func (*TestPlanRun) XXX_Unmarshal Uses

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

type TestRun Uses

type TestRun struct {
    // Test runner build ID.
    BuildId int64 `protobuf:"varint,1,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"`
    // The name of the Skylab task corresponding to the test run, e.g.
    // "tast.critical-chrome".
    //
    // For tasks containing a single test case, will generally be the same as the
    // name of that test case, e.g. "provision_AutoUpdate.double".
    // Required field.
    DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
    // Human friendly url to access this run.
    ExecutionUrl string `protobuf:"bytes,3,opt,name=execution_url,json=executionUrl,proto3" json:"execution_url,omitempty"`
    // The TestPlanRun.uid of the parent test plan run.
    ParentUid string `protobuf:"bytes,4,opt,name=parent_uid,json=parentUid,proto3" json:"parent_uid,omitempty"`
    // Model name, e.g. "helios", "mimrock".
    // Note that a single TestPlanRun may be spread across multiple models, if
    // the test plan request did not specify a model to run.
    Model string `protobuf:"bytes,5,opt,name=model,proto3" json:"model,omitempty"`
    // Event timestamp of test run, e.g. start time, end time.
    Timeline *Timeline `protobuf:"bytes,6,opt,name=timeline,proto3" json:"timeline,omitempty"`
    Status   *Status   `protobuf:"bytes,7,opt,name=status,proto3" json:"status,omitempty"`
    Verdict  *Verdict  `protobuf:"bytes,8,opt,name=verdict,proto3" json:"verdict,omitempty"`
    // The URL for the entire logs of this run.
    FullLogUrl           string          `protobuf:"bytes,9,opt,name=full_log_url,json=fullLogUrl,proto3" json:"full_log_url,omitempty"`
    Prejob               *TestRun_Prejob `protobuf:"bytes,10,opt,name=prejob,proto3" json:"prejob,omitempty"`
    XXX_NoUnkeyedLiteral struct{}        `json:"-"`
    XXX_unrecognized     []byte          `json:"-"`
    XXX_sizecache        int32           `json:"-"`
}

TestRun contains Skylab task level information.

func (*TestRun) Descriptor Uses

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

func (*TestRun) GetBuildId Uses

func (m *TestRun) GetBuildId() int64

func (*TestRun) GetDisplayName Uses

func (m *TestRun) GetDisplayName() string

func (*TestRun) GetExecutionUrl Uses

func (m *TestRun) GetExecutionUrl() string

func (*TestRun) GetFullLogUrl Uses

func (m *TestRun) GetFullLogUrl() string

func (*TestRun) GetModel Uses

func (m *TestRun) GetModel() string

func (*TestRun) GetParentUid Uses

func (m *TestRun) GetParentUid() string

func (*TestRun) GetPrejob Uses

func (m *TestRun) GetPrejob() *TestRun_Prejob

func (*TestRun) GetStatus Uses

func (m *TestRun) GetStatus() *Status

func (*TestRun) GetTimeline Uses

func (m *TestRun) GetTimeline() *Timeline

func (*TestRun) GetVerdict Uses

func (m *TestRun) GetVerdict() *Verdict

func (*TestRun) ProtoMessage Uses

func (*TestRun) ProtoMessage()

func (*TestRun) Reset Uses

func (m *TestRun) Reset()

func (*TestRun) String Uses

func (m *TestRun) String() string

func (*TestRun) XXX_DiscardUnknown Uses

func (m *TestRun) XXX_DiscardUnknown()

func (*TestRun) XXX_Marshal Uses

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

func (*TestRun) XXX_Merge Uses

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

func (*TestRun) XXX_Size Uses

func (m *TestRun) XXX_Size() int

func (*TestRun) XXX_Unmarshal Uses

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

type TestRun_Prejob Uses

type TestRun_Prejob struct {
    Verdict              *Verdict `protobuf:"bytes,1,opt,name=verdict,proto3" json:"verdict,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*TestRun_Prejob) Descriptor Uses

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

func (*TestRun_Prejob) GetVerdict Uses

func (m *TestRun_Prejob) GetVerdict() *Verdict

func (*TestRun_Prejob) ProtoMessage Uses

func (*TestRun_Prejob) ProtoMessage()

func (*TestRun_Prejob) Reset Uses

func (m *TestRun_Prejob) Reset()

func (*TestRun_Prejob) String Uses

func (m *TestRun_Prejob) String() string

func (*TestRun_Prejob) XXX_DiscardUnknown Uses

func (m *TestRun_Prejob) XXX_DiscardUnknown()

func (*TestRun_Prejob) XXX_Marshal Uses

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

func (*TestRun_Prejob) XXX_Merge Uses

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

func (*TestRun_Prejob) XXX_Size Uses

func (m *TestRun_Prejob) XXX_Size() int

func (*TestRun_Prejob) XXX_Unmarshal Uses

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

type Timeline Uses

type Timeline struct {
    // Time the task was requested.
    CreateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
    // Time the task began to execute in a bot.
    StartTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
    // Time the task completed, unset if the task was
    // stopped unexpectedly before its completion.
    EndTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
    // Time the task was stopped unexpectedly, unset if
    // task has run to its end.
    AbandonTime          *timestamp.Timestamp `protobuf:"bytes,4,opt,name=abandon_time,json=abandonTime,proto3" json:"abandon_time,omitempty"`
    XXX_NoUnkeyedLiteral struct{}             `json:"-"`
    XXX_unrecognized     []byte               `json:"-"`
    XXX_sizecache        int32                `json:"-"`
}

The timeline of a task.

func (*Timeline) Descriptor Uses

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

func (*Timeline) GetAbandonTime Uses

func (m *Timeline) GetAbandonTime() *timestamp.Timestamp

func (*Timeline) GetCreateTime Uses

func (m *Timeline) GetCreateTime() *timestamp.Timestamp

func (*Timeline) GetEndTime Uses

func (m *Timeline) GetEndTime() *timestamp.Timestamp

func (*Timeline) GetStartTime Uses

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

func (*Timeline) ProtoMessage Uses

func (*Timeline) ProtoMessage()

func (*Timeline) Reset Uses

func (m *Timeline) Reset()

func (*Timeline) String Uses

func (m *Timeline) String() string

func (*Timeline) XXX_DiscardUnknown Uses

func (m *Timeline) XXX_DiscardUnknown()

func (*Timeline) XXX_Marshal Uses

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

func (*Timeline) XXX_Merge Uses

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

func (*Timeline) XXX_Size Uses

func (m *Timeline) XXX_Size() int

func (*Timeline) XXX_Unmarshal Uses

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

type Verdict Uses

type Verdict struct {
    // All the currently possible values (corresponding to
    // testplatform.Taskstate.Verdict enum values):
    //
    //   UNSPECIFIED(default): the task produced no usable verdict (possibly
    //     because it never ran, or never finished, or the results were
    //     unparseable).
    //     Under most circumstances, this should be treated as a failure or
    //     an infrastructure failure.
    //   PASSED: test run definitively passed.
    //   FAILED: test run definitively failed.
    //   NO_VERDICT: the task definitively produced no verdict(for instance,
    //     the test is irrelevant in the given environment).
    //     Under most circumstances, this should be treated as a passing
    //     (but uninteresting).
    //   PASSED_ON_RETRY: the task failed, but passed after one or more retries.
    Value                string   `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

The known tokens describe whether a task passed, failed, or had some other indefinite verdict.

func (*Verdict) Descriptor Uses

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

func (*Verdict) GetValue Uses

func (m *Verdict) GetValue() string

func (*Verdict) ProtoMessage Uses

func (*Verdict) ProtoMessage()

func (*Verdict) Reset Uses

func (m *Verdict) Reset()

func (*Verdict) String Uses

func (m *Verdict) String() string

func (*Verdict) XXX_DiscardUnknown Uses

func (m *Verdict) XXX_DiscardUnknown()

func (*Verdict) XXX_Marshal Uses

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

func (*Verdict) XXX_Merge Uses

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

func (*Verdict) XXX_Size Uses

func (m *Verdict) XXX_Size() int

func (*Verdict) XXX_Unmarshal Uses

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

Package analytics imports 4 packages (graph). Updated 2020-08-04. Refresh now. Tools for package owners.