Skip to content

Commit f2aa121

Browse files
committed
app/appengine: delete old "broke the build" code
It hasn't worked in years. This is part of a series of CLs to clean up the build.golang.org App Engine app in prep for it to be modernized, refactored, and replaced. Updates golang/go#34744 Updates golang/go#12509 Change-Id: I9f8445046961ccbe97f7b9c85c0772393bf7d547 Reviewed-on: https://go-review.googlesource.com/c/build/+/208322 Reviewed-by: Bryan C. Mills <[email protected]> Reviewed-by: Andrew Gerrand <[email protected]>
1 parent 40fd775 commit f2aa121

File tree

6 files changed

+3
-225
lines changed

6 files changed

+3
-225
lines changed

app/appengine/app.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ handlers:
55
- url: /static
66
static_dir: app/appengine/static
77
secure: always
8-
- url: /(init|buildtest|_ah/queue/go/delay)
8+
- url: /(init|buildtest)
99
script: auto
1010
login: admin
1111
secure: always

app/appengine/dash.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ package main
66

77
import (
88
"context"
9-
"encoding/gob"
109
"net/http"
1110
"sort"
1211
"strings"
@@ -15,8 +14,6 @@ import (
1514
)
1615

1716
func main() {
18-
gob.Register(&Commit{}) // needed for google.golang.org/appengine/delay
19-
2017
// admin handlers
2118
handleFunc("/init", initHandler)
2219

app/appengine/handler.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -451,10 +451,7 @@ func resultHandler(r *http.Request) (interface{}, error) {
451451
if err := com.AddResult(c, res); err != nil {
452452
return fmt.Errorf("AddResult: %v", err)
453453
}
454-
// Send build failure notifications, if necessary.
455-
// Note this must run after the call AddResult, which
456-
// populates the Commit's ResultData field.
457-
return notifyOnFailure(c, com, res.Builder)
454+
return nil
458455
}
459456
return nil, datastore.RunInTransaction(c, tx, nil)
460457
}

app/appengine/notify.go

Lines changed: 0 additions & 216 deletions
This file was deleted.

app/appengine/notify.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

app/appengine/test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ func testHandler(w http.ResponseWriter, r *http.Request) {
220220
body = new(bytes.Buffer)
221221
json.NewEncoder(body).Encode(t.req)
222222
}
223+
const domain = "build.golang.org"
223224
url := "http://" + domain + t.path
224225
if t.vals != nil {
225226
url += "?" + t.vals.Encode() + "&version=3"

0 commit comments

Comments
 (0)