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

Side by Side Diff: milo/api/resp/builder.go

Issue 2987953002: Milo: Show accurate pending build numbers for builder view. (Closed)
Patch Set: Created 3 years, 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | milo/buildsource/buildbot/builder.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The LUCI Authors. All rights reserved. 1 // Copyright 2015 The LUCI Authors. All rights reserved.
2 // Use of this source code is governed under the Apache License, Version 2.0 2 // Use of this source code is governed under the Apache License, Version 2.0
3 // that can be found in the LICENSE file. 3 // that can be found in the LICENSE file.
4 4
5 //go:generate stringer -type=BotStatus 5 //go:generate stringer -type=BotStatus
6 6
7 package resp 7 package resp
8 8
9 import ( 9 import (
10 "time" 10 "time"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 } 54 }
55 55
56 // Builder denotes an ordered list of MiloBuilds 56 // Builder denotes an ordered list of MiloBuilds
57 type Builder struct { 57 type Builder struct {
58 // Name of the builder 58 // Name of the builder
59 Name string 59 Name string
60 60
61 // Warning text, if any. 61 // Warning text, if any.
62 Warning string 62 Warning string
63 63
64 » CurrentBuilds []*BuildSummary 64 » CurrentBuilds []*BuildSummary
65 » PendingBuilds []*BuildSummary 65 » PendingBuilds []*BuildSummary
66 » FinishedBuilds []*BuildSummary 66 » // PendingBuildNum is the number of pending builds, since the slice abov e
67 » // may be a snapshot instead of the full set.
68 » PendingBuildNum int
69 » FinishedBuilds []*BuildSummary
67 70
68 // MachinePool is primarily used by buildbot builders to list the set of 71 // MachinePool is primarily used by buildbot builders to list the set of
69 // machines that can run in a builder. It has no meaning in buildbucket or dm 72 // machines that can run in a builder. It has no meaning in buildbucket or dm
70 // and is expected to be nil. 73 // and is expected to be nil.
71 MachinePool *MachinePool 74 MachinePool *MachinePool
72 75
73 // PrevCursor is a cursor to the previous page. 76 // PrevCursor is a cursor to the previous page.
74 PrevCursor string `json:",omitempty"` 77 PrevCursor string `json:",omitempty"`
75 // NextCursor is a cursor to the next page. 78 // NextCursor is a cursor to the next page.
76 NextCursor string `json:",omitempty"` 79 NextCursor string `json:",omitempty"`
(...skipping 15 matching lines...) Expand all
92 } 95 }
93 96
94 // MachinePool represents the capacity and availability of a builder. 97 // MachinePool represents the capacity and availability of a builder.
95 type MachinePool struct { 98 type MachinePool struct {
96 Total int 99 Total int
97 Disconnected int 100 Disconnected int
98 Idle int 101 Idle int
99 Busy int 102 Busy int
100 Bots []Bot 103 Bots []Bot
101 } 104 }
OLDNEW
« no previous file with comments | « no previous file | milo/buildsource/buildbot/builder.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698