diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2023-05-05 14:15:32 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2023-05-05 16:02:43 +0200 |
| commit | c3a7c73bd1b0178b31faabe4b2bc8afc5f0127e2 (patch) | |
| tree | aba445c79bb804e6b63525febc09ab5585af9941 /dashboard/app | |
| parent | acf730dc426a3e494586c6935260a57e6044f990 (diff) | |
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.
Diffstat (limited to 'dashboard/app')
| -rw-r--r-- | dashboard/app/reporting.go | 4 |
1 files changed, 2 insertions, 2 deletions
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) } |
