controlpb

package
v0.0.0-...-c36c937 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_go_chromium_org_luci_analysis_internal_ingestion_control_proto_control_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BuildResult

type BuildResult struct {

	// Buildbucket build ID, unique per Buildbucket instance.
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// Buildbucket host, e.g. "cr-buildbucket.appspot.com".
	Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"`
	// The time the build was created.
	CreationTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=creation_time,json=creationTime,proto3" json:"creation_time,omitempty"`
	// The LUCI Project to which the build belongs.
	Project string `protobuf:"bytes,4,opt,name=project,proto3" json:"project,omitempty"`
	// The bucket the builder is a part of. E.g. "try".
	Bucket string `protobuf:"bytes,13,opt,name=bucket,proto3" json:"bucket,omitempty"`
	// The builder this build was a part of.
	Builder string `protobuf:"bytes,5,opt,name=builder,proto3" json:"builder,omitempty"`
	// The ending status of the build. E.g. Canceled, Success, Failure, Infra failure.
	Status v1.BuildStatus `protobuf:"varint,6,opt,name=status,proto3,enum=luci.analysis.v1.BuildStatus" json:"status,omitempty"`
	// The version of code (excluding any unsubmitted changelists) that was
	// tested by the build. This is the base commit ontop of which any
	// changelists are applied.
	Commit *proto.GitilesCommit `protobuf:"bytes,8,opt,name=commit,proto3" json:"commit,omitempty"`
	// Whether this buildbucket build has a ResultDB invocation. If true,
	// the invocation is named "build-{id}".
	HasInvocation bool `protobuf:"varint,9,opt,name=has_invocation,json=hasInvocation,proto3" json:"has_invocation,omitempty"`
	// The ResultDB host which contains the ResultDB invocation of this
	// build. Only populated if has_invocation is set.
	ResultdbHost string `protobuf:"bytes,10,opt,name=resultdb_host,json=resultdbHost,proto3" json:"resultdb_host,omitempty"`
	// The changelists that were tested by the build.
	Changelists []*v1.Changelist `protobuf:"bytes,12,rep,name=changelists,proto3" json:"changelists,omitempty"`
	// The gardener rotations corresponding to this build. This corresponds to
	// the "sheriff_rotations" field of the build input properties.
	GardenerRotations []string `protobuf:"bytes,14,rep,name=gardener_rotations,json=gardenerRotations,proto3" json:"gardener_rotations,omitempty"`
	// contains filtered or unexported fields
}

BuildResult represents the information about a buildbucket build that should be passed to the result ingestion task.

NextId: 15.

func (*BuildResult) Descriptor deprecated

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

Deprecated: Use BuildResult.ProtoReflect.Descriptor instead.

func (*BuildResult) GetBucket

func (x *BuildResult) GetBucket() string

func (*BuildResult) GetBuilder

func (x *BuildResult) GetBuilder() string

func (*BuildResult) GetChangelists

func (x *BuildResult) GetChangelists() []*v1.Changelist

func (*BuildResult) GetCommit

func (x *BuildResult) GetCommit() *proto.GitilesCommit

func (*BuildResult) GetCreationTime

func (x *BuildResult) GetCreationTime() *timestamppb.Timestamp

func (*BuildResult) GetGardenerRotations

func (x *BuildResult) GetGardenerRotations() []string

func (*BuildResult) GetHasInvocation

func (x *BuildResult) GetHasInvocation() bool

func (*BuildResult) GetHost

func (x *BuildResult) GetHost() string

func (*BuildResult) GetId

func (x *BuildResult) GetId() int64

func (*BuildResult) GetProject

func (x *BuildResult) GetProject() string

func (*BuildResult) GetResultdbHost

func (x *BuildResult) GetResultdbHost() string

func (*BuildResult) GetStatus

func (x *BuildResult) GetStatus() v1.BuildStatus

func (*BuildResult) ProtoMessage

func (*BuildResult) ProtoMessage()

func (*BuildResult) ProtoReflect

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

func (*BuildResult) Reset

func (x *BuildResult) Reset()

func (*BuildResult) String

func (x *BuildResult) String() string

type InvocationResult

type InvocationResult struct {

	// The ResultDB host which contains this ResultDB invocation.
	ResultdbHost string `protobuf:"bytes,1,opt,name=resultdb_host,json=resultdbHost,proto3" json:"resultdb_host,omitempty"`
	// The id of this invocation.
	InvocationId string `protobuf:"bytes,2,opt,name=invocation_id,json=invocationId,proto3" json:"invocation_id,omitempty"`
	// The time the invocation was created.
	CreationTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=creation_time,json=creationTime,proto3" json:"creation_time,omitempty"`
	// contains filtered or unexported fields
}

InvocationResult represents the result from the invocation finalization pub/sub that should be passed to the result ingestion task.

func (*InvocationResult) Descriptor deprecated

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

Deprecated: Use InvocationResult.ProtoReflect.Descriptor instead.

func (*InvocationResult) GetCreationTime

func (x *InvocationResult) GetCreationTime() *timestamppb.Timestamp

func (*InvocationResult) GetInvocationId

func (x *InvocationResult) GetInvocationId() string

func (*InvocationResult) GetResultdbHost

func (x *InvocationResult) GetResultdbHost() string

func (*InvocationResult) ProtoMessage

func (*InvocationResult) ProtoMessage()

func (*InvocationResult) ProtoReflect

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

func (*InvocationResult) Reset

func (x *InvocationResult) Reset()

func (*InvocationResult) String

func (x *InvocationResult) String() string

type PresubmitResult

type PresubmitResult struct {

	// The identity of the presubmit run. If the ingestion does not relate to test
	// results obtained in a presubmit run, this field should not be set.
	PresubmitRunId *v1.PresubmitRunId `protobuf:"bytes,1,opt,name=presubmit_run_id,json=presubmitRunId,proto3" json:"presubmit_run_id,omitempty"`
	// The ending status of the presubmit run. E.g. Canceled, Success, Failure.
	Status v1.PresubmitRunStatus `protobuf:"varint,9,opt,name=status,proto3,enum=luci.analysis.v1.PresubmitRunStatus" json:"status,omitempty"`
	// The presubmit run mode.
	// E.g. FULL_RUN, DRY_RUN, QUICK_DRY_RUN.
	Mode v1.PresubmitRunMode `protobuf:"varint,8,opt,name=mode,proto3,enum=luci.analysis.v1.PresubmitRunMode" json:"mode,omitempty"`
	// The owner of the presubmit run (if any).
	// This is the owner of the CL on which CQ+1/CQ+2 was clicked
	// (even in case of presubmit run with multiple CLs).
	// There is scope for this field to become an email address if privacy
	// approval is obtained, until then it is "automation" (for automation
	// service accounts) and "user" otherwise.
	Owner string `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"`
	// The time the presubmit was created.
	CreationTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=creation_time,json=creationTime,proto3" json:"creation_time,omitempty"`
	// Whether the build was critical to the completion of the presubmit run.
	// True if the failure of the build would cause the presubmit run to fail.
	Critical bool `protobuf:"varint,7,opt,name=critical,proto3" json:"critical,omitempty"`
	// contains filtered or unexported fields
}

PresubmitResult represents the result from the presubmit pub/sub that should be passed to the result ingestion task.

func (*PresubmitResult) Descriptor deprecated

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

Deprecated: Use PresubmitResult.ProtoReflect.Descriptor instead.

func (*PresubmitResult) GetCreationTime

func (x *PresubmitResult) GetCreationTime() *timestamppb.Timestamp

func (*PresubmitResult) GetCritical

func (x *PresubmitResult) GetCritical() bool

func (*PresubmitResult) GetMode

func (x *PresubmitResult) GetMode() v1.PresubmitRunMode

func (*PresubmitResult) GetOwner

func (x *PresubmitResult) GetOwner() string

func (*PresubmitResult) GetPresubmitRunId

func (x *PresubmitResult) GetPresubmitRunId() *v1.PresubmitRunId

func (*PresubmitResult) GetStatus

func (x *PresubmitResult) GetStatus() v1.PresubmitRunStatus

func (*PresubmitResult) ProtoMessage

func (*PresubmitResult) ProtoMessage()

func (*PresubmitResult) ProtoReflect

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

func (*PresubmitResult) Reset

func (x *PresubmitResult) Reset()

func (*PresubmitResult) String

func (x *PresubmitResult) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL