Documentation ¶
Index ¶
- Variables
- func CIService(c context.Context) (*ui.CIService, error)
- func DebugBuild(c context.Context, relBuildbotDir string, builder string, buildNum int) (*ui.MiloBuild, error)
- func GetBuild(c context.Context, id buildbot.BuildID) (*ui.MiloBuild, error)
- func GetBuildInfo(c context.Context, req *milo.BuildInfoRequest_BuildBot, projectHint string) (*milo.BuildInfoResponse, error)
- func GetBuilder(c context.Context, masterName, builderName string, limit int, cursor string) (*ui.Builder, error)
- func PubSubHandler(ctx *router.Context)
- func StatsHandler(c context.Context) error
- type Prop
- type Service
- func (s *Service) GetBuildbotBuildJSON(c context.Context, req *milo.BuildbotBuildRequest) (*milo.BuildbotBuildJSON, error)
- func (s *Service) GetBuildbotBuildsJSON(c context.Context, req *milo.BuildbotBuildsRequest) (*milo.BuildbotBuildsJSON, error)
- func (s *Service) GetCompressedMasterJSON(c context.Context, req *milo.MasterRequest) (*milo.CompressedMasterJSON, error)
Constants ¶
This section is empty.
Variables ¶
var TestCases = []struct { Builder string Build int }{ {"CrWinGoma", 30608}, {"chromium_presubmit", 426944}, {"newline", 1234}, {"gerritCL", 1234}, {"win_chromium_rel_ng", 246309}, }
We put this here because _test.go files are sometimes not built.
Functions ¶
func DebugBuild ¶
func DebugBuild(c context.Context, relBuildbotDir string, builder string, buildNum int) (*ui.MiloBuild, error)
DebugBuild fetches a debugging build for testing.
func GetBuildInfo ¶
func GetBuildInfo(c context.Context, req *milo.BuildInfoRequest_BuildBot, projectHint string) (*milo.BuildInfoResponse, error)
GetBuildInfo resolves a Milo protobuf Step for a given BuildBot build.
On failure, it returns a (potentially-wrapped) gRPC error.
This:
- Fetches the BuildBot build JSON from storage.
- Resolves the LogDog annotation stream path from the BuildBot state.
- Fetches the LogDog annotation stream and resolves it into a Step.
- Merges some operational BuildBot build information into the Step.
func GetBuilder ¶
func GetBuilder(c context.Context, masterName, builderName string, limit int, cursor string) (*ui.Builder, error)
GetBuilder is the implementation for getting a milo builder page from buildbot.
func PubSubHandler ¶
PubSubHandler is a webhook that stores the builds coming in from pubsub.
func StatsHandler ¶
StatsHandler is a cron endpoint that sends stats periodically.
Types ¶
type Prop ¶
type Prop struct { Value interface{} Group string }
Prop is a struct used to store a value and group so that we can make a map of key:Prop to pass into parseProp() for the purpose of cross referencing one prop while working on another.
type Service ¶
type Service struct{}
Service is a service implementation that displays BuildBot builds.
func (*Service) GetBuildbotBuildJSON ¶
func (s *Service) GetBuildbotBuildJSON(c context.Context, req *milo.BuildbotBuildRequest) ( *milo.BuildbotBuildJSON, error)
GetBuildbotBuildJSON implements milo.BuildbotServer.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package buildstore implements storage of //milo/api/buildbot/* types.
|
Package buildstore implements storage of //milo/api/buildbot/* types. |