diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2025-01-15 17:41:31 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2025-01-22 13:17:53 +0000 |
| commit | cc143e38041972ad4dbaff9cfbfd416c29d581b5 (patch) | |
| tree | 31e07572a22bebdc20c1fc73a6ef9140c03eb3e5 /syz-cluster/pkg/api/api.go | |
| parent | 6bab9518e47d67b3c9bba00f213aa3e1637063e1 (diff) | |
syz-cluster: add support for findings
Findings are crashes and build/boot/test errors that happened during the
patch series processing.
Diffstat (limited to 'syz-cluster/pkg/api/api.go')
| -rw-r--r-- | syz-cluster/pkg/api/api.go | 21 |
1 files changed, 21 insertions, 0 deletions
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. |
