Documentation ¶
Overview ¶
Package join contains methods for joining buildbucket build completions with LUCI CV completions and ResultDB invocation finalizations.
Index ¶
- func JoinBuild(ctx context.Context, bbHost, project string, buildID int64) (processed bool, err error)
- func JoinBuildResult(ctx context.Context, buildID, buildProject string, ...) error
- func JoinCVRun(ctx context.Context, psRun *cvv1.PubSubRun) (project string, processed bool, err error)
- func JoinInvocation(ctx context.Context, notification *rdbpb.InvocationFinalizedNotification) (processed bool, err error)
- func JoinInvocationResult(ctx context.Context, buildID, invocationProject string, ...) error
- func JoinPresubmitResult(ctx context.Context, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JoinBuild ¶
func JoinBuild(ctx context.Context, bbHost, project string, buildID int64) (processed bool, err error)
JoinBuild notifies ingestion that the given buildbucket build has finished. Ingestion tasks are created for buildbucket builds when all required data for a build (including any associated LUCI CV run) is available.
func JoinBuildResult ¶
func JoinBuildResult(ctx context.Context, buildID, buildProject string, isPresubmit, hasInvocation bool, br *ctlpb.BuildResult) error
JoinBuildResult sets the build result for the given build.
An ingestion task is created if all required data for the ingestion is available.
- for builds part of a presubmit run, we will need to wait for the presubmit run.
- for builds with a ResultDB invocation (note this is not mutually exclusive to the above), we will need to wait for the ResultDB invocation.
If none of the above applies, we will start an ingestion straight away.
If the build result has already been provided for a build, this method has no effect.
func JoinCVRun ¶
func JoinCVRun(ctx context.Context, psRun *cvv1.PubSubRun) (project string, processed bool, err error)
JoinCVRun notifies ingestion that the given LUCI CV Run has finished. Ingestion tasks are created for buildbucket builds when all required data for a build (including any associated LUCI CV run) is available.
func JoinInvocation ¶
func JoinInvocation(ctx context.Context, notification *rdbpb.InvocationFinalizedNotification) (processed bool, err error)
JoinInvocation notifies ingestion that the given invocation has finalized. Ingestion tasks are created for buildbucket builds when all required data for a build (including any invocation) is available.
func JoinInvocationResult ¶
func JoinInvocationResult(ctx context.Context, buildID, invocationProject string, ir *ctlpb.InvocationResult) error
JoinInvocationResult sets the invocation result for the given builds.
Ingestion task(s) are created for builds once all required data is available.
If the invocation result has already been provided for a build, this method has no effect.
func JoinPresubmitResult ¶
func JoinPresubmitResult(ctx context.Context, presubmitResultByBuildID map[string]*ctlpb.PresubmitResult, presubmitProject string) error
JoinPresubmitResult sets the presubmit result for the given builds.
Ingestion task(s) are created for builds once all required data is available.
If the presubmit result has already been provided for a build, this method has no effect.
Types ¶
This section is empty.