x/build/cmd/gopherbot: assignReviewersToCLs doesn't add reviewers if a CL was imported from a PR #31658
Labels
Builders
x/build issues (builders, bots, dashboards)
Community
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Gopherbot has a task to assign reviewers to CLs based on owners:
It doesn't work when someone makes a Pull Request, that then gets imported as a Gerrit CL by
gerritbot
.For example, CL 173577 was imported from a PR and has had no activity but gopherbot did not assign a reviewer. /cc @stamblerre
This is a bug in gopherbot, and I suspect it happens because of issue #30265 (which is in turn due to #23964). In that CL, GerritBot added the author of the PR as a reviewer of the CL:
That makes the following check in
assignReviewersToCLs
return early:If not for that, gopherbot would've taken the right action:
Ideally this should be fixed by resolving the root cause issue #30265. However, that might take much longer to resolve, so we can look into adding a workaround for it now by modifying
humanReviewersOnChange
to not consider authors of the CL as reviewers./cc @bradfitz @andybons
The text was updated successfully, but these errors were encountered: