From 5153aeaffd096514c1f2652c69cd0fc0d298b1d3 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 29 Nov 2017 13:23:42 +0100 Subject: 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. --- dashboard/dashapi/dashapi.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'dashboard/dashapi/dashapi.go') 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 -- cgit mrf-deployment