diff options
Diffstat (limited to 'misc/dashboard')
-rw-r--r-- | misc/dashboard/README | 4 | ||||
-rw-r--r-- | misc/dashboard/app/build/init.go | 3 | ||||
-rw-r--r-- | misc/dashboard/codereview/dashboard/cl.go | 18 | ||||
-rw-r--r-- | misc/dashboard/codereview/dashboard/people.go | 19 |
4 files changed, 38 insertions, 6 deletions
diff --git a/misc/dashboard/README b/misc/dashboard/README index c00311ef7..d599f3d06 100644 --- a/misc/dashboard/README +++ b/misc/dashboard/README @@ -4,8 +4,8 @@ The files in this directory constitute the continuous builder: -godashboard/: an AppEngine server -builder/: gobuilder, a Go continuous build client +app/: an AppEngine server +builder/: gobuilder, a Go continuous build client If you wish to run a Go builder, please email golang-dev@googlegroups.com diff --git a/misc/dashboard/app/build/init.go b/misc/dashboard/app/build/init.go index 85a766b9d..505f96fc4 100644 --- a/misc/dashboard/app/build/init.go +++ b/misc/dashboard/app/build/init.go @@ -20,12 +20,13 @@ var defaultPackages = []*Package{ // subRepos specifies the Go project sub-repositories. var subRepos = []string{ + "blog", "codereview", "crypto", + "exp", "image", "net", "talks", - "exp", } // Put subRepos into defaultPackages. diff --git a/misc/dashboard/codereview/dashboard/cl.go b/misc/dashboard/codereview/dashboard/cl.go index e150ea123..0ef3303e9 100644 --- a/misc/dashboard/codereview/dashboard/cl.go +++ b/misc/dashboard/codereview/dashboard/cl.go @@ -178,8 +178,14 @@ func handleAssign(w http.ResponseWriter, r *http.Request) { return } defer resp.Body.Close() + body, err := ioutil.ReadAll(resp.Body) + if err != nil { + c.Errorf("Failed reading body: %v", err) + http.Error(w, err.Error(), 500) + return + } if resp.StatusCode != 200 { - c.Errorf("Retrieving CL reviewer list failed: got HTTP response %d", resp.StatusCode) + c.Errorf("Retrieving CL reviewer list failed: got HTTP response %d\nBody: %s", resp.StatusCode, body) http.Error(w, "Failed contacting Rietveld", 500) return } @@ -187,7 +193,7 @@ func handleAssign(w http.ResponseWriter, r *http.Request) { var apiResp struct { Reviewers []string `json:"reviewers"` } - if err := json.NewDecoder(resp.Body).Decode(&apiResp); err != nil { + if err := json.Unmarshal(body, &apiResp); err != nil { // probably can't be retried msg := fmt.Sprintf("Malformed JSON from %v: %v", url, err) c.Errorf("%s", msg) @@ -212,8 +218,14 @@ func handleAssign(w http.ResponseWriter, r *http.Request) { return } defer resp.Body.Close() + body, err := ioutil.ReadAll(resp.Body) + if err != nil { + c.Errorf("Failed reading Gobot body: %v", err) + http.Error(w, err.Error(), 500) + return + } if resp.StatusCode != 200 { - c.Errorf("Gobot GET failed: got HTTP response %d", resp.StatusCode) + c.Errorf("Gobot GET failed: got HTTP response %d\nBody: %s", resp.StatusCode, body) http.Error(w, "Failed contacting Gobot", 500) return } diff --git a/misc/dashboard/codereview/dashboard/people.go b/misc/dashboard/codereview/dashboard/people.go index facda7baf..45de03b1e 100644 --- a/misc/dashboard/codereview/dashboard/people.go +++ b/misc/dashboard/codereview/dashboard/people.go @@ -21,6 +21,7 @@ func init() { // and prefer to use their golang.org address for code review. gophers := [...]string{ "adg", + "agl", "bradfitz", "campoy", "dsymonds", @@ -37,6 +38,24 @@ func init() { emailToPerson[p+"@google.com"] = p preferredEmail[p] = p + "@golang.org" } + // Other people. + others := map[string]string{ + "adonovan": "adonovan@google.com", + "brainman": "alex.brainman@gmail.com", + "ality": "ality@pbrane.org", + "dfc": "dave@cheney.net", + "dvyukov": "dvyukov@google.com", + "gustavo": "gustavo@niemeyer.net", + "jsing": "jsing@google.com", + "mikioh": "mikioh.mikioh@gmail.com", + "minux": "minux.ma@gmail.com", + "rminnich": "rminnich@gmail.com", + } + for p, e := range others { + personList = append(personList, p) + emailToPerson[e] = p + preferredEmail[p] = e + } sort.Strings(personList) } |