From 3887d60d86f72cd0c697fb996e1936a991bfc383 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Fri, 21 Nov 2025 10:16:00 +0100 Subject: 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. --- syz-cluster/pkg/api/api.go | 1 + syz-cluster/pkg/api/reporter.go | 5 +++++ 2 files changed, 6 insertions(+) (limited to 'syz-cluster/pkg/api') 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"` -- cgit mrf-deployment