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

Side by Side Diff: milo/appengine/frontend/buildbot_data.go

Issue 2931773004: Milo: Add machine pool info for buildbot builder view. (Closed)
Patch Set: Review Created 3 years, 6 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
OLDNEW
1 // Copyright 2016 The LUCI Authors. All rights reserved. 1 // Copyright 2016 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 package frontend 5 package frontend
6 6
7 import ( 7 import (
8 "fmt" 8 "fmt"
9 9
10 "github.com/luci/gae/impl/memory" 10 "github.com/luci/gae/impl/memory"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 "Builder": &resp.Builder{ 47 "Builder": &resp.Builder{
48 Name: "Sample Builder", 48 Name: "Sample Builder",
49 }, 49 },
50 }, 50 },
51 }, 51 },
52 { 52 {
53 Description: "Basic Test with builds", 53 Description: "Basic Test with builds",
54 Data: templates.Args{ 54 Data: templates.Args{
55 "Builder": &resp.Builder{ 55 "Builder": &resp.Builder{
56 Name: "Sample Builder", 56 Name: "Sample Builder",
57 MachinePool: &resp.MachinePool{
58 Total: 15,
59 Disconnected: 13,
60 Idle: 5,
61 Busy: 8,
62 },
57 CurrentBuilds: []*resp.BuildSummary{ 63 CurrentBuilds: []*resp.BuildSummary{
58 { 64 {
59 Link: &resp.Link{ 65 Link: &resp.Link{
60 URL: "https:// some.url/path", 66 URL: "https:// some.url/path",
61 Label: "Some cur rent build", 67 Label: "Some cur rent build",
62 }, 68 },
63 Revision: "deadbeef", 69 Revision: "deadbeef",
64 }, 70 },
65 }, 71 },
66 PendingBuilds: []*resp.BuildSummary{ 72 PendingBuilds: []*resp.BuildSummary{
(...skipping 12 matching lines...) Expand all
79 Label: "Some cur rent build", 85 Label: "Some cur rent build",
80 }, 86 },
81 Revision: "deadbeef", 87 Revision: "deadbeef",
82 }, 88 },
83 }, 89 },
84 }, 90 },
85 }, 91 },
86 }, 92 },
87 } 93 }
88 } 94 }
OLDNEW
« no previous file with comments | « milo/appengine/common/funcs.go ('k') | milo/appengine/frontend/expectations/buildbot.builder-Basic_Test_no_builds.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698