-
Notifications
You must be signed in to change notification settings - Fork 17.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/build/cmd/gerritbot: comments occasionally not posted to GitHub PR #27504
Comments
/cc builders squad @andybons @bradfitz @FiloSottile @kevinburke @dmitshur |
The first two issues are behaving as expected. The Gerrit commit message is determined by the title and description of the PR and is one-way (GitHub -> Gerrit). See https://golang.org/wiki/GerritBot#how-does-gerritbot-determine-the-final-commit-message #25359 for more info.
This isn’t correct. The Gerrit CLs were created by GerritBot, but no comment was added to the original GitHub PR. |
Something along these lines happened in golang/dl#1 as well. The PR was mirrored (to https://go-review.googlesource.com/c/dl/+/134117) but no corresponding "PR has been imported to Gerrit" comment was created. I filed #27561 with more details for that particular instance, but I suspect there's overlap with this issue. |
Change https://golang.org/cl/134175 mentions this issue: |
Gerrit has changed the format it uses for the Change URL in its output. It used to be something like: remote: SUCCESS remote: remote: New Changes: remote: https://go-review.googlesource.com/#/c/dl/+/134117 remove blank line from codereview.cfg Now it is: remote: SUCCESS remote: remote: New Changes: remote: https://go-review.googlesource.com/c/dl/+/134117 remove blank line from codereview.cfg (The '#' path element in the Change URL is removed.) Update the regexp to match, and add a test for it. This fix will likely cause the previously unposted "This PR has been imported to Gerrit for code review" comments to get posted during next pull request activity, since they haven't already been. Fixes golang/go#27561. Updates golang/go#27504. Change-Id: I37a75ddb8d879017ebd887c651ca74a6ad6b892d Reviewed-on: https://go-review.googlesource.com/134175 Reviewed-by: Andrew Bonventre <andybons@golang.org>
Now that #27561 (comment) is resolved, at least a part of this issue should be resolved too. Perhaps all of it. If there are further occurrences of this, please let us know. Otherwise, we can probably close this after some time passes. |
Another issue that might have played a role in this issue happening was #27536: gerritbot was crashing occasionally. It's conceivable (and likely) that each time it crashed, it missed some operations that should've been performed. The crashing issue is resolved now, so I'm interested in hearing of any further re-occurrences of the original issue if it happens again. |
Timed out in state WaitingForInfo. Closing. (I am just a bot, though. Please speak up if this is a mistake or you have the requested information.) |
Over the past couple of days I've been involved with at least two separate issues with bodies that were updated on Github but Gopherbot did not mirror them on Gerrit yet posted up messages on Gerrit.
Those issues are:
Got
Want
Got
Want
and also there have been a couple of PRs for which a Gerrit CL wasn't opened, perhaps the problem is related? For example:
The text was updated successfully, but these errors were encountered: