aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-09-19 16:53:47 +0200
committerDmitry Vyukov <dvyukov@google.com>2017-09-19 17:00:26 +0200
commitd394531e95a9d8a4873eafdcfef803e628d110c1 (patch)
treec58c0e61e74f916baa8729aff924a05e79ca6483 /dashboard
parent62114d6064c895ae34f1ac232b2fdc94e7329dae (diff)
dashboard/app, syz-ci: upload target OS/arch to dashboard
Diffstat (limited to 'dashboard')
-rw-r--r--dashboard/app/api.go3
-rw-r--r--dashboard/app/entities.go3
-rw-r--r--dashboard/app/reporting.go3
-rw-r--r--dashboard/dashapi/dashapi.go6
4 files changed, 15 insertions, 0 deletions
diff --git a/dashboard/app/api.go b/dashboard/app/api.go
index 9586836a8..08726eed7 100644
--- a/dashboard/app/api.go
+++ b/dashboard/app/api.go
@@ -200,6 +200,9 @@ func apiUploadBuild(c context.Context, ns string, r *http.Request) (interface{},
Namespace: ns,
Manager: req.Manager,
ID: req.ID,
+ OS: req.OS,
+ Arch: req.Arch,
+ VMArch: req.VMArch,
SyzkallerCommit: req.SyzkallerCommit,
CompilerID: req.CompilerID,
KernelRepo: req.KernelRepo,
diff --git a/dashboard/app/entities.go b/dashboard/app/entities.go
index 948002076..60fb2120c 100644
--- a/dashboard/app/entities.go
+++ b/dashboard/app/entities.go
@@ -28,6 +28,9 @@ type Build struct {
Namespace string
Manager string
ID string // unique ID generated by syz-ci
+ OS string
+ Arch string
+ VMArch string
SyzkallerCommit string
CompilerID string
KernelRepo string
diff --git a/dashboard/app/reporting.go b/dashboard/app/reporting.go
index 589183f3d..407478b26 100644
--- a/dashboard/app/reporting.go
+++ b/dashboard/app/reporting.go
@@ -223,6 +223,9 @@ func createBugReport(c context.Context, bug *Bug, crash *Crash, bugReporting *Bu
Log: crashLog,
Report: report,
Maintainers: crash.Maintainers,
+ OS: build.OS,
+ Arch: build.Arch,
+ VMArch: build.VMArch,
CompilerID: build.CompilerID,
KernelRepo: build.KernelRepo,
KernelBranch: build.KernelBranch,
diff --git a/dashboard/dashapi/dashapi.go b/dashboard/dashapi/dashapi.go
index ddc20ebe4..d59b2a836 100644
--- a/dashboard/dashapi/dashapi.go
+++ b/dashboard/dashapi/dashapi.go
@@ -36,6 +36,9 @@ func New(client, addr, key string) *Dashboard {
type Build struct {
Manager string
ID string
+ OS string
+ Arch string
+ VMArch string
SyzkallerCommit string
CompilerID string
KernelRepo string
@@ -141,6 +144,9 @@ type BugReport struct {
Title string
Maintainers []string
CC []string // additional CC emails
+ OS string
+ Arch string
+ VMArch string
CompilerID string
KernelRepo string
KernelBranch string