From c3a7c73bd1b0178b31faabe4b2bc8afc5f0127e2 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Fri, 5 May 2023 14:15:32 +0200 Subject: dashboard: assert repro presence against HeadReproLevel These sanity checks need correction since with reproducer retesting it's possible to have the top crash not match the ReproLevel. --- dashboard/app/reporting.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dashboard/app/reporting.go') diff --git a/dashboard/app/reporting.go b/dashboard/app/reporting.go index f72caacba..b1a44e7f4 100644 --- a/dashboard/app/reporting.go +++ b/dashboard/app/reporting.go @@ -1250,11 +1250,11 @@ func findCrashForBug(c context.Context, bug *Bug) (*Crash, *db.Key, error) { return nil, nil, fmt.Errorf("no crashes") } crash, key := crashes[0], keys[0] - if bug.ReproLevel == ReproLevelC { + if bug.HeadReproLevel == ReproLevelC { if crash.ReproC == 0 { log.Errorf(c, "bug '%v': has C repro, but crash without C repro", bug.Title) } - } else if bug.ReproLevel == ReproLevelSyz { + } else if bug.HeadReproLevel == ReproLevelSyz { if crash.ReproSyz == 0 { log.Errorf(c, "bug '%v': has syz repro, but crash without syz repro", bug.Title) } -- cgit mrf-deployment