configpb

package
v0.0.0-...-a70aae3 Latest Latest
Warning

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

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

Documentation

Overview

Package configpb contains protos for service-wide configuration data for LUCI Bisection

Index

Constants

This section is empty.

Variables

View Source
var File_go_chromium_org_luci_bisection_proto_config_config_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_bisection_proto_config_project_config_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BuildConfig

type BuildConfig struct {

	// The buildbucket builder.
	Builder *Builder `protobuf:"bytes,1,opt,name=builder,proto3" json:"builder,omitempty"`
	// contains filtered or unexported fields
}

BuildConfig contains configuration of how we run rerun builds.

func (*BuildConfig) Descriptor deprecated

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

Deprecated: Use BuildConfig.ProtoReflect.Descriptor instead.

func (*BuildConfig) GetBuilder

func (x *BuildConfig) GetBuilder() *Builder

func (*BuildConfig) ProtoMessage

func (*BuildConfig) ProtoMessage()

func (*BuildConfig) ProtoReflect

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

func (*BuildConfig) Reset

func (x *BuildConfig) Reset()

func (*BuildConfig) String

func (x *BuildConfig) String() string

type Builder

type Builder struct {

	// The name of the project that the builder belongs to.
	Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	// The name of the bucket that the builder belongs to.
	Bucket string `protobuf:"bytes,2,opt,name=bucket,proto3" json:"bucket,omitempty"`
	// The name of the builder.
	Builder string `protobuf:"bytes,3,opt,name=builder,proto3" json:"builder,omitempty"`
	// contains filtered or unexported fields
}

Builder specifies a buildbucket builder.

func (*Builder) Descriptor deprecated

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

Deprecated: Use Builder.ProtoReflect.Descriptor instead.

func (*Builder) GetBucket

func (x *Builder) GetBucket() string

func (*Builder) GetBuilder

func (x *Builder) GetBuilder() string

func (*Builder) GetProject

func (x *Builder) GetProject() string

func (*Builder) ProtoMessage

func (*Builder) ProtoMessage()

func (*Builder) ProtoReflect

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

func (*Builder) Reset

func (x *Builder) Reset()

func (*Builder) String

func (x *Builder) String() string

type CompileAnalysisConfig

type CompileAnalysisConfig struct {

	// The build config to run compile analysis.
	BuildConfig *BuildConfig `protobuf:"bytes,4,opt,name=build_config,json=buildConfig,proto3" json:"build_config,omitempty"`
	// Whether we should run culprit verification
	CulpritVerificationEnabled bool `` /* 142-byte string literal not displayed */
	// Whether we should run nthsection analysis
	NthsectionEnabled bool `protobuf:"varint,2,opt,name=nthsection_enabled,json=nthsectionEnabled,proto3" json:"nthsection_enabled,omitempty"`
	// Configuration data for Gerrit integration for compile failures.
	GerritConfig *GerritConfig `protobuf:"bytes,3,opt,name=gerrit_config,json=gerritConfig,proto3" json:"gerrit_config,omitempty"`
	// Only compile failure which satisfies this filter will be ingested.
	FailureIngestionFilter *FailureIngestionFilter `` /* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

CompileAnalysisConfig is the configuration data for compile failure bisection. Next available tag: 6.

func (*CompileAnalysisConfig) Descriptor deprecated

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

Deprecated: Use CompileAnalysisConfig.ProtoReflect.Descriptor instead.

func (*CompileAnalysisConfig) GetBuildConfig

func (x *CompileAnalysisConfig) GetBuildConfig() *BuildConfig

func (*CompileAnalysisConfig) GetCulpritVerificationEnabled

func (x *CompileAnalysisConfig) GetCulpritVerificationEnabled() bool

func (*CompileAnalysisConfig) GetFailureIngestionFilter

func (x *CompileAnalysisConfig) GetFailureIngestionFilter() *FailureIngestionFilter

func (*CompileAnalysisConfig) GetGerritConfig

func (x *CompileAnalysisConfig) GetGerritConfig() *GerritConfig

func (*CompileAnalysisConfig) GetNthsectionEnabled

func (x *CompileAnalysisConfig) GetNthsectionEnabled() bool

func (*CompileAnalysisConfig) ProtoMessage

func (*CompileAnalysisConfig) ProtoMessage()

func (*CompileAnalysisConfig) ProtoReflect

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

func (*CompileAnalysisConfig) Reset

func (x *CompileAnalysisConfig) Reset()

func (*CompileAnalysisConfig) String

func (x *CompileAnalysisConfig) String() string

type Config

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

Config is the service-wide configuration data for LUCI Bisection.

func (*Config) Descriptor deprecated

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

Deprecated: Use Config.ProtoReflect.Descriptor instead.

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

type FailureIngestionFilter

type FailureIngestionFilter struct {

	// The list of buildbucket buckets that we should not bisect on.
	// For example, "reviver", "try", and "findit".
	// Only applicable for test failure analysis.
	ExcludedBuckets []string `protobuf:"bytes,1,rep,name=excluded_buckets,json=excludedBuckets,proto3" json:"excluded_buckets,omitempty"`
	// The list of swarming test task pools that we want to exclude running bisection.
	// For example, we want to exclude the "chromium.tests.gpu" pool (b/301523224)
	// because there are limited resources in the pool.
	// Note: this is not the pools that the builder run, but the swarming test task pool,
	// which contains the bots that actually run the tests on swarming.
	// Only applicable for test failure analysis.
	ExcludedTestPools []string `protobuf:"bytes,2,rep,name=excluded_test_pools,json=excludedTestPools,proto3" json:"excluded_test_pools,omitempty"`
	// If this is specified, bisection will only run on failures
	// from the builder groups in the list.
	// An empty list means that failures from all builder groups can be ingested.
	// Only applicable for test failure analysis.
	AllowedBuilderGroups []string `protobuf:"bytes,3,rep,name=allowed_builder_groups,json=allowedBuilderGroups,proto3" json:"allowed_builder_groups,omitempty"`
	// The list of builder groups that we should not run bisect on.
	ExcludedBuilderGroups []string `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

FailureIngestionFilter defines filtering rules for failures to be ingested. A failure needs to fulfill ALL rules.

func (*FailureIngestionFilter) Descriptor deprecated

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

Deprecated: Use FailureIngestionFilter.ProtoReflect.Descriptor instead.

func (*FailureIngestionFilter) GetAllowedBuilderGroups

func (x *FailureIngestionFilter) GetAllowedBuilderGroups() []string

func (*FailureIngestionFilter) GetExcludedBuckets

func (x *FailureIngestionFilter) GetExcludedBuckets() []string

func (*FailureIngestionFilter) GetExcludedBuilderGroups

func (x *FailureIngestionFilter) GetExcludedBuilderGroups() []string

func (*FailureIngestionFilter) GetExcludedTestPools

func (x *FailureIngestionFilter) GetExcludedTestPools() []string

func (*FailureIngestionFilter) ProtoMessage

func (*FailureIngestionFilter) ProtoMessage()

func (*FailureIngestionFilter) ProtoReflect

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

func (*FailureIngestionFilter) Reset

func (x *FailureIngestionFilter) Reset()

func (*FailureIngestionFilter) String

func (x *FailureIngestionFilter) String() string

type GerritConfig

type GerritConfig struct {

	// Whether Gerrit API actions are enabled
	ActionsEnabled bool `protobuf:"varint,1,opt,name=actions_enabled,json=actionsEnabled,proto3" json:"actions_enabled,omitempty"`
	// Settings for creating reverts for culprit CLs
	CreateRevertSettings *GerritConfig_RevertActionSettings `protobuf:"bytes,2,opt,name=create_revert_settings,json=createRevertSettings,proto3" json:"create_revert_settings,omitempty"`
	// Settings for submitting reverts for culprit CLs
	SubmitRevertSettings *GerritConfig_RevertActionSettings `protobuf:"bytes,3,opt,name=submit_revert_settings,json=submitRevertSettings,proto3" json:"submit_revert_settings,omitempty"`
	// Maximum age of a culprit (sec) for its revert to be eligible
	// for the submit action.
	//
	// The age of a culprit is based on the time since the culprit was merged.
	// If a culprit is older than this limit, LUCI Bisection will skip
	// submitting its corresponding revert.
	MaxRevertibleCulpritAge int64                            `` /* 135-byte string literal not displayed */
	NthsectionSettings      *GerritConfig_NthSectionSettings `protobuf:"bytes,5,opt,name=nthsection_settings,json=nthsectionSettings,proto3" json:"nthsection_settings,omitempty"`
	// contains filtered or unexported fields
}

GerritConfig is the configuration data for Gerrit integration

func (*GerritConfig) Descriptor deprecated

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

Deprecated: Use GerritConfig.ProtoReflect.Descriptor instead.

func (*GerritConfig) GetActionsEnabled

func (x *GerritConfig) GetActionsEnabled() bool

func (*GerritConfig) GetCreateRevertSettings

func (x *GerritConfig) GetCreateRevertSettings() *GerritConfig_RevertActionSettings

func (*GerritConfig) GetMaxRevertibleCulpritAge

func (x *GerritConfig) GetMaxRevertibleCulpritAge() int64

func (*GerritConfig) GetNthsectionSettings

func (x *GerritConfig) GetNthsectionSettings() *GerritConfig_NthSectionSettings

func (*GerritConfig) GetSubmitRevertSettings

func (x *GerritConfig) GetSubmitRevertSettings() *GerritConfig_RevertActionSettings

func (*GerritConfig) ProtoMessage

func (*GerritConfig) ProtoMessage()

func (*GerritConfig) ProtoReflect

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

func (*GerritConfig) Reset

func (x *GerritConfig) Reset()

func (*GerritConfig) String

func (x *GerritConfig) String() string

type GerritConfig_NthSectionSettings

type GerritConfig_NthSectionSettings struct {

	// Whether culprit action for nthsection culprit is enabled
	Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// Whether we should perform actions on nthsection culprits even when
	// culprit verification errored
	ActionWhenVerificationError bool `` /* 147-byte string literal not displayed */
	// contains filtered or unexported fields
}

Settings for culprit actions for nthsection

func (*GerritConfig_NthSectionSettings) Descriptor deprecated

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

Deprecated: Use GerritConfig_NthSectionSettings.ProtoReflect.Descriptor instead.

func (*GerritConfig_NthSectionSettings) GetActionWhenVerificationError

func (x *GerritConfig_NthSectionSettings) GetActionWhenVerificationError() bool

func (*GerritConfig_NthSectionSettings) GetEnabled

func (x *GerritConfig_NthSectionSettings) GetEnabled() bool

func (*GerritConfig_NthSectionSettings) ProtoMessage

func (*GerritConfig_NthSectionSettings) ProtoMessage()

func (*GerritConfig_NthSectionSettings) ProtoReflect

func (*GerritConfig_NthSectionSettings) Reset

func (*GerritConfig_NthSectionSettings) String

type GerritConfig_RevertActionSettings

type GerritConfig_RevertActionSettings struct {

	// Whether the action is enabled
	Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// The maximum number of times the action can be performed per day
	DailyLimit uint32 `protobuf:"varint,2,opt,name=daily_limit,json=dailyLimit,proto3" json:"daily_limit,omitempty"`
	// contains filtered or unexported fields
}

Settings for revert-related actions

func (*GerritConfig_RevertActionSettings) Descriptor deprecated

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

Deprecated: Use GerritConfig_RevertActionSettings.ProtoReflect.Descriptor instead.

func (*GerritConfig_RevertActionSettings) GetDailyLimit

func (x *GerritConfig_RevertActionSettings) GetDailyLimit() uint32

func (*GerritConfig_RevertActionSettings) GetEnabled

func (x *GerritConfig_RevertActionSettings) GetEnabled() bool

func (*GerritConfig_RevertActionSettings) ProtoMessage

func (*GerritConfig_RevertActionSettings) ProtoMessage()

func (*GerritConfig_RevertActionSettings) ProtoReflect

func (*GerritConfig_RevertActionSettings) Reset

func (*GerritConfig_RevertActionSettings) String

type ProjectConfig

type ProjectConfig struct {

	// Configuration data for compile failure analysis.
	CompileAnalysisConfig *CompileAnalysisConfig `` /* 126-byte string literal not displayed */
	// Configuration data for test failure analysis.
	TestAnalysisConfig *TestAnalysisConfig `protobuf:"bytes,2,opt,name=test_analysis_config,json=testAnalysisConfig,proto3" json:"test_analysis_config,omitempty"`
	// contains filtered or unexported fields
}

ProjectConfig is the project-specific configuration data for LUCI Bisection.

func (*ProjectConfig) Descriptor deprecated

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

Deprecated: Use ProjectConfig.ProtoReflect.Descriptor instead.

func (*ProjectConfig) GetCompileAnalysisConfig

func (x *ProjectConfig) GetCompileAnalysisConfig() *CompileAnalysisConfig

func (*ProjectConfig) GetTestAnalysisConfig

func (x *ProjectConfig) GetTestAnalysisConfig() *TestAnalysisConfig

func (*ProjectConfig) ProtoMessage

func (*ProjectConfig) ProtoMessage()

func (*ProjectConfig) ProtoReflect

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

func (*ProjectConfig) Reset

func (x *ProjectConfig) Reset()

func (*ProjectConfig) String

func (x *ProjectConfig) String() string

type TestAnalysisConfig

type TestAnalysisConfig struct {

	// The build config to run test analysis.
	BuildConfig *BuildConfig `protobuf:"bytes,9,opt,name=build_config,json=buildConfig,proto3" json:"build_config,omitempty"`
	// Flag of whether test failure detector is enabled.
	// Usually the flag is on for both dev and prod, but we may want to turn
	// it off for the cases when the bisector is down and we don't want to
	// create tasks when the bisector cannot run (in which case, the bisector
	// will just mark the analysis as "DISABLED").
	// So in prod, if we need to turn the bisector off, we generally should turn
	// the detector off as well.
	DetectorEnabled bool `protobuf:"varint,2,opt,name=detector_enabled,json=detectorEnabled,proto3" json:"detector_enabled,omitempty"`
	// Flag of whether test failure bisector is enabled.
	// During the development of the test failure bisection feature, it should
	// be on for dev and off for prod (as we are testing). When everything is
	// up and running, it should be off for dev and on for prod, because we want
	// to save resources (running bisection on dev will be expensive).
	BisectorEnabled bool `protobuf:"varint,3,opt,name=bisector_enabled,json=bisectorEnabled,proto3" json:"bisector_enabled,omitempty"`
	// The maximum number of test analyses to run in a day for each project.
	// It only counts analyses that being created within 24 hours, with status different
	// from "DISABLED" or "UNSUPPORTED".
	// It allows us to slowly roll out bisection without consuming too much
	// swarming capacity.
	DailyLimit uint32 `protobuf:"varint,4,opt,name=daily_limit,json=dailyLimit,proto3" json:"daily_limit,omitempty"`
	// Configuration data for Gerrit integration for test failures.
	GerritConfig *GerritConfig `protobuf:"bytes,6,opt,name=gerrit_config,json=gerritConfig,proto3" json:"gerrit_config,omitempty"`
	// Only test failure which satisfies this filter will be ingested.
	FailureIngestionFilter *FailureIngestionFilter `` /* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

TestAnalysisConfig is the configuration data for test failure bisection. Next available tag: 10.

func (*TestAnalysisConfig) Descriptor deprecated

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

Deprecated: Use TestAnalysisConfig.ProtoReflect.Descriptor instead.

func (*TestAnalysisConfig) GetBisectorEnabled

func (x *TestAnalysisConfig) GetBisectorEnabled() bool

func (*TestAnalysisConfig) GetBuildConfig

func (x *TestAnalysisConfig) GetBuildConfig() *BuildConfig

func (*TestAnalysisConfig) GetDailyLimit

func (x *TestAnalysisConfig) GetDailyLimit() uint32

func (*TestAnalysisConfig) GetDetectorEnabled

func (x *TestAnalysisConfig) GetDetectorEnabled() bool

func (*TestAnalysisConfig) GetFailureIngestionFilter

func (x *TestAnalysisConfig) GetFailureIngestionFilter() *FailureIngestionFilter

func (*TestAnalysisConfig) GetGerritConfig

func (x *TestAnalysisConfig) GetGerritConfig() *GerritConfig

func (*TestAnalysisConfig) ProtoMessage

func (*TestAnalysisConfig) ProtoMessage()

func (*TestAnalysisConfig) ProtoReflect

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

func (*TestAnalysisConfig) Reset

func (x *TestAnalysisConfig) Reset()

func (*TestAnalysisConfig) String

func (x *TestAnalysisConfig) String() string

Jump to

Keyboard shortcuts

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