Documentation
¶
Overview ¶
Package recorder implements a binary that hosts luci.resultdb.v1.Recorder service.
Index ¶
- Constants
- func InitServer(srv *server.Server, opt Options) error
- func NewRecorderServer(opts Options, casClient repb.ContentAddressableStorageClient) *pb.DecoratedRecorder
- func ValidateTestIDComponent(component, scheme string, level *config.SchemeLevel) error
- func ValidateTestIDToScheme(cfg *config.CompiledServiceConfig, testID pbutil.TestIdentifier) error
- func ValidateTestResult(now time.Time, cfg *config.CompiledServiceConfig, tr *pb.TestResult) error
- type Options
Constants ¶
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.
const MaxBatchCreateArtifactSize = 10 * 1024 * 1024
TODO(crbug.com/1177213) - make this configurable.
const MaxShardContentSize = bq.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.
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 ¶
InitServer initializes a recorder server.
func NewRecorderServer ¶
func NewRecorderServer(opts Options, casClient repb.ContentAddressableStorageClient) *pb.DecoratedRecorder
func ValidateTestIDComponent ¶
func ValidateTestIDComponent(component, scheme string, level *config.SchemeLevel) error
func ValidateTestIDToScheme ¶
func ValidateTestIDToScheme(cfg *config.CompiledServiceConfig, testID pbutil.TestIdentifier) error
func ValidateTestResult ¶
func ValidateTestResult(now time.Time, cfg *config.CompiledServiceConfig, tr *pb.TestResult) error
ValidateTestResult returns a non-nil error if msg is invalid.
Types ¶
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.
Source Files
¶
- batch_create_artifacts.go
- batch_create_invocations.go
- batch_create_test_exonerations.go
- batch_create_test_results.go
- create_artifact.go
- create_invocation.go
- create_test_exoneration.go
- create_test_result.go
- doc.go
- finalize_invocation.go
- invocation.go
- mark_invocation_submitted.go
- permissions.go
- recorder.go
- update_included_invocations.go
- update_invocation.go