service

package
v0.0.0-...-0342304 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Path to rdb executable
	RdbExecutablePath = "/usr/bin/rdb"

	// Path to result_adapter executable
	ResultAdapterExecutablePath = "/usr/bin/result_adapter"

	// Path to temp directory for rdb-publish
	RdbTempDirName = "rdb-publish-temp"

	// File name for test result json
	TestResultJsonFileName = "testResult.json"

	// File name for invocation-level properties json
	InvPropertiesFile = "invProperties.json"

	// File name for code sources under test
	CodeSourcesJsonFileName = "sources.jsonpb"

	// Result format for rdb
	ResultAdapterResultFormat = "cros-test-result"

	// MaxSizeInvocationProperties is the maximum size of the invocation level
	// properties stored in ResultDB.
	MaxSizeInvocationProperties = 16 * 1024 // 16 KB
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RdbPublishService

type RdbPublishService struct {
	RetryCount          int
	CurrentInvocationId string
	TestResultProto     *artifact.TestResult
	TesthausURL         string
	TempDirPath         string
	Sources             *metadata.PublishRdbMetadata_Sources
	BaseVariant         map[string]string
}

func NewRdbPublishService

func NewRdbPublishService(req *api.PublishRequest) (*RdbPublishService, error)

func (*RdbPublishService) UploadToRdb

func (rps *RdbPublishService) UploadToRdb(ctx context.Context) error

Jump to

Keyboard shortcuts

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