luci: Index | Files | Directories

package chromium

import ""


Package Files

common.go swarming.go


const Realm = "chromium"

TODO: remove when Realms are implemented.

func ConvertOutputJSON Uses

func ConvertOutputJSON(ctx context.Context, inv *pb.Invocation, req *pb.DeriveInvocationRequest, data []byte) ([]*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, task *swarmingAPI.SwarmingRpcsTaskResult, ref *swarmingAPI.SwarmingRpcsFilesRef) ([]byte, error)

FetchOutputJSON fetches the output.json from the given task with the given ref.

func GetInvocationID Uses

func GetInvocationID(ctx context.Context, task *swarmingAPI.SwarmingRpcsTaskResult, req *pb.DeriveInvocationRequest) (string, error)

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 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.



Package chromium imports 24 packages (graph). Updated 2019-10-22. Refresh now. Tools for package owners.