recorder

package
v0.0.0-...-ef45db5 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 65 Imported by: 0

Documentation

Overview

Package recorder implements a binary that hosts luci.resultdb.v1.Recorder service.

Index

Constants

View Source
const LookbackWindow = 1024

LookbackWindow is used when chunking. It specifies how many bytes we should look back to find new line/white space characters to split the chunks.

View Source
const MaxBatchCreateArtifactSize = 10 * 1024 * 1024

TODO(crbug.com/1177213) - make this configurable.

View Source
const MaxShardContentSize = bqutil.RowMaxBytes - 10*1024

MaxShardContentSize is the maximum content size in BQ row. Artifacts content bigger than this size needs to be sharded. Leave 10 KB for other fields, the rest is content.

View Source
const TestMagicOverdueDeadlineUnixSecs = 904924800

TestMagicOverdueDeadlineUnixSecs is a magic value used by tests to set an invocation's deadline in the past.

Variables

This section is empty.

Functions

func InitServer

func InitServer(srv *server.Server, opt Options) error

InitServer initializes a recorder server.

func NewRecorderServer

func NewRecorderServer(opts Options, casClient repb.ContentAddressableStorageClient, bqClient BQExportClient) *pb.DecoratedRecorder

Types

type BQExportClient

type BQExportClient interface {
	InsertArtifactRows(ctx context.Context, rows []*bqpb.TextArtifactRow) error
}

BQExportClient is the interface for exporting artifacts.

type Options

type Options struct {
	// Duration since invocation creation after which to delete expected test
	// results.
	ExpectedResultsExpiration time.Duration

	// ArtifactRBEInstance is the name of the RBE instance to use for artifact
	// storage. Example: "projects/luci-resultdb/instances/artifacts".
	ArtifactRBEInstance string

	// MaxArtifactContentStreamLength is the maximum size of an artifact content
	// to accept via streaming API.
	MaxArtifactContentStreamLength int64
}

Options is recorder server configuration.

Jump to

Keyboard shortcuts

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