luci: go.chromium.org/luci/resultdb/cmd/recorder/chromium Index | Files | Directories

package chromium

import "go.chromium.org/luci/resultdb/cmd/recorder/chromium"

Index

Package Files

common.go swarming.go

Constants

const Realm = "chromium/public"

TODO: remove when Realms are implemented.

func ConvertOutputJSON Uses

func ConvertOutputJSON(ctx context.Context, inv *pb.Invocation, testPathPrefix string, data []byte, outputs map[string]*pb.Artifact) ([]*pb.TestResult, error)

ConvertOutputJSON updates in-place the Invocation with the given data and extracts TestResults.

It tries to convert to JSON Test Results format, then GTest format.

func DeriveProtosForWriting Uses

func DeriveProtosForWriting(ctx context.Context, task *swarmingAPI.SwarmingRpcsTaskResult, req *pb.DeriveInvocationRequest) (*pb.Invocation, []*pb.TestResult, error)

DeriveProtosForWriting derives the protos with the data from the given task and request.

The derived Invocation and TestResult protos will be written by the caller.

func FetchOutputJSON Uses

func FetchOutputJSON(ctx context.Context, isoClient *isolatedclient.Client, outputs map[string]isolated.File) ([]byte, error)

FetchOutputJSON fetches the output.json given the outputs map, updating it in-place to mark the file as processed.

func GetInvocationID Uses

func GetInvocationID(task *swarmingAPI.SwarmingRpcsTaskResult, req *pb.DeriveInvocationRequest) span.InvocationID

GetInvocationID gets the ID of the invocation associated with a task and swarming service.

func GetOriginTask Uses

func GetOriginTask(ctx context.Context, task *swarmingAPI.SwarmingRpcsTaskResult, swarmSvc *swarmingAPI.Service) (*swarmingAPI.SwarmingRpcsTaskResult, error)

GetOriginTask gets the swarming task of which the given task is a dupe, or itself if it isn't.

func GetOutputs Uses

func GetOutputs(ctx context.Context, isoClient *isolatedclient.Client, ref *swarmingAPI.SwarmingRpcsFilesRef) (map[string]isolated.File, error)

GetOutputs gets the map of isolated.Files associated with the given task.

func GetSwarmSvc Uses

func GetSwarmSvc(cl *http.Client, swarmingURL string) (*swarmingAPI.Service, error)

GetSwarmSvc gets a swarming service for the given URL.

func GetSwarmingTask Uses

func GetSwarmingTask(ctx context.Context, taskID string, swarmSvc *swarmingAPI.Service) (*swarmingAPI.SwarmingRpcsTaskResult, error)

GetSwarmingTask fetches the task from swarming, annotating errors with gRPC codes as needed.

Directories

PathSynopsis
formats

Package chromium imports 26 packages (graph) and is imported by 1 packages. Updated 2019-12-14. Refresh now. Tools for package owners.