Skip to content

Commit d7fb432

Browse files
heschigopherbot
authored andcommitted
cmd/coordinator/internal/legacydash: uncap maintner request
We've been seeing the coordinator fail to schedule subrepo runs on release branches. As far as I can tell, the problem is the request to maintner: branch = "mixed" means to get at least one commit from each branch in the repository, but we're asking for 30 commits when we have 50-some branches. So obviously some are going to be left out. That absence breaks findWork when it tries to map commits to branches. I don't fully understand which branches happen to be included and which don't, but this behavior seems clearly wrong. Let maintner decide how many responses to send back, currently hardcoded at 500. For golang/go#48523. Change-Id: I1792e89de96e83ceed6a430a7456b119f633869b Reviewed-on: https://go-review.googlesource.com/c/build/+/431355 Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Run-TryBot: Heschi Kreinick <[email protected]> Auto-Submit: Heschi Kreinick <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
1 parent 5c85681 commit d7fb432

File tree

1 file changed

+5
-1
lines changed
  • cmd/coordinator/internal/legacydash

1 file changed

+5
-1
lines changed

Diff for: cmd/coordinator/internal/legacydash/ui.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -414,11 +414,15 @@ func dashboardRequest(view dashboardView, r *http.Request) (*apipb.DashboardRequ
414414
if branch == "" {
415415
branch = "master"
416416
}
417+
maxCommits := commitsPerPage
418+
if branch == "mixed" {
419+
maxCommits = 0 // let maintner decide
420+
}
417421
return &apipb.DashboardRequest{
418422
Page: int32(page),
419423
Branch: branch,
420424
Repo: repo,
421-
MaxCommits: commitsPerPage,
425+
MaxCommits: int32(maxCommits),
422426
}, nil
423427
}
424428

0 commit comments

Comments
 (0)