From df0ec93c2662a5189ec2077aee2bf823e392bf25 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Thu, 18 Jan 2024 16:08:31 +0100 Subject: dashboard: wait for repro only when it makes sense In case or build/boot/test errors there will never be a reproducer. It's better to report them right away, without waiting. --- dashboard/app/reporting.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dashboard/app/reporting.go') diff --git a/dashboard/app/reporting.go b/dashboard/app/reporting.go index f2f4d7931..ccb7fa1ea 100644 --- a/dashboard/app/reporting.go +++ b/dashboard/app/reporting.go @@ -120,7 +120,8 @@ func needReport(c context.Context, typ string, state *ReportingState, bug *Bug) reporting, bugReporting = nil, nil return } - if bug.ReproLevel < ReproLevelC && timeSince(c, bug.FirstTime) < cfg.WaitForRepro { + if crashNeedsRepro(bug.Title) && bug.ReproLevel < ReproLevelC && + timeSince(c, bug.FirstTime) < cfg.WaitForRepro { status = fmt.Sprintf("%v: waiting for C repro", reporting.DisplayTitle) reporting, bugReporting = nil, nil return -- cgit mrf-deployment