From b257a9b7546c59d44cd69160b5a65a1bf1f050eb Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Tue, 18 Feb 2025 16:33:07 +0100 Subject: syz-cluster/pkg/report: add an email template The first revision of the email template that will be used for reporting the findings. This PR adds more fields to the pkg/api package, but these are not filled by the implementation yet. That will be done separately. --- syz-cluster/pkg/api/api.go | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) (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 b7d2992ce..535808e29 100644 --- a/syz-cluster/pkg/api/api.go +++ b/syz-cluster/pkg/api/api.go @@ -119,18 +119,29 @@ type NewSession struct { } type SessionReport struct { - ID string `json:"id"` - Moderation bool `json:"moderation"` - // TODO: add some session info? - Series *Series `json:"series"` - Findings []*Finding `json:"findings"` - Link string `json:"link"` // URL to the web dashboard. + ID string `json:"id"` + Cc []string `json:"cc"` + Moderation bool `json:"moderation"` + BaseRepo string `json:"base_repo"` + BaseCommit string `json:"base_commit"` + Series *Series `json:"series"` + Findings []*Finding `json:"findings"` + Link string `json:"link"` // URL to the web dashboard. } type Finding struct { - Title string `json:"title"` - Report []byte `json:"report"` - LogURL string `json:"log_url"` + Title string `json:"title"` + Report string `json:"report"` + LogURL string `json:"log_url"` + Build BuildInfo `json:"build"` + LinkCRepro string `json:"c_repro"` + LinkSyzRepro string `json:"syz_repro"` +} + +type BuildInfo struct { + Arch string `json:"arch"` + Compiler string `json:"compiler"` + ConfigLink string `json:"config_link"` } // Let them stay here until we find a better place. -- cgit mrf-deployment