From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gnu.wildebeest.org (gnu.wildebeest.org [45.83.234.184]) by sourceware.org (Postfix) with ESMTPS id 166CA3858294 for ; Sun, 26 Jun 2022 12:48:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 166CA3858294 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=klomp.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=klomp.org Received: from reform (deer0x0e.wildebeest.org [172.31.17.144]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gnu.wildebeest.org (Postfix) with ESMTPSA id 2BA4E30005B6; Sun, 26 Jun 2022 14:48:34 +0200 (CEST) Received: by reform (Postfix, from userid 1000) id B6D882E83468; Sun, 26 Jun 2022 14:48:33 +0200 (CEST) From: Mark Wielaard To: buildbot@sourceware.org Cc: Mark Wielaard Subject: [COMMITTED] Make all GitPollers poll every 3 to 5 minutes Date: Sun, 26 Jun 2022 14:48:31 +0200 Message-Id: <20220626124831.30400-1-mark@klomp.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, KAM_SHORT, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: buildbot@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "The https://builder.sourceware.org/ buildbot" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Jun 2022 12:48:38 -0000 We don't want to poll at the exact same time for all GitPollers. We used to use a different prime number between 180 and 300 seconds as pollInterval. But there is a simpler method that doesn't require an unique number for each poller. Just set pollInterval to 3 * 60 seconds and pollRandomDelayMax to 2 * 60 seconds. --- builder/master.cfg | 39 +++++++++++++++++++++++++-------------- 1 file changed, 25 insertions(+), 14 deletions(-) diff --git a/builder/master.cfg b/builder/master.cfg index 9d0de09..3c21d52 100644 --- a/builder/master.cfg +++ b/builder/master.cfg @@ -181,58 +181,65 @@ c['protocols'] = {'pb': {'port': 9989}} # the 'change_source' setting tells the buildmaster how it should find out # about source code changes. -# We want to poll every ~3/4 minutes (180/240 seconds), but don't want to -# poll at exactly the same time so use the next unused prime number as poll -# interval: 181 191 193 197 199 211 223 227 229 233 239 241 251 257 263 269 +# We want to poll every ~3/5 minutes (180/300 seconds), but don't want to +# poll at exactly the same time so use a pollInterval of 3 * 60 seconds +# and a pollRandomDelayMax of 2 * 60 seconds. c['change_source'] = [] sourceware_repourl='https://sourceware.org/git/builder.git' sourceware_gitpoller = changes.GitPoller(repourl=sourceware_repourl, branches=['main'], - pollInterval=180, + pollInterval=3*60, + pollRandomDelayMax=2*60, project='sourceware') c['change_source'].append(sourceware_gitpoller) elfutils_repourl='https://sourceware.org/git/elfutils.git' elfutils_gitpoller = changes.GitPoller(repourl=elfutils_repourl, branches=['master'], - pollInterval=181, + pollInterval=3*60, + pollRandomDelayMax=2*60, project='elfutils') c['change_source'].append(elfutils_gitpoller) libabigail_repourl='https://sourceware.org/git/libabigail.git' libabigail_gitpoller = changes.GitPoller(repourl=libabigail_repourl, branches=['master'], - pollInterval=191, + pollInterval=3*60, + pollRandomDelayMax=2*60, project='libabigail') c['change_source'].append(libabigail_gitpoller) dwz_repourl='https://sourceware.org/git/dwz.git' dwz_gitpoller = changes.GitPoller(repourl=dwz_repourl, branches=['master'], - pollInterval=193, + pollInterval=3*60, + pollRandomDelayMax=2*60, project='dwz') c['change_source'].append(dwz_gitpoller) bzip2_repourl='https://sourceware.org/git/bzip2.git' bzip2_gitpoller = changes.GitPoller(repourl=bzip2_repourl, branches=['master'], - pollInterval=197, + pollInterval=3*60, + pollRandomDelayMax=2*60, project='bzip2') c['change_source'].append(bzip2_gitpoller) valgrind_repourl='https://sourceware.org/git/valgrind.git' valgrind_gitpoller = changes.GitPoller(repourl=valgrind_repourl, branches=['master'], - pollInterval=199, + pollInterval=3*60, + pollRandomDelayMax=2*60, project='valgrind') c['change_source'].append(valgrind_gitpoller) debugedit_repourl='https://sourceware.org/git/debugedit.git' debugedit_gitpoller = changes.GitPoller(repourl=debugedit_repourl, branches=['main'], - pollInterval=211, + pollInterval=3*60, + pollRandomDelayMax=2*60, project='debugedit') c['change_source'].append(debugedit_gitpoller) @@ -240,7 +247,8 @@ c['change_source'].append(debugedit_gitpoller) gccrust_repourl='https://code.wildebeest.org/git/mirror/gccrs' gccrust_gitpoller = changes.GitPoller(repourl=gccrust_repourl, branches=['master'], - pollInterval=223, + pollInterval=3*60, + pollRandomDelayMax=2*60, project='gccrust') c['change_source'].append(gccrust_gitpoller) @@ -256,21 +264,24 @@ binutils_gdb_repourl='https://sourceware.org/git/binutils-gdb.git' binutils_gdb_gitpoller = changes.GitPoller(repourl=binutils_gdb_repourl, branches=master_and_users_try_branches, buildPushesWithNoCommits=True, - pollInterval=317, + pollInterval=3*60, + pollRandomDelayMax=2*60, project='binutils-gdb') c['change_source'].append(binutils_gdb_gitpoller) gcc_repourl='https://gcc.gnu.org/git/gcc.git' gcc_gitpoller = changes.GitPoller(repourl=gcc_repourl, branches=['master'], - pollInterval=341, + pollInterval=3*60, + pollRandomDelayMax=2*60, project='gcc') c['change_source'].append(gcc_gitpoller) glibc_repourl='https://sourceware.org/git/glibc.git' glibc_gitpoller = changes.GitPoller(repourl=glibc_repourl, branches=['master'], - pollInterval=512, + pollInterval=3*60, + pollRandomDelayMax=2*60, project='glibc') c['change_source'].append(glibc_gitpoller) -- 2.30.2