aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard/dashapi/dashapi.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2019-03-20 12:00:34 +0100
committerDmitry Vyukov <dvyukov@google.com>2019-03-20 12:00:34 +0100
commit142c38ee4dae31257923fa929a9e671ae6f28e13 (patch)
tree296aa53601c39635277cdcf5c7b8d0ac0ecc4ef4 /dashboard/dashapi/dashapi.go
parent042e4d54190289ff0b7d908d45a8d8a040098175 (diff)
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
Diffstat (limited to 'dashboard/dashapi/dashapi.go')
-rw-r--r--dashboard/dashapi/dashapi.go6
1 files changed, 3 insertions, 3 deletions
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