blob: 11acbb486ca4f106d502b61b49e40f82d4c19751 [file] [log] [blame]
package workflows
import (
pb "go.skia.org/infra/perf/go/culprit/proto/v1"
)
// Workflow name definitions.
//
// Those are used to invoke the workflows. This is meant to decouple the
// souce code dependencies such that the client doesn't need to link with
// the actual implementation.
// TODO(b/326352379): introduce a specific type to encapsulate these workflow names
const (
ProcessCulprit = "perf.process_culprit"
MaybeTriggerBisection = "perf.maybe_trigger_bisection"
)
type ProcessCulpritParam struct {
CulpritServiceUrl string
Commits []*pb.Commit
AnomalyGroupId string
}
type ProcessCulpritResult struct {
CulpritIds []string
IssueIds []string
}
type MaybeTriggerBisectionParam struct {
AnomalyGroupServiceUrl string
CulpritServiceUrl string
AnomalyGroupId string
}
type MaybeTriggerBisectionResult struct {
JobId string
}