aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard/dashapi/dashapi.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-11-29 13:23:42 +0100
committerDmitry Vyukov <dvyukov@google.com>2017-11-30 14:50:50 +0100
commit5153aeaffd096514c1f2652c69cd0fc0d298b1d3 (patch)
tree5eb5155a43d5a0d43adca8a9e7c0c78ed0f43f6a /dashboard/dashapi/dashapi.go
parentd5bd1f79fd780a53ab078b0302f972eb9560bf98 (diff)
syz-ci: test images before using them
Boot and minimally test images before declaring them as good and switching to using them. If image build/boot/test fails, upload report about this to dashboard.
Diffstat (limited to 'dashboard/dashapi/dashapi.go')
-rw-r--r--dashboard/dashapi/dashapi.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/dashboard/dashapi/dashapi.go b/dashboard/dashapi/dashapi.go
index 50c144dae..8ebea29ac 100644
--- a/dashboard/dashapi/dashapi.go
+++ b/dashboard/dashapi/dashapi.go
@@ -121,6 +121,15 @@ func (dash *Dashboard) JobDone(req *JobDoneReq) error {
return dash.query("job_done", req, nil)
}
+type BuildErrorReq struct {
+ Build Build
+ Crash Crash
+}
+
+func (dash *Dashboard) ReportBuildError(req *BuildErrorReq) error {
+ return dash.query("report_build_error", req, nil)
+}
+
// Crash describes a single kernel crash (potentially with repro).
type Crash struct {
BuildID string // refers to Build.ID