cfgpb

package
v0.0.0-...-9eda336 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 20 Imported by: 5

Documentation

Overview

Package cfgpb contains the CQ config schema.

Index

Constants

This section is empty.

Variables

View Source
var (
	CommentLevel_name = map[int32]string{
		0: "COMMENT_LEVEL_UNSET",
		1: "COMMENT_LEVEL_FULL",
		2: "COMMENT_LEVEL_RESTRICTED",
	}
	CommentLevel_value = map[string]int32{
		"COMMENT_LEVEL_UNSET":      0,
		"COMMENT_LEVEL_FULL":       1,
		"COMMENT_LEVEL_RESTRICTED": 2,
	}
)

Enum value maps for CommentLevel.

View Source
var (
	Toggle_name = map[int32]string{
		0: "UNSET",
		1: "YES",
		2: "NO",
	}
	Toggle_value = map[string]int32{
		"UNSET": 0,
		"YES":   1,
		"NO":    2,
	}
)

Enum value maps for Toggle.

View Source
var (
	Verifiers_GerritCQAbility_CQAction_name = map[int32]string{
		0: "UNSET",
		1: "DRY_RUN",
		2: "COMMIT",
	}
	Verifiers_GerritCQAbility_CQAction_value = map[string]int32{
		"UNSET":   0,
		"DRY_RUN": 1,
		"COMMIT":  2,
	}
)

Enum value maps for Verifiers_GerritCQAbility_CQAction.

View Source
var File_go_chromium_org_luci_cv_api_config_v2_config_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CombineCLs

type CombineCLs struct {

	// Roughly, how long CQ waits for CQ to be triggered on each of the related
	// CLs.
	//
	// Must be greater than 10s.
	// 30s is recommended.
	//
	// Technically precise definition is time to wait since the latest CL among
	// related ones receives CQ+1/2 vote before starting actual attempt.
	//
	// For example, during this delay, a CQ vote may be added on another CL
	// which depends on previously CQ-ed CL in this not-yet-started attempt. Then,
	// CQ would extend the attempt with additional CL and reset the waiting
	// counter.
	//
	// Additional implication is that a standalone CL w/o any other relations to
	// other CLs will need to wait this much time before CQ would start processing
	// it (i.e., before it triggers first tryjob).
	StabilizationDelay *durationpb.Duration `protobuf:"bytes,1,opt,name=stabilization_delay,json=stabilizationDelay,proto3" json:"stabilization_delay,omitempty"`
	// contains filtered or unexported fields
}

CombineCLs defines how CQ works with >1 CL per attempt.

Dependencies between CLs are either implicit via Git child->parent relationship (e.g. stacked CLs in Gerrit) or explicit via "CQ-Depend:" footer in CL description (next to Change-Id:). "CQ-Depend" may span across repositories and even Gerrit hosts. For example, a CL on https://pdfium-review.googlesource.com may declare dependency on https://chromium-review.googlesource.com/1111111 by adding this footer:

CQ-Depend: chromium:1111111

The "chromium" part means that 1111111 is on the chromium-review.googlesource.com host. It can be omitted if dependency is on the same host as the CL depending on it.

CQ-Depend alone or with Git dependencies may form cycles, which is useful to require CQ to test & submit all CLs in a cycle at the same time, never alone.

A user must vote on CQ label on **each CL** individually. Since it can't be instantaneous, `stabilization_delay` controls how long CQ waits for all CQ+1/2 votes before computing maximal expanded set of CLs and starting the attempt.

For any CL with CQ+1/2 vote, each of its dependency must have the same CQ vote and be configured for CQ **in the same config group**, else CQ would abort the attempt with appropriate error message.

Each tryjob CQ triggers via Buildbucket will be associated with each CL of the attempt via `gerrit_changes` parameter of Buildbucket. These changes are then available to a build as it is being executed. If ran via recipes, the `ordered_gerrit_changes` property of https://chromium.googlesource.com/infra/luci/recipes-py/+/HEAD/README.recipes.md#class-cqapi_recipeapi can be used to CLs in the right order.

WARNING: When submitting CLs, CQ can not do so atomically (all submitted or none submitted) because Gerrit doesn't support this even for the same repo.

func (*CombineCLs) Descriptor deprecated

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

Deprecated: Use CombineCLs.ProtoReflect.Descriptor instead.

func (*CombineCLs) GetStabilizationDelay

func (x *CombineCLs) GetStabilizationDelay() *durationpb.Duration

func (*CombineCLs) ProtoMessage

func (*CombineCLs) ProtoMessage()

func (*CombineCLs) ProtoReflect

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

func (*CombineCLs) Reset

func (x *CombineCLs) Reset()

func (*CombineCLs) String

func (x *CombineCLs) String() string

func (*CombineCLs) Validate

func (m *CombineCLs) Validate() error

Validate checks the field values on CombineCLs with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CombineCLs) ValidateAll

func (m *CombineCLs) ValidateAll() error

ValidateAll checks the field values on CombineCLs with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CombineCLsMultiError, or nil if none found.

type CombineCLsMultiError

type CombineCLsMultiError []error

CombineCLsMultiError is an error wrapping multiple validation errors returned by CombineCLs.ValidateAll() if the designated constraints aren't met.

func (CombineCLsMultiError) AllErrors

func (m CombineCLsMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CombineCLsMultiError) Error

func (m CombineCLsMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type CombineCLsValidationError

type CombineCLsValidationError struct {
	// contains filtered or unexported fields
}

CombineCLsValidationError is the validation error returned by CombineCLs.Validate if the designated constraints aren't met.

func (CombineCLsValidationError) Cause

func (e CombineCLsValidationError) Cause() error

Cause function returns cause value.

func (CombineCLsValidationError) Error

Error satisfies the builtin error interface

func (CombineCLsValidationError) ErrorName

func (e CombineCLsValidationError) ErrorName() string

ErrorName returns error name.

func (CombineCLsValidationError) Field

Field function returns field value.

func (CombineCLsValidationError) Key

Key function returns key value.

func (CombineCLsValidationError) Reason

func (e CombineCLsValidationError) Reason() string

Reason function returns reason value.

type CommentLevel

type CommentLevel int32

Determines how visible the results of a build for this builder are in Gerrit comments.

This doesn't affect the buildbucket plugin (green/red chips).

const (
	// Currently default to full visibility.
	CommentLevel_COMMENT_LEVEL_UNSET CommentLevel = 0
	// The CQ reports the summary markdown and a link to the buildbucket build id
	// in Milo with the builder name in the URL in a Gerrit comment.
	CommentLevel_COMMENT_LEVEL_FULL CommentLevel = 1
	// The CQ reports a generic "Build failed: https://ci.chromium.org/b/1234"
	// with no summary markdown.
	CommentLevel_COMMENT_LEVEL_RESTRICTED CommentLevel = 2
)

func (CommentLevel) Descriptor

func (CommentLevel) Enum

func (x CommentLevel) Enum() *CommentLevel

func (CommentLevel) EnumDescriptor deprecated

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

Deprecated: Use CommentLevel.Descriptor instead.

func (CommentLevel) Number

func (CommentLevel) String

func (x CommentLevel) String() string

func (CommentLevel) Type

type Config

type Config struct {

	// Deprecated. Ignored. Do not use.
	// See also https://crbug.com/1208569 to implement an alternative.
	//
	// Deprecated: Marked as deprecated in go.chromium.org/luci/cv/api/config/v2/config.proto.
	DrainingStartTime string `protobuf:"bytes,1,opt,name=draining_start_time,json=drainingStartTime,proto3" json:"draining_start_time,omitempty"`
	// Optional.
	//
	// Originally, this was used to specify the URL of the CQ status app where
	// users have access to their Run details. Currently, with the migration
	// from CQ to LUCI CV, this field no longer serves as the same meaning,
	// but is used to decide the visibility of the Run details via LUCI CV UI at
	// https://luci-change-verifier.appspot.com/ui/recents
	//
	// This field accepts the following values:
	//   - "chromium-cq-status.appspot.com": all Runs in this Project are public.
	//   - "internal-cq-status.appspot.com": all Runs in this Project are visible
	//     to Googler only.
	//
	// Note that the Run details page contains the name of the builders launched
	// to verify CL(s). Therefore, if this Project launches internal builders for
	// public repos and the builder names are confidential, please don't
	// use public host.
	//
	// Deprecated: Marked as deprecated in go.chromium.org/luci/cv/api/config/v2/config.proto.
	CqStatusHost string `protobuf:"bytes,2,opt,name=cq_status_host,json=cqStatusHost,proto3" json:"cq_status_host,omitempty"`
	// Optional options for how CLs should be submitted.
	SubmitOptions *SubmitOptions `protobuf:"bytes,3,opt,name=submit_options,json=submitOptions,proto3" json:"submit_options,omitempty"`
	// At least 1 ConfigGroup is required.
	ConfigGroups []*ConfigGroup `protobuf:"bytes,4,rep,name=config_groups,json=configGroups,proto3" json:"config_groups,omitempty"`
	// Deprecated. Ignored. Do not use.
	//
	// Deprecated: Marked as deprecated in go.chromium.org/luci/cv/api/config/v2/config.proto.
	ProjectScopedAccount Toggle `` /* 146-byte string literal not displayed */
	// If true, all linked accounts and the primary accounts will share the same
	// permission from LUCI CV's PoV.
	//
	// For example, if user has primary account as x@chromium.org and links it
	// to x@google.com in Gerrit, even though only x@google.com is granted
	// the permission to trigger CQ dry run in the configuration, LUCI CV will
	// allow x@chromium.org to trigger CQ dryrun.
	//
	// If enabled, the project scoped service account MUST have "Modify Account"
	// capabilities to see the linked Gerrit accounts.
	HonorGerritLinkedAccounts bool `` /* 141-byte string literal not displayed */
	// contains filtered or unexported fields
}

This message describes a CQ configuration.

The config file commit-queue.cfg should be stored in the config directory of your project, alongside cr-buildbucket.cfg.

Pro-tip: a command line tool exists to validate a locally generated .cfg file and verify that it matches arbitrary given CLs as expected. See https://chromium.googlesource.com/infra/luci/luci-go/+/refs/heads/main/cv/#luci-cv-command-line-utils

func (*Config) Descriptor deprecated

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

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetConfigGroups

func (x *Config) GetConfigGroups() []*ConfigGroup

func (*Config) GetCqStatusHost deprecated

func (x *Config) GetCqStatusHost() string

Deprecated: Marked as deprecated in go.chromium.org/luci/cv/api/config/v2/config.proto.

func (*Config) GetDrainingStartTime deprecated

func (x *Config) GetDrainingStartTime() string

Deprecated: Marked as deprecated in go.chromium.org/luci/cv/api/config/v2/config.proto.

func (*Config) GetHonorGerritLinkedAccounts

func (x *Config) GetHonorGerritLinkedAccounts() bool

func (*Config) GetProjectScopedAccount deprecated

func (x *Config) GetProjectScopedAccount() Toggle

Deprecated: Marked as deprecated in go.chromium.org/luci/cv/api/config/v2/config.proto.

func (*Config) GetSubmitOptions

func (x *Config) GetSubmitOptions() *SubmitOptions

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

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

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

func (*Config) Validate

func (m *Config) Validate() error

Validate checks the field values on Config with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Config) ValidateAll

func (m *Config) ValidateAll() error

ValidateAll checks the field values on Config with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConfigMultiError, or nil if none found.

type ConfigGroup

type ConfigGroup struct {

	// The human- and machine-readable name (unique within this project) of this
	// config group. This is used in messages posted to users and in monitoring
	// data. Must match regex "^[a-zA-Z][a-zA-Z0-9_-]*$".
	Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"`
	// At least 1 Gerrit instance with repositories to work with is required.
	Gerrit []*ConfigGroup_Gerrit `protobuf:"bytes,1,rep,name=gerrit,proto3" json:"gerrit,omitempty"`
	// Optional. If specified, CQ will consider sets of dependent CLs to test and
	// submit at the same time.
	//
	// Typical use-case is testing & submitting changes to multiple repos at the
	// same time, in which case all such repos must be declared up-front in
	// `Gerrit` part of this config_group.
	//
	// Not allowed to be used together with
	// submit_options.allow_submit_with_open_deps=true.
	CombineCls *CombineCLs `protobuf:"bytes,4,opt,name=combine_cls,json=combineCls,proto3" json:"combine_cls,omitempty"`
	// Defines how to verify a CL before submitting it. Required.
	Verifiers *Verifiers `protobuf:"bytes,2,opt,name=verifiers,proto3" json:"verifiers,omitempty"`
	// If set, this ConfigGroup will be used if no other ConfigGroup matches.
	//
	// At most 1 config_group can be YES.
	//
	// Example use is to define specific config_group for refs/heads/main,
	// and fallback one for refs/heads/* which will pick up all CLs on
	// non-main branches.
	//
	// TODO(crbug/966115): provide a better solution.
	Fallback Toggle `protobuf:"varint,5,opt,name=fallback,proto3,enum=cv.config.Toggle" json:"fallback,omitempty"`
	// Optional. Additional run modes supported besides standard DRY_RUN and
	// FULL_RUN.
	//
	// If specified, the order matters. CQ will create the Run with the first
	// mode for which triggering conditions are fulfilled. If there is no such
	// mode, CQ will fallback to standard DRY_RUN or FULL_RUN.
	//
	// All the mode names must be unique.
	AdditionalModes []*Mode `protobuf:"bytes,7,rep,name=additional_modes,json=additionalModes,proto3" json:"additional_modes,omitempty"`
	// Per-user limits.
	//
	// At the time of a Run creation, CV will iterate `user_limits` and apply the
	// first applicable limit to the Run. If none of the limit(s) are applicable,
	// CV will apply `user_limits_default` to the run.
	UserLimits []*UserLimit `protobuf:"bytes,8,rep,name=user_limits,json=userLimits,proto3" json:"user_limits,omitempty"`
	// Default per-user limit.
	//
	// If CV couldn't find an applicable limit from `user_limits`, this limit
	// will be applied.
	UserLimitDefault *UserLimit `protobuf:"bytes,9,opt,name=user_limit_default,json=userLimitDefault,proto3" json:"user_limit_default,omitempty"`
	// PostActions to be performed on a Run completion.
	//
	// On a Run completion, all the post actions with matching conditions will
	// be executed.
	//
	// All actions must have a unique name in the list.
	PostActions []*ConfigGroup_PostAction `protobuf:"bytes,10,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"`
	// TryjobExperiments that will be conditionally enabled for Tryjobs.
	TryjobExperiments []*ConfigGroup_TryjobExperiment `protobuf:"bytes,11,rep,name=tryjob_experiments,json=tryjobExperiments,proto3" json:"tryjob_experiments,omitempty"`
	// contains filtered or unexported fields
}

ConfigGroup allows one to share single verifiers config across a set of Gerrit repositories, which may be in different Gerrit installations.

func (*ConfigGroup) Descriptor deprecated

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

Deprecated: Use ConfigGroup.ProtoReflect.Descriptor instead.

func (*ConfigGroup) GetAdditionalModes

func (x *ConfigGroup) GetAdditionalModes() []*Mode

func (*ConfigGroup) GetCombineCls

func (x *ConfigGroup) GetCombineCls() *CombineCLs

func (*ConfigGroup) GetFallback

func (x *ConfigGroup) GetFallback() Toggle

func (*ConfigGroup) GetGerrit

func (x *ConfigGroup) GetGerrit() []*ConfigGroup_Gerrit

func (*ConfigGroup) GetName

func (x *ConfigGroup) GetName() string

func (*ConfigGroup) GetPostActions

func (x *ConfigGroup) GetPostActions() []*ConfigGroup_PostAction

func (*ConfigGroup) GetTryjobExperiments

func (x *ConfigGroup) GetTryjobExperiments() []*ConfigGroup_TryjobExperiment

func (*ConfigGroup) GetUserLimitDefault

func (x *ConfigGroup) GetUserLimitDefault() *UserLimit

func (*ConfigGroup) GetUserLimits

func (x *ConfigGroup) GetUserLimits() []*UserLimit

func (*ConfigGroup) GetVerifiers

func (x *ConfigGroup) GetVerifiers() *Verifiers

func (*ConfigGroup) ProtoMessage

func (*ConfigGroup) ProtoMessage()

func (*ConfigGroup) ProtoReflect

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

func (*ConfigGroup) Reset

func (x *ConfigGroup) Reset()

func (*ConfigGroup) String

func (x *ConfigGroup) String() string

func (*ConfigGroup) Validate

func (m *ConfigGroup) Validate() error

Validate checks the field values on ConfigGroup with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ConfigGroup) ValidateAll

func (m *ConfigGroup) ValidateAll() error

ValidateAll checks the field values on ConfigGroup with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConfigGroupMultiError, or nil if none found.

type ConfigGroupMultiError

type ConfigGroupMultiError []error

ConfigGroupMultiError is an error wrapping multiple validation errors returned by ConfigGroup.ValidateAll() if the designated constraints aren't met.

func (ConfigGroupMultiError) AllErrors

func (m ConfigGroupMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ConfigGroupMultiError) Error

func (m ConfigGroupMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ConfigGroupValidationError

type ConfigGroupValidationError struct {
	// contains filtered or unexported fields
}

ConfigGroupValidationError is the validation error returned by ConfigGroup.Validate if the designated constraints aren't met.

func (ConfigGroupValidationError) Cause

Cause function returns cause value.

func (ConfigGroupValidationError) Error

Error satisfies the builtin error interface

func (ConfigGroupValidationError) ErrorName

func (e ConfigGroupValidationError) ErrorName() string

ErrorName returns error name.

func (ConfigGroupValidationError) Field

Field function returns field value.

func (ConfigGroupValidationError) Key

Key function returns key value.

func (ConfigGroupValidationError) Reason

Reason function returns reason value.

type ConfigGroup_Gerrit

type ConfigGroup_Gerrit struct {

	// Gerrit URL, e.g., https://chromium-review.googlesource.com.
	// No trailing slashes allowed.
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	// Gerrit projects of this Gerrit instance to work with.
	//
	// At least 1 required.
	Projects []*ConfigGroup_Gerrit_Project `protobuf:"bytes,2,rep,name=projects,proto3" json:"projects,omitempty"`
	// contains filtered or unexported fields
}

Enumerates repositories on a Gerrit instance for which CQ should work.

func (*ConfigGroup_Gerrit) Descriptor deprecated

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

Deprecated: Use ConfigGroup_Gerrit.ProtoReflect.Descriptor instead.

func (*ConfigGroup_Gerrit) GetProjects

func (x *ConfigGroup_Gerrit) GetProjects() []*ConfigGroup_Gerrit_Project

func (*ConfigGroup_Gerrit) GetUrl

func (x *ConfigGroup_Gerrit) GetUrl() string

func (*ConfigGroup_Gerrit) ProtoMessage

func (*ConfigGroup_Gerrit) ProtoMessage()

func (*ConfigGroup_Gerrit) ProtoReflect

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

func (*ConfigGroup_Gerrit) Reset

func (x *ConfigGroup_Gerrit) Reset()

func (*ConfigGroup_Gerrit) String

func (x *ConfigGroup_Gerrit) String() string

func (*ConfigGroup_Gerrit) Validate

func (m *ConfigGroup_Gerrit) Validate() error

Validate checks the field values on ConfigGroup_Gerrit with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ConfigGroup_Gerrit) ValidateAll

func (m *ConfigGroup_Gerrit) ValidateAll() error

ValidateAll checks the field values on ConfigGroup_Gerrit with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConfigGroup_GerritMultiError, or nil if none found.

type ConfigGroup_GerritMultiError

type ConfigGroup_GerritMultiError []error

ConfigGroup_GerritMultiError is an error wrapping multiple validation errors returned by ConfigGroup_Gerrit.ValidateAll() if the designated constraints aren't met.

func (ConfigGroup_GerritMultiError) AllErrors

func (m ConfigGroup_GerritMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ConfigGroup_GerritMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ConfigGroup_GerritValidationError

type ConfigGroup_GerritValidationError struct {
	// contains filtered or unexported fields
}

ConfigGroup_GerritValidationError is the validation error returned by ConfigGroup_Gerrit.Validate if the designated constraints aren't met.

func (ConfigGroup_GerritValidationError) Cause

Cause function returns cause value.

func (ConfigGroup_GerritValidationError) Error

Error satisfies the builtin error interface

func (ConfigGroup_GerritValidationError) ErrorName

ErrorName returns error name.

func (ConfigGroup_GerritValidationError) Field

Field function returns field value.

func (ConfigGroup_GerritValidationError) Key

Key function returns key value.

func (ConfigGroup_GerritValidationError) Reason

Reason function returns reason value.

type ConfigGroup_Gerrit_Project

type ConfigGroup_Gerrit_Project struct {

	// Repository name inside Gerrit host. Required.
	//
	// No leading or trailing slashes allowed, no '.git' at the end.
	// 'a/' prefix is also not allowed (it's used on *.googlesource.com for
	// forcing authentication).
	//
	// Examples on https://chromium-review.googlesource.com:
	//
	//	catapult
	//	chromium/src
	//	chromium/tools/depot_tools
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Limit CLs in this repo to only these refs. Required.
	//
	// If not specified, defaults to "refs/heads/master".
	//
	// NOTE: your Gerrit admin must configure Gerrit ACLs such that CQ has
	// read access to these refs, otherwise your users will be waiting for CQ
	// to act on their CLs forever.
	//
	// Regular expression is validated by https://github.com/google/re2 library.
	//
	// NOTE: Git globs aren't supported. Convert them to a regular expression,
	// e.g., Git glob "refs/heads/*" should be "refs/heads/[^/]+".
	// However, users typically expect "refs/heads/.+", since expectation is
	// that every typical Git branch to be CQ-able, including
	// "refs/heads/experimental/foobar".
	RefRegexp []string `protobuf:"bytes,2,rep,name=ref_regexp,json=refRegexp,proto3" json:"ref_regexp,omitempty"`
	// Exclude matching refs in this repo. Optional.
	//
	// If a ref is matches at least one of the ref_regexp_exclude,
	// then it is ignored by this config group regardless of ref_regexp.
	//
	// The syntax is the same as for ref_regexp.
	RefRegexpExclude []string `protobuf:"bytes,3,rep,name=ref_regexp_exclude,json=refRegexpExclude,proto3" json:"ref_regexp_exclude,omitempty"`
	// contains filtered or unexported fields
}

func (*ConfigGroup_Gerrit_Project) Descriptor deprecated

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

Deprecated: Use ConfigGroup_Gerrit_Project.ProtoReflect.Descriptor instead.

func (*ConfigGroup_Gerrit_Project) GetName

func (x *ConfigGroup_Gerrit_Project) GetName() string

func (*ConfigGroup_Gerrit_Project) GetRefRegexp

func (x *ConfigGroup_Gerrit_Project) GetRefRegexp() []string

func (*ConfigGroup_Gerrit_Project) GetRefRegexpExclude

func (x *ConfigGroup_Gerrit_Project) GetRefRegexpExclude() []string

func (*ConfigGroup_Gerrit_Project) ProtoMessage

func (*ConfigGroup_Gerrit_Project) ProtoMessage()

func (*ConfigGroup_Gerrit_Project) ProtoReflect

func (*ConfigGroup_Gerrit_Project) Reset

func (x *ConfigGroup_Gerrit_Project) Reset()

func (*ConfigGroup_Gerrit_Project) String

func (x *ConfigGroup_Gerrit_Project) String() string

func (*ConfigGroup_Gerrit_Project) Validate

func (m *ConfigGroup_Gerrit_Project) Validate() error

Validate checks the field values on ConfigGroup_Gerrit_Project with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ConfigGroup_Gerrit_Project) ValidateAll

func (m *ConfigGroup_Gerrit_Project) ValidateAll() error

ValidateAll checks the field values on ConfigGroup_Gerrit_Project with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConfigGroup_Gerrit_ProjectMultiError, or nil if none found.

type ConfigGroup_Gerrit_ProjectMultiError

type ConfigGroup_Gerrit_ProjectMultiError []error

ConfigGroup_Gerrit_ProjectMultiError is an error wrapping multiple validation errors returned by ConfigGroup_Gerrit_Project.ValidateAll() if the designated constraints aren't met.

func (ConfigGroup_Gerrit_ProjectMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ConfigGroup_Gerrit_ProjectMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ConfigGroup_Gerrit_ProjectValidationError

type ConfigGroup_Gerrit_ProjectValidationError struct {
	// contains filtered or unexported fields
}

ConfigGroup_Gerrit_ProjectValidationError is the validation error returned by ConfigGroup_Gerrit_Project.Validate if the designated constraints aren't met.

func (ConfigGroup_Gerrit_ProjectValidationError) Cause

Cause function returns cause value.

func (ConfigGroup_Gerrit_ProjectValidationError) Error

Error satisfies the builtin error interface

func (ConfigGroup_Gerrit_ProjectValidationError) ErrorName

ErrorName returns error name.

func (ConfigGroup_Gerrit_ProjectValidationError) Field

Field function returns field value.

func (ConfigGroup_Gerrit_ProjectValidationError) Key

Key function returns key value.

func (ConfigGroup_Gerrit_ProjectValidationError) Reason

Reason function returns reason value.

type ConfigGroup_PostAction

type ConfigGroup_PostAction struct {

	// Name of the post action.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// If at least one of the conditions is met,
	// the action will be triggered on a Run completion.
	Conditions []*ConfigGroup_PostAction_TriggeringCondition `protobuf:"bytes,2,rep,name=conditions,proto3" json:"conditions,omitempty"`
	// Types that are assignable to Action:
	//
	//	*ConfigGroup_PostAction_VoteGerritLabels_
	Action isConfigGroup_PostAction_Action `protobuf_oneof:"action"`
	// contains filtered or unexported fields
}

Action to be performed on a Run completion.

func (*ConfigGroup_PostAction) Descriptor deprecated

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

Deprecated: Use ConfigGroup_PostAction.ProtoReflect.Descriptor instead.

func (*ConfigGroup_PostAction) GetAction

func (m *ConfigGroup_PostAction) GetAction() isConfigGroup_PostAction_Action

func (*ConfigGroup_PostAction) GetConditions

func (*ConfigGroup_PostAction) GetName

func (x *ConfigGroup_PostAction) GetName() string

func (*ConfigGroup_PostAction) GetVoteGerritLabels

func (*ConfigGroup_PostAction) ProtoMessage

func (*ConfigGroup_PostAction) ProtoMessage()

func (*ConfigGroup_PostAction) ProtoReflect

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

func (*ConfigGroup_PostAction) Reset

func (x *ConfigGroup_PostAction) Reset()

func (*ConfigGroup_PostAction) String

func (x *ConfigGroup_PostAction) String() string

func (*ConfigGroup_PostAction) Validate

func (m *ConfigGroup_PostAction) Validate() error

Validate checks the field values on ConfigGroup_PostAction with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ConfigGroup_PostAction) ValidateAll

func (m *ConfigGroup_PostAction) ValidateAll() error

ValidateAll checks the field values on ConfigGroup_PostAction with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConfigGroup_PostActionMultiError, or nil if none found.

type ConfigGroup_PostActionMultiError

type ConfigGroup_PostActionMultiError []error

ConfigGroup_PostActionMultiError is an error wrapping multiple validation errors returned by ConfigGroup_PostAction.ValidateAll() if the designated constraints aren't met.

func (ConfigGroup_PostActionMultiError) AllErrors

func (m ConfigGroup_PostActionMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ConfigGroup_PostActionMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ConfigGroup_PostActionValidationError

type ConfigGroup_PostActionValidationError struct {
	// contains filtered or unexported fields
}

ConfigGroup_PostActionValidationError is the validation error returned by ConfigGroup_PostAction.Validate if the designated constraints aren't met.

func (ConfigGroup_PostActionValidationError) Cause

Cause function returns cause value.

func (ConfigGroup_PostActionValidationError) Error

Error satisfies the builtin error interface

func (ConfigGroup_PostActionValidationError) ErrorName

ErrorName returns error name.

func (ConfigGroup_PostActionValidationError) Field

Field function returns field value.

func (ConfigGroup_PostActionValidationError) Key

Key function returns key value.

func (ConfigGroup_PostActionValidationError) Reason

Reason function returns reason value.

type ConfigGroup_PostAction_TriggeringCondition

type ConfigGroup_PostAction_TriggeringCondition struct {

	// Name of the mode to be matched.
	//
	// Must be FULL_RUN, DRY_RUN, NEW_PATCHSET_RUN, or one of the additional
	// modes configured.
	Mode string `protobuf:"bytes,1,opt,name=mode,proto3" json:"mode,omitempty"`
	// Statuses to trigger the action on.
	//
	// Must be terminal statuses.
	// Duplicates are not allowed.
	Statuses []v1.Run_Status `protobuf:"varint,2,rep,packed,name=statuses,proto3,enum=cv.v1.Run_Status" json:"statuses,omitempty"`
	// contains filtered or unexported fields
}

Condition to be met for the action to be triggered.

func (*ConfigGroup_PostAction_TriggeringCondition) Descriptor deprecated

Deprecated: Use ConfigGroup_PostAction_TriggeringCondition.ProtoReflect.Descriptor instead.

func (*ConfigGroup_PostAction_TriggeringCondition) GetMode

func (*ConfigGroup_PostAction_TriggeringCondition) GetStatuses

func (*ConfigGroup_PostAction_TriggeringCondition) ProtoMessage

func (*ConfigGroup_PostAction_TriggeringCondition) ProtoReflect

func (*ConfigGroup_PostAction_TriggeringCondition) Reset

func (*ConfigGroup_PostAction_TriggeringCondition) String

func (*ConfigGroup_PostAction_TriggeringCondition) Validate

Validate checks the field values on ConfigGroup_PostAction_TriggeringCondition with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ConfigGroup_PostAction_TriggeringCondition) ValidateAll

ValidateAll checks the field values on ConfigGroup_PostAction_TriggeringCondition with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConfigGroup_PostAction_TriggeringConditionMultiError, or nil if none found.

type ConfigGroup_PostAction_TriggeringConditionMultiError

type ConfigGroup_PostAction_TriggeringConditionMultiError []error

ConfigGroup_PostAction_TriggeringConditionMultiError is an error wrapping multiple validation errors returned by ConfigGroup_PostAction_TriggeringCondition.ValidateAll() if the designated constraints aren't met.

func (ConfigGroup_PostAction_TriggeringConditionMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ConfigGroup_PostAction_TriggeringConditionMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ConfigGroup_PostAction_TriggeringConditionValidationError

type ConfigGroup_PostAction_TriggeringConditionValidationError struct {
	// contains filtered or unexported fields
}

ConfigGroup_PostAction_TriggeringConditionValidationError is the validation error returned by ConfigGroup_PostAction_TriggeringCondition.Validate if the designated constraints aren't met.

func (ConfigGroup_PostAction_TriggeringConditionValidationError) Cause

Cause function returns cause value.

func (ConfigGroup_PostAction_TriggeringConditionValidationError) Error

Error satisfies the builtin error interface

func (ConfigGroup_PostAction_TriggeringConditionValidationError) ErrorName

ErrorName returns error name.

func (ConfigGroup_PostAction_TriggeringConditionValidationError) Field

Field function returns field value.

func (ConfigGroup_PostAction_TriggeringConditionValidationError) Key

Key function returns key value.

func (ConfigGroup_PostAction_TriggeringConditionValidationError) Reason

Reason function returns reason value.

type ConfigGroup_PostAction_VoteGerritLabels

type ConfigGroup_PostAction_VoteGerritLabels struct {

	// All label names must be unique.
	Votes []*ConfigGroup_PostAction_VoteGerritLabels_Vote `protobuf:"bytes,1,rep,name=votes,proto3" json:"votes,omitempty"`
	// contains filtered or unexported fields
}

Vote Gerrit labels with given values.

func (*ConfigGroup_PostAction_VoteGerritLabels) Descriptor deprecated

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

Deprecated: Use ConfigGroup_PostAction_VoteGerritLabels.ProtoReflect.Descriptor instead.

func (*ConfigGroup_PostAction_VoteGerritLabels) GetVotes

func (*ConfigGroup_PostAction_VoteGerritLabels) ProtoMessage

func (*ConfigGroup_PostAction_VoteGerritLabels) ProtoReflect

func (*ConfigGroup_PostAction_VoteGerritLabels) Reset

func (*ConfigGroup_PostAction_VoteGerritLabels) String

func (*ConfigGroup_PostAction_VoteGerritLabels) Validate

Validate checks the field values on ConfigGroup_PostAction_VoteGerritLabels with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ConfigGroup_PostAction_VoteGerritLabels) ValidateAll

ValidateAll checks the field values on ConfigGroup_PostAction_VoteGerritLabels with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConfigGroup_PostAction_VoteGerritLabelsMultiError, or nil if none found.

type ConfigGroup_PostAction_VoteGerritLabelsMultiError

type ConfigGroup_PostAction_VoteGerritLabelsMultiError []error

ConfigGroup_PostAction_VoteGerritLabelsMultiError is an error wrapping multiple validation errors returned by ConfigGroup_PostAction_VoteGerritLabels.ValidateAll() if the designated constraints aren't met.

func (ConfigGroup_PostAction_VoteGerritLabelsMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ConfigGroup_PostAction_VoteGerritLabelsMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ConfigGroup_PostAction_VoteGerritLabelsValidationError

type ConfigGroup_PostAction_VoteGerritLabelsValidationError struct {
	// contains filtered or unexported fields
}

ConfigGroup_PostAction_VoteGerritLabelsValidationError is the validation error returned by ConfigGroup_PostAction_VoteGerritLabels.Validate if the designated constraints aren't met.

func (ConfigGroup_PostAction_VoteGerritLabelsValidationError) Cause

Cause function returns cause value.

func (ConfigGroup_PostAction_VoteGerritLabelsValidationError) Error

Error satisfies the builtin error interface

func (ConfigGroup_PostAction_VoteGerritLabelsValidationError) ErrorName

ErrorName returns error name.

func (ConfigGroup_PostAction_VoteGerritLabelsValidationError) Field

Field function returns field value.

func (ConfigGroup_PostAction_VoteGerritLabelsValidationError) Key

Key function returns key value.

func (ConfigGroup_PostAction_VoteGerritLabelsValidationError) Reason

Reason function returns reason value.

type ConfigGroup_PostAction_VoteGerritLabels_

type ConfigGroup_PostAction_VoteGerritLabels_ struct {
	VoteGerritLabels *ConfigGroup_PostAction_VoteGerritLabels `protobuf:"bytes,3,opt,name=vote_gerrit_labels,json=voteGerritLabels,proto3,oneof"`
}

type ConfigGroup_PostAction_VoteGerritLabels_Vote

type ConfigGroup_PostAction_VoteGerritLabels_Vote struct {

	// Gerrit label name
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Value to set on the label
	Value int32 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*ConfigGroup_PostAction_VoteGerritLabels_Vote) Descriptor deprecated

Deprecated: Use ConfigGroup_PostAction_VoteGerritLabels_Vote.ProtoReflect.Descriptor instead.

func (*ConfigGroup_PostAction_VoteGerritLabels_Vote) GetName

func (*ConfigGroup_PostAction_VoteGerritLabels_Vote) GetValue

func (*ConfigGroup_PostAction_VoteGerritLabels_Vote) ProtoMessage

func (*ConfigGroup_PostAction_VoteGerritLabels_Vote) ProtoReflect

func (*ConfigGroup_PostAction_VoteGerritLabels_Vote) Reset

func (*ConfigGroup_PostAction_VoteGerritLabels_Vote) String

func (*ConfigGroup_PostAction_VoteGerritLabels_Vote) Validate

Validate checks the field values on ConfigGroup_PostAction_VoteGerritLabels_Vote with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ConfigGroup_PostAction_VoteGerritLabels_Vote) ValidateAll

ValidateAll checks the field values on ConfigGroup_PostAction_VoteGerritLabels_Vote with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConfigGroup_PostAction_VoteGerritLabels_VoteMultiError, or nil if none found.

type ConfigGroup_PostAction_VoteGerritLabels_VoteMultiError

type ConfigGroup_PostAction_VoteGerritLabels_VoteMultiError []error

ConfigGroup_PostAction_VoteGerritLabels_VoteMultiError is an error wrapping multiple validation errors returned by ConfigGroup_PostAction_VoteGerritLabels_Vote.ValidateAll() if the designated constraints aren't met.

func (ConfigGroup_PostAction_VoteGerritLabels_VoteMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ConfigGroup_PostAction_VoteGerritLabels_VoteMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ConfigGroup_PostAction_VoteGerritLabels_VoteValidationError

type ConfigGroup_PostAction_VoteGerritLabels_VoteValidationError struct {
	// contains filtered or unexported fields
}

ConfigGroup_PostAction_VoteGerritLabels_VoteValidationError is the validation error returned by ConfigGroup_PostAction_VoteGerritLabels_Vote.Validate if the designated constraints aren't met.

func (ConfigGroup_PostAction_VoteGerritLabels_VoteValidationError) Cause

Cause function returns cause value.

func (ConfigGroup_PostAction_VoteGerritLabels_VoteValidationError) Error

Error satisfies the builtin error interface

func (ConfigGroup_PostAction_VoteGerritLabels_VoteValidationError) ErrorName

ErrorName returns error name.

func (ConfigGroup_PostAction_VoteGerritLabels_VoteValidationError) Field

Field function returns field value.

func (ConfigGroup_PostAction_VoteGerritLabels_VoteValidationError) Key

Key function returns key value.

func (ConfigGroup_PostAction_VoteGerritLabels_VoteValidationError) Reason

Reason function returns reason value.

type ConfigGroup_TryjobExperiment

type ConfigGroup_TryjobExperiment struct {

	// Name of the experiment.
	//
	// See `experiments` field in
	// https://pkg.go.dev/go.chromium.org/luci/buildbucket/proto#BuilderConfig
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The condition to meet to enable this experiment.
	//
	// The absence of condition means the experiment will be enabled
	// unconditionally.
	Condition *ConfigGroup_TryjobExperiment_Condition `protobuf:"bytes,2,opt,name=condition,proto3" json:"condition,omitempty"`
	// contains filtered or unexported fields
}

TryjobExperiment is experiment (e.g. Buildbucket Build experiment) that will be enabled on the Tryjobs of CLs that meet the condition.

TODO(crbug/1440834): Currently this feature has a caveat that a Run with this experiment enabled may reuse the Tryjob from previous Run that doesn't have this experiment enabled. This typically happens to the Run triggered immediately after the config change.

func (*ConfigGroup_TryjobExperiment) Descriptor deprecated

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

Deprecated: Use ConfigGroup_TryjobExperiment.ProtoReflect.Descriptor instead.

func (*ConfigGroup_TryjobExperiment) GetCondition

func (*ConfigGroup_TryjobExperiment) GetName

func (x *ConfigGroup_TryjobExperiment) GetName() string

func (*ConfigGroup_TryjobExperiment) ProtoMessage

func (*ConfigGroup_TryjobExperiment) ProtoMessage()

func (*ConfigGroup_TryjobExperiment) ProtoReflect

func (*ConfigGroup_TryjobExperiment) Reset

func (x *ConfigGroup_TryjobExperiment) Reset()

func (*ConfigGroup_TryjobExperiment) String

func (*ConfigGroup_TryjobExperiment) Validate

func (m *ConfigGroup_TryjobExperiment) Validate() error

Validate checks the field values on ConfigGroup_TryjobExperiment with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ConfigGroup_TryjobExperiment) ValidateAll

func (m *ConfigGroup_TryjobExperiment) ValidateAll() error

ValidateAll checks the field values on ConfigGroup_TryjobExperiment with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConfigGroup_TryjobExperimentMultiError, or nil if none found.

type ConfigGroup_TryjobExperimentMultiError

type ConfigGroup_TryjobExperimentMultiError []error

ConfigGroup_TryjobExperimentMultiError is an error wrapping multiple validation errors returned by ConfigGroup_TryjobExperiment.ValidateAll() if the designated constraints aren't met.

func (ConfigGroup_TryjobExperimentMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ConfigGroup_TryjobExperimentMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ConfigGroup_TryjobExperimentValidationError

type ConfigGroup_TryjobExperimentValidationError struct {
	// contains filtered or unexported fields
}

ConfigGroup_TryjobExperimentValidationError is the validation error returned by ConfigGroup_TryjobExperiment.Validate if the designated constraints aren't met.

func (ConfigGroup_TryjobExperimentValidationError) Cause

Cause function returns cause value.

func (ConfigGroup_TryjobExperimentValidationError) Error

Error satisfies the builtin error interface

func (ConfigGroup_TryjobExperimentValidationError) ErrorName

ErrorName returns error name.

func (ConfigGroup_TryjobExperimentValidationError) Field

Field function returns field value.

func (ConfigGroup_TryjobExperimentValidationError) Key

Key function returns key value.

func (ConfigGroup_TryjobExperimentValidationError) Reason

Reason function returns reason value.

type ConfigGroup_TryjobExperiment_Condition

type ConfigGroup_TryjobExperiment_Condition struct {

	// ownerGroupAllowlist is a list of CrIA groups that the owner of the CL
	// must be a member in any of those groups in order to enable the
	// experiment.
	//
	// If the list is empty, this condition is considered as met.
	OwnerGroupAllowlist []string `protobuf:"bytes,1,rep,name=owner_group_allowlist,json=ownerGroupAllowlist,proto3" json:"owner_group_allowlist,omitempty"`
	// contains filtered or unexported fields
}

Condition describes the condition for this experiment to be enabled.

func (*ConfigGroup_TryjobExperiment_Condition) Descriptor deprecated

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

Deprecated: Use ConfigGroup_TryjobExperiment_Condition.ProtoReflect.Descriptor instead.

func (*ConfigGroup_TryjobExperiment_Condition) GetOwnerGroupAllowlist

func (x *ConfigGroup_TryjobExperiment_Condition) GetOwnerGroupAllowlist() []string

func (*ConfigGroup_TryjobExperiment_Condition) ProtoMessage

func (*ConfigGroup_TryjobExperiment_Condition) ProtoReflect

func (*ConfigGroup_TryjobExperiment_Condition) Reset

func (*ConfigGroup_TryjobExperiment_Condition) String

func (*ConfigGroup_TryjobExperiment_Condition) Validate

Validate checks the field values on ConfigGroup_TryjobExperiment_Condition with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ConfigGroup_TryjobExperiment_Condition) ValidateAll

ValidateAll checks the field values on ConfigGroup_TryjobExperiment_Condition with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConfigGroup_TryjobExperiment_ConditionMultiError, or nil if none found.

type ConfigGroup_TryjobExperiment_ConditionMultiError

type ConfigGroup_TryjobExperiment_ConditionMultiError []error

ConfigGroup_TryjobExperiment_ConditionMultiError is an error wrapping multiple validation errors returned by ConfigGroup_TryjobExperiment_Condition.ValidateAll() if the designated constraints aren't met.

func (ConfigGroup_TryjobExperiment_ConditionMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ConfigGroup_TryjobExperiment_ConditionMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ConfigGroup_TryjobExperiment_ConditionValidationError

type ConfigGroup_TryjobExperiment_ConditionValidationError struct {
	// contains filtered or unexported fields
}

ConfigGroup_TryjobExperiment_ConditionValidationError is the validation error returned by ConfigGroup_TryjobExperiment_Condition.Validate if the designated constraints aren't met.

func (ConfigGroup_TryjobExperiment_ConditionValidationError) Cause

Cause function returns cause value.

func (ConfigGroup_TryjobExperiment_ConditionValidationError) Error

Error satisfies the builtin error interface

func (ConfigGroup_TryjobExperiment_ConditionValidationError) ErrorName

ErrorName returns error name.

func (ConfigGroup_TryjobExperiment_ConditionValidationError) Field

Field function returns field value.

func (ConfigGroup_TryjobExperiment_ConditionValidationError) Key

Key function returns key value.

func (ConfigGroup_TryjobExperiment_ConditionValidationError) Reason

Reason function returns reason value.

type ConfigMultiError

type ConfigMultiError []error

ConfigMultiError is an error wrapping multiple validation errors returned by Config.ValidateAll() if the designated constraints aren't met.

func (ConfigMultiError) AllErrors

func (m ConfigMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ConfigMultiError) Error

func (m ConfigMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ConfigValidationError

type ConfigValidationError struct {
	// contains filtered or unexported fields
}

ConfigValidationError is the validation error returned by Config.Validate if the designated constraints aren't met.

func (ConfigValidationError) Cause

func (e ConfigValidationError) Cause() error

Cause function returns cause value.

func (ConfigValidationError) Error

func (e ConfigValidationError) Error() string

Error satisfies the builtin error interface

func (ConfigValidationError) ErrorName

func (e ConfigValidationError) ErrorName() string

ErrorName returns error name.

func (ConfigValidationError) Field

func (e ConfigValidationError) Field() string

Field function returns field value.

func (ConfigValidationError) Key

func (e ConfigValidationError) Key() bool

Key function returns key value.

func (ConfigValidationError) Reason

func (e ConfigValidationError) Reason() string

Reason function returns reason value.

type Mode

type Mode struct {

	// Name of the mode.
	//
	// Must match regex "^[A-Z][A-Z_]{0,39}$".
	// Must not be one of the reserved Run modes
	//   - DRY_RUN
	//   - FULL_RUN
	//   - NEW_PATCHSET_RUN
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Value of Commit-Queue label that triggers a run in the mode.
	//
	// Must be either 1 or 2. If 2 is provided, LUCI CV will follow the
	// FULL_RUN behavior that it will submit CL(s) in this run after all
	// tryjobs have passed.
	CqLabelValue int32 `protobuf:"varint,2,opt,name=cq_label_value,json=cqLabelValue,proto3" json:"cq_label_value,omitempty"`
	// Label that MUST also be voted with `triggering_value` in addition to
	// "Commit-Queue" label to trigger a run in the mode.
	//
	// Must not be "Commit-Queue"
	TriggeringLabel string `protobuf:"bytes,3,opt,name=triggering_label,json=triggeringLabel,proto3" json:"triggering_label,omitempty"`
	// Value of the `triggering_label` that triggers a run in the mode.
	//
	// Must be > 0.
	TriggeringValue int32 `protobuf:"varint,4,opt,name=triggering_value,json=triggeringValue,proto3" json:"triggering_value,omitempty"`
	// contains filtered or unexported fields
}

Mode defines a CQ Run mode and how it can be triggered.

The mode ACL check will be same as dry run (i.e. use `dry_run_access_list`) if 1 is provided for `cq_label_value`. Otherwise, the check will the same as full run (i.e. checking whether CL is approved and whether CL owner is committer) if 2 is provided for `cq_label_value`.

func (*Mode) Descriptor deprecated

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

Deprecated: Use Mode.ProtoReflect.Descriptor instead.

func (*Mode) GetCqLabelValue

func (x *Mode) GetCqLabelValue() int32

func (*Mode) GetName

func (x *Mode) GetName() string

func (*Mode) GetTriggeringLabel

func (x *Mode) GetTriggeringLabel() string

func (*Mode) GetTriggeringValue

func (x *Mode) GetTriggeringValue() int32

func (*Mode) ProtoMessage

func (*Mode) ProtoMessage()

func (*Mode) ProtoReflect

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

func (*Mode) Reset

func (x *Mode) Reset()

func (*Mode) String

func (x *Mode) String() string

func (*Mode) Validate

func (m *Mode) Validate() error

Validate checks the field values on Mode with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Mode) ValidateAll

func (m *Mode) ValidateAll() error

ValidateAll checks the field values on Mode with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ModeMultiError, or nil if none found.

type ModeMultiError

type ModeMultiError []error

ModeMultiError is an error wrapping multiple validation errors returned by Mode.ValidateAll() if the designated constraints aren't met.

func (ModeMultiError) AllErrors

func (m ModeMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ModeMultiError) Error

func (m ModeMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ModeValidationError

type ModeValidationError struct {
	// contains filtered or unexported fields
}

ModeValidationError is the validation error returned by Mode.Validate if the designated constraints aren't met.

func (ModeValidationError) Cause

func (e ModeValidationError) Cause() error

Cause function returns cause value.

func (ModeValidationError) Error

func (e ModeValidationError) Error() string

Error satisfies the builtin error interface

func (ModeValidationError) ErrorName

func (e ModeValidationError) ErrorName() string

ErrorName returns error name.

func (ModeValidationError) Field

func (e ModeValidationError) Field() string

Field function returns field value.

func (ModeValidationError) Key

func (e ModeValidationError) Key() bool

Key function returns key value.

func (ModeValidationError) Reason

func (e ModeValidationError) Reason() string

Reason function returns reason value.

type SubmitOptions

type SubmitOptions struct {

	// Optional. Maximum number of successful CQ attempts completed by submitting
	// corresponding Gerrit CL(s) before waiting burst_delay.
	//
	// This feature today applies to all attempts processed by this CQ, across all
	// config_groups.
	//
	// Must be >0 to take effect. Requires burst_delay to be set, too.
	MaxBurst int32 `protobuf:"varint,1,opt,name=max_burst,json=maxBurst,proto3" json:"max_burst,omitempty"`
	// Optional. Delay between bursts of submissions of CQ attempts.
	// See max_burst for more info.
	//
	// Must be >0 to take effect. Requires max_burst to be set, too.
	BurstDelay *durationpb.Duration `protobuf:"bytes,2,opt,name=burst_delay,json=burstDelay,proto3" json:"burst_delay,omitempty"`
	// contains filtered or unexported fields
}

SubmitOptions control how CQ submits CLs.

func (*SubmitOptions) Descriptor deprecated

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

Deprecated: Use SubmitOptions.ProtoReflect.Descriptor instead.

func (*SubmitOptions) GetBurstDelay

func (x *SubmitOptions) GetBurstDelay() *durationpb.Duration

func (*SubmitOptions) GetMaxBurst

func (x *SubmitOptions) GetMaxBurst() int32

func (*SubmitOptions) ProtoMessage

func (*SubmitOptions) ProtoMessage()

func (*SubmitOptions) ProtoReflect

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

func (*SubmitOptions) Reset

func (x *SubmitOptions) Reset()

func (*SubmitOptions) String

func (x *SubmitOptions) String() string

func (*SubmitOptions) Validate

func (m *SubmitOptions) Validate() error

Validate checks the field values on SubmitOptions with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SubmitOptions) ValidateAll

func (m *SubmitOptions) ValidateAll() error

ValidateAll checks the field values on SubmitOptions with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SubmitOptionsMultiError, or nil if none found.

type SubmitOptionsMultiError

type SubmitOptionsMultiError []error

SubmitOptionsMultiError is an error wrapping multiple validation errors returned by SubmitOptions.ValidateAll() if the designated constraints aren't met.

func (SubmitOptionsMultiError) AllErrors

func (m SubmitOptionsMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SubmitOptionsMultiError) Error

func (m SubmitOptionsMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type SubmitOptionsValidationError

type SubmitOptionsValidationError struct {
	// contains filtered or unexported fields
}

SubmitOptionsValidationError is the validation error returned by SubmitOptions.Validate if the designated constraints aren't met.

func (SubmitOptionsValidationError) Cause

Cause function returns cause value.

func (SubmitOptionsValidationError) Error

Error satisfies the builtin error interface

func (SubmitOptionsValidationError) ErrorName

func (e SubmitOptionsValidationError) ErrorName() string

ErrorName returns error name.

func (SubmitOptionsValidationError) Field

Field function returns field value.

func (SubmitOptionsValidationError) Key

Key function returns key value.

func (SubmitOptionsValidationError) Reason

Reason function returns reason value.

type Toggle

type Toggle int32

A boolean with an "unset" default value.

const (
	Toggle_UNSET Toggle = 0
	Toggle_YES   Toggle = 1
	Toggle_NO    Toggle = 2
)

func (Toggle) Descriptor

func (Toggle) Descriptor() protoreflect.EnumDescriptor

func (Toggle) Enum

func (x Toggle) Enum() *Toggle

func (Toggle) EnumDescriptor deprecated

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

Deprecated: Use Toggle.Descriptor instead.

func (Toggle) Number

func (x Toggle) Number() protoreflect.EnumNumber

func (Toggle) String

func (x Toggle) String() string

func (Toggle) Type

func (Toggle) Type() protoreflect.EnumType

type UserLimit

type UserLimit struct {

	// Name of the limit. Must be unique across all the policies
	// with the LUCI project.
	//
	// Required. Must match regex '^[0-9A-Za-z][0-9A-Za-z\.\-@_+]{0,511}$'
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Principals to apply the limits to.
	//
	// Each entry can be either an identity string "user:<email>"
	// or a LUCI group reference "group:<name>"
	Principals []string `protobuf:"bytes,2,rep,name=principals,proto3" json:"principals,omitempty"`
	// Run limits. Required.
	Run *UserLimit_Run `protobuf:"bytes,5,opt,name=run,proto3" json:"run,omitempty"`
	// Tryjob limits. Required
	Tryjob *UserLimit_Tryjob `protobuf:"bytes,6,opt,name=tryjob,proto3" json:"tryjob,omitempty"`
	// contains filtered or unexported fields
}

UserLimit specifies Run and Tryjob limits per user.

func (*UserLimit) Descriptor deprecated

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

Deprecated: Use UserLimit.ProtoReflect.Descriptor instead.

func (*UserLimit) GetName

func (x *UserLimit) GetName() string

func (*UserLimit) GetPrincipals

func (x *UserLimit) GetPrincipals() []string

func (*UserLimit) GetRun

func (x *UserLimit) GetRun() *UserLimit_Run

func (*UserLimit) GetTryjob

func (x *UserLimit) GetTryjob() *UserLimit_Tryjob

func (*UserLimit) ProtoMessage

func (*UserLimit) ProtoMessage()

func (*UserLimit) ProtoReflect

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

func (*UserLimit) Reset

func (x *UserLimit) Reset()

func (*UserLimit) String

func (x *UserLimit) String() string

func (*UserLimit) Validate

func (m *UserLimit) Validate() error

Validate checks the field values on UserLimit with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UserLimit) ValidateAll

func (m *UserLimit) ValidateAll() error

ValidateAll checks the field values on UserLimit with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserLimitMultiError, or nil if none found.

type UserLimitMultiError

type UserLimitMultiError []error

UserLimitMultiError is an error wrapping multiple validation errors returned by UserLimit.ValidateAll() if the designated constraints aren't met.

func (UserLimitMultiError) AllErrors

func (m UserLimitMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserLimitMultiError) Error

func (m UserLimitMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type UserLimitValidationError

type UserLimitValidationError struct {
	// contains filtered or unexported fields
}

UserLimitValidationError is the validation error returned by UserLimit.Validate if the designated constraints aren't met.

func (UserLimitValidationError) Cause

func (e UserLimitValidationError) Cause() error

Cause function returns cause value.

func (UserLimitValidationError) Error

func (e UserLimitValidationError) Error() string

Error satisfies the builtin error interface

func (UserLimitValidationError) ErrorName

func (e UserLimitValidationError) ErrorName() string

ErrorName returns error name.

func (UserLimitValidationError) Field

func (e UserLimitValidationError) Field() string

Field function returns field value.

func (UserLimitValidationError) Key

Key function returns key value.

func (UserLimitValidationError) Reason

func (e UserLimitValidationError) Reason() string

Reason function returns reason value.

type UserLimit_Limit

type UserLimit_Limit struct {

	// Required. value must be > 0, unless unlimited is set to True.
	//
	// Types that are assignable to Limit:
	//
	//	*UserLimit_Limit_Value
	//	*UserLimit_Limit_Unlimited
	Limit isUserLimit_Limit_Limit `protobuf_oneof:"limit"`
	// contains filtered or unexported fields
}

func (*UserLimit_Limit) Descriptor deprecated

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

Deprecated: Use UserLimit_Limit.ProtoReflect.Descriptor instead.

func (*UserLimit_Limit) GetLimit

func (m *UserLimit_Limit) GetLimit() isUserLimit_Limit_Limit

func (*UserLimit_Limit) GetUnlimited

func (x *UserLimit_Limit) GetUnlimited() bool

func (*UserLimit_Limit) GetValue

func (x *UserLimit_Limit) GetValue() int64

func (*UserLimit_Limit) ProtoMessage

func (*UserLimit_Limit) ProtoMessage()

func (*UserLimit_Limit) ProtoReflect

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

func (*UserLimit_Limit) Reset

func (x *UserLimit_Limit) Reset()

func (*UserLimit_Limit) String

func (x *UserLimit_Limit) String() string

func (*UserLimit_Limit) Validate

func (m *UserLimit_Limit) Validate() error

Validate checks the field values on UserLimit_Limit with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UserLimit_Limit) ValidateAll

func (m *UserLimit_Limit) ValidateAll() error

ValidateAll checks the field values on UserLimit_Limit with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserLimit_LimitMultiError, or nil if none found.

type UserLimit_LimitMultiError

type UserLimit_LimitMultiError []error

UserLimit_LimitMultiError is an error wrapping multiple validation errors returned by UserLimit_Limit.ValidateAll() if the designated constraints aren't met.

func (UserLimit_LimitMultiError) AllErrors

func (m UserLimit_LimitMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserLimit_LimitMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UserLimit_LimitValidationError

type UserLimit_LimitValidationError struct {
	// contains filtered or unexported fields
}

UserLimit_LimitValidationError is the validation error returned by UserLimit_Limit.Validate if the designated constraints aren't met.

func (UserLimit_LimitValidationError) Cause

Cause function returns cause value.

func (UserLimit_LimitValidationError) Error

Error satisfies the builtin error interface

func (UserLimit_LimitValidationError) ErrorName

func (e UserLimit_LimitValidationError) ErrorName() string

ErrorName returns error name.

func (UserLimit_LimitValidationError) Field

Field function returns field value.

func (UserLimit_LimitValidationError) Key

Key function returns key value.

func (UserLimit_LimitValidationError) Reason

Reason function returns reason value.

type UserLimit_Limit_Unlimited

type UserLimit_Limit_Unlimited struct {
	Unlimited bool `protobuf:"varint,2,opt,name=unlimited,proto3,oneof"`
}

type UserLimit_Limit_Value

type UserLimit_Limit_Value struct {
	Value int64 `protobuf:"varint,1,opt,name=value,proto3,oneof"`
}

type UserLimit_Run

type UserLimit_Run struct {

	// Maximum number of active runs that the user can have at any moment.
	//
	// Required. Active Run is a Run that has started but not ended yet.
	MaxActive *UserLimit_Limit `protobuf:"bytes,1,opt,name=max_active,json=maxActive,proto3" json:"max_active,omitempty"`
	// Optional custom message appended to the end of the quota exhaustion
	// message posted to gerrit.
	ReachLimitMsg string `protobuf:"bytes,2,opt,name=reach_limit_msg,json=reachLimitMsg,proto3" json:"reach_limit_msg,omitempty"`
	// contains filtered or unexported fields
}

func (*UserLimit_Run) Descriptor deprecated

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

Deprecated: Use UserLimit_Run.ProtoReflect.Descriptor instead.

func (*UserLimit_Run) GetMaxActive

func (x *UserLimit_Run) GetMaxActive() *UserLimit_Limit

func (*UserLimit_Run) GetReachLimitMsg

func (x *UserLimit_Run) GetReachLimitMsg() string

func (*UserLimit_Run) ProtoMessage

func (*UserLimit_Run) ProtoMessage()

func (*UserLimit_Run) ProtoReflect

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

func (*UserLimit_Run) Reset

func (x *UserLimit_Run) Reset()

func (*UserLimit_Run) String

func (x *UserLimit_Run) String() string

func (*UserLimit_Run) Validate

func (m *UserLimit_Run) Validate() error

Validate checks the field values on UserLimit_Run with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UserLimit_Run) ValidateAll

func (m *UserLimit_Run) ValidateAll() error

ValidateAll checks the field values on UserLimit_Run with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserLimit_RunMultiError, or nil if none found.

type UserLimit_RunMultiError

type UserLimit_RunMultiError []error

UserLimit_RunMultiError is an error wrapping multiple validation errors returned by UserLimit_Run.ValidateAll() if the designated constraints aren't met.

func (UserLimit_RunMultiError) AllErrors

func (m UserLimit_RunMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserLimit_RunMultiError) Error

func (m UserLimit_RunMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type UserLimit_RunValidationError

type UserLimit_RunValidationError struct {
	// contains filtered or unexported fields
}

UserLimit_RunValidationError is the validation error returned by UserLimit_Run.Validate if the designated constraints aren't met.

func (UserLimit_RunValidationError) Cause

Cause function returns cause value.

func (UserLimit_RunValidationError) Error

Error satisfies the builtin error interface

func (UserLimit_RunValidationError) ErrorName

func (e UserLimit_RunValidationError) ErrorName() string

ErrorName returns error name.

func (UserLimit_RunValidationError) Field

Field function returns field value.

func (UserLimit_RunValidationError) Key

Key function returns key value.

func (UserLimit_RunValidationError) Reason

Reason function returns reason value.

type UserLimit_Tryjob

type UserLimit_Tryjob struct {

	// Maximum number of active tryjobs that the user can have at any
	// moment.
	//
	// Active tryjob is a tryjob that CV has successfully launched,
	// and has not ended yet from CV's point of view. Also, optional
	// tryjobs, which are experimental tryjobs that were not explicitly
	// requested via the git footer, are not counted as active tryjobs.
	//
	// Note that counting active tryjobs and launching tryjobs are not
	// atomic operations. So, # of active tryjobs may not match # of
	// the successfully launched tryjobs for a short period, but will
	// match eventually.
	//
	// If not specified, an unlimited number of active Tryjobs are allowed.
	MaxActive *UserLimit_Limit `protobuf:"bytes,1,opt,name=max_active,json=maxActive,proto3" json:"max_active,omitempty"`
	// contains filtered or unexported fields
}

func (*UserLimit_Tryjob) Descriptor deprecated

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

Deprecated: Use UserLimit_Tryjob.ProtoReflect.Descriptor instead.

func (*UserLimit_Tryjob) GetMaxActive

func (x *UserLimit_Tryjob) GetMaxActive() *UserLimit_Limit

func (*UserLimit_Tryjob) ProtoMessage

func (*UserLimit_Tryjob) ProtoMessage()

func (*UserLimit_Tryjob) ProtoReflect

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

func (*UserLimit_Tryjob) Reset

func (x *UserLimit_Tryjob) Reset()

func (*UserLimit_Tryjob) String

func (x *UserLimit_Tryjob) String() string

func (*UserLimit_Tryjob) Validate

func (m *UserLimit_Tryjob) Validate() error

Validate checks the field values on UserLimit_Tryjob with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UserLimit_Tryjob) ValidateAll

func (m *UserLimit_Tryjob) ValidateAll() error

ValidateAll checks the field values on UserLimit_Tryjob with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserLimit_TryjobMultiError, or nil if none found.

type UserLimit_TryjobMultiError

type UserLimit_TryjobMultiError []error

UserLimit_TryjobMultiError is an error wrapping multiple validation errors returned by UserLimit_Tryjob.ValidateAll() if the designated constraints aren't met.

func (UserLimit_TryjobMultiError) AllErrors

func (m UserLimit_TryjobMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserLimit_TryjobMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UserLimit_TryjobValidationError

type UserLimit_TryjobValidationError struct {
	// contains filtered or unexported fields
}

UserLimit_TryjobValidationError is the validation error returned by UserLimit_Tryjob.Validate if the designated constraints aren't met.

func (UserLimit_TryjobValidationError) Cause

Cause function returns cause value.

func (UserLimit_TryjobValidationError) Error

Error satisfies the builtin error interface

func (UserLimit_TryjobValidationError) ErrorName

ErrorName returns error name.

func (UserLimit_TryjobValidationError) Field

Field function returns field value.

func (UserLimit_TryjobValidationError) Key

Key function returns key value.

func (UserLimit_TryjobValidationError) Reason

Reason function returns reason value.

type Verifiers

type Verifiers struct {

	// Required. GerritCQAbility ensures that a user who triggered
	// this CQ attempt actually has rights to do so based on 3 factors:
	//   - membership of the user in committers & dryrunners group,
	//   - the state of CL/patchset on which CQ is triggered,
	//   - relationship of the user to the CL.
	GerritCqAbility *Verifiers_GerritCQAbility `protobuf:"bytes,1,opt,name=gerrit_cq_ability,json=gerritCqAbility,proto3" json:"gerrit_cq_ability,omitempty"`
	// This verifier is used to check tree status before committing a CL. If the
	// tree is closed, then the verifier will wait until it is reopened.
	TreeStatus *Verifiers_TreeStatus `protobuf:"bytes,2,opt,name=tree_status,json=treeStatus,proto3" json:"tree_status,omitempty"`
	// This verifier triggers a set of builds through Buildbucket.
	//
	// CQ automatically retries failed tryjobs and only allows CL to land if each
	// builder has succeeded in the latest retry.
	// If a given tryjob result is too old (>1 day) it is ignored.
	//
	// Typically, builds from Buildbucket are executed on LUCI stack, however, CQ
	// is agnostic to how and where builds are executed.
	Tryjob *Verifiers_Tryjob `protobuf:"bytes,3,opt,name=tryjob,proto3" json:"tryjob,omitempty"`
	// CQLinter is for internal CQ use only. DO NOT USE IN YOUR cq.cfg.
	Cqlinter *Verifiers_CQLinter `protobuf:"bytes,4,opt,name=cqlinter,proto3" json:"cqlinter,omitempty"`
	// Fake is for internal CQ use only. DO NOT USE IN YOUR cq.cfg.
	Fake *Verifiers_Fake `protobuf:"bytes,5,opt,name=fake,proto3" json:"fake,omitempty"`
	// contains filtered or unexported fields
}

Verifiers are various types of checks that a Commit Queue performs on a CL. All verifiers must pass in order for a CL to be submitted. Configuration file describes types of verifiers that should be applied to each CL and their parameters.

func (*Verifiers) Descriptor deprecated

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

Deprecated: Use Verifiers.ProtoReflect.Descriptor instead.

func (*Verifiers) GetCqlinter

func (x *Verifiers) GetCqlinter() *Verifiers_CQLinter

func (*Verifiers) GetFake

func (x *Verifiers) GetFake() *Verifiers_Fake

func (*Verifiers) GetGerritCqAbility

func (x *Verifiers) GetGerritCqAbility() *Verifiers_GerritCQAbility

func (*Verifiers) GetTreeStatus

func (x *Verifiers) GetTreeStatus() *Verifiers_TreeStatus

func (*Verifiers) GetTryjob

func (x *Verifiers) GetTryjob() *Verifiers_Tryjob

func (*Verifiers) ProtoMessage

func (*Verifiers) ProtoMessage()

func (*Verifiers) ProtoReflect

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

func (*Verifiers) Reset

func (x *Verifiers) Reset()

func (*Verifiers) String

func (x *Verifiers) String() string

func (*Verifiers) Validate

func (m *Verifiers) Validate() error

Validate checks the field values on Verifiers with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Verifiers) ValidateAll

func (m *Verifiers) ValidateAll() error

ValidateAll checks the field values on Verifiers with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in VerifiersMultiError, or nil if none found.

type VerifiersMultiError

type VerifiersMultiError []error

VerifiersMultiError is an error wrapping multiple validation errors returned by Verifiers.ValidateAll() if the designated constraints aren't met.

func (VerifiersMultiError) AllErrors

func (m VerifiersMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (VerifiersMultiError) Error

func (m VerifiersMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type VerifiersValidationError

type VerifiersValidationError struct {
	// contains filtered or unexported fields
}

VerifiersValidationError is the validation error returned by Verifiers.Validate if the designated constraints aren't met.

func (VerifiersValidationError) Cause

func (e VerifiersValidationError) Cause() error

Cause function returns cause value.

func (VerifiersValidationError) Error

func (e VerifiersValidationError) Error() string

Error satisfies the builtin error interface

func (VerifiersValidationError) ErrorName

func (e VerifiersValidationError) ErrorName() string

ErrorName returns error name.

func (VerifiersValidationError) Field

func (e VerifiersValidationError) Field() string

Field function returns field value.

func (VerifiersValidationError) Key

Key function returns key value.

func (VerifiersValidationError) Reason

func (e VerifiersValidationError) Reason() string

Reason function returns reason value.

type Verifiers_CQLinter

type Verifiers_CQLinter struct {
	// contains filtered or unexported fields
}

CQLinter is for internal use in CQ.

Deprecated. Do not use. TODO(crbug/1127991): Remove after migration off CQDaemon is completed.

func (*Verifiers_CQLinter) Descriptor deprecated

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

Deprecated: Use Verifiers_CQLinter.ProtoReflect.Descriptor instead.

func (*Verifiers_CQLinter) ProtoMessage

func (*Verifiers_CQLinter) ProtoMessage()

func (*Verifiers_CQLinter) ProtoReflect

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

func (*Verifiers_CQLinter) Reset

func (x *Verifiers_CQLinter) Reset()

func (*Verifiers_CQLinter) String

func (x *Verifiers_CQLinter) String() string

func (*Verifiers_CQLinter) Validate

func (m *Verifiers_CQLinter) Validate() error

Validate checks the field values on Verifiers_CQLinter with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Verifiers_CQLinter) ValidateAll

func (m *Verifiers_CQLinter) ValidateAll() error

ValidateAll checks the field values on Verifiers_CQLinter with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Verifiers_CQLinterMultiError, or nil if none found.

type Verifiers_CQLinterMultiError

type Verifiers_CQLinterMultiError []error

Verifiers_CQLinterMultiError is an error wrapping multiple validation errors returned by Verifiers_CQLinter.ValidateAll() if the designated constraints aren't met.

func (Verifiers_CQLinterMultiError) AllErrors

func (m Verifiers_CQLinterMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Verifiers_CQLinterMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type Verifiers_CQLinterValidationError

type Verifiers_CQLinterValidationError struct {
	// contains filtered or unexported fields
}

Verifiers_CQLinterValidationError is the validation error returned by Verifiers_CQLinter.Validate if the designated constraints aren't met.

func (Verifiers_CQLinterValidationError) Cause

Cause function returns cause value.

func (Verifiers_CQLinterValidationError) Error

Error satisfies the builtin error interface

func (Verifiers_CQLinterValidationError) ErrorName

ErrorName returns error name.

func (Verifiers_CQLinterValidationError) Field

Field function returns field value.

func (Verifiers_CQLinterValidationError) Key

Key function returns key value.

func (Verifiers_CQLinterValidationError) Reason

Reason function returns reason value.

type Verifiers_Fake

type Verifiers_Fake struct {
	Name          string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	EventualState string `protobuf:"bytes,2,opt,name=eventual_state,json=eventualState,proto3" json:"eventual_state,omitempty"`
	Delay         int32  `protobuf:"varint,3,opt,name=delay,proto3" json:"delay,omitempty"`
	// contains filtered or unexported fields
}

Fake is for internal use in CQ.

Deprecated. Do not use. TODO(crbug/1127991): Remove after migration off CQDaemon is completed.

func (*Verifiers_Fake) Descriptor deprecated

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

Deprecated: Use Verifiers_Fake.ProtoReflect.Descriptor instead.

func (*Verifiers_Fake) GetDelay

func (x *Verifiers_Fake) GetDelay() int32

func (*Verifiers_Fake) GetEventualState

func (x *Verifiers_Fake) GetEventualState() string

func (*Verifiers_Fake) GetName

func (x *Verifiers_Fake) GetName() string

func (*Verifiers_Fake) ProtoMessage

func (*Verifiers_Fake) ProtoMessage()

func (*Verifiers_Fake) ProtoReflect

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

func (*Verifiers_Fake) Reset

func (x *Verifiers_Fake) Reset()

func (*Verifiers_Fake) String

func (x *Verifiers_Fake) String() string

func (*Verifiers_Fake) Validate

func (m *Verifiers_Fake) Validate() error

Validate checks the field values on Verifiers_Fake with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Verifiers_Fake) ValidateAll

func (m *Verifiers_Fake) ValidateAll() error

ValidateAll checks the field values on Verifiers_Fake with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Verifiers_FakeMultiError, or nil if none found.

type Verifiers_FakeMultiError

type Verifiers_FakeMultiError []error

Verifiers_FakeMultiError is an error wrapping multiple validation errors returned by Verifiers_Fake.ValidateAll() if the designated constraints aren't met.

func (Verifiers_FakeMultiError) AllErrors

func (m Verifiers_FakeMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Verifiers_FakeMultiError) Error

func (m Verifiers_FakeMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type Verifiers_FakeValidationError

type Verifiers_FakeValidationError struct {
	// contains filtered or unexported fields
}

Verifiers_FakeValidationError is the validation error returned by Verifiers_Fake.Validate if the designated constraints aren't met.

func (Verifiers_FakeValidationError) Cause

Cause function returns cause value.

func (Verifiers_FakeValidationError) Error

Error satisfies the builtin error interface

func (Verifiers_FakeValidationError) ErrorName

func (e Verifiers_FakeValidationError) ErrorName() string

ErrorName returns error name.

func (Verifiers_FakeValidationError) Field

Field function returns field value.

func (Verifiers_FakeValidationError) Key

Key function returns key value.

func (Verifiers_FakeValidationError) Reason

Reason function returns reason value.

type Verifiers_GerritCQAbility

type Verifiers_GerritCQAbility struct {

	// Required. List of chrome-infra-auth groups, whose members are authorized
	// to trigger full CQ runs.
	//
	// Typically, such groups are named "project-<name>-committers".
	CommitterList []string `protobuf:"bytes,1,rep,name=committer_list,json=committerList,proto3" json:"committer_list,omitempty"`
	// Optional, but strongly recommended. List of chrome-infra-auth groups,
	// whose members are authorized to trigger CQ dry run on Gerrit CLs.
	//
	// By default, they are allowed to trigger CQ dry runs on their own
	// CLs only, but this can be relaxed, if `allow_non_owner_dry_runner`
	// is set.
	//
	// Typically, such groups are named "project-<name>-tryjob-access".
	DryRunAccessList []string `protobuf:"bytes,2,rep,name=dry_run_access_list,json=dryRunAccessList,proto3" json:"dry_run_access_list,omitempty"`
	// Optional, but required to use auto-triggered runs on new patchset upload,
	// it defines a list of chrome-infra-auth groups whose members are
	// authorized to trigger a new patchset runs. That is, CV will check the
	// owner of the CL when a new patchset is uploaded against these.
	NewPatchsetRunAccessList []string `` /* 139-byte string literal not displayed */
	// Optional. allow_submit_with_open_deps controls how CQ full run behaves
	// when current Gerrit CL has open dependencies (not yet submitted CLs on
	// which *this* CL depends).
	//
	// If set to false (default), CQ will abort full run attempt immediately if
	// open dependencies are detected.
	//
	// If set to true, then CQ will not abort full run and upon passing all
	// other verifiers, CQ will attempt to submit the CL regardless of open
	// dependencies and whether CQ verified those open dependencies.
	// In turn, if Gerrit project config allows this, Gerrit will execute submit
	// of all dependent CLs first and then this CL.
	AllowSubmitWithOpenDeps bool `` /* 137-byte string literal not displayed */
	// Optional. Allow CL owner to trigger CQ dry or full run on their own CL,
	// even if not a member of `committer_list` or `dry_run_access_list`.
	// Defaults to no such allowance.
	//
	// WARNING: using this option is not recommended if you have sticky
	// Code-Review label because this allows a malicious developer to upload
	// an good looking patchset at first, get code review approval,
	// and then upload a bad patchset and CQ it right away.
	//
	// CL owner is Gerrit user owning a CL, i.e., its first patchset uploader.
	// not to be confused with OWNERS files.
	AllowOwnerIfSubmittable Verifiers_GerritCQAbility_CQAction `` /* 185-byte string literal not displayed */
	// Optional. Consider CL dependencies that are owned by members of
	// `dry_run_access_list` as trusted, even if they are not approved.
	//
	// By default, unapproved dependencies are only trusted if they are owned
	// by members of `committer_list`.
	//
	// This allows CQ dry run on CLs with unapproved dependencies owned by
	// members of `dry_run_access_list`.
	TrustDryRunnerDeps bool `protobuf:"varint,6,opt,name=trust_dry_runner_deps,json=trustDryRunnerDeps,proto3" json:"trust_dry_runner_deps,omitempty"`
	// Optional. Allow members of `dry_run_access_list` to trigger CQ dry run
	// on Gerrit CLs they do not own, even if the CL hasn't been approved.
	//
	// By default, members of `dry_run_access_list` can only trigger CQ dry run
	// on Gerrit CLs they own.
	AllowNonOwnerDryRunner bool `` /* 134-byte string literal not displayed */
	// contains filtered or unexported fields
}

Next tag: 8.

func (*Verifiers_GerritCQAbility) Descriptor deprecated

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

Deprecated: Use Verifiers_GerritCQAbility.ProtoReflect.Descriptor instead.

func (*Verifiers_GerritCQAbility) GetAllowNonOwnerDryRunner

func (x *Verifiers_GerritCQAbility) GetAllowNonOwnerDryRunner() bool

func (*Verifiers_GerritCQAbility) GetAllowOwnerIfSubmittable

func (x *Verifiers_GerritCQAbility) GetAllowOwnerIfSubmittable() Verifiers_GerritCQAbility_CQAction

func (*Verifiers_GerritCQAbility) GetAllowSubmitWithOpenDeps

func (x *Verifiers_GerritCQAbility) GetAllowSubmitWithOpenDeps() bool

func (*Verifiers_GerritCQAbility) GetCommitterList

func (x *Verifiers_GerritCQAbility) GetCommitterList() []string

func (*Verifiers_GerritCQAbility) GetDryRunAccessList

func (x *Verifiers_GerritCQAbility) GetDryRunAccessList() []string

func (*Verifiers_GerritCQAbility) GetNewPatchsetRunAccessList

func (x *Verifiers_GerritCQAbility) GetNewPatchsetRunAccessList() []string

func (*Verifiers_GerritCQAbility) GetTrustDryRunnerDeps

func (x *Verifiers_GerritCQAbility) GetTrustDryRunnerDeps() bool

func (*Verifiers_GerritCQAbility) ProtoMessage

func (*Verifiers_GerritCQAbility) ProtoMessage()

func (*Verifiers_GerritCQAbility) ProtoReflect

func (*Verifiers_GerritCQAbility) Reset

func (x *Verifiers_GerritCQAbility) Reset()

func (*Verifiers_GerritCQAbility) String

func (x *Verifiers_GerritCQAbility) String() string

func (*Verifiers_GerritCQAbility) Validate

func (m *Verifiers_GerritCQAbility) Validate() error

Validate checks the field values on Verifiers_GerritCQAbility with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Verifiers_GerritCQAbility) ValidateAll

func (m *Verifiers_GerritCQAbility) ValidateAll() error

ValidateAll checks the field values on Verifiers_GerritCQAbility with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Verifiers_GerritCQAbilityMultiError, or nil if none found.

type Verifiers_GerritCQAbilityMultiError

type Verifiers_GerritCQAbilityMultiError []error

Verifiers_GerritCQAbilityMultiError is an error wrapping multiple validation errors returned by Verifiers_GerritCQAbility.ValidateAll() if the designated constraints aren't met.

func (Verifiers_GerritCQAbilityMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (Verifiers_GerritCQAbilityMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type Verifiers_GerritCQAbilityValidationError

type Verifiers_GerritCQAbilityValidationError struct {
	// contains filtered or unexported fields
}

Verifiers_GerritCQAbilityValidationError is the validation error returned by Verifiers_GerritCQAbility.Validate if the designated constraints aren't met.

func (Verifiers_GerritCQAbilityValidationError) Cause

Cause function returns cause value.

func (Verifiers_GerritCQAbilityValidationError) Error

Error satisfies the builtin error interface

func (Verifiers_GerritCQAbilityValidationError) ErrorName

ErrorName returns error name.

func (Verifiers_GerritCQAbilityValidationError) Field

Field function returns field value.

func (Verifiers_GerritCQAbilityValidationError) Key

Key function returns key value.

func (Verifiers_GerritCQAbilityValidationError) Reason

Reason function returns reason value.

type Verifiers_GerritCQAbility_CQAction

type Verifiers_GerritCQAbility_CQAction int32

See `allow_owner_if_submittable` doc below.

const (
	Verifiers_GerritCQAbility_UNSET   Verifiers_GerritCQAbility_CQAction = 0
	Verifiers_GerritCQAbility_DRY_RUN Verifiers_GerritCQAbility_CQAction = 1
	// COMMIT implies ability to trigger dry run as well.
	Verifiers_GerritCQAbility_COMMIT Verifiers_GerritCQAbility_CQAction = 2
)

func (Verifiers_GerritCQAbility_CQAction) Descriptor

func (Verifiers_GerritCQAbility_CQAction) Enum

func (Verifiers_GerritCQAbility_CQAction) EnumDescriptor deprecated

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

Deprecated: Use Verifiers_GerritCQAbility_CQAction.Descriptor instead.

func (Verifiers_GerritCQAbility_CQAction) Number

func (Verifiers_GerritCQAbility_CQAction) String

func (Verifiers_GerritCQAbility_CQAction) Type

type Verifiers_TreeStatus

type Verifiers_TreeStatus struct {

	// Required unless url is present.  The name of the tree to use for tree
	// status.
	TreeName string `protobuf:"bytes,2,opt,name=tree_name,json=treeName,proto3" json:"tree_name,omitempty"`
	// Deprecated. Required if tree_name not present. URL of the project tree
	// status app. Will be converted into a tree_name internally.  Please
	// migrate to supplying the tree_name directly instead of using this field.
	//
	// Deprecated: Marked as deprecated in go.chromium.org/luci/cv/api/config/v2/config.proto.
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

func (*Verifiers_TreeStatus) Descriptor deprecated

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

Deprecated: Use Verifiers_TreeStatus.ProtoReflect.Descriptor instead.

func (*Verifiers_TreeStatus) GetTreeName

func (x *Verifiers_TreeStatus) GetTreeName() string

func (*Verifiers_TreeStatus) GetUrl deprecated

func (x *Verifiers_TreeStatus) GetUrl() string

Deprecated: Marked as deprecated in go.chromium.org/luci/cv/api/config/v2/config.proto.

func (*Verifiers_TreeStatus) ProtoMessage

func (*Verifiers_TreeStatus) ProtoMessage()

func (*Verifiers_TreeStatus) ProtoReflect

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

func (*Verifiers_TreeStatus) Reset

func (x *Verifiers_TreeStatus) Reset()

func (*Verifiers_TreeStatus) String

func (x *Verifiers_TreeStatus) String() string

func (*Verifiers_TreeStatus) Validate

func (m *Verifiers_TreeStatus) Validate() error

Validate checks the field values on Verifiers_TreeStatus with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Verifiers_TreeStatus) ValidateAll

func (m *Verifiers_TreeStatus) ValidateAll() error

ValidateAll checks the field values on Verifiers_TreeStatus with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Verifiers_TreeStatusMultiError, or nil if none found.

type Verifiers_TreeStatusMultiError

type Verifiers_TreeStatusMultiError []error

Verifiers_TreeStatusMultiError is an error wrapping multiple validation errors returned by Verifiers_TreeStatus.ValidateAll() if the designated constraints aren't met.

func (Verifiers_TreeStatusMultiError) AllErrors

func (m Verifiers_TreeStatusMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Verifiers_TreeStatusMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type Verifiers_TreeStatusValidationError

type Verifiers_TreeStatusValidationError struct {
	// contains filtered or unexported fields
}

Verifiers_TreeStatusValidationError is the validation error returned by Verifiers_TreeStatus.Validate if the designated constraints aren't met.

func (Verifiers_TreeStatusValidationError) Cause

Cause function returns cause value.

func (Verifiers_TreeStatusValidationError) Error

Error satisfies the builtin error interface

func (Verifiers_TreeStatusValidationError) ErrorName

ErrorName returns error name.

func (Verifiers_TreeStatusValidationError) Field

Field function returns field value.

func (Verifiers_TreeStatusValidationError) Key

Key function returns key value.

func (Verifiers_TreeStatusValidationError) Reason

Reason function returns reason value.

type Verifiers_Tryjob

type Verifiers_Tryjob struct {

	// Builders on which tryjobs should be triggered.
	//
	// CQ won't allow adding any builder via `CQ-Include-Trybots:` in CL
	// description except those in this list (including the equivalent
	// builders).
	Builders []*Verifiers_Tryjob_Builder `protobuf:"bytes,1,rep,name=builders,proto3" json:"builders,omitempty"`
	// Optional, defaulting to no retries whatsoever.
	RetryConfig *Verifiers_Tryjob_RetryConfig `protobuf:"bytes,2,opt,name=retry_config,json=retryConfig,proto3" json:"retry_config,omitempty"`
	// DEPRECATED. Use per-builder `cancel_stale` instead.
	//
	// Deprecated: Marked as deprecated in go.chromium.org/luci/cv/api/config/v2/config.proto.
	CancelStaleTryjobs Toggle `` /* 140-byte string literal not displayed */
	// contains filtered or unexported fields
}

Tryjob configures builders which CQ may trigger and/or use to verify CL(s).

func (*Verifiers_Tryjob) Descriptor deprecated

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

Deprecated: Use Verifiers_Tryjob.ProtoReflect.Descriptor instead.

func (*Verifiers_Tryjob) GetBuilders

func (x *Verifiers_Tryjob) GetBuilders() []*Verifiers_Tryjob_Builder

func (*Verifiers_Tryjob) GetCancelStaleTryjobs deprecated

func (x *Verifiers_Tryjob) GetCancelStaleTryjobs() Toggle

Deprecated: Marked as deprecated in go.chromium.org/luci/cv/api/config/v2/config.proto.

func (*Verifiers_Tryjob) GetRetryConfig

func (x *Verifiers_Tryjob) GetRetryConfig() *Verifiers_Tryjob_RetryConfig

func (*Verifiers_Tryjob) ProtoMessage

func (*Verifiers_Tryjob) ProtoMessage()

func (*Verifiers_Tryjob) ProtoReflect

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

func (*Verifiers_Tryjob) Reset

func (x *Verifiers_Tryjob) Reset()

func (*Verifiers_Tryjob) String

func (x *Verifiers_Tryjob) String() string

func (*Verifiers_Tryjob) Validate

func (m *Verifiers_Tryjob) Validate() error

Validate checks the field values on Verifiers_Tryjob with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Verifiers_Tryjob) ValidateAll

func (m *Verifiers_Tryjob) ValidateAll() error

ValidateAll checks the field values on Verifiers_Tryjob with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Verifiers_TryjobMultiError, or nil if none found.

type Verifiers_TryjobMultiError

type Verifiers_TryjobMultiError []error

Verifiers_TryjobMultiError is an error wrapping multiple validation errors returned by Verifiers_Tryjob.ValidateAll() if the designated constraints aren't met.

func (Verifiers_TryjobMultiError) AllErrors

func (m Verifiers_TryjobMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Verifiers_TryjobMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type Verifiers_TryjobValidationError

type Verifiers_TryjobValidationError struct {
	// contains filtered or unexported fields
}

Verifiers_TryjobValidationError is the validation error returned by Verifiers_Tryjob.Validate if the designated constraints aren't met.

func (Verifiers_TryjobValidationError) Cause

Cause function returns cause value.

func (Verifiers_TryjobValidationError) Error

Error satisfies the builtin error interface

func (Verifiers_TryjobValidationError) ErrorName

ErrorName returns error name.

func (Verifiers_TryjobValidationError) Field

Field function returns field value.

func (Verifiers_TryjobValidationError) Key

Key function returns key value.

func (Verifiers_TryjobValidationError) Reason

Reason function returns reason value.

type Verifiers_Tryjob_Builder

type Verifiers_Tryjob_Builder struct {

	// The buildbucket host name.
	//
	// Optional. If empty, default to "cr-buildbucket.appspot.com".
	Host string `protobuf:"bytes,16,opt,name=host,proto3" json:"host,omitempty"`
	// Required. Name of the builder as <project>/<bucket>/<builder>
	//
	// Examples:
	//
	//	"chromium/try/linux-tester"
	//	"other-project/try/shared-try-builder"
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// If true, this builder will only be used if specified via
	// `CQ-Include-Trybots:` on CL description.
	//
	// If false, the builder may still be included via `CQ-Include-Trybots:`
	// on CL description.
	//
	// This is useful if you want individual CLs to opt-in to this builder,
	// e.g.:
	//
	//	builder {name: "win-release"}                      # required for all.
	//	builder {name: "win-debug" includable_only: true}  # opt in only.
	//
	// Not combinable with:
	//   - location_filters
	//   - experiment_percentage
	IncludableOnly bool `protobuf:"varint,9,opt,name=includable_only,json=includableOnly,proto3" json:"includable_only,omitempty"`
	// Determines how visible the results of a build for this builder are in
	// Gerrit for this tryjob.
	//
	// This doesn't affect the buildbucket plugin (green/red chips).
	ResultVisibility CommentLevel `` /* 139-byte string literal not displayed */
	// Optional. If true, a fresh build will be required for each CQ attempt.
	//
	// Default is false, meaning CQ may re-use a successful build
	// triggered before current CQ attempt started.
	//
	// This option is typically used for builders which run depot_tools'
	// PRESUBMIT scripts, which are supposed to be quick to run and provide
	// additional OWNERS, lint, etc checks which are useful to run against
	// the latest revision of the CL's target branch.
	DisableReuse bool `protobuf:"varint,2,opt,name=disable_reuse,json=disableReuse,proto3" json:"disable_reuse,omitempty"`
	// Optional. If YES (default), running or not-yet-started builds of this
	// builder previously triggered by CQ will be cancelled as soon as
	// a substantially different patchset is uploaded to a CL.
	//
	// The following paragraph is only applicable to LUCI Change Verifier (
	// The successor of legacy CQ). As of 09/2020, the implementation is
	// still WIP. TODO(crbug/1127991): Remove after migration is done.
	//
	// CV will snapshot the value of this option when a Run is created
	// and use it throughout the lifecycle of this Run. Therefore,
	// modification on this option will only take effect on newly-created
	// Runs after config change is propagated to CV.
	CancelStale Toggle `protobuf:"varint,11,opt,name=cancel_stale,json=cancelStale,proto3,enum=cv.config.Toggle" json:"cancel_stale,omitempty"`
	// Optional. When this field is present, it marks given builder as
	// experimental. It is only triggered on a given percentage of the CLs
	// and the outcome does not affect the decision of whether a CL can land
	// or not. This is typically used to test new builders and estimate their
	// capacity requirements. May be combined with location_filters.
	ExperimentPercentage float32 `protobuf:"fixed32,4,opt,name=experiment_percentage,json=experimentPercentage,proto3" json:"experiment_percentage,omitempty"`
	// Optionally specified alternative builder for CQ to choose instead.
	// If provided, CQ will choose only one of the equivalent builders as
	// required based purely on given CL and CL's owner and **regardless** of
	// the possibly already completed tryjobs.
	//
	// Note: The equivalent builders can be included using
	// `CQ-Include-Trybots:` footer. In this case, CQ will always try to
	// trigger the equivalent builders regardless of the equivalent
	// percentage.
	EquivalentTo    *Verifiers_Tryjob_EquivalentBuilder        `protobuf:"bytes,5,opt,name=equivalent_to,json=equivalentTo,proto3" json:"equivalent_to,omitempty"`
	LocationFilters []*Verifiers_Tryjob_Builder_LocationFilter `protobuf:"bytes,15,rep,name=location_filters,json=locationFilters,proto3" json:"location_filters,omitempty"`
	// If set, this builder will only be triggered if the CL owner (who first
	// uploaded the CL) is a member of at least one of these groups.
	OwnerWhitelistGroup []string `protobuf:"bytes,8,rep,name=owner_whitelist_group,json=ownerWhitelistGroup,proto3" json:"owner_whitelist_group,omitempty"`
	// If set, require this builder only if the Run mode matches one of the
	// modes in this list. If unset, it implies that only FULL_RUN and
	// DRY_RUN are allowed. Optional.
	ModeAllowlist []string `protobuf:"bytes,14,rep,name=mode_allowlist,json=modeAllowlist,proto3" json:"mode_allowlist,omitempty"`
	// contains filtered or unexported fields
}

func (*Verifiers_Tryjob_Builder) Descriptor deprecated

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

Deprecated: Use Verifiers_Tryjob_Builder.ProtoReflect.Descriptor instead.

func (*Verifiers_Tryjob_Builder) GetCancelStale

func (x *Verifiers_Tryjob_Builder) GetCancelStale() Toggle

func (*Verifiers_Tryjob_Builder) GetDisableReuse

func (x *Verifiers_Tryjob_Builder) GetDisableReuse() bool

func (*Verifiers_Tryjob_Builder) GetEquivalentTo

func (*Verifiers_Tryjob_Builder) GetExperimentPercentage

func (x *Verifiers_Tryjob_Builder) GetExperimentPercentage() float32

func (*Verifiers_Tryjob_Builder) GetHost

func (x *Verifiers_Tryjob_Builder) GetHost() string

func (*Verifiers_Tryjob_Builder) GetIncludableOnly

func (x *Verifiers_Tryjob_Builder) GetIncludableOnly() bool

func (*Verifiers_Tryjob_Builder) GetLocationFilters

func (*Verifiers_Tryjob_Builder) GetModeAllowlist

func (x *Verifiers_Tryjob_Builder) GetModeAllowlist() []string

func (*Verifiers_Tryjob_Builder) GetName

func (x *Verifiers_Tryjob_Builder) GetName() string

func (*Verifiers_Tryjob_Builder) GetOwnerWhitelistGroup

func (x *Verifiers_Tryjob_Builder) GetOwnerWhitelistGroup() []string

func (*Verifiers_Tryjob_Builder) GetResultVisibility

func (x *Verifiers_Tryjob_Builder) GetResultVisibility() CommentLevel

func (*Verifiers_Tryjob_Builder) ProtoMessage

func (*Verifiers_Tryjob_Builder) ProtoMessage()

func (*Verifiers_Tryjob_Builder) ProtoReflect

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

func (*Verifiers_Tryjob_Builder) Reset

func (x *Verifiers_Tryjob_Builder) Reset()

func (*Verifiers_Tryjob_Builder) String

func (x *Verifiers_Tryjob_Builder) String() string

func (*Verifiers_Tryjob_Builder) Validate

func (m *Verifiers_Tryjob_Builder) Validate() error

Validate checks the field values on Verifiers_Tryjob_Builder with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Verifiers_Tryjob_Builder) ValidateAll

func (m *Verifiers_Tryjob_Builder) ValidateAll() error

ValidateAll checks the field values on Verifiers_Tryjob_Builder with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Verifiers_Tryjob_BuilderMultiError, or nil if none found.

type Verifiers_Tryjob_BuilderMultiError

type Verifiers_Tryjob_BuilderMultiError []error

Verifiers_Tryjob_BuilderMultiError is an error wrapping multiple validation errors returned by Verifiers_Tryjob_Builder.ValidateAll() if the designated constraints aren't met.

func (Verifiers_Tryjob_BuilderMultiError) AllErrors

func (m Verifiers_Tryjob_BuilderMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Verifiers_Tryjob_BuilderMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type Verifiers_Tryjob_BuilderValidationError

type Verifiers_Tryjob_BuilderValidationError struct {
	// contains filtered or unexported fields
}

Verifiers_Tryjob_BuilderValidationError is the validation error returned by Verifiers_Tryjob_Builder.Validate if the designated constraints aren't met.

func (Verifiers_Tryjob_BuilderValidationError) Cause

Cause function returns cause value.

func (Verifiers_Tryjob_BuilderValidationError) Error

Error satisfies the builtin error interface

func (Verifiers_Tryjob_BuilderValidationError) ErrorName

ErrorName returns error name.

func (Verifiers_Tryjob_BuilderValidationError) Field

Field function returns field value.

func (Verifiers_Tryjob_BuilderValidationError) Key

Key function returns key value.

func (Verifiers_Tryjob_BuilderValidationError) Reason

Reason function returns reason value.

type Verifiers_Tryjob_Builder_LocationFilter

type Verifiers_Tryjob_Builder_LocationFilter struct {

	// Pattern to match Gerrit host. Does not include scheme, which is
	// always assumed to be "https://".
	GerritHostRegexp string `protobuf:"bytes,1,opt,name=gerrit_host_regexp,json=gerritHostRegexp,proto3" json:"gerrit_host_regexp,omitempty"`
	// Pattern to match Gerrit project, e.g. "infra/luci/luci-go".
	GerritProjectRegexp string `protobuf:"bytes,2,opt,name=gerrit_project_regexp,json=gerritProjectRegexp,proto3" json:"gerrit_project_regexp,omitempty"`
	// Pattern to match fully qualified GoB refs, e.g. "refs/heads/.*".
	GerritRefRegexp string `protobuf:"bytes,5,opt,name=gerrit_ref_regexp,json=gerritRefRegexp,proto3" json:"gerrit_ref_regexp,omitempty"`
	// Pattern to match file path. This is a relative path from repo root
	// (no starting slash).
	PathRegexp string `protobuf:"bytes,3,opt,name=path_regexp,json=pathRegexp,proto3" json:"path_regexp,omitempty"`
	// If exclude is true, then if this filter matches a file, the file is
	// considered not included. (If all files are not included, then the
	// builder is not triggered.)
	Exclude bool `protobuf:"varint,4,opt,name=exclude,proto3" json:"exclude,omitempty"`
	// contains filtered or unexported fields
}

Optional. Require this builder only if a file in the CL is included by location_filters.

location_filters is an ordered list of LocationFilter messages, where each message includes regular expressions for the matching Gerrit host, Gerrit project and file path, as well as a boolean field to specify whether the filter is an exclude filter or not.

Files "in the CL" means all files touched, i.e. added, modified or deleted.

The Gerrit host, Gerrit project and file path are matched against the respective patterns in the LocationFilter. The last LocationFilter that match all patterns (host, project, and path) determines whether the file is considered included, i.e. if the last matching LocationFilter has exclude set to false, then it's included; else included.

If none of the LocationFilters match, then the file is considered included if the first rule is an exclude rule; else the file is excluded.

If host, project or path are empty, then they will match anything (".*") by default. The comparison is a full match; the pattern is implicitly anchored with "^" and "$", so there is no need add them. The syntax for regular expressions is Google's re2 syntax for regexp, documented here: https://github.com/google/re2/wiki/Syntax.

If location_filters is non-empty, and no file in a CL is included by location_filters, then this builder will not be triggered. If location_filters is empty or not specified, then the builder will be triggered by default, subject to other conditions, e.g. mode_allowlist.

This option currently can not be combined with the `GerritCQAbility.allow_submit_with_open_deps` option. If you need to combine, please talk to LUCI CV owners. (https://chromium.googlesource.com/infra/luci/luci-go/+/HEAD/cv/OWNERS)

Examples:

location_filters: {path_regexp: "excluded/.+", exclude: true}
location_filters: {path_regexp: "excluded/exception", exclude: false}

  Result: files outside of the "excluded" directory will be
  included, and so will "excluded/exception" will, but other files
  in the "excluded" directory will not match.

location_filters: {path_regexp: ".*", exclude: false} // include all by default
location_filters: {
    host_regexp: "example.com",
    project_regexp: "repo",
    ref_regexp: "refs/heads/.+",
    exclude: true,
}
location_filters: {
    host_regexp: "example.com",
    project_regexp: "repo",
    ref_regexp: "refs/heads/.+",
    path_regexp: "all/one.txt"
    exclude: false,
}

Result: files in the specified host, repo and ref will not be included, except all/one.txt which will be included; files outside of the given host/repo/ref will be included.

func (*Verifiers_Tryjob_Builder_LocationFilter) Descriptor deprecated

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

Deprecated: Use Verifiers_Tryjob_Builder_LocationFilter.ProtoReflect.Descriptor instead.

func (*Verifiers_Tryjob_Builder_LocationFilter) GetExclude

func (*Verifiers_Tryjob_Builder_LocationFilter) GetGerritHostRegexp

func (x *Verifiers_Tryjob_Builder_LocationFilter) GetGerritHostRegexp() string

func (*Verifiers_Tryjob_Builder_LocationFilter) GetGerritProjectRegexp

func (x *Verifiers_Tryjob_Builder_LocationFilter) GetGerritProjectRegexp() string

func (*Verifiers_Tryjob_Builder_LocationFilter) GetGerritRefRegexp

func (x *Verifiers_Tryjob_Builder_LocationFilter) GetGerritRefRegexp() string

func (*Verifiers_Tryjob_Builder_LocationFilter) GetPathRegexp

func (*Verifiers_Tryjob_Builder_LocationFilter) ProtoMessage

func (*Verifiers_Tryjob_Builder_LocationFilter) ProtoReflect

func (*Verifiers_Tryjob_Builder_LocationFilter) Reset

func (*Verifiers_Tryjob_Builder_LocationFilter) String

func (*Verifiers_Tryjob_Builder_LocationFilter) Validate

Validate checks the field values on Verifiers_Tryjob_Builder_LocationFilter with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Verifiers_Tryjob_Builder_LocationFilter) ValidateAll

ValidateAll checks the field values on Verifiers_Tryjob_Builder_LocationFilter with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Verifiers_Tryjob_Builder_LocationFilterMultiError, or nil if none found.

type Verifiers_Tryjob_Builder_LocationFilterMultiError

type Verifiers_Tryjob_Builder_LocationFilterMultiError []error

Verifiers_Tryjob_Builder_LocationFilterMultiError is an error wrapping multiple validation errors returned by Verifiers_Tryjob_Builder_LocationFilter.ValidateAll() if the designated constraints aren't met.

func (Verifiers_Tryjob_Builder_LocationFilterMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (Verifiers_Tryjob_Builder_LocationFilterMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type Verifiers_Tryjob_Builder_LocationFilterValidationError

type Verifiers_Tryjob_Builder_LocationFilterValidationError struct {
	// contains filtered or unexported fields
}

Verifiers_Tryjob_Builder_LocationFilterValidationError is the validation error returned by Verifiers_Tryjob_Builder_LocationFilter.Validate if the designated constraints aren't met.

func (Verifiers_Tryjob_Builder_LocationFilterValidationError) Cause

Cause function returns cause value.

func (Verifiers_Tryjob_Builder_LocationFilterValidationError) Error

Error satisfies the builtin error interface

func (Verifiers_Tryjob_Builder_LocationFilterValidationError) ErrorName

ErrorName returns error name.

func (Verifiers_Tryjob_Builder_LocationFilterValidationError) Field

Field function returns field value.

func (Verifiers_Tryjob_Builder_LocationFilterValidationError) Key

Key function returns key value.

func (Verifiers_Tryjob_Builder_LocationFilterValidationError) Reason

Reason function returns reason value.

type Verifiers_Tryjob_EquivalentBuilder

type Verifiers_Tryjob_EquivalentBuilder struct {

	// Required. Name of this builder.
	// Format is the same in the same format as Builder.name.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Percentage expressing probability of CQ triggering this builder instead
	// of the builder to which this builder is equivalent to.
	//
	// A choice itself is made deterministically based on CL alone, hereby
	// all CQ attempts on all patchsets of a given CL will trigger the same
	// builder, assuming CQ config doesn't change in the mean time.
	//
	// Note that if `owner_whitelist_group` is also specified, the choice over
	// which of the two builders to trigger will be made only for CLs owned by
	// whitelisted group.
	//
	// If not specified, defaults to 0, meaning this builder is never
	// triggered by CQ, but an existing build can be re-used by CQ.
	//
	// To illustrate, suppose percentage=10. Then,
	//
	//	Without owner_whitelist_group,
	//	   ~10% of all CQ attempts will trigger this builder.
	//	With owner_whitelist_group set and, suppose, 1/5 of CQ attempts are
	//	   ran on CLs owned by this group, then only ~(1/10)*(1/5) or
	//	   ~2% of all CQ attempts will trigger this builder.
	Percentage float32 `protobuf:"fixed32,2,opt,name=percentage,proto3" json:"percentage,omitempty"`
	// If specified, limits the builder to CL owners in this group.
	OwnerWhitelistGroup string `protobuf:"bytes,3,opt,name=owner_whitelist_group,json=ownerWhitelistGroup,proto3" json:"owner_whitelist_group,omitempty"`
	// contains filtered or unexported fields
}

func (*Verifiers_Tryjob_EquivalentBuilder) Descriptor deprecated

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

Deprecated: Use Verifiers_Tryjob_EquivalentBuilder.ProtoReflect.Descriptor instead.

func (*Verifiers_Tryjob_EquivalentBuilder) GetName

func (*Verifiers_Tryjob_EquivalentBuilder) GetOwnerWhitelistGroup

func (x *Verifiers_Tryjob_EquivalentBuilder) GetOwnerWhitelistGroup() string

func (*Verifiers_Tryjob_EquivalentBuilder) GetPercentage

func (x *Verifiers_Tryjob_EquivalentBuilder) GetPercentage() float32

func (*Verifiers_Tryjob_EquivalentBuilder) ProtoMessage

func (*Verifiers_Tryjob_EquivalentBuilder) ProtoMessage()

func (*Verifiers_Tryjob_EquivalentBuilder) ProtoReflect

func (*Verifiers_Tryjob_EquivalentBuilder) Reset

func (*Verifiers_Tryjob_EquivalentBuilder) String

func (*Verifiers_Tryjob_EquivalentBuilder) Validate

Validate checks the field values on Verifiers_Tryjob_EquivalentBuilder with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Verifiers_Tryjob_EquivalentBuilder) ValidateAll

func (m *Verifiers_Tryjob_EquivalentBuilder) ValidateAll() error

ValidateAll checks the field values on Verifiers_Tryjob_EquivalentBuilder with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Verifiers_Tryjob_EquivalentBuilderMultiError, or nil if none found.

type Verifiers_Tryjob_EquivalentBuilderMultiError

type Verifiers_Tryjob_EquivalentBuilderMultiError []error

Verifiers_Tryjob_EquivalentBuilderMultiError is an error wrapping multiple validation errors returned by Verifiers_Tryjob_EquivalentBuilder.ValidateAll() if the designated constraints aren't met.

func (Verifiers_Tryjob_EquivalentBuilderMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (Verifiers_Tryjob_EquivalentBuilderMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type Verifiers_Tryjob_EquivalentBuilderValidationError

type Verifiers_Tryjob_EquivalentBuilderValidationError struct {
	// contains filtered or unexported fields
}

Verifiers_Tryjob_EquivalentBuilderValidationError is the validation error returned by Verifiers_Tryjob_EquivalentBuilder.Validate if the designated constraints aren't met.

func (Verifiers_Tryjob_EquivalentBuilderValidationError) Cause

Cause function returns cause value.

func (Verifiers_Tryjob_EquivalentBuilderValidationError) Error

Error satisfies the builtin error interface

func (Verifiers_Tryjob_EquivalentBuilderValidationError) ErrorName

ErrorName returns error name.

func (Verifiers_Tryjob_EquivalentBuilderValidationError) Field

Field function returns field value.

func (Verifiers_Tryjob_EquivalentBuilderValidationError) Key

Key function returns key value.

func (Verifiers_Tryjob_EquivalentBuilderValidationError) Reason

Reason function returns reason value.

type Verifiers_Tryjob_IncludableBuilder

type Verifiers_Tryjob_IncludableBuilder struct {

	// Required. Name of this builder.
	// Format is the same in the same format as Builder.name.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Builder which can be included via `CQ-Include-Trybots:` in CL description.

func (*Verifiers_Tryjob_IncludableBuilder) Descriptor deprecated

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

Deprecated: Use Verifiers_Tryjob_IncludableBuilder.ProtoReflect.Descriptor instead.

func (*Verifiers_Tryjob_IncludableBuilder) GetName

func (*Verifiers_Tryjob_IncludableBuilder) ProtoMessage

func (*Verifiers_Tryjob_IncludableBuilder) ProtoMessage()

func (*Verifiers_Tryjob_IncludableBuilder) ProtoReflect

func (*Verifiers_Tryjob_IncludableBuilder) Reset

func (*Verifiers_Tryjob_IncludableBuilder) String

func (*Verifiers_Tryjob_IncludableBuilder) Validate

Validate checks the field values on Verifiers_Tryjob_IncludableBuilder with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Verifiers_Tryjob_IncludableBuilder) ValidateAll

func (m *Verifiers_Tryjob_IncludableBuilder) ValidateAll() error

ValidateAll checks the field values on Verifiers_Tryjob_IncludableBuilder with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Verifiers_Tryjob_IncludableBuilderMultiError, or nil if none found.

type Verifiers_Tryjob_IncludableBuilderMultiError

type Verifiers_Tryjob_IncludableBuilderMultiError []error

Verifiers_Tryjob_IncludableBuilderMultiError is an error wrapping multiple validation errors returned by Verifiers_Tryjob_IncludableBuilder.ValidateAll() if the designated constraints aren't met.

func (Verifiers_Tryjob_IncludableBuilderMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (Verifiers_Tryjob_IncludableBuilderMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type Verifiers_Tryjob_IncludableBuilderValidationError

type Verifiers_Tryjob_IncludableBuilderValidationError struct {
	// contains filtered or unexported fields
}

Verifiers_Tryjob_IncludableBuilderValidationError is the validation error returned by Verifiers_Tryjob_IncludableBuilder.Validate if the designated constraints aren't met.

func (Verifiers_Tryjob_IncludableBuilderValidationError) Cause

Cause function returns cause value.

func (Verifiers_Tryjob_IncludableBuilderValidationError) Error

Error satisfies the builtin error interface

func (Verifiers_Tryjob_IncludableBuilderValidationError) ErrorName

ErrorName returns error name.

func (Verifiers_Tryjob_IncludableBuilderValidationError) Field

Field function returns field value.

func (Verifiers_Tryjob_IncludableBuilderValidationError) Key

Key function returns key value.

func (Verifiers_Tryjob_IncludableBuilderValidationError) Reason

Reason function returns reason value.

type Verifiers_Tryjob_RetryConfig

type Verifiers_Tryjob_RetryConfig struct {

	// Retry quota for a single tryjob.
	SingleQuota int32 `protobuf:"varint,1,opt,name=single_quota,json=singleQuota,proto3" json:"single_quota,omitempty"`
	// Retry quota for all tryjobs in a CL.
	GlobalQuota int32 `protobuf:"varint,2,opt,name=global_quota,json=globalQuota,proto3" json:"global_quota,omitempty"`
	// The weight assigned to each tryjob failure. A failure is as a
	// buildbucket build whose result == 'FAILURE'.
	FailureWeight int32 `protobuf:"varint,3,opt,name=failure_weight,json=failureWeight,proto3" json:"failure_weight,omitempty"`
	// The weight assigned to each transient failure. A transient failure is a
	// buildbucket build which has result == 'FAILURE' and 'failure_reason' in
	// ('BUILDBUCKET_FAILURE', 'INFRA_FAILURE').
	TransientFailureWeight int32 `` /* 130-byte string literal not displayed */
	// The weight assigned to tryjob timeouts. A tryjob timeout is as a
	// buildbucket build with result == 'CANCELED' and cancelation_reason ==
	// 'TIMEOUT'.
	TimeoutWeight int32 `protobuf:"varint,5,opt,name=timeout_weight,json=timeoutWeight,proto3" json:"timeout_weight,omitempty"`
	// contains filtered or unexported fields
}

Collection of parameters for deciding whether to retry a single build. If parameter is not specified, its value defaults to 0 (per proto3). Thus, omitting all parameters means no retries of any kind.

CQ's retry logic is as follows: All builds triggered during the lifetime of a CQ attempt for a tryjob are weighted according to the failure type, as described below. The resulting weights are then added together. Call this number W. If W > single_quota, then no more builds are scheduled for that tryjob.

W for every tryjob is then summed up. If that result is strictly greater than global_quota, then the CQ attempt fails, and no more builds are scheduled for the attempt.

func (*Verifiers_Tryjob_RetryConfig) Descriptor deprecated

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

Deprecated: Use Verifiers_Tryjob_RetryConfig.ProtoReflect.Descriptor instead.

func (*Verifiers_Tryjob_RetryConfig) GetFailureWeight

func (x *Verifiers_Tryjob_RetryConfig) GetFailureWeight() int32

func (*Verifiers_Tryjob_RetryConfig) GetGlobalQuota

func (x *Verifiers_Tryjob_RetryConfig) GetGlobalQuota() int32

func (*Verifiers_Tryjob_RetryConfig) GetSingleQuota

func (x *Verifiers_Tryjob_RetryConfig) GetSingleQuota() int32

func (*Verifiers_Tryjob_RetryConfig) GetTimeoutWeight

func (x *Verifiers_Tryjob_RetryConfig) GetTimeoutWeight() int32

func (*Verifiers_Tryjob_RetryConfig) GetTransientFailureWeight

func (x *Verifiers_Tryjob_RetryConfig) GetTransientFailureWeight() int32

func (*Verifiers_Tryjob_RetryConfig) ProtoMessage

func (*Verifiers_Tryjob_RetryConfig) ProtoMessage()

func (*Verifiers_Tryjob_RetryConfig) ProtoReflect

func (*Verifiers_Tryjob_RetryConfig) Reset

func (x *Verifiers_Tryjob_RetryConfig) Reset()

func (*Verifiers_Tryjob_RetryConfig) String

func (*Verifiers_Tryjob_RetryConfig) Validate

func (m *Verifiers_Tryjob_RetryConfig) Validate() error

Validate checks the field values on Verifiers_Tryjob_RetryConfig with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Verifiers_Tryjob_RetryConfig) ValidateAll

func (m *Verifiers_Tryjob_RetryConfig) ValidateAll() error

ValidateAll checks the field values on Verifiers_Tryjob_RetryConfig with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Verifiers_Tryjob_RetryConfigMultiError, or nil if none found.

type Verifiers_Tryjob_RetryConfigMultiError

type Verifiers_Tryjob_RetryConfigMultiError []error

Verifiers_Tryjob_RetryConfigMultiError is an error wrapping multiple validation errors returned by Verifiers_Tryjob_RetryConfig.ValidateAll() if the designated constraints aren't met.

func (Verifiers_Tryjob_RetryConfigMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (Verifiers_Tryjob_RetryConfigMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type Verifiers_Tryjob_RetryConfigValidationError

type Verifiers_Tryjob_RetryConfigValidationError struct {
	// contains filtered or unexported fields
}

Verifiers_Tryjob_RetryConfigValidationError is the validation error returned by Verifiers_Tryjob_RetryConfig.Validate if the designated constraints aren't met.

func (Verifiers_Tryjob_RetryConfigValidationError) Cause

Cause function returns cause value.

func (Verifiers_Tryjob_RetryConfigValidationError) Error

Error satisfies the builtin error interface

func (Verifiers_Tryjob_RetryConfigValidationError) ErrorName

ErrorName returns error name.

func (Verifiers_Tryjob_RetryConfigValidationError) Field

Field function returns field value.

func (Verifiers_Tryjob_RetryConfigValidationError) Key

Key function returns key value.

func (Verifiers_Tryjob_RetryConfigValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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