join

package
v0.0.0-...-7b0e74a Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Overview

Package join contains methods for joining buildbucket build completions with LUCI CV completions and ResultDB invocation finalizations.

Index

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.

Jump to

Keyboard shortcuts

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