Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(916)

Unified Diff: milo/buildsource/buildbot/builder.go

Issue 2987953002: Milo: Show accurate pending build numbers for builder view. (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: milo/buildsource/buildbot/builder.go
diff --git a/milo/buildsource/buildbot/builder.go b/milo/buildsource/buildbot/builder.go
index 96fb8b82c139b03858f32cfc643b95c72b1747a1..47ad0de1631d5317af72df6a4455d5ae4d031a65 100644
--- a/milo/buildsource/buildbot/builder.go
+++ b/milo/buildsource/buildbot/builder.go
@@ -238,6 +238,7 @@ func builderImpl(
}
// Extract pending builds out of the master json.
result.PendingBuilds = make([]*resp.BuildSummary, len(p.PendingBuildStates))
+ result.PendingBuildNum = p.PendingBuilds
logging.Debugf(c, "Number of pending builds: %d", len(p.PendingBuildStates))
for i, pb := range p.PendingBuildStates {
start := time.Unix(int64(pb.SubmittedAt), 0).UTC()
« no previous file with comments | « milo/api/resp/builder.go ('k') | milo/buildsource/buildbucket/expectations/master.tryserver.infra/InfraPresubmit.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698