migrationstatus

package
v0.0.0-...-7f005ae Latest Latest
Warning

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

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

Documentation

Overview

package migrationstatus summarizes the status of projects being migrated to distributed test config.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CSV

func CSV(
	ctx context.Context,
	migrationstatuses []*MigrationStatus,
	out io.Writer,
) error

CSV writes a CSV containing each of migrationstatuses to out. migrationstatuses are sorted by builder and project.

func TextSummary

func TextSummary(
	ctx context.Context,
	migrationStatuses []*MigrationStatus,
	projectsToCheck []string,
) (string, error)

TextSummary returns a string summarizing migrationStatuses. If projectsToCheck is non-empty, the summary contains whether each specific project is migrated.

Types

type MigrationStatus

type MigrationStatus struct {
	// The name of the builder that has a migration configured, usually an
	// orchestrator builder.
	BuilderName string

	// The name of the project.
	ProjectName string

	// The path the project is checked out to.
	ProjectPath string

	// Whether the project matches a MigrationConfig in the builder.
	MatchesMigrationConfig bool

	// Whether the project is included in the "ToT" CQ group.
	IncludedByToT bool

	// Whether the project is included by the builder's location filters.
	IncludedByBuilder bool
}

MigrationStatus describes the distributed test planning status of a project.

func Compute

func Compute(
	ctx context.Context,
	manifest *repo.Manifest,
	bbCfg *bbpb.BuildbucketCfg,
	cvConfig *cvpb.Config,
) ([]*MigrationStatus, error)

Compute returns a MigrationStatus for each project in manifest and builder in orchestratorNames.

Jump to

Keyboard shortcuts

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