testplan

package
v0.0.0-...-f4b31ea Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: BSD-3-Clause Imports: 37 Imported by: 0

Documentation

Overview

Package testplan contains the main application code for the testplan tool.

Copyright 2023 The Chromium Authors Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindRelevantPlans

func FindRelevantPlans(
	ctx context.Context,
	changeRevs []*gerrit.ChangeRev,
	workdirFn computemapping.WorkdirCreation,
	cloneDepth time.Duration,
) ([]*plan.SourceTestPlan, error)

func Generate

func Generate(
	ctx context.Context,
	planFilenames []string,
	buildMetadataList *buildpb.SystemImage_BuildMetadataList,
	dutAttributeList *testpb.DutAttributeList,
	configBundleList *payload.ConfigBundleList,
	planToTemplateParametersList map[string][]*plan.SourceTestPlan_TestPlanStarlarkFile_TemplateParameters,
) ([]*test_api_v1.HWTestPlan, []*test_api_v1.VMTestPlan, error)

Generate evals the Starlark files in planFilenames to produce a list of HWTestPlans and VMTestPlans.

planFilenames must be non-empty. buildMetadataList, dutAttributeList, and configBundleList must be non-nil.

All keys in planToTemplateParametersList must be in planFilenames. If a plan does have a list of TemplateParameters, the plan will be evaluated once for each of the TemplateParameters.

func NewValidator

func NewValidator(gerritClient gerrit.Client, bbClient bbpb.BuildsClient, gsClient gs.Client, cmdRunner cmd.CommandRunner) *validator

NewValidator returns a validator with default configuration, which can be used to validate ChromeOS test configs in dirmd.Mappings.

Types

This section is empty.

Directories

Path Synopsis
Package cli defines different commands for the test_plan tool.
Package cli defines different commands for the test_plan tool.
Package compatibility provides functions for backwards compatibility with test platform.
Package compatibility provides functions for backwards compatibility with test platform.
priority
Package priority provides tools for selecting between boards to test.
Package priority provides tools for selecting between boards to test.
package migrationstatus summarizes the status of projects being migrated to distributed test config.
package migrationstatus summarizes the status of projects being migrated to distributed test config.
Package protoio contains helper methods for proto I/O done by the testplan tool.
Package protoio contains helper methods for proto I/O done by the testplan tool.
Package starlark contains functions for evaluating Starlark test plans.
Package starlark contains functions for evaluating Starlark test plans.

Jump to

Keyboard shortcuts

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