Integrated: 2037: Change the order of bots in PullRequestBotFactory
Zhao Song
zsong at openjdk.org
Fri Sep 22 18:33:03 UTC 2023
On Thu, 21 Sep 2023 21:16:17 GMT, Zhao Song <zsong at openjdk.org> wrote:
> Today, when restarting the bot, I found that the IssueBot was down for a long time(about 30 minutes), and then I realized that in PullRequestBotFactory, we created all pullRequestBots first, then CSRIssueBots, and IssueBots last.
>
> After the bot is restarted, the botRunner would run all pullRequestBots first and we have a lot of pullRequestBots, so it will take a lot of time. And if users make changes to issues in JBS during this interval, the IssueBot may not be able to get all updated issues. It's really bad.
>
> To solve this problem, we could to reverse the order of bots in PullRequestBotFactory, therefore we could make sure IssueBot will be run firstly.
This pull request has now been integrated.
Changeset: 1da0b82b
Author: Zhao Song <zsong at openjdk.org>
URL: https://git.openjdk.org/skara/commit/1da0b82b91d6ab3ba810b40a201d0f4dd41bb7b4
Stats: 13 lines in 2 files changed: 11 ins; 0 del; 2 mod
2037: Change the order of bots in PullRequestBotFactory
Reviewed-by: erikj
-------------
PR: https://git.openjdk.org/skara/pull/1558
More information about the skara-dev
mailing list