diff --git a/tools/irc_tests.py b/tools/irc_tests.py index 3b3b336846..f7e5a39978 100755 --- a/tools/irc_tests.py +++ b/tools/irc_tests.py @@ -59,6 +59,17 @@ def access_gerrit_check(): print(" %s is missing from accessbot" % channel) errors = True + # IRC has a limit of 120 channels that we unfortunately hit with + # gerritbot. If we try connect to more, it will not connect to + # all. Avoid this situation. + if len(gerrit_config) > 120: + print ("gerritbot can only handle 120 channels but found %s." + % len(gerrit_config)) + print ("Sorry, we're at our limit and cannot add more for now.") + print ("If you want to help set up another instance contact the " + "infra team in #openstack-infra.\n") + errors = True + return errors