plan

package
v0.0.0-...-b8a1838 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_chromiumos_test_plan_source_test_plan_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type SourceTestPlan

type SourceTestPlan struct {

	// Paths that will trigger the SourceTestPlan.
	//
	// Must be a repo-absolute ChromeOS path. For example,
	// “arc/adbd/.*” for
	// https://chromium.googlesource.com/chromiumos/platform2/+/HEAD/arc/adbd.
	//
	// Paths can only match files in the subtree of the DIR_METADATA file.
	// For example, paths specified in "a/b/DIR_METADATA" must start with "a/b/".
	//
	// Patterns use Google Re2 syntax. The comparison is a full match. The pattern
	// is implicitly anchored with ^ and $, so there is no need to add them.
	//
	// If path_regexp is not specified, it is implied to be all files in
	// the directory of the DIR_METADATA file and all files in subdirectories.
	//
	// If a file is matched by both path_regexp and path_regexp_exclude, it is
	// excluded.
	PathRegexps        []string `protobuf:"bytes,2,rep,name=path_regexps,json=pathRegexps,proto3" json:"path_regexps,omitempty"`
	PathRegexpExcludes []string `protobuf:"bytes,3,rep,name=path_regexp_excludes,json=pathRegexpExcludes,proto3" json:"path_regexp_excludes,omitempty"`
	// Starlark files to evaluate to generate HW/VMTestPlan protos.
	TestPlanStarlarkFiles []*SourceTestPlan_TestPlanStarlarkFile `` /* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

Describes the test cases that run when a given set of files are changed.

This message is intended to be specified as text proto in a DIR_METADATA file in the source tree, and should be concise enough Starlark, or another config generation tool, is not needed.

NEXT ID: 15

func (*SourceTestPlan) Descriptor deprecated

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

Deprecated: Use SourceTestPlan.ProtoReflect.Descriptor instead.

func (*SourceTestPlan) GetPathRegexpExcludes

func (x *SourceTestPlan) GetPathRegexpExcludes() []string

func (*SourceTestPlan) GetPathRegexps

func (x *SourceTestPlan) GetPathRegexps() []string

func (*SourceTestPlan) GetTestPlanStarlarkFiles

func (x *SourceTestPlan) GetTestPlanStarlarkFiles() []*SourceTestPlan_TestPlanStarlarkFile

func (*SourceTestPlan) ProtoMessage

func (*SourceTestPlan) ProtoMessage()

func (*SourceTestPlan) ProtoReflect

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

func (*SourceTestPlan) Reset

func (x *SourceTestPlan) Reset()

func (*SourceTestPlan) String

func (x *SourceTestPlan) String() string

type SourceTestPlan_TestPlanStarlarkFile

type SourceTestPlan_TestPlanStarlarkFile struct {

	// Gitiles hostname, e.g. "chromium.googlesource.com".
	Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	// Repository name on the host, e.g. "chromium/src".
	Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
	// Absolute path within the repo to the Starlark file. Regexes are not
	// allowed.
	Path               string                                                  `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
	TemplateParameters *SourceTestPlan_TestPlanStarlarkFile_TemplateParameters `protobuf:"bytes,4,opt,name=template_parameters,json=templateParameters,proto3" json:"template_parameters,omitempty"`
	// contains filtered or unexported fields
}

A Starlark file that will be evaluated to generate HW/VMTestPlan protos.

The Starlark file must output a list of HW/VMTestPlan protos based on an input BuildMetadataList and FlatConfigList.

func (*SourceTestPlan_TestPlanStarlarkFile) Descriptor deprecated

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

Deprecated: Use SourceTestPlan_TestPlanStarlarkFile.ProtoReflect.Descriptor instead.

func (*SourceTestPlan_TestPlanStarlarkFile) GetHost

func (*SourceTestPlan_TestPlanStarlarkFile) GetPath

func (*SourceTestPlan_TestPlanStarlarkFile) GetProject

func (*SourceTestPlan_TestPlanStarlarkFile) GetTemplateParameters

func (*SourceTestPlan_TestPlanStarlarkFile) ProtoMessage

func (*SourceTestPlan_TestPlanStarlarkFile) ProtoMessage()

func (*SourceTestPlan_TestPlanStarlarkFile) ProtoReflect

func (*SourceTestPlan_TestPlanStarlarkFile) Reset

func (*SourceTestPlan_TestPlanStarlarkFile) String

type SourceTestPlan_TestPlanStarlarkFile_TemplateParameters

type SourceTestPlan_TestPlanStarlarkFile_TemplateParameters struct {

	// TestCaseTagCriteria that will be made available to the Starlark file.
	// Intended for the case where many different DIR_METADATA files want to
	// run the same plan but with different tag criteria.
	TagCriteria *api.TestSuite_TestCaseTagCriteria `protobuf:"bytes,1,opt,name=tag_criteria,json=tagCriteria,proto3" json:"tag_criteria,omitempty"`
	// Suite name that will be made available to the Starlark file. Intended
	// to prevent suite name collisions when multiple DIR_METADATA files
	// reference the same templated Starlark file with different tag_criteria.
	SuiteName string `protobuf:"bytes,2,opt,name=suite_name,json=suiteName,proto3" json:"suite_name,omitempty"`
	// Program name that will be made available to the Starlark file.
	// Generally this will be passed to the v1_compatible_hw_test_plan and
	// v1_compatible_vm_test_plan Starlark functions, but the Starlark file is
	// free to use the name arbitrarily.
	Program string `protobuf:"bytes,3,opt,name=program,proto3" json:"program,omitempty"`
	// contains filtered or unexported fields
}

Fields that will be made available to the Starlark file via interpreter builtins. Note that specifying these fields here does NOT automatically mean the HW/VMTestPlan protos generated will use them in all plans.

Specifying these fields on a Starlark file that doesn't use them will cause `test_plan validate` to fail.

Unless otherwise noted, these parameters are made available in the Starlark interpreter with function calls named `testplan.get_<field_name>`; for example, `testplan.get_tag_criteria`.

func (*SourceTestPlan_TestPlanStarlarkFile_TemplateParameters) Descriptor deprecated

Deprecated: Use SourceTestPlan_TestPlanStarlarkFile_TemplateParameters.ProtoReflect.Descriptor instead.

func (*SourceTestPlan_TestPlanStarlarkFile_TemplateParameters) GetProgram

func (*SourceTestPlan_TestPlanStarlarkFile_TemplateParameters) GetSuiteName

func (*SourceTestPlan_TestPlanStarlarkFile_TemplateParameters) GetTagCriteria

func (*SourceTestPlan_TestPlanStarlarkFile_TemplateParameters) ProtoMessage

func (*SourceTestPlan_TestPlanStarlarkFile_TemplateParameters) ProtoReflect

func (*SourceTestPlan_TestPlanStarlarkFile_TemplateParameters) Reset

func (*SourceTestPlan_TestPlanStarlarkFile_TemplateParameters) String

Jump to

Keyboard shortcuts

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