diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2025-02-18 16:33:07 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2025-02-19 14:52:44 +0000 |
| commit | b257a9b7546c59d44cd69160b5a65a1bf1f050eb (patch) | |
| tree | 8c05de868d70660622a1871b739e99a6cfe5d6e6 /syz-cluster/pkg/api/api.go | |
| parent | 3b79d489db1ad98df7f1986a4695f581e6be9be3 (diff) | |
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.
Diffstat (limited to 'syz-cluster/pkg/api/api.go')
| -rw-r--r-- | syz-cluster/pkg/api/api.go | 29 |
1 files changed, 20 insertions, 9 deletions
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. |
