server

package
v0.0.0-...-2cc3bea Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Overview

Package server implements the LUCI Bisection servers to handle pRPC requests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAnalysisResult

func GetAnalysisResult(c context.Context, analysis *model.CompileFailureAnalysis) (*pb.Analysis, error)

GetAnalysisResult returns an analysis for pRPC from CompileFailureAnalysis

Types

type AnalysesServer

type AnalysesServer struct {
	AnalysisClient AnalysisClient
}

AnalysesServer implements the LUCI Bisection proto service for Analyses.

func (*AnalysesServer) BatchGetTestAnalyses

func (*AnalysesServer) GetAnalysis

func (server *AnalysesServer) GetAnalysis(c context.Context, req *pb.GetAnalysisRequest) (*pb.Analysis, error)

GetAnalysis returns the analysis given the analysis id

func (*AnalysesServer) GetTestAnalysis

func (server *AnalysesServer) GetTestAnalysis(ctx context.Context, req *pb.GetTestAnalysisRequest) (*pb.TestAnalysis, error)

func (*AnalysesServer) ListAnalyses

ListAnalyses returns existing analyses

func (*AnalysesServer) ListTestAnalyses

func (server *AnalysesServer) ListTestAnalyses(ctx context.Context, req *pb.ListTestAnalysesRequest) (*pb.ListTestAnalysesResponse, error)

func (*AnalysesServer) QueryAnalysis

QueryAnalysis returns the analysis given a query

func (*AnalysesServer) TriggerAnalysis

TriggerAnalysis triggers an analysis for a failure

func (*AnalysesServer) UpdateAnalysis

func (server *AnalysesServer) UpdateAnalysis(c context.Context, req *pb.UpdateAnalysisRequest) (*pb.Analysis, error)

UpdateAnalysis updates the information of an analysis. At the mean time, it is only used for update the bugs associated with an analysis.

type AnalysisClient

type AnalysisClient interface {
	ChangepointAnalysisForTestVariant(ctx context.Context, project string, keys []lucianalysis.TestVerdictKey) (map[lucianalysis.TestVerdictKey]*lucianalysis.ChangepointResult, error)
}

type BotUpdatesServer

type BotUpdatesServer struct{}

BotUpdatesServer implements the LUCI Bisection proto service for BotUpdates.

func (*BotUpdatesServer) UpdateAnalysisProgress

UpdateAnalysisProgress is an RPC endpoints used by the recipes to update analysis progress.

func (*BotUpdatesServer) UpdateTestAnalysisProgress

type PageSizeLimiter

type PageSizeLimiter struct {
	Max     int32
	Default int32
}

func (*PageSizeLimiter) Adjust

func (psl *PageSizeLimiter) Adjust(pageSize int32) int32

Adjust the requested pageSize according to PageSizeLimiter.Max and PageSizeLimiter.Default as necessary.

Directories

Path Synopsis
Package updatetestrerun updates test failure analysis when we got test results from recipes.
Package updatetestrerun updates test failure analysis when we got test results from recipes.

Jump to

Keyboard shortcuts

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