x/build/cmd/gerritbot: GitHub message sync de-duplicatation mechanism fails when Gerrit account name changes #41997
Labels
Builders
x/build issues (builders, bots, dashboards)
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
Soon
This needs action soon. (recent regressions, service outages, unusual time-sensitive situations)
Milestone
GopherBot (along with some other services) was restarted around 12 hours ago and when it came back up, the
congratulateNewContributors
task ended up posting a repeat "congratulations" message on some CLs that already had it posted (for example, golang/lint#496 (comment), golang/tools#215 (comment), golang/tour#940 (comment)). The duplicate messages don't show up in the Gerrit UI, but they got mirrored to GitHub.The
addGerritComment
method has a mechanism to suppress duplicate messages from being posted:But it seems it was ineffective in this scenario.
We may need to update it to catch new-style patch-set level messages after a Gerrit UI change (similarly to golang/build@243a34b). But I don't think this was what caused the issue during this occurrence, it must've been something else.
Filing for tracking purposes. This needs more investigation and a fix, especially if it starts to happen more often (this was the first observed and reported occurrence). Thanks to @toothrot and @cagedmantis who've also investigated this.
The text was updated successfully, but these errors were encountered: