buildbot

package
v0.0.0-...-35d8de9 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2019 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TestCases = []struct {
	Builder string
	Build   int
}{
	{"CrWinGoma", 30608},
	{"chromium_presubmit", 426944},
	{"newline", 1234},
	{"gerritCL", 1234},
	{"win_chromium_rel_ng", 246309},
}

TestCases is put here because _test.go files are sometimes not built.

TODO(maruel): What?

Functions

func CIService

func CIService(c context.Context) (*ui.CIService, error)

CIService returns a *ui.CIService containing all known masters and builders.

func GetBuild

GetBuild fetches a buildbot build and translates it into a MiloBuildLegacy.

func GetBuilder

func GetBuilder(c context.Context, masterName, builderName string, limit int, cursor string) (*ui.BuilderLegacy, error)

GetBuilder is the implementation for getting a milo builder page from buildbot.

func PubSubHandler

func PubSubHandler(ctx *router.Context)

PubSubHandler is a webhook that stores the builds coming in from pubsub.

func StatsHandler

func StatsHandler(c context.Context) error

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.

Directories

Path Synopsis
package buildbotapi defines types used in Buildbot build protocol, e.g.
package buildbotapi defines types used in Buildbot build protocol, e.g.
Package buildstore implements storage of //milo/buildsource/buildbot/buildbotapi/* types.
Package buildstore implements storage of //milo/buildsource/buildbot/buildbotapi/* types.

Jump to

Keyboard shortcuts

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