From fbc4659e78815d9c7685100efdaa3e8361a608d9 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 17 Jan 2018 20:17:23 +0100 Subject: syz-ci: disable fix commit extraction for mmots mmots contains weird squashed commits titled "linux-next" or "origin", which contain hundreds of other commits. This makes fix attribution totally broken. Obviously need something better long term, but also need to fight fire now. --- syz-ci/manager.go | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/syz-ci/manager.go b/syz-ci/manager.go index 653131848..faa5a43d7 100644 --- a/syz-ci/manager.go +++ b/syz-ci/manager.go @@ -551,15 +551,19 @@ func (mgr *Manager) pollCommits(buildCommit string) ([]string, []dashapi.FixComm } var fixCommits []dashapi.FixCommit if resp.ReportEmail != "" { - commits, err := git.ExtractFixTagsFromCommits(mgr.kernelDir, buildCommit, resp.ReportEmail) - if err != nil { - return nil, nil, err - } - for _, com := range commits { - fixCommits = append(fixCommits, dashapi.FixCommit{ - Title: com.Title, - BugID: com.Tag, - }) + // TODO(dvyukov): mmots contains weird squashed commits titled "linux-next" or "origin", + // which contain hundreds of other commits. This makes fix attribution totally broken. + if mgr.mgrcfg.Repo != "git://git.cmpxchg.org/linux-mmots.git" { + commits, err := git.ExtractFixTagsFromCommits(mgr.kernelDir, buildCommit, resp.ReportEmail) + if err != nil { + return nil, nil, err + } + for _, com := range commits { + fixCommits = append(fixCommits, dashapi.FixCommit{ + Title: com.Title, + BugID: com.Tag, + }) + } } } return present, fixCommits, nil -- cgit mrf-deployment