Author: Matti Picus <matti.pi...@gmail.com>
Branch: 
Changeset: r1032:3118f11e324e
Date: 2017-10-20 08:51 +0300
http://bitbucket.org/pypy/buildbot/changeset/3118f11e324e/

Log:    add fileIsImportant filter for rpython, should it exclude doc
        subdirectory?

diff --git a/bot2/pypybuildbot/master.py b/bot2/pypybuildbot/master.py
--- a/bot2/pypybuildbot/master.py
+++ b/bot2/pypybuildbot/master.py
@@ -4,6 +4,7 @@
 from buildbot.schedulers.forcesched import ForceScheduler
 from buildbot.schedulers.forcesched import ValidationError
 from buildbot.buildslave import BuildSlave
+from buildbot.buildslave.base import log
 from buildbot.status.html import WebStatus
 from buildbot.status.web import authz
 from buildbot.process.build import Build
@@ -269,12 +270,19 @@
              'hhu-pypy-pi2': {'max_builds': 1},
              }
 
+def isRPython(change):
+    for fname in change.files:
+        if fname.startswith('rpython'):
+            log.msg('fileIsImportant filter isRPython got "%s"' % fname)
+            return True
+    return False
+
 BuildmasterConfig = {
     'slavePortnum': slavePortnum,
 
     'change_source': [
         HgPoller('https://bitbucket.org/pypy/pypy/', 
workdir='hgpoller-workdir',
-                 branch='default', pollinterval=300),
+                 branch='default', pollinterval=20*60),
         ],
 
     'schedulers': [
@@ -305,7 +313,7 @@
             LINUX64RPYTHON,            # on bencher4, uses all cores
             WIN32RPYTHON,              # on allegro_win32, SalsaSalsa
             ], branch='default', hour=0, minute=0, onlyIfChanged=True,
-            fileIsImportant=None, # set this to only rpython changes
+            fileIsImportant=isRPython,
             change_filter=filter.ChangeFilter(branch='default'),
         ),
 
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to