jobrunannotator

package
v0.0.0-...-087457d Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JobRunAnnotator

type JobRunAnnotator struct {
	Release          string        `json:"release"`
	IncludedVariants []bq.Variant  `json:"included_variants"`
	Label            string        `json:"label"`
	BuildClusters    []string      `json:"build_clusters"`
	StartTime        time.Time     `json:"start_time"`
	Duration         time.Duration `json:"duration"`
	MinFailures      int           `json:"minimum_failure"`
	FlakeAsFailure   bool          `json:"flake_as_failure"`
	TextContains     string        `json:"text_contains"`
	TextRegex        string        `json:"text_regex"`
	PathGlob         string        `json:"path_glob"`
	JobRunIDs        []int64       `json:"job_run_ids"`
	// contains filtered or unexported fields
}

func NewJobRunAnnotator

func NewJobRunAnnotator(
	bqClient *bqclient.Client,
	cacheOptions cache.RequestOptions,
	gcsClient *storage.Client,
	dbClient *db.DB,
	cacheClient cache.Cache,
	execute bool,
	release string,
	allVariants crtest.JobVariants,
	variants []bq.Variant,
	label string,
	buildClusters []string,
	startTime time.Time,
	duration time.Duration,
	minFailures int,
	flakeAsFailure bool,
	textContains string,
	textRegex string,
	pathGlob string,
	jobRunIDs []int64,
	commentPrefix string,
	user string,
) (JobRunAnnotator, error)

func (JobRunAnnotator) Run

func (j JobRunAnnotator) Run(ctx context.Context) error

type LabelComment

type LabelComment struct {
	Comment string          `json:"comment"`
	V1      JobRunAnnotator `json:"job_run_annotator_v1"`
}

LabelComment is what gets serialized in the DB to provide context for applying the label. each tool that produces job_labels can specify whatever context is relevant for it; but each should do so in a json object with a unique key for its own schema.

Jump to

Keyboard shortcuts

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