[pypy-commit] buildbot default: Pass "pingBuilder=False" (it seems that pinging builders may sometimes

arigo pypy.commits at gmail.com
Sat Jul 30 06:13:59 EDT 2016


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r1012:52e9a601c0ec
Date: 2016-07-30 12:16 +0200
http://bitbucket.org/pypy/buildbot/changeset/52e9a601c0ec/

Log:	Pass "pingBuilder=False" (it seems that pinging builders may
	sometimes cause the buildmaster to stop sending jobs to the builders
	afterwards). This requires a change in the way we pass options,
	which hopefully I did correctly.

diff --git a/bot2/pypybuildbot/master.py b/bot2/pypybuildbot/master.py
--- a/bot2/pypybuildbot/master.py
+++ b/bot2/pypybuildbot/master.py
@@ -5,6 +5,7 @@
 from buildbot.schedulers.forcesched import ValidationError
 from buildbot.buildslave import BuildSlave
 from buildbot.status.html import WebStatus
+from buildbot.status.web import authz
 #from buildbot import manhole
 from pypybuildbot.pypylist import PyPyList, NumpyStatusList
 from pypybuildbot.ircbot import IRC  # side effects
@@ -23,7 +24,9 @@
 else:
     channel = '#pypy'
 
-status = WebStatus(httpPortNumber, allowForce=True)
+authz_cfg = authz.Authz(pingBuilder=False, forceBuild=True, forceAllBuilds=True,
+                        stopBuild=True, stopAllBuilds=True, cancelPendingBuild=True)
+status = WebStatus(httpPortNumber, authz=authz_cfg)
 ircbot = IRC(host="irc.freenode.org",
              nick="bbot2",
              channels=[channel],


More information about the pypy-commit mailing list