kron

package
v0.0.0-...-d4b1dff Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: BSD-3-Clause Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DecisionType_name = map[int32]string{
		0: "UNKNOWN",
		1: "SCHEDULED",
		3: "BUILD_NOT_FOUND",
		4: "NO_PASSING_BUILD",
		5: "STALE_BUILD",
	}
	DecisionType_value = map[string]int32{
		"UNKNOWN":          0,
		"SCHEDULED":        1,
		"BUILD_NOT_FOUND":  3,
		"NO_PASSING_BUILD": 4,
		"STALE_BUILD":      5,
	}
)

Enum value maps for DecisionType.

View Source
var File_test_platform_kron_builds_proto protoreflect.FileDescriptor
View Source
var File_test_platform_kron_metrics_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Build

type Build struct {

	// build_uid is a unique identifier for the build image.
	BuildUuid string `protobuf:"bytes,1,opt,name=build_uuid,json=buildUuid,proto3" json:"build_uuid,omitempty"`
	// run_uid represents the unique identifier of the Kron run which
	// processed this run.
	RunUuid string `protobuf:"bytes,2,opt,name=run_uuid,json=runUuid,proto3" json:"run_uuid,omitempty"`
	// create_time represents the time that the image row was read and inserted
	// into the DB, NOT when then image was made by it's respective builder.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// bbid is the id of the specific build which created the image.
	Bbid int64 `protobuf:"varint,4,opt,name=bbid,proto3" json:"bbid,omitempty"`
	// build_image is the name of the build target, I.e, <board>(-variant)-release
	BuildTarget string `protobuf:"bytes,5,opt,name=build_target,json=buildTarget,proto3" json:"build_target,omitempty"`
	// e.g 101
	Milestone int64 `protobuf:"varint,6,opt,name=milestone,proto3" json:"milestone,omitempty"`
	// e.g. 15111.0.0
	Version string `protobuf:"bytes,7,opt,name=version,proto3" json:"version,omitempty"`
	// image_path points towards the GS location of the image zip. in the form
	// of: gs://<image-bucket>/<build-target>/R<milestone>-<version>/image.zip
	ImagePath string `protobuf:"bytes,8,opt,name=image_path,json=imagePath,proto3" json:"image_path,omitempty"`
	Board     string `protobuf:"bytes,9,opt,name=board,proto3" json:"board,omitempty"`
	Variant   string `protobuf:"bytes,10,opt,name=variant,proto3" json:"variant,omitempty"`
	// parent orchestrator build bucket id
	ReleaseOrchBbid int64 `protobuf:"varint,11,opt,name=release_orch_bbid,json=releaseOrchBbid,proto3" json:"release_orch_bbid,omitempty"`
	// contains filtered or unexported fields
}

func (*Build) Descriptor deprecated

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

Deprecated: Use Build.ProtoReflect.Descriptor instead.

func (*Build) GetBbid

func (x *Build) GetBbid() int64

func (*Build) GetBoard

func (x *Build) GetBoard() string

func (*Build) GetBuildTarget

func (x *Build) GetBuildTarget() string

func (*Build) GetBuildUuid

func (x *Build) GetBuildUuid() string

func (*Build) GetCreateTime

func (x *Build) GetCreateTime() *timestamppb.Timestamp

func (*Build) GetImagePath

func (x *Build) GetImagePath() string

func (*Build) GetMilestone

func (x *Build) GetMilestone() int64

func (*Build) GetReleaseOrchBbid

func (x *Build) GetReleaseOrchBbid() int64

func (*Build) GetRunUuid

func (x *Build) GetRunUuid() string

func (*Build) GetVariant

func (x *Build) GetVariant() string

func (*Build) GetVersion

func (x *Build) GetVersion() string

func (*Build) ProtoMessage

func (*Build) ProtoMessage()

func (*Build) ProtoReflect

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

func (*Build) Reset

func (x *Build) Reset()

func (*Build) String

func (x *Build) String() string

type DecisionType

type DecisionType int32
const (
	// UNKNOWN is the null option for the enum. If this decision is reached then
	// it should be treated as an error and handled accordingly.
	DecisionType_UNKNOWN   DecisionType = 0
	DecisionType_SCHEDULED DecisionType = 1
	// BUILD_NOT_FOUND means that the requested image was not fetched from long
	// term storage.
	DecisionType_BUILD_NOT_FOUND  DecisionType = 3
	DecisionType_NO_PASSING_BUILD DecisionType = 4
	// STALE_BUILD build means that Kron has determined that the fetched image is
	// too old for use in testing.
	DecisionType_STALE_BUILD DecisionType = 5
)

func (DecisionType) Descriptor

func (DecisionType) Enum

func (x DecisionType) Enum() *DecisionType

func (DecisionType) EnumDescriptor deprecated

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

Deprecated: Use DecisionType.Descriptor instead.

func (DecisionType) Number

func (DecisionType) String

func (x DecisionType) String() string

func (DecisionType) Type

type Event

type Event struct {

	// run_uuid is the unique identifier of the Kron run.
	RunUuid string `protobuf:"bytes,1,opt,name=run_uuid,json=runUuid,proto3" json:"run_uuid,omitempty"`
	// event_uuid is the unique identifier of the event being described.
	EventUuid string `protobuf:"bytes,2,opt,name=event_uuid,json=eventUuid,proto3" json:"event_uuid,omitempty"`
	// config_name is the name of the SuiteScheduler name, not the name of the
	// test suite being ran.
	ConfigName string `protobuf:"bytes,3,opt,name=config_name,json=configName,proto3" json:"config_name,omitempty"`
	// suite_name is the name of the test suite being ran
	SuiteName string `protobuf:"bytes,4,opt,name=suite_name,json=suiteName,proto3" json:"suite_name,omitempty"`
	// event_time is captured once a choice, to schedule or not, was made.
	EventTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=event_time,json=eventTime,proto3" json:"event_time,omitempty"`
	Decision  *SchedulingDecision    `protobuf:"bytes,6,opt,name=decision,proto3" json:"decision,omitempty"`
	// Attach the coorsponding BBID for this event.
	Bbid int64 `protobuf:"varint,7,opt,name=bbid,proto3" json:"bbid,omitempty"`
	// build_uuid is the unique identifier of the build used to kick off this
	// event.
	BuildUuid string `protobuf:"bytes,8,opt,name=build_uuid,json=buildUuid,proto3" json:"build_uuid,omitempty"`
	// board is the name of the board targeted in this event request. This must
	// always be filled for a successful CTP request.
	Board string `protobuf:"bytes,9,opt,name=board,proto3" json:"board,omitempty"`
	// model is the made of the model targeted in this event request. This field
	// is optional when forming a CTP request.
	Model string `protobuf:"bytes,10,opt,name=model,proto3" json:"model,omitempty"`
	// build_target is the form of board(?-)(?<variant>) and is the basis for the
	// image being fetched from storage.
	BuildTarget string `protobuf:"bytes,11,opt,name=build_target,json=buildTarget,proto3" json:"build_target,omitempty"`
	// contains filtered or unexported fields
}

func (*Event) Descriptor deprecated

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

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetBbid

func (x *Event) GetBbid() int64

func (*Event) GetBoard

func (x *Event) GetBoard() string

func (*Event) GetBuildTarget

func (x *Event) GetBuildTarget() string

func (*Event) GetBuildUuid

func (x *Event) GetBuildUuid() string

func (*Event) GetConfigName

func (x *Event) GetConfigName() string

func (*Event) GetDecision

func (x *Event) GetDecision() *SchedulingDecision

func (*Event) GetEventTime

func (x *Event) GetEventTime() *timestamppb.Timestamp

func (*Event) GetEventUuid

func (x *Event) GetEventUuid() string

func (*Event) GetModel

func (x *Event) GetModel() string

func (*Event) GetRunUuid

func (x *Event) GetRunUuid() string

func (*Event) GetSuiteName

func (x *Event) GetSuiteName() string

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect

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

func (*Event) Reset

func (x *Event) Reset()

func (*Event) String

func (x *Event) String() string

type Run

type Run struct {

	// run_uuid represents the unique identifier of the Kron run.
	RunUuid string `protobuf:"bytes,1,opt,name=run_uuid,json=runUuid,proto3" json:"run_uuid,omitempty"`
	// Timestamps used to deduce the runtime of application invocations.
	StartTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	EndTime   *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// contains filtered or unexported fields
}

func (*Run) Descriptor deprecated

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

Deprecated: Use Run.ProtoReflect.Descriptor instead.

func (*Run) GetEndTime

func (x *Run) GetEndTime() *timestamppb.Timestamp

func (*Run) GetRunUuid

func (x *Run) GetRunUuid() string

func (*Run) GetStartTime

func (x *Run) GetStartTime() *timestamppb.Timestamp

func (*Run) ProtoMessage

func (*Run) ProtoMessage()

func (*Run) ProtoReflect

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

func (*Run) Reset

func (x *Run) Reset()

func (*Run) String

func (x *Run) String() string

type SchedulingDecision

type SchedulingDecision struct {
	Type DecisionType `protobuf:"varint,1,opt,name=type,proto3,enum=test_platform.kron.DecisionType" json:"type,omitempty"`
	// If scheduled this will be false, for all other types this will be false.
	Scheduled bool `protobuf:"varint,2,opt,name=scheduled,proto3" json:"scheduled,omitempty"`
	// failed_reason contains a short snippet of why the decsion was made. E.g.
	// BUILD_NOT_FOUND -> Build R120-X-X was not found in 'ABC'.
	FailedReason string `protobuf:"bytes,3,opt,name=failed_reason,json=failedReason,proto3" json:"failed_reason,omitempty"`
	// contains filtered or unexported fields
}

func (*SchedulingDecision) Descriptor deprecated

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

Deprecated: Use SchedulingDecision.ProtoReflect.Descriptor instead.

func (*SchedulingDecision) GetFailedReason

func (x *SchedulingDecision) GetFailedReason() string

func (*SchedulingDecision) GetScheduled

func (x *SchedulingDecision) GetScheduled() bool

func (*SchedulingDecision) GetType

func (x *SchedulingDecision) GetType() DecisionType

func (*SchedulingDecision) ProtoMessage

func (*SchedulingDecision) ProtoMessage()

func (*SchedulingDecision) ProtoReflect

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

func (*SchedulingDecision) Reset

func (x *SchedulingDecision) Reset()

func (*SchedulingDecision) String

func (x *SchedulingDecision) String() string

Jump to

Keyboard shortcuts

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