var ( ErrNotFound = errors.Reason("Build not found").Tag(grpcutil.NotFoundTag).Err() ErrNotLoggedIn = errors.Reason("not logged in").Tag(grpcutil.UnauthenticatedTag).Err() )
BuildAddress constructs the build address of a buildbucketpb.Build. This is used as the key for the BuildSummary entity.
CIService returns a *ui.CIService containing all known buckets and builders.
CancelBuild cancels the build with the given ID.
func GetBuildPage(ctx *router.Context, br *buildbucketpb.GetBuildRequest, forceBlamelist bool) (*ui.BuildPage, error)
GetBuildPage fetches the full set of information for a Milo build page from Buildbucket. Including the blamelist and other auxiliary information.
GetBuildSummary fetches a build summary where the Context URI matches the given address.
GetBuilderID returns the builder, and maybe the build number, for a build id.
func GetBuilderPage(c context.Context, bid *buildbucketpb.BuilderID, pageSize int, pageToken string) (*ui.BuilderPage, error)
GetBuilderPage computes a builder page data.
GetBuilders returns all Swarmbucket builders, cached for current identity.
GetRelatedBuildsTable fetches all the related builds of the given build from Buildbucket.
LegacyBuilderIDString returns a legacy string identifying the builder. It is used in the Milo datastore.
MakeBuildBugLink attempts to create the feedback link for the build page. If the project is not configured for a custom build bug link or an interpolation placeholder cannot be satisfied an empty string is returned.
MakeBuildKey returns a new datastore Key for a buildbucket.Build.
There's currently no model associated with this key, but it's used as a parent for a model.BuildSummary.
func ProdBuildersClientFactory(c context.Context, host string, as auth.RPCAuthorityKind, opts ...auth.RPCOption) (buildbucketpb.BuildersClient, error)
func ProdBuildsClientFactory(c context.Context, host string, as auth.RPCAuthorityKind, opts ...auth.RPCOption) (buildbucketpb.BuildsClient, error)
PubSubHandler is a webhook that stores the builds coming in from pubsub.
RetryBuild retries the build with the given ID and returns the new build.
UpdatePools is a cron job endpoint that: 1. Fetches all the builders from our associated Swarmbucket instance. 2. Consolidates all known descriptors (host+dimensions), saves BuilderPool. 3. Fetches and saves BotPool data from swarming for all known descriptors.
WithBuildersClientFactory installs a buildbucket rpc builders client in the context.
WithBuildsClientFactory installs a buildbucket rpc builds client in the context.