diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2025-11-21 10:16:00 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2025-12-01 09:33:02 +0000 |
| commit | 3887d60d86f72cd0c697fb996e1936a991bfc383 (patch) | |
| tree | 00e79fe46d22728a91c7fd76f7bc4f311862bae9 /syz-cluster/pkg/api | |
| parent | 7d8e572eb37b9122f38f136102bf6801e1021970 (diff) | |
syz-cluster: basic support for finding invalidation
Add some initial #syz invalid support to syz-cluster. For now, mark all
findings as invalid and don't display that such series have findings on
the web dashboard.
Diffstat (limited to 'syz-cluster/pkg/api')
| -rw-r--r-- | syz-cluster/pkg/api/api.go | 1 | ||||
| -rw-r--r-- | syz-cluster/pkg/api/reporter.go | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/syz-cluster/pkg/api/api.go b/syz-cluster/pkg/api/api.go index 8b7478312..205180bbb 100644 --- a/syz-cluster/pkg/api/api.go +++ b/syz-cluster/pkg/api/api.go @@ -174,6 +174,7 @@ type Finding struct { Build BuildInfo `json:"build"` LinkCRepro string `json:"c_repro"` LinkSyzRepro string `json:"syz_repro"` + Invalidated bool `json:"invalidated"` } type BuildInfo struct { diff --git a/syz-cluster/pkg/api/reporter.go b/syz-cluster/pkg/api/reporter.go index ea83dfbe6..c01c2b4ae 100644 --- a/syz-cluster/pkg/api/reporter.go +++ b/syz-cluster/pkg/api/reporter.go @@ -45,6 +45,11 @@ func (client ReporterClient) UpstreamReport(ctx context.Context, id string, req return err } +func (client ReporterClient) InvalidateReport(ctx context.Context, id string) error { + _, err := postJSON[any, any](ctx, client.baseURL+"/reports/"+id+"/invalidate", nil) + return err +} + type RecordReplyReq struct { MessageID string `json:"message_id"` ReportID string `json:"report_id"` |
