diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2017-12-25 12:07:06 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2017-12-27 09:09:18 +0100 |
| commit | 6f03c356200becfa347b8abade66ac74f52c10c9 (patch) | |
| tree | b06738f1401e8c9694529f9252a7c355ef0589d4 /dashboard/dashapi/dashapi.go | |
| parent | 73aba437a774237b1130837b856f3b40b3ec3bf0 (diff) | |
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: <syzbot+a4a91f6fc35e102@syzkaller.appspotmail.com>
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.
Diffstat (limited to 'dashboard/dashapi/dashapi.go')
| -rw-r--r-- | dashboard/dashapi/dashapi.go | 17 |
1 files changed, 13 insertions, 4 deletions
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) { |
