Documentation ¶
Overview ¶
Package culpritverification performs culprit verification for test failures.
Package culpritverification verifies if a suspect is a culprit.
Index ¶
- func RegisterTaskClass()
- func ShouldRunCulpritVerification(c context.Context, cfa *model.CompileFailureAnalysis) (bool, error)
- func VerifySuspect(c context.Context, suspect *model.Suspect, failedBuildID int64, ...) error
- func VerifySuspectCommit(c context.Context, project string, suspect *model.Suspect, failedBuildID int64, ...) (*buildbucketpb.Build, *buildbucketpb.Build, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterTaskClass ¶
func RegisterTaskClass()
RegisterTaskClass registers the task class for tq dispatcher
func VerifySuspect ¶
func VerifySuspect(c context.Context, suspect *model.Suspect, failedBuildID int64, analysisID int64) error
VerifySuspect verifies if a suspect is indeed the culprit. analysisID is CompileFailureAnalysis ID. It is meant to be propagated all the way to the recipe, so we can identify the analysis in buildbucket.
func VerifySuspectCommit ¶
func VerifySuspectCommit(c context.Context, project string, suspect *model.Suspect, failedBuildID int64, props map[string]any, priority int32) (*buildbucketpb.Build, *buildbucketpb.Build, error)
VerifyCommit checks if a commit is the culprit of a build failure. Returns 2 builds: - The 1st build is the rerun build for the commit - The 2nd build is the rerun build for the parent commit
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.