catapult

package
v0.0.0-...-13f153f Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: BSD-3-Clause Imports: 27 Imported by: 0

Documentation

Overview

Package catapult contains all workflows and activities specific to making this backwards compatbile to Catapult. Once the migration from Catapult to Skia is complete, this package should be deprecated and the internal.Bisect workflow should be used directly.

Index

Constants

View Source
const (
	BisectJobNameTemplate = "[Skia] Performance bisect on %s/%s"
)

Variables

This section is empty.

Functions

func CatapultBisectWorkflow

func CatapultBisectWorkflow(ctx workflow.Context, p *workflows.BisectParams) (*pinpoint_proto.BisectExecution, error)

CatapultBisectWorkflow is a Skia-based bisect workflow that's backwards compatible to Catapult.

By backwards compatible, it means that this workflow utilizes the Skia-based bisect, but writes the responses to Catapult via Skia-Bridge, such that the Catapult UI can display the results. Thus, the workflow method signature should be identical to internal.BisectWorkflow. This is written in its own package and in its own workflow so that it's self-contained.

func ConvertToCatapultResponseWorkflow

func ConvertToCatapultResponseWorkflow(ctx workflow.Context, p *workflows.BisectParams, be *internal.BisectExecution) (*pinpoint_proto.LegacyJobResponse, error)

ConvertToCatapultResponseWorkflow converts raw data from a Skia bisection into a Catapult-supported format.

func FetchCommitActivity

func FetchCommitActivity(ctx context.Context, commit *pinpoint_proto.Commit) (*vcsinfo.LongCommit, error)

FetchCommitActivity fetches commit information and modifies the provided commit with additional information.

func FetchTaskActivity

func FetchTaskActivity(ctx context.Context, taskID string) (*swarming.SwarmingRpcsTaskResult, error)

FetchTaskActivity fetches the task used for the given swarming task.

Types

type CatapultClient

type CatapultClient struct {
	// contains filtered or unexported fields
}

CatapultClient contains an httpClient for writing to catpault

func NewCatapultClient

func NewCatapultClient(ctx context.Context, staging bool) (*CatapultClient, error)

NewCatapultClient creates a new CatapultClient

func (*CatapultClient) WriteBisectToCatapult

func (cc *CatapultClient) WriteBisectToCatapult(ctx context.Context, content *pinpoint_proto.LegacyJobResponse) (*DatastoreResponse, error)

type DatastoreResponse

type DatastoreResponse struct {
	Kind string `json:"kind"`
	ID   int64  `json:"id"`
}

func WriteBisectToCatapultActivity

func WriteBisectToCatapultActivity(ctx context.Context, content *pinpoint_proto.LegacyJobResponse, staging bool) (*DatastoreResponse, error)

WriteBisectToCatapultActivity wraps the call to WriteBisectToCatapult

Jump to

Keyboard shortcuts

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