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 ¶
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 ErrorProgressBazelInvocationProblemDetector ¶
type ErrorProgressBazelInvocationProblemDetector []*events.BuildEvent
ErrorProgressBazelInvocationProblemDetector type
func (*ErrorProgressBazelInvocationProblemDetector) Problems ¶
func (e *ErrorProgressBazelInvocationProblemDetector) Problems() ([]Problem, error)
Problems function
func (*ErrorProgressBazelInvocationProblemDetector) ProcessBEPEvent ¶
func (e *ErrorProgressBazelInvocationProblemDetector) ProcessBEPEvent(event *events.BuildEvent)
ProcessBEPEvent function
type FailedTargetBazelInvocationProblemDetector ¶
type FailedTargetBazelInvocationProblemDetector map[string]*events.BuildEvent
FailedTargetBazelInvocationProblemDetector map
func (FailedTargetBazelInvocationProblemDetector) Problems ¶
func (f FailedTargetBazelInvocationProblemDetector) Problems() ([]Problem, error)
Problems function
func (FailedTargetBazelInvocationProblemDetector) ProcessBEPEvent ¶
func (f FailedTargetBazelInvocationProblemDetector) ProcessBEPEvent(event *events.BuildEvent)
ProcessBEPEvent function
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 (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