From 256f7db0800ef141bb06578df61f4d21b8251eff Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Tue, 9 Aug 2022 17:50:04 +0000 Subject: dashboard: revoke no longer working reproducers Reuse the existing patch testing mechanism to periodically re-check existing reproducers. If a repro no longer works, mark it as such and don't consider during bug obsoletion testing. For obsoleted bugs, pass also a string argument specifying the reason for the obsoletion. This will make email messages more user-friendly and also let us later estimate the amount of no longer relevant bugs that we had on the dashboard. --- dashboard/dashapi/dashapi.go | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'dashboard/dashapi/dashapi.go') diff --git a/dashboard/dashapi/dashapi.go b/dashboard/dashapi/dashapi.go index cdefb8080..d5ccc1e0f 100644 --- a/dashboard/dashapi/dashapi.go +++ b/dashboard/dashapi/dashapi.go @@ -433,6 +433,7 @@ type BugUpdate struct { ExtID string Link string Status BugStatus + StatusReason BugStatusReason ReproLevel ReproLevel DupOf string OnHold bool // If set for open bugs, don't upstream this bug. @@ -608,10 +609,11 @@ func (dash *Dashboard) LoadBug(id string) (*BugReport, error) { } type ( - BugStatus int - BugNotif int - ReproLevel int - ReportType int + BugStatus int + BugStatusReason string + BugNotif int + ReproLevel int + ReportType int ) const ( @@ -624,6 +626,11 @@ const ( BugStatusFixed ) +const ( + InvalidatedByRevokedRepro = BugStatusReason("invalid_no_repro") + InvalidatedByNoActivity = BugStatusReason("invalid_no_activity") +) + const ( // Upstream bug into next reporting. // If the action succeeds, reporting sends BugStatusUpstream update. -- cgit mrf-deployment