luci: go.chromium.org/luci/cq/api/config/v1 Index | Files

package legacy_config

import "go.chromium.org/luci/cq/api/config/v1"

Package legacy_config config contains legacy CQ Config API.

Index

Package Files

cq_legacy.pb.go gen.go

type Config Uses

type Config struct {
    // Required. Version of the config format.
    Version *int32 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
    // DEPRECATED. DO NOT USE.
    CqName *string `protobuf:"bytes,2,opt,name=cq_name,json=cqName" json:"cq_name,omitempty"`
    // List of verifiers that verify if the CL is ready to be committed.
    Verifiers *Verifiers `protobuf:"bytes,3,opt,name=verifiers" json:"verifiers,omitempty"`
    // URL of the CQ status app to push updates to.
    CqStatusUrl *string `protobuf:"bytes,4,opt,name=cq_status_url,json=cqStatusUrl" json:"cq_status_url,omitempty"`
    // Delay between commit bursts in seconds. Default value is 480.
    CommitBurstDelay *int32 `protobuf:"varint,6,opt,name=commit_burst_delay,json=commitBurstDelay" json:"commit_burst_delay,omitempty"`
    // Maximum number of commits done sequentially, before waiting for
    // commit_burst_delay. Default value is 4.
    MaxCommitBurst *int32 `protobuf:"varint,7,opt,name=max_commit_burst,json=maxCommitBurst" json:"max_commit_burst,omitempty"`
    // DEPRECATED. NO LONGER SUPPORTED.
    InProduction *bool `protobuf:"varint,8,opt,name=in_production,json=inProduction" json:"in_production,omitempty"`
    // Configuration options for Gerrit code review.
    Gerrit *Gerrit `protobuf:"bytes,15,opt,name=gerrit" json:"gerrit,omitempty"`
    // Required. Must be on a Gerrit at Google *.googlesource.com host.
    GitRepoUrl *string `protobuf:"bytes,10,opt,name=git_repo_url,json=gitRepoUrl" json:"git_repo_url,omitempty"`
    // If present, the CQ will refrain from processing any commits whose start
    // time is >= this time.
    //
    // This is an UTC RFC3339 (stiptime(tm)) string representing the time.
    // For example, "2017-12-23T15:47:58Z" and Z is required.
    DrainingStartTime    *string  `protobuf:"bytes,13,opt,name=draining_start_time,json=drainingStartTime" json:"draining_start_time,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

DEPRECATED. See v2 API cq.proto instead.

This message describes a Commit Queue configuration. The config file cq.cfg should be stored in the config directory located on the branch that this CQ should commit to.

func (*Config) Descriptor Uses

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

func (*Config) GetCommitBurstDelay Uses

func (m *Config) GetCommitBurstDelay() int32

func (*Config) GetCqName Uses

func (m *Config) GetCqName() string

func (*Config) GetCqStatusUrl Uses

func (m *Config) GetCqStatusUrl() string

func (*Config) GetDrainingStartTime Uses

func (m *Config) GetDrainingStartTime() string

func (*Config) GetGerrit Uses

func (m *Config) GetGerrit() *Gerrit

func (*Config) GetGitRepoUrl Uses

func (m *Config) GetGitRepoUrl() string

func (*Config) GetInProduction Uses

func (m *Config) GetInProduction() bool

func (*Config) GetMaxCommitBurst Uses

func (m *Config) GetMaxCommitBurst() int32

func (*Config) GetVerifiers Uses

func (m *Config) GetVerifiers() *Verifiers

func (*Config) GetVersion Uses

func (m *Config) GetVersion() int32

func (*Config) ProtoMessage Uses

func (*Config) ProtoMessage()

func (*Config) Reset Uses

func (m *Config) Reset()

func (*Config) String Uses

func (m *Config) String() string

func (*Config) XXX_DiscardUnknown Uses

func (m *Config) XXX_DiscardUnknown()

func (*Config) XXX_Marshal Uses

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

func (*Config) XXX_Merge Uses

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

func (*Config) XXX_Size Uses

func (m *Config) XXX_Size() int

func (*Config) XXX_Unmarshal Uses

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

type Gerrit Uses

type Gerrit struct {
    // DEPRECATED. DO NOT USE.
    CqVerifiedLabel *string `protobuf:"bytes,1,opt,name=cq_verified_label,json=cqVerifiedLabel" json:"cq_verified_label,omitempty"`
    // DEPRECATED. DO NOT USE.
    DryRunSetsCqVerifiedLabel *bool    `protobuf:"varint,2,opt,name=dry_run_sets_cq_verified_label,json=dryRunSetsCqVerifiedLabel" json:"dry_run_sets_cq_verified_label,omitempty"`
    XXX_NoUnkeyedLiteral      struct{} `json:"-"`
    XXX_unrecognized          []byte   `json:"-"`
    XXX_sizecache             int32    `json:"-"`
}

Gerrit requires the git_repo_url must be specified on the Gerrit instance, and CQ will deduce Gerrit url from it. Also, gerrit_cq_ability verifier must be defined in case of Gerrit.

For example, if https://chromium.googlesource.com/infra/infra.git is your repo url provided in `git_repo_url` above, then https://chromium-review.googlesource.com/#/admin/projects/infra/infra should show general properties of your project.

Also, https://chromium-review.googlesource.com/#/admin/projects/infra/infra,access should show ACLs for refs in your project, but you may need to be admin to see it. This will come handy to enable and customize the CQ-related workflows for your project.

func (*Gerrit) Descriptor Uses

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

func (*Gerrit) GetCqVerifiedLabel Uses

func (m *Gerrit) GetCqVerifiedLabel() string

func (*Gerrit) GetDryRunSetsCqVerifiedLabel Uses

func (m *Gerrit) GetDryRunSetsCqVerifiedLabel() bool

func (*Gerrit) ProtoMessage Uses

func (*Gerrit) ProtoMessage()

func (*Gerrit) Reset Uses

func (m *Gerrit) Reset()

func (*Gerrit) String Uses

func (m *Gerrit) String() string

func (*Gerrit) XXX_DiscardUnknown Uses

func (m *Gerrit) XXX_DiscardUnknown()

func (*Gerrit) XXX_Marshal Uses

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

func (*Gerrit) XXX_Merge Uses

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

func (*Gerrit) XXX_Size Uses

func (m *Gerrit) XXX_Size() int

func (*Gerrit) XXX_Unmarshal Uses

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

type Verifiers Uses

type Verifiers struct {
    // GerritCQAbilityVerifier ensures that a user who triggered
    // this CQ attempt has actually 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.
    // This verifier must be specified for Gerrit.
    GerritCqAbility *Verifiers_GerritCQAbilityVerifier `protobuf:"bytes,5,opt,name=gerrit_cq_ability,json=gerritCqAbility" 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_TreeStatusLgtmVerifier `protobuf:"bytes,2,opt,name=tree_status,json=treeStatus" json:"tree_status,omitempty"`
    // This verifier triggers a set of builds through BuildBucket.
    //
    // CQ automatically retries failed try-jobs 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_TryJobVerifier `protobuf:"bytes,3,opt,name=try_job,json=tryJob" json:"try_job,omitempty"`
    // Deprecator is for internal CQ use only. DO NOT USE IN YOUR cq.cfg.
    Deprecator *Verifiers_DeprecatorVerifier `protobuf:"bytes,6,opt,name=deprecator" json:"deprecator,omitempty"`
    // Fake is for internal CQ use only. DO NOT USE IN YOUR cq.cfg.
    Fake                 *Verifiers_FakeVerifier `protobuf:"bytes,7,opt,name=fake" json:"fake,omitempty"`
    XXX_NoUnkeyedLiteral struct{}                `json:"-"`
    XXX_unrecognized     []byte                  `json:"-"`
    XXX_sizecache        int32                   `json:"-"`
}

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 landed. Configuration file describes types of verifiers that should be applied to each CL and their parameters.

func (*Verifiers) Descriptor Uses

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

func (*Verifiers) GetDeprecator Uses

func (m *Verifiers) GetDeprecator() *Verifiers_DeprecatorVerifier

func (*Verifiers) GetFake Uses

func (m *Verifiers) GetFake() *Verifiers_FakeVerifier

func (*Verifiers) GetGerritCqAbility Uses

func (m *Verifiers) GetGerritCqAbility() *Verifiers_GerritCQAbilityVerifier

func (*Verifiers) GetTreeStatus Uses

func (m *Verifiers) GetTreeStatus() *Verifiers_TreeStatusLgtmVerifier

func (*Verifiers) GetTryJob Uses

func (m *Verifiers) GetTryJob() *Verifiers_TryJobVerifier

func (*Verifiers) ProtoMessage Uses

func (*Verifiers) ProtoMessage()

func (*Verifiers) Reset Uses

func (m *Verifiers) Reset()

func (*Verifiers) String Uses

func (m *Verifiers) String() string

func (*Verifiers) XXX_DiscardUnknown Uses

func (m *Verifiers) XXX_DiscardUnknown()

func (*Verifiers) XXX_Marshal Uses

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

func (*Verifiers) XXX_Merge Uses

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

func (*Verifiers) XXX_Size Uses

func (m *Verifiers) XXX_Size() int

func (*Verifiers) XXX_Unmarshal Uses

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

type Verifiers_DeprecatorVerifier Uses

type Verifiers_DeprecatorVerifier struct {
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

DeprecatorVerifier is for internal use in CQ.

func (*Verifiers_DeprecatorVerifier) Descriptor Uses

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

func (*Verifiers_DeprecatorVerifier) ProtoMessage Uses

func (*Verifiers_DeprecatorVerifier) ProtoMessage()

func (*Verifiers_DeprecatorVerifier) Reset Uses

func (m *Verifiers_DeprecatorVerifier) Reset()

func (*Verifiers_DeprecatorVerifier) String Uses

func (m *Verifiers_DeprecatorVerifier) String() string

func (*Verifiers_DeprecatorVerifier) XXX_DiscardUnknown Uses

func (m *Verifiers_DeprecatorVerifier) XXX_DiscardUnknown()

func (*Verifiers_DeprecatorVerifier) XXX_Marshal Uses

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

func (*Verifiers_DeprecatorVerifier) XXX_Merge Uses

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

func (*Verifiers_DeprecatorVerifier) XXX_Size Uses

func (m *Verifiers_DeprecatorVerifier) XXX_Size() int

func (*Verifiers_DeprecatorVerifier) XXX_Unmarshal Uses

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

type Verifiers_FakeVerifier Uses

type Verifiers_FakeVerifier struct {
    Name                 *string  `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
    EventualState        *string  `protobuf:"bytes,2,opt,name=eventual_state,json=eventualState" json:"eventual_state,omitempty"`
    Delay                *int32   `protobuf:"varint,3,opt,name=delay" json:"delay,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

FakeVerifier is for internal use in CQ.

func (*Verifiers_FakeVerifier) Descriptor Uses

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

func (*Verifiers_FakeVerifier) GetDelay Uses

func (m *Verifiers_FakeVerifier) GetDelay() int32

func (*Verifiers_FakeVerifier) GetEventualState Uses

func (m *Verifiers_FakeVerifier) GetEventualState() string

func (*Verifiers_FakeVerifier) GetName Uses

func (m *Verifiers_FakeVerifier) GetName() string

func (*Verifiers_FakeVerifier) ProtoMessage Uses

func (*Verifiers_FakeVerifier) ProtoMessage()

func (*Verifiers_FakeVerifier) Reset Uses

func (m *Verifiers_FakeVerifier) Reset()

func (*Verifiers_FakeVerifier) String Uses

func (m *Verifiers_FakeVerifier) String() string

func (*Verifiers_FakeVerifier) XXX_DiscardUnknown Uses

func (m *Verifiers_FakeVerifier) XXX_DiscardUnknown()

func (*Verifiers_FakeVerifier) XXX_Marshal Uses

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

func (*Verifiers_FakeVerifier) XXX_Merge Uses

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

func (*Verifiers_FakeVerifier) XXX_Size Uses

func (m *Verifiers_FakeVerifier) XXX_Size() int

func (*Verifiers_FakeVerifier) XXX_Unmarshal Uses

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

type Verifiers_GerritCQAbilityVerifier Uses

type Verifiers_GerritCQAbilityVerifier struct {
    // Required. Name of the chrome-infra-auth group, which contains the list of
    // identities authorized to trigger CQ runs on any CLs in this project.
    CommitterList *string `protobuf:"bytes,1,opt,name=committer_list,json=committerList" json:"committer_list,omitempty"`
    // Optional, but strongly recommended. Name of the chrome-infra-auth group,
    // which contains the list of identities authorized to trigger CQ dry run
    // on Gerrit CLs they own (not to be confused with OWNER files) even if CL
    // hasn't been approved.
    // This is usually the same group as tryjob-access.
    DryRunAccessList *string `protobuf:"bytes,4,opt,name=dry_run_access_list,json=dryRunAccessList" json:"dry_run_access_list,omitempty"`
    // 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. In turn, if Gerrit project config allows this, Gerrit will
    // execute submit all dependent CLs first and then this CL.
    AllowSubmitWithOpenDeps *bool    `protobuf:"varint,5,opt,name=allow_submit_with_open_deps,json=allowSubmitWithOpenDeps" json:"allow_submit_with_open_deps,omitempty"`
    XXX_NoUnkeyedLiteral    struct{} `json:"-"`
    XXX_unrecognized        []byte   `json:"-"`
    XXX_sizecache           int32    `json:"-"`
}

func (*Verifiers_GerritCQAbilityVerifier) Descriptor Uses

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

func (*Verifiers_GerritCQAbilityVerifier) GetAllowSubmitWithOpenDeps Uses

func (m *Verifiers_GerritCQAbilityVerifier) GetAllowSubmitWithOpenDeps() bool

func (*Verifiers_GerritCQAbilityVerifier) GetCommitterList Uses

func (m *Verifiers_GerritCQAbilityVerifier) GetCommitterList() string

func (*Verifiers_GerritCQAbilityVerifier) GetDryRunAccessList Uses

func (m *Verifiers_GerritCQAbilityVerifier) GetDryRunAccessList() string

func (*Verifiers_GerritCQAbilityVerifier) ProtoMessage Uses

func (*Verifiers_GerritCQAbilityVerifier) ProtoMessage()

func (*Verifiers_GerritCQAbilityVerifier) Reset Uses

func (m *Verifiers_GerritCQAbilityVerifier) Reset()

func (*Verifiers_GerritCQAbilityVerifier) String Uses

func (m *Verifiers_GerritCQAbilityVerifier) String() string

func (*Verifiers_GerritCQAbilityVerifier) XXX_DiscardUnknown Uses

func (m *Verifiers_GerritCQAbilityVerifier) XXX_DiscardUnknown()

func (*Verifiers_GerritCQAbilityVerifier) XXX_Marshal Uses

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

func (*Verifiers_GerritCQAbilityVerifier) XXX_Merge Uses

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

func (*Verifiers_GerritCQAbilityVerifier) XXX_Size Uses

func (m *Verifiers_GerritCQAbilityVerifier) XXX_Size() int

func (*Verifiers_GerritCQAbilityVerifier) XXX_Unmarshal Uses

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

type Verifiers_TreeStatusLgtmVerifier Uses

type Verifiers_TreeStatusLgtmVerifier struct {
    // Required. URL of the project tree status app.
    TreeStatusUrl        *string  `protobuf:"bytes,1,opt,name=tree_status_url,json=treeStatusUrl" json:"tree_status_url,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*Verifiers_TreeStatusLgtmVerifier) Descriptor Uses

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

func (*Verifiers_TreeStatusLgtmVerifier) GetTreeStatusUrl Uses

func (m *Verifiers_TreeStatusLgtmVerifier) GetTreeStatusUrl() string

func (*Verifiers_TreeStatusLgtmVerifier) ProtoMessage Uses

func (*Verifiers_TreeStatusLgtmVerifier) ProtoMessage()

func (*Verifiers_TreeStatusLgtmVerifier) Reset Uses

func (m *Verifiers_TreeStatusLgtmVerifier) Reset()

func (*Verifiers_TreeStatusLgtmVerifier) String Uses

func (m *Verifiers_TreeStatusLgtmVerifier) String() string

func (*Verifiers_TreeStatusLgtmVerifier) XXX_DiscardUnknown Uses

func (m *Verifiers_TreeStatusLgtmVerifier) XXX_DiscardUnknown()

func (*Verifiers_TreeStatusLgtmVerifier) XXX_Marshal Uses

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

func (*Verifiers_TreeStatusLgtmVerifier) XXX_Merge Uses

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

func (*Verifiers_TreeStatusLgtmVerifier) XXX_Size Uses

func (m *Verifiers_TreeStatusLgtmVerifier) XXX_Size() int

func (*Verifiers_TreeStatusLgtmVerifier) XXX_Unmarshal Uses

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

type Verifiers_TryJobVerifier Uses

type Verifiers_TryJobVerifier struct {
    // Buckets on which tryjobs are triggered/watched.
    Buckets []*Verifiers_TryJobVerifier_Bucket `protobuf:"bytes,1,rep,name=buckets" json:"buckets,omitempty"`
    // Provides project specific trybot retry configuration. This overrides the
    // defaults used in the CQ.
    TryJobRetryConfig    *Verifiers_TryJobVerifier_TryJobRetryConfig `protobuf:"bytes,2,opt,name=try_job_retry_config,json=tryJobRetryConfig" json:"try_job_retry_config,omitempty"`
    XXX_NoUnkeyedLiteral struct{}                                    `json:"-"`
    XXX_unrecognized     []byte                                      `json:"-"`
    XXX_sizecache        int32                                       `json:"-"`
}

func (*Verifiers_TryJobVerifier) Descriptor Uses

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

func (*Verifiers_TryJobVerifier) GetBuckets Uses

func (m *Verifiers_TryJobVerifier) GetBuckets() []*Verifiers_TryJobVerifier_Bucket

func (*Verifiers_TryJobVerifier) GetTryJobRetryConfig Uses

func (m *Verifiers_TryJobVerifier) GetTryJobRetryConfig() *Verifiers_TryJobVerifier_TryJobRetryConfig

func (*Verifiers_TryJobVerifier) ProtoMessage Uses

func (*Verifiers_TryJobVerifier) ProtoMessage()

func (*Verifiers_TryJobVerifier) Reset Uses

func (m *Verifiers_TryJobVerifier) Reset()

func (*Verifiers_TryJobVerifier) String Uses

func (m *Verifiers_TryJobVerifier) String() string

func (*Verifiers_TryJobVerifier) XXX_DiscardUnknown Uses

func (m *Verifiers_TryJobVerifier) XXX_DiscardUnknown()

func (*Verifiers_TryJobVerifier) XXX_Marshal Uses

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

func (*Verifiers_TryJobVerifier) XXX_Merge Uses

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

func (*Verifiers_TryJobVerifier) XXX_Size Uses

func (m *Verifiers_TryJobVerifier) XXX_Size() int

func (*Verifiers_TryJobVerifier) XXX_Unmarshal Uses

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

type Verifiers_TryJobVerifier_Bucket Uses

type Verifiers_TryJobVerifier_Bucket struct {
    // Name of the Buildbucket's bucket, typically luci.<project>.try.
    // E.g., luci.chromium.try.
    Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
    // Builders on which tryjobs should be triggered.
    Builders             []*Verifiers_TryJobVerifier_Builder `protobuf:"bytes,2,rep,name=builders" json:"builders,omitempty"`
    XXX_NoUnkeyedLiteral struct{}                            `json:"-"`
    XXX_unrecognized     []byte                              `json:"-"`
    XXX_sizecache        int32                               `json:"-"`
}

func (*Verifiers_TryJobVerifier_Bucket) Descriptor Uses

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

func (*Verifiers_TryJobVerifier_Bucket) GetBuilders Uses

func (m *Verifiers_TryJobVerifier_Bucket) GetBuilders() []*Verifiers_TryJobVerifier_Builder

func (*Verifiers_TryJobVerifier_Bucket) GetName Uses

func (m *Verifiers_TryJobVerifier_Bucket) GetName() string

func (*Verifiers_TryJobVerifier_Bucket) ProtoMessage Uses

func (*Verifiers_TryJobVerifier_Bucket) ProtoMessage()

func (*Verifiers_TryJobVerifier_Bucket) Reset Uses

func (m *Verifiers_TryJobVerifier_Bucket) Reset()

func (*Verifiers_TryJobVerifier_Bucket) String Uses

func (m *Verifiers_TryJobVerifier_Bucket) String() string

func (*Verifiers_TryJobVerifier_Bucket) XXX_DiscardUnknown Uses

func (m *Verifiers_TryJobVerifier_Bucket) XXX_DiscardUnknown()

func (*Verifiers_TryJobVerifier_Bucket) XXX_Marshal Uses

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

func (*Verifiers_TryJobVerifier_Bucket) XXX_Merge Uses

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

func (*Verifiers_TryJobVerifier_Bucket) XXX_Size Uses

func (m *Verifiers_TryJobVerifier_Bucket) XXX_Size() int

func (*Verifiers_TryJobVerifier_Bucket) XXX_Unmarshal Uses

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

type Verifiers_TryJobVerifier_Builder Uses

type Verifiers_TryJobVerifier_Builder struct {
    // Name of the builder.
    Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
    // 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,7,opt,name=disable_reuse,json=disableReuse" json:"disable_reuse,omitempty"`
    // Optional name of a builder (aka parent) from the same bucket which will
    // trigger this builder (aka child).
    //
    // If `triggered_by` is not specified (default), CQ will trigger this
    // builder directly.
    //
    // Else, CQ will wait for `triggered_by` (parent) builder to trigger
    // (possibly, indirectly) this (child) builder.
    // Conditions:
    //   * `triggered_by` (parent) builder must set a special property
    //     `triggered_build_ids` upon successful completion with value set
    //     to a list of triggered BuildBucket build IDs,
    //     corresponding to each triggered build. One or more of the IDs must
    //     correspond to this (child) builder, which will then be waited for
    //     by CQ.
    //   * parent->child relationship graph must be a forest (set of a trees).
    //     However, grandparent->parent->child triggering structure isn't well
    //     tested. Please, talk to CQ maintainers to discuss your use case if you
    //     actually need it.
    //
    // Failure/Retry semantics:
    //   * If `triggered_by` (parent) builder succeeds, but doesn't set
    //     the right `triggered_build_ids` s.t. CQ can't find this (child)
    //     builder among triggered builds, then CQ will wait till
    //     TRY_JOB_PENDING_TIMEOUT is reached, currently hardcoded at 2 hours.
    //     TODO(tandrii,sergiyb): improve this.
    //   * If this (child) builder fails and CQ still has retry budget,
    //     CQ will retry a parent builder.
    //
    // For example, given config:
    //   builder { name: "mac_compiler" }
    //   builder { name: "mac_tester_10.12" triggered_by: "mac_compiler" }
    //   builder { name: "mac_tester_10.13" triggered_by: "mac_compiler" }
    // CQ will trigger and wait for "mac_compiler" to succeed. Then, it'll check
    // its `triggered_build_ids` and find which ones correspond to
    // "mac_tester_10.12" and "mac_tester_10.13" and wait for each to complete.
    // If say "mac_tester_10.12" fails, CQ will retry "mac_compiler" and
    // expect it to trigger new builds for "mac_tester_10.12" and
    // "mac_tester_10.13".
    TriggeredBy *string `protobuf:"bytes,2,opt,name=triggered_by,json=triggeredBy" json:"triggered_by,omitempty"`
    // When this field is present, it marks given builder as experimental. It
    // is only executed on a given percentage of the CLs and the outcome does
    // not affect the decicion whether a CL can land or not. This is typically
    // used to test new builders and estimate their capacity requirements.
    ExperimentPercentage *float32 `protobuf:"fixed32,4,opt,name=experiment_percentage,json=experimentPercentage" 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 try jobs.
    //
    // Note: none of the equivalent builders should be part of triggered_by
    //  chain, although CQ may eventually relax this requirement somewhat.
    EquivalentTo *Verifiers_TryJobVerifier_EquivalentBuilder `protobuf:"bytes,5,opt,name=equivalent_to,json=equivalentTo" json:"equivalent_to,omitempty"`
    // Require this builder only if path_regexp matches a file in this CL.
    //
    // This means:
    //   * If specified and no file in a CL matches any of the path_regex,
    //   then CQ will not care about this builder.
    //   * If a file in a CL matches any path_regexp_exclude, then this file
    //   won't be considered when matching path_regexp.
    //
    // If not path_regexp is not specified (default),
    // builder will be used on all CLs, even those which are not modifying any
    // file (just commit description changes).
    // TODO(tandrii): CQ shouldn't process such CLs https://crbug.com/892462,
    // which would allow to change default path_regexp to '.*', ie matching
    // any file.
    //
    // Path must be relative to root of the repo. Path uses Unix / directory
    // separators. The comparison is a full match; the pattern is implicitly
    // anchored with "^" and "$", so there is no need add them.
    //
    // Touching a file means either adding, modifying or removing it.
    //
    // These options currently can not be combined with the following other options:
    //   * experiment_percentage
    //   * triggered_by
    //   * GerritCQAbilityVerifier.allow_submit_with_open_deps
    // If you need to combine them, please talk to CQ owners.
    //
    // Examples:
    //
    //   path_regexp: "third_party/WebKit/.+"
    //     will enable builder for all CLs touching any file in
    //     third_party/WebKit directory, but not directory itself.
    //
    //   path_regexp: "/root/sudo*"
    //     will not match any file because of absolute path.
    //
    //   path_regexp: "all/.+"
    //   path_regexp_exclude: "all/one.txt"
    //     will match a CL which touches at least one file other than
    //     'one.txt' inside all/ directory.
    //
    //   path_regexp_exclude: "one.txt"
    //     will match a CL which touches at least one file other than
    //     'one.txt'. Note, in this case path_regexp defaults to ".*".
    PathRegexp           []string `protobuf:"bytes,6,rep,name=path_regexp,json=pathRegexp" json:"path_regexp,omitempty"`
    PathRegexpExclude    []string `protobuf:"bytes,8,rep,name=path_regexp_exclude,json=pathRegexpExclude" json:"path_regexp_exclude,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*Verifiers_TryJobVerifier_Builder) Descriptor Uses

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

func (*Verifiers_TryJobVerifier_Builder) GetDisableReuse Uses

func (m *Verifiers_TryJobVerifier_Builder) GetDisableReuse() bool

func (*Verifiers_TryJobVerifier_Builder) GetEquivalentTo Uses

func (m *Verifiers_TryJobVerifier_Builder) GetEquivalentTo() *Verifiers_TryJobVerifier_EquivalentBuilder

func (*Verifiers_TryJobVerifier_Builder) GetExperimentPercentage Uses

func (m *Verifiers_TryJobVerifier_Builder) GetExperimentPercentage() float32

func (*Verifiers_TryJobVerifier_Builder) GetName Uses

func (m *Verifiers_TryJobVerifier_Builder) GetName() string

func (*Verifiers_TryJobVerifier_Builder) GetPathRegexp Uses

func (m *Verifiers_TryJobVerifier_Builder) GetPathRegexp() []string

func (*Verifiers_TryJobVerifier_Builder) GetPathRegexpExclude Uses

func (m *Verifiers_TryJobVerifier_Builder) GetPathRegexpExclude() []string

func (*Verifiers_TryJobVerifier_Builder) GetTriggeredBy Uses

func (m *Verifiers_TryJobVerifier_Builder) GetTriggeredBy() string

func (*Verifiers_TryJobVerifier_Builder) ProtoMessage Uses

func (*Verifiers_TryJobVerifier_Builder) ProtoMessage()

func (*Verifiers_TryJobVerifier_Builder) Reset Uses

func (m *Verifiers_TryJobVerifier_Builder) Reset()

func (*Verifiers_TryJobVerifier_Builder) String Uses

func (m *Verifiers_TryJobVerifier_Builder) String() string

func (*Verifiers_TryJobVerifier_Builder) XXX_DiscardUnknown Uses

func (m *Verifiers_TryJobVerifier_Builder) XXX_DiscardUnknown()

func (*Verifiers_TryJobVerifier_Builder) XXX_Marshal Uses

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

func (*Verifiers_TryJobVerifier_Builder) XXX_Merge Uses

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

func (*Verifiers_TryJobVerifier_Builder) XXX_Size Uses

func (m *Verifiers_TryJobVerifier_Builder) XXX_Size() int

func (*Verifiers_TryJobVerifier_Builder) XXX_Unmarshal Uses

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

type Verifiers_TryJobVerifier_EquivalentBuilder Uses

type Verifiers_TryJobVerifier_EquivalentBuilder struct {
    // Required. Bucket name of this builder.
    Bucket *string `protobuf:"bytes,1,opt,name=bucket" json:"bucket,omitempty"`
    // Name of this builder. Defaults to name of the builder it's equivalent
    // to.
    Builder *string `protobuf:"bytes,2,opt,name=builder" json:"builder,omitempty"`
    // Percentage expressing probability of CQ requiring this builder
    // instead of the builder to which this builder is equilvanet to.
    //
    // If not specified, defaults to 50.
    //
    // A choice itself is made deterministicly based on CL alone, hereby
    // all CQ attempts on all patchsets of a given CL will require 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
    // two builders will be made only for CLs owned by whitelisted group.
    //
    // To illustrate, suppose percentage=10. Then,
    //   Without owner_whitelist_group,
    //      ~10% of all CQ attempts will choose 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 choose this builder.
    Percentage *int32 `protobuf:"varint,3,opt,name=percentage" json:"percentage,omitempty"`
    // If specified, limits the builder to CL owners in this group.
    OwnerWhitelistGroup  *string  `protobuf:"bytes,4,opt,name=owner_whitelist_group,json=ownerWhitelistGroup" json:"owner_whitelist_group,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*Verifiers_TryJobVerifier_EquivalentBuilder) Descriptor Uses

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

func (*Verifiers_TryJobVerifier_EquivalentBuilder) GetBucket Uses

func (m *Verifiers_TryJobVerifier_EquivalentBuilder) GetBucket() string

func (*Verifiers_TryJobVerifier_EquivalentBuilder) GetBuilder Uses

func (m *Verifiers_TryJobVerifier_EquivalentBuilder) GetBuilder() string

func (*Verifiers_TryJobVerifier_EquivalentBuilder) GetOwnerWhitelistGroup Uses

func (m *Verifiers_TryJobVerifier_EquivalentBuilder) GetOwnerWhitelistGroup() string

func (*Verifiers_TryJobVerifier_EquivalentBuilder) GetPercentage Uses

func (m *Verifiers_TryJobVerifier_EquivalentBuilder) GetPercentage() int32

func (*Verifiers_TryJobVerifier_EquivalentBuilder) ProtoMessage Uses

func (*Verifiers_TryJobVerifier_EquivalentBuilder) ProtoMessage()

func (*Verifiers_TryJobVerifier_EquivalentBuilder) Reset Uses

func (m *Verifiers_TryJobVerifier_EquivalentBuilder) Reset()

func (*Verifiers_TryJobVerifier_EquivalentBuilder) String Uses

func (m *Verifiers_TryJobVerifier_EquivalentBuilder) String() string

func (*Verifiers_TryJobVerifier_EquivalentBuilder) XXX_DiscardUnknown Uses

func (m *Verifiers_TryJobVerifier_EquivalentBuilder) XXX_DiscardUnknown()

func (*Verifiers_TryJobVerifier_EquivalentBuilder) XXX_Marshal Uses

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

func (*Verifiers_TryJobVerifier_EquivalentBuilder) XXX_Merge Uses

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

func (*Verifiers_TryJobVerifier_EquivalentBuilder) XXX_Size Uses

func (m *Verifiers_TryJobVerifier_EquivalentBuilder) XXX_Size() int

func (*Verifiers_TryJobVerifier_EquivalentBuilder) XXX_Unmarshal Uses

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

type Verifiers_TryJobVerifier_TryJobRetryConfig Uses

type Verifiers_TryJobVerifier_TryJobRetryConfig struct {
    // Retry quota for a single tryjob.
    TryJobRetryQuota *int32 `protobuf:"varint,1,opt,name=try_job_retry_quota,json=tryJobRetryQuota" json:"try_job_retry_quota,omitempty"`
    // Retry quota for all tryjobs in a CL.
    GlobalRetryQuota *int32 `protobuf:"varint,2,opt,name=global_retry_quota,json=globalRetryQuota" json:"global_retry_quota,omitempty"`
    // The weight assigned to each tryjob failure.
    FailureRetryWeight *int32 `protobuf:"varint,3,opt,name=failure_retry_weight,json=failureRetryWeight" json:"failure_retry_weight,omitempty"`
    // The weight assigned to each transient failure.
    TransientFailureRetryWeight *int32 `protobuf:"varint,4,opt,name=transient_failure_retry_weight,json=transientFailureRetryWeight" json:"transient_failure_retry_weight,omitempty"`
    // The weight assigned to tryjob timeouts.
    TimeoutRetryWeight   *int32   `protobuf:"varint,5,opt,name=timeout_retry_weight,json=timeoutRetryWeight" json:"timeout_retry_weight,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*Verifiers_TryJobVerifier_TryJobRetryConfig) Descriptor Uses

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

func (*Verifiers_TryJobVerifier_TryJobRetryConfig) GetFailureRetryWeight Uses

func (m *Verifiers_TryJobVerifier_TryJobRetryConfig) GetFailureRetryWeight() int32

func (*Verifiers_TryJobVerifier_TryJobRetryConfig) GetGlobalRetryQuota Uses

func (m *Verifiers_TryJobVerifier_TryJobRetryConfig) GetGlobalRetryQuota() int32

func (*Verifiers_TryJobVerifier_TryJobRetryConfig) GetTimeoutRetryWeight Uses

func (m *Verifiers_TryJobVerifier_TryJobRetryConfig) GetTimeoutRetryWeight() int32

func (*Verifiers_TryJobVerifier_TryJobRetryConfig) GetTransientFailureRetryWeight Uses

func (m *Verifiers_TryJobVerifier_TryJobRetryConfig) GetTransientFailureRetryWeight() int32

func (*Verifiers_TryJobVerifier_TryJobRetryConfig) GetTryJobRetryQuota Uses

func (m *Verifiers_TryJobVerifier_TryJobRetryConfig) GetTryJobRetryQuota() int32

func (*Verifiers_TryJobVerifier_TryJobRetryConfig) ProtoMessage Uses

func (*Verifiers_TryJobVerifier_TryJobRetryConfig) ProtoMessage()

func (*Verifiers_TryJobVerifier_TryJobRetryConfig) Reset Uses

func (m *Verifiers_TryJobVerifier_TryJobRetryConfig) Reset()

func (*Verifiers_TryJobVerifier_TryJobRetryConfig) String Uses

func (m *Verifiers_TryJobVerifier_TryJobRetryConfig) String() string

func (*Verifiers_TryJobVerifier_TryJobRetryConfig) XXX_DiscardUnknown Uses

func (m *Verifiers_TryJobVerifier_TryJobRetryConfig) XXX_DiscardUnknown()

func (*Verifiers_TryJobVerifier_TryJobRetryConfig) XXX_Marshal Uses

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

func (*Verifiers_TryJobVerifier_TryJobRetryConfig) XXX_Merge Uses

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

func (*Verifiers_TryJobVerifier_TryJobRetryConfig) XXX_Size Uses

func (m *Verifiers_TryJobVerifier_TryJobRetryConfig) XXX_Size() int

func (*Verifiers_TryJobVerifier_TryJobRetryConfig) XXX_Unmarshal Uses

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

Package legacy_config imports 3 packages (graph). Updated 2019-04-20. Refresh now. Tools for package owners.