diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-01-17 19:43:04 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-01-17 19:52:30 +0100 |
| commit | d7bc58204ea84ccb2ed541dd26a6b6d8bc326f5d (patch) | |
| tree | 99402fe448f9d0c4de429903a9a55cb2f4b01334 /dashboard/dashapi | |
| parent | 02a2ba2966613de55c837fe709ee34f1ff5be606 (diff) | |
dashboard/app: collect more info for better reports
Collect kernel build commit title/date.
Add support for kernel repo aliases (to be able
to say linux-next instead of full git repo address).
Collect on what managers a bug happened.
Reuse Crash.ReportLen as generic crash reporting priority.
Make it possible to prioritize reporting of particular
kernel repos and arches.
Fixes #473
Diffstat (limited to 'dashboard/dashapi')
| -rw-r--r-- | dashboard/dashapi/dashapi.go | 75 |
1 files changed, 40 insertions, 35 deletions
diff --git a/dashboard/dashapi/dashapi.go b/dashboard/dashapi/dashapi.go index e833fbfd2..c9b9ded15 100644 --- a/dashboard/dashapi/dashapi.go +++ b/dashboard/dashapi/dashapi.go @@ -35,19 +35,21 @@ func New(client, addr, key string) *Dashboard { // Build describes all aspects of a kernel build. type Build struct { - Manager string - ID string - OS string - Arch string - VMArch string - SyzkallerCommit string - CompilerID string - KernelRepo string - KernelBranch string - KernelCommit string - KernelConfig []byte - Commits []string // see BuilderPoll - FixCommits []FixCommit + Manager string + ID string + OS string + Arch string + VMArch string + SyzkallerCommit string + CompilerID string + KernelRepo string + KernelBranch string + KernelCommit string + KernelCommitTitle string + KernelCommitDate time.Time + KernelConfig []byte + Commits []string // see BuilderPoll + FixCommits []FixCommit } type FixCommit struct { @@ -204,28 +206,31 @@ func (dash *Dashboard) LogError(name, msg string, args ...interface{}) { // BugReport describes a single bug. // Used by dashboard external reporting. type BugReport struct { - Namespace string - Config []byte - ID string - JobID string - ExtID string // arbitrary reporting ID forwarded from BugUpdate.ExtID - First bool // Set for first report for this bug. - Title string - Maintainers []string - CC []string // additional CC emails - OS string - Arch string - VMArch string - CompilerID string - KernelRepo string - KernelBranch string - KernelCommit string - KernelConfig []byte - Log []byte - Report []byte - ReproC []byte - ReproSyz []byte - CrashID int64 // returned back in BugUpdate + Namespace string + Config []byte + ID string + JobID string + ExtID string // arbitrary reporting ID forwarded from BugUpdate.ExtID + First bool // Set for first report for this bug. + Title string + Maintainers []string + CC []string // additional CC emails + OS string + Arch string + VMArch string + CompilerID string + KernelRepo string + KernelRepoAlias string + KernelBranch string + KernelCommit string + KernelCommitTitle string + KernelCommitDate time.Time + KernelConfig []byte + Log []byte + Report []byte + ReproC []byte + ReproSyz []byte + CrashID int64 // returned back in BugUpdate CrashTitle string // job execution crash title Error []byte // job execution error |
