-
Notifications
You must be signed in to change notification settings - Fork 100
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
PRs not being automerged reliably #252
Comments
Sorry that you're having reliability issues with Bulldozer. We're also running Bulldozer 1.13.2 with GitHub Enterprise 3.1.1 and are not seeing the behavior you describe, so I don't think this is necessarily related to the upgrade. Do you know which version of Bulldozer you were using before upgrading to 1.13.2? That would tell me which new features we included in the upgrade. For the problem with missed merges, the most common reason I've seen for this is hitting GitHub rate limits. If this is the case, you should be able to see these errors in the logs (although the messages are not tagged with the repository/PR number.) If rate limits are not the problem, it will be helpful to have complete logs for a single pull request that had this problem, from when it was opened to when it merged. If you can share a redacted copy of these logs, that would be great. Regarding the |
We upgraded Bulldozer to 1.13.2 from 1.10.1 (and Policy-bot to 1.22.1 from 1.20.0). @AnetaKvapilova could you fetch the logs from one of your problematic PRs for @bluekeyes 🙏 ? Let me know if you need any help with that. |
Could you please share how exactly should the message look like? We've tried to search for it in logs, but don't see any errors like this. But we can try again if we know exactly what to look for.
OK, thank you very much for explanation. I'm attaching logs from both - Bulldozer and Policy bots. I tried to select only relevant stuff, but like I said - we're using it for multiple repos, so sorry if there are some messages from another PRs left (but I definitely didn't remove any error messages etc. - from this point of view logs are complete). |
If you are encountering rate limits, you should see messages like this in the logs:
The exact stack trace and message will probably be different, but the Thank you for providing the additional logs. I'll take a look and see if I find anything. |
After reviewing the logs, it might be that this is an issue with GitHub or with Bulldozer's caching. I've seen problems before where events that normally appear synchronous are actually asynchronous, but you can't observe this unless the GitHub appliance is under heavy load or experiencing another issue. Do you have access to GitHub metrics to see there is unusual load? I can also see that Bulldozer used a cached event when listing the statuses and check runs for To help confirm that this is an event vs. API inconsistency, I'd like to know more about the webhook with delivery ID
This will give you the full payload of the event and some extra information. This should be a |
Hi @bluekeyes, we were unable to get the webhook logs since they probably rolled out of log retention by the time we got to it.
Thank you! |
Logs filtered to a PR should be enough. There are a few messages early in the webhook handler that aren't associated with a PR number, but these shouldn't matter for the issue you've described.
Bulldozer logs the delivery ID as one of the log fields, so if you have a particular log message of interest, you can see which delivery caused it. You can also find delivery IDs by viewing the "Recent Deliveries" page in the UI if you want to go the other way: find all the logs associated with a particular event.
Yes, it displays the most important information, like the webhook payload. The disadvantage of the "Recent Deliveries" page is that is shows all events for all installations of Bulldozer and doesn't have a search feature, which can make it hard to find the particular event of interest. |
Hello, please, I have more like a question / asking for advice.
We're using bulldozer for automatic merging of all PRs, that are approved by policy bot, so the configuration file for bulldozer is quite simple:
however we're running into issues with automatic merging. It was almost never working 100%, but a number of unmerged PRs was acceptable. But few days ago PRs suddenly stopped being merged. I can see PRs approved by policy bot, but e.g. 2 out of 14 are really merged because of:
We have to manually update PR (e.g. add comment) and then it's merged just fine. Nothing has changed in configuration itself.
Example from one of PRs:
policy-bot log:
bulldozer log:
Also (maybe related, maybe not) - when looking into bulldozer's logs we can see a lot of errors:
Few days before it started to happen, bulldozer was updated to version
1.13.2
, running with GitHub Enterprisev3.1.1
.Is it possible that there's something wrong in new version that may really cause described issue? Is there anything we can to do make it work again? I can add some additional info if needed.
We've multiple projects that rely on bulldozer and we would really like to make it work and be reliable.
cc @sideeffffect.
The text was updated successfully, but these errors were encountered: