Documentation ¶
Overview ¶
Package server implements the LUCI Bisection servers to handle pRPC requests.
Index ¶
- func GetAnalysisResult(c context.Context, analysis *model.CompileFailureAnalysis) (*pb.Analysis, error)
- type AnalysesServer
- func (server *AnalysesServer) BatchGetTestAnalyses(ctx context.Context, req *pb.BatchGetTestAnalysesRequest) (res *pb.BatchGetTestAnalysesResponse, err error)
- func (server *AnalysesServer) GetAnalysis(c context.Context, req *pb.GetAnalysisRequest) (*pb.Analysis, error)
- func (server *AnalysesServer) GetTestAnalysis(ctx context.Context, req *pb.GetTestAnalysisRequest) (*pb.TestAnalysis, error)
- func (server *AnalysesServer) ListAnalyses(c context.Context, req *pb.ListAnalysesRequest) (*pb.ListAnalysesResponse, error)
- func (server *AnalysesServer) ListTestAnalyses(ctx context.Context, req *pb.ListTestAnalysesRequest) (*pb.ListTestAnalysesResponse, error)
- func (server *AnalysesServer) QueryAnalysis(c context.Context, req *pb.QueryAnalysisRequest) (*pb.QueryAnalysisResponse, error)
- func (server *AnalysesServer) TriggerAnalysis(c context.Context, req *pb.TriggerAnalysisRequest) (*pb.TriggerAnalysisResponse, error)
- func (server *AnalysesServer) UpdateAnalysis(c context.Context, req *pb.UpdateAnalysisRequest) (*pb.Analysis, error)
- type BotUpdatesServer
- func (server *BotUpdatesServer) UpdateAnalysisProgress(c context.Context, req *pb.UpdateAnalysisProgressRequest) (*pb.UpdateAnalysisProgressResponse, error)
- func (server *BotUpdatesServer) UpdateTestAnalysisProgress(ctx context.Context, req *pb.UpdateTestAnalysisProgressRequest) (*pb.UpdateTestAnalysisProgressResponse, error)
- type PageSizeLimiter
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 ¶
func (server *AnalysesServer) ListAnalyses(c context.Context, req *pb.ListAnalysesRequest) (*pb.ListAnalysesResponse, error)
ListAnalyses returns existing analyses
func (*AnalysesServer) ListTestAnalyses ¶
func (server *AnalysesServer) ListTestAnalyses(ctx context.Context, req *pb.ListTestAnalysesRequest) (*pb.ListTestAnalysesResponse, error)
func (*AnalysesServer) QueryAnalysis ¶
func (server *AnalysesServer) QueryAnalysis(c context.Context, req *pb.QueryAnalysisRequest) (*pb.QueryAnalysisResponse, error)
QueryAnalysis returns the analysis given a query
func (*AnalysesServer) TriggerAnalysis ¶
func (server *AnalysesServer) TriggerAnalysis(c context.Context, req *pb.TriggerAnalysisRequest) (*pb.TriggerAnalysisResponse, error)
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 ¶
func (server *BotUpdatesServer) UpdateAnalysisProgress(c context.Context, req *pb.UpdateAnalysisProgressRequest) (*pb.UpdateAnalysisProgressResponse, error)
UpdateAnalysisProgress is an RPC endpoints used by the recipes to update analysis progress.
func (*BotUpdatesServer) UpdateTestAnalysisProgress ¶
func (server *BotUpdatesServer) UpdateTestAnalysisProgress(ctx context.Context, req *pb.UpdateTestAnalysisProgressRequest) (*pb.UpdateTestAnalysisProgressResponse, error)
type PageSizeLimiter ¶
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. |