From 142c38ee4dae31257923fa929a9e671ae6f28e13 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 20 Mar 2019 12:00:34 +0100 Subject: dashboard/app: request test/bisect jobs separately Allow separate sets of managers for patch testing and for bisection. This makes things more flexible on syz-ci deployment side. Remove previous hacks for bisection deployment. Update #501 --- dashboard/dashapi/dashapi.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dashboard/dashapi/dashapi.go') diff --git a/dashboard/dashapi/dashapi.go b/dashboard/dashapi/dashapi.go index 24f2a87a1..42200eb15 100644 --- a/dashboard/dashapi/dashapi.go +++ b/dashboard/dashapi/dashapi.go @@ -121,7 +121,8 @@ func (dash *Dashboard) BuilderPoll(manager string) (*BuilderPollResp, error) { // ID must match JobPollResp.ID. type JobPollReq struct { - Managers []string + PatchTestManagers []string + BisectManagers []string } type JobPollResp struct { @@ -164,8 +165,7 @@ const ( JobBisectFix ) -func (dash *Dashboard) JobPoll(managers []string) (*JobPollResp, error) { - req := &JobPollReq{Managers: managers} +func (dash *Dashboard) JobPoll(req *JobPollReq) (*JobPollResp, error) { resp := new(JobPollResp) err := dash.Query("job_poll", req, resp) return resp, err -- cgit mrf-deployment