From 6f03c356200becfa347b8abade66ac74f52c10c9 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 25 Dec 2017 12:07:06 +0100 Subject: dashboard/app: extract fixing tags from commits Support the new scheme of associating fixing commits with bugs. Now we provide a tag along the lines of: Reported-by: The tag is supposed to be added to the commit. Then we parse commit logs and extract these tags. The final part on the dashboard is not ready yet, but syz-ci should already parse and send the tags. --- dashboard/dashapi/dashapi.go | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'dashboard/dashapi/dashapi.go') diff --git a/dashboard/dashapi/dashapi.go b/dashboard/dashapi/dashapi.go index 6be3975e5..badf40ef4 100644 --- a/dashboard/dashapi/dashapi.go +++ b/dashboard/dashapi/dashapi.go @@ -47,6 +47,12 @@ type Build struct { KernelCommit string KernelConfig []byte Commits []string // see BuilderPoll + FixCommits []FixCommit +} + +type FixCommit struct { + Title string + BugID string } func (dash *Dashboard) UploadBuild(build *Build) error { @@ -54,10 +60,12 @@ func (dash *Dashboard) UploadBuild(build *Build) error { } // BuilderPoll request is done by kernel builder before uploading a new build -// with UploadBuild request. Response contains list of commits that dashboard -// is interested in (i.e. commits that fix open bugs). When uploading a new -// build builder should pass subset of the commits that are present in the build -// in Build.Commits field. +// with UploadBuild request. Response contains list of commit titles that +// dashboard is interested in (i.e. commits that fix open bugs) and email that +// appears in Reported-by tags for bug ID extraction. When uploading a new build +// builder will pass subset of the commit titles that are present in the build +// in Build.Commits field and list of {bug ID, commit title} pairs extracted +// from git log. type BuilderPollReq struct { Manager string @@ -65,6 +73,7 @@ type BuilderPollReq struct { type BuilderPollResp struct { PendingCommits []string + ReportEmail string } func (dash *Dashboard) BuilderPoll(manager string) (*BuilderPollResp, error) { -- cgit mrf-deployment