join

package
v0.0.0-...-a8f2654 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 35 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 when all required data for this build (including any associated LUCI CV run and invocation) is available.

func JoinBuildResult

func JoinBuildResult(ctx context.Context, buildID int64, buildProject string, isPresubmit, hasInvocation bool, br *ctlpb.BuildResult) error

JoinBuildResult sets the build result for the ingestion.

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 when all required data for an ingestion (including any associated LUCI CV run, build and invocation) 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 when all required data for a ingestion (including any associated LUCI CV run, build and invocation) is available.

func JoinInvocationResult

func JoinInvocationResult(ctx context.Context, invocationID, invocationProject string, ir *ctlpb.InvocationResult) error

JoinInvocationResult sets the invocation result for the ingestion.

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[int64]*ctlpb.PresubmitResult, presubmitProject string) error

JoinPresubmitResult sets the presubmit result for an ingestion.

Ingestion task(s) are created for invocations 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