From cc143e38041972ad4dbaff9cfbfd416c29d581b5 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Wed, 15 Jan 2025 17:41:31 +0100 Subject: syz-cluster: add support for findings Findings are crashes and build/boot/test errors that happened during the patch series processing. --- syz-cluster/pkg/api/api.go | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'syz-cluster/pkg/api/api.go') diff --git a/syz-cluster/pkg/api/api.go b/syz-cluster/pkg/api/api.go index ea629e534..510dd1c47 100644 --- a/syz-cluster/pkg/api/api.go +++ b/syz-cluster/pkg/api/api.go @@ -60,12 +60,33 @@ type Build struct { BuildSuccess bool `json:"build_success"` } +const ( + TestRunning string = "running" + TestPassed string = "passed" + TestFailed string = "failed" // TODO: drop it? only mark completion? + TestError string = "error" +) + type TestResult struct { SessionID string `json:"session_id"` BaseBuildID string `json:"base_build_id"` PatchedBuildID string `json:"patched_build_id"` TestName string `json:"test_name"` Result string `json:"result"` + Log []byte `json:"log"` +} + +type BootResult struct { + Success bool `json:"success"` +} + +// Finding is a kernel crash, boot error, etc. found during a test. +type Finding struct { + SessionID string `json:"session_id"` + TestName string `json:"test_name"` + Title string `json:"title"` + Report []byte `json:"report"` + Log []byte `json:"log"` } // For now, there's no reason to obtain these really via a real API call. -- cgit mrf-deployment