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

Side by Side Diff: milo/job_source/buildbot/master.go

Issue 2949783002: [milo] appengine/* -> * (Closed)
Patch Set: rebase 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
« no previous file with comments | « milo/job_source/buildbot/html_test.go ('k') | milo/job_source/buildbot/master_test.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 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 buildbot 5 package buildbot
6 6
7 import ( 7 import (
8 "bytes" 8 "bytes"
9 "compress/gzip" 9 "compress/gzip"
10 "encoding/json" 10 "encoding/json"
11 "fmt" 11 "fmt"
12 "sort" 12 "sort"
13 "time" 13 "time"
14 14
15 ds "github.com/luci/gae/service/datastore" 15 ds "github.com/luci/gae/service/datastore"
16 "github.com/luci/luci-go/common/logging" 16 "github.com/luci/luci-go/common/logging"
17 "github.com/luci/luci-go/milo/api/resp" 17 "github.com/luci/luci-go/milo/api/resp"
18 » "github.com/luci/luci-go/milo/appengine/common" 18 » "github.com/luci/luci-go/milo/common"
19 "github.com/luci/luci-go/server/auth" 19 "github.com/luci/luci-go/server/auth"
20 "github.com/luci/luci-go/server/auth/identity" 20 "github.com/luci/luci-go/server/auth/identity"
21 21
22 "golang.org/x/net/context" 22 "golang.org/x/net/context"
23 ) 23 )
24 24
25 func decodeMasterEntry( 25 func decodeMasterEntry(
26 c context.Context, entry *buildbotMasterEntry, master *buildbotMaster) e rror { 26 c context.Context, entry *buildbotMasterEntry, master *buildbotMaster) e rror {
27 27
28 reader, err := gzip.NewReader(bytes.NewReader(entry.Data)) 28 reader, err := gzip.NewReader(bytes.NewReader(entry.Data))
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 for _, bn := range sb { 142 for _, bn := range sb {
143 // Go templates escapes this for us, and also 143 // Go templates escapes this for us, and also
144 // slashes are not allowed in builder names. 144 // slashes are not allowed in builder names.
145 ml.Builders = append(ml.Builders, *resp.NewLink( 145 ml.Builders = append(ml.Builders, *resp.NewLink(
146 bn, fmt.Sprintf("/buildbot/%s/%s", entry.Name, b n))) 146 bn, fmt.Sprintf("/buildbot/%s/%s", entry.Name, b n)))
147 } 147 }
148 result.BuilderGroups = append(result.BuilderGroups, ml) 148 result.BuilderGroups = append(result.BuilderGroups, ml)
149 } 149 }
150 return result, nil 150 return result, nil
151 } 151 }
OLDNEW
« no previous file with comments | « milo/job_source/buildbot/html_test.go ('k') | milo/job_source/buildbot/master_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698