code: func GetBuildSummary(c context.Context, id int64) (*model.BuildSummary, error) {
  	// The host is set to prod because buildbot is hardcoded to talk to prod.
  	uri := fmt.Sprintf("buildbucket://cr-buildbucket.appspot.com/build/%d", id)
  	bs := make([]*model.BuildSummary, 0, 1)
  	q := datastore.NewQuery("BuildSummary").Eq("ContextURI", uri).Limit(1)
  	switch err := datastore.GetAll(c, q, &bs); {
  	case err != nil:
  		return nil, common.ReplaceNSEWith(err.(errors.MultiError), ErrNotFound)
  	case len(bs) == 0:
  		return nil, ErrNotFound
  	default:
  		return bs[0], nil
  	}
  }
docs: // GetBuildSummary fetches a build summary where the Context URI matches the
  // given address.