server

package
v0.0.0-...-e7509a3 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 37 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 {
	// Hostname of the LUCI Analysis pRPC service, e.g. analysis.api.luci.app
	LUCIAnalysisHost string
}

AnalysesServer implements the LUCI Bisection proto service for Analyses.

func (*AnalysesServer) BatchGetTestAnalyses

func (server *AnalysesServer) BatchGetTestAnalyses(ctx context.Context, req *pb.BatchGetTestAnalysesRequest) (res *pb.BatchGetTestAnalysesResponse, err error)

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