Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
x/build/cmd/gopherbot: race condition in auto-closure of scratch CLs causing gopherbot to stall 30s #28286
When closing scratch CLs, the maintner corpus doesn't get updated fast enough and it attempts to close the same CLs again, resulting in a 409 conflict:
This error causes gopherbot to sleep for 30s as a result.
I think I've already seen code somewhere that uses Gerrit API in addition to
I suspect the fix for this can use a similar approach.
Note that this is different from #28226 in that the reported state isn't inconsistent, it's just not up to date.