From 65a096a96476253e59a9cf215fed563f1ba14098 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Mon, 20 Jun 2016 18:57:10 +0200 Subject: [PATCH] Check number of channels for gerritbot We currently have a limit of 120 channels, do not allow more channels to be set up. Change-Id: If70f1775b2d07d9af52c83a9d234c08ac73925ce --- tools/irc_tests.py | 11 +++++++++++ 1 file changed, 11 insertions(+) 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