compiledcfg

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: 9 Imported by: 0

Documentation

Overview

Package compiledcfg contains compiled versions of the LUCI Analysis config. (E.g. Regular expressions are compiled for efficiency.)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProjectConfig

type ProjectConfig struct {
	// Config is the raw, uncompiled, configuration.
	Config *configpb.ProjectConfig

	// TestNameRules are the set of rules to use to cluster test results
	// by test name.
	TestNameRules []rules.Evaluator

	// ReasonMaskPatterns is the set of patterns to use to mask out parts
	// of the failure reason before clustering.
	ReasonMaskPatterns []*regexp.Regexp

	// LastUpdated is the time the configuration was last updated.
	LastUpdated time.Time
}

ProjectConfig is a compiled version of LUCI Analysis project configuration.

func NewConfig

func NewConfig(config *configpb.ProjectConfig) (*ProjectConfig, error)

NewConfig compiles the given clustering configuration into a Config object.

func Project

func Project(ctx context.Context, project string, minimumVersion time.Time) (*ProjectConfig, error)

Project returns the clustering configuration for the given project, with a LastUpdated time of at least minimumVersion. If no particular minimum version is desired, pass time.Time{} to minimumVersion.

Jump to

Keyboard shortcuts

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