OLD | NEW |
1 package main | 1 package main |
2 | 2 |
3 /* | 3 /* |
4 Runs the frontend portion of the fuzzer. This primarily is the webserver (see D
ESIGN.md) | 4 Runs the frontend portion of the fuzzer. This primarily is the webserver (see D
ESIGN.md) |
5 */ | 5 */ |
6 | 6 |
7 import ( | 7 import ( |
8 "bytes" | 8 "bytes" |
9 "encoding/base64" | 9 "encoding/base64" |
10 "encoding/json" | 10 "encoding/json" |
11 "flag" | 11 "flag" |
12 "fmt" | 12 "fmt" |
13 "html/template" | 13 "html/template" |
14 "net/http" | 14 "net/http" |
15 "net/url" | 15 "net/url" |
16 "path/filepath" | 16 "path/filepath" |
17 "strconv" | 17 "strconv" |
18 "strings" | 18 "strings" |
19 "time" | 19 "time" |
20 | 20 |
21 "github.com/gorilla/mux" | 21 "github.com/gorilla/mux" |
22 "github.com/skia-dev/glog" | 22 "github.com/skia-dev/glog" |
23 fcommon "go.skia.org/infra/fuzzer/go/common" | 23 fcommon "go.skia.org/infra/fuzzer/go/common" |
24 "go.skia.org/infra/fuzzer/go/config" | 24 "go.skia.org/infra/fuzzer/go/config" |
| 25 "go.skia.org/infra/fuzzer/go/data" |
25 "go.skia.org/infra/fuzzer/go/frontend" | 26 "go.skia.org/infra/fuzzer/go/frontend" |
26 "go.skia.org/infra/fuzzer/go/frontend/data" | |
27 "go.skia.org/infra/fuzzer/go/frontend/gsloader" | 27 "go.skia.org/infra/fuzzer/go/frontend/gsloader" |
28 "go.skia.org/infra/fuzzer/go/frontend/syncer" | 28 "go.skia.org/infra/fuzzer/go/frontend/syncer" |
29 "go.skia.org/infra/fuzzer/go/fuzzcache" | 29 "go.skia.org/infra/fuzzer/go/fuzzcache" |
30 "go.skia.org/infra/go/auth" | 30 "go.skia.org/infra/go/auth" |
31 "go.skia.org/infra/go/common" | 31 "go.skia.org/infra/go/common" |
32 "go.skia.org/infra/go/fileutil" | 32 "go.skia.org/infra/go/fileutil" |
33 "go.skia.org/infra/go/gs" | 33 "go.skia.org/infra/go/gs" |
34 "go.skia.org/infra/go/influxdb" | 34 "go.skia.org/infra/go/influxdb" |
35 "go.skia.org/infra/go/login" | 35 "go.skia.org/infra/go/login" |
36 "go.skia.org/infra/go/skiaversion" | 36 "go.skia.org/infra/go/skiaversion" |
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
481 } | 481 } |
482 var t bytes.Buffer | 482 var t bytes.Buffer |
483 if err := newBugTemplate.Execute(&t, b); err != nil { | 483 if err := newBugTemplate.Execute(&t, b); err != nil { |
484 util.ReportError(w, r, err, fmt.Sprintf("Could not create templa
te with %#v", b)) | 484 util.ReportError(w, r, err, fmt.Sprintf("Could not create templa
te with %#v", b)) |
485 return | 485 return |
486 } | 486 } |
487 q.Add("comment", t.String()) | 487 q.Add("comment", t.String()) |
488 // 303 means "make a GET request to this url" | 488 // 303 means "make a GET request to this url" |
489 http.Redirect(w, r, "https://bugs.chromium.org/p/skia/issues/entry?"+q.E
ncode(), 303) | 489 http.Redirect(w, r, "https://bugs.chromium.org/p/skia/issues/entry?"+q.E
ncode(), 303) |
490 } | 490 } |
OLD | NEW |