projectissues

package
v0.3.0-20261125210437-... Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Issue project attribution

Issue attribution answers which projects each confirmed build issue affects. The project names use the same identity as project status results.

Inputs and results

A queue-bound attributer accepts the validation request. The request supplies the commit, baseline, build strategy, and build identity. Implementations load confirmed build issues, dependency graphs, and project configuration through injected dependencies; callers do not supply issue lists or graph data. For terminal validation, the issues belong to the request's terminal build and attribution must wait until terminal build analysis has finished recording them.

Each result identifies a unit-level build issue by task and unit and lists its affected projects. Projects must be both covered by that validation and affected by the issue. A dependency-based implementation follows the graph at the validated commit.

A completed assessment returns all results in one call, with one entry per distinct build issue, including an empty project list when none apply. The noop implementation returns no results when attribution is unconfigured.

Errors and concurrency

Attribution is all-or-nothing: any task-wide failure, incomplete validation evidence, or dependency failure returns an error for the entire validation. Callers must discard results returned alongside an error.

Implementations must support concurrent calls, leave inputs unchanged, and not consume validation evidence.

Documentation

Overview

Package projectissues defines project attribution for individual build issues.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attributer

type Attributer interface {
	Attribute(ctx context.Context, request entity.Request) ([]Attribution, error)
}

Attributer attributes confirmed build issues within the request's validation scope. Return an error for incomplete attribution, including any task-wide failure. Returning no results is valid. Calls must be concurrency-safe and leave inputs unchanged. Results returned with an error must not be used.

type AttributerConfig

type AttributerConfig struct {
	// QueueName identifies the validation queue.
	QueueName string
}

AttributerConfig identifies the queue whose attributer is requested.

type AttributerFactory

type AttributerFactory interface {
	For(cfg AttributerConfig) (Attributer, error)
}

AttributerFactory provides an attributer for one queue.

type Attribution

type Attribution struct {
	// TaskID identifies the issue's validation task and must be nonempty.
	TaskID string
	// UnitID identifies the failed unit within the task and must be nonempty.
	UnitID string
	// Projects contains distinct, nonempty project names, using the same identity as project status.
	// An empty list means the issue affects no projects within this validation's scope.
	Projects []string
}

Attribution identifies the projects affected by one issue within a validation's scope.

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package noop skips project attribution when no backend is configured.
Package noop skips project attribution when no backend is configured.

Jump to

Keyboard shortcuts

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