[Numpy-discussion] Buildbot not building?
Pauli Virtanen
pav at iki.fi
Sat Feb 14 12:21:23 EST 2009
Hi,
It seems that the buildbot.scipy.org is not picking up the changes in
Numpy trunk.
I'd guess this could be some issue with SVNPoller. At least it doesn't
preserve states across buildmaster restarts, so replacing it with the
following might help:
{{{
import os
from buildbot.changes.svnpoller import SVNPoller
class PersistentSVNPoller(SVNPoller):
persist_file = "svnpoll.rev"
def __init__(self, *a, **kw):
self.persist_file = kw.pop('persist_file', self.persist_file)
SVNPoller.__init__(self, *a, **kw)
if os.path.isfile(self.persist_file):
f = open(self.persist_file, 'r')
try:
self.last_change = int(f.read())
except ValueError:
pass
finally:
f.close()
def get_new_logentries(self, *a, **kw):
r = SVNPoller.get_new_logentries(self, *a, **kw)
f = open(self.persist_file, 'w')
try:
f.write("%d" % self.last_change)
finally:
f.close()
return r
}}}
--
Pauli Virtanen
More information about the NumPy-Discussion
mailing list