detectors

package
v0.0.0-...-abb76f0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package detectors contains components for detecting Problems in an event stream.

A Problem is part of our summarization of an invocation. It is not part of the Bazel Event Protocol specification itself, though specific problems may be closely associated with specific events.

Index

Constants

View Source
const (
	BazelInvocationProblemFailedTarget  = "FAILED_TARGET"
	BazelInvocationProblemErrorProgress = "ERROR_PROGRESS"
	BazelInvocationTestProblem          = "TEST_PROBLEM"
	BazelInvocationActionProblem        = "ACTION_PROBLEM"
)

a constant for status

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionProblemDetector

type ActionProblemDetector struct {
	// contains filtered or unexported fields
}

ActionProblemDetector struct

func NewActionProblemDetector

func NewActionProblemDetector() ActionProblemDetector

NewActionProblemDetector function

func (ActionProblemDetector) Problems

func (a ActionProblemDetector) Problems() ([]Problem, error)

Problems function

func (ActionProblemDetector) ProcessBEPEvent

func (a ActionProblemDetector) ProcessBEPEvent(event *events.BuildEvent)

ProcessBEPEvent function

type BazelInvocationProblemDetector

type BazelInvocationProblemDetector interface {
	ProcessBEPEvent(*events.BuildEvent)
	Problems() ([]Problem, error)
}

BazelInvocationProblemDetector interface

type BazelInvocationProblemType

type BazelInvocationProblemType string

BazelInvocationProblemType string

type BlobURI

type BlobURI string

BlobURI string

type ErrorProgressBazelInvocationProblemDetector

type ErrorProgressBazelInvocationProblemDetector []*events.BuildEvent

ErrorProgressBazelInvocationProblemDetector type

func (*ErrorProgressBazelInvocationProblemDetector) Problems

Problems function

func (*ErrorProgressBazelInvocationProblemDetector) ProcessBEPEvent

ProcessBEPEvent function

type FailedTargetBazelInvocationProblemDetector

type FailedTargetBazelInvocationProblemDetector map[string]*events.BuildEvent

FailedTargetBazelInvocationProblemDetector map

func (FailedTargetBazelInvocationProblemDetector) Problems

Problems function

func (FailedTargetBazelInvocationProblemDetector) ProcessBEPEvent

ProcessBEPEvent function

type NamedBlob

type NamedBlob struct {
	BlobURI
	Name string
}

NamedBlob struct

type Problem

type Problem struct {
	//*ent.BazelInvocationProblem
	DetectedBlobs []BlobURI
	ProblemType   BazelInvocationProblemType
	Label         string
	BEPEvents     json.RawMessage
}

Problem struct

type ProblemDetector

type ProblemDetector struct {
	// contains filtered or unexported fields
}

ProblemDetector struct

func NewProblemDetector

func NewProblemDetector() ProblemDetector

NewProblemDetector function

func (ProblemDetector) Problems

func (p ProblemDetector) Problems() ([]Problem, error)

Problems function

func (ProblemDetector) ProcessBEPEvent

func (p ProblemDetector) ProcessBEPEvent(event *events.BuildEvent)

ProcessBEPEvent function

type TestProblemDetector

type TestProblemDetector struct {
	// contains filtered or unexported fields
}

TestProblemDetector struct

func NewTestProblemDetector

func NewTestProblemDetector() TestProblemDetector

NewTestProblemDetector constructor

func (TestProblemDetector) Problems

func (t TestProblemDetector) Problems() ([]Problem, error)

Problems method

func (TestProblemDetector) ProcessBEPEvent

func (t TestProblemDetector) ProcessBEPEvent(event *events.BuildEvent)

ProcessBEPEvent function

Jump to

Keyboard shortcuts

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