[Buildbot-devel] Why is my SVNPoller not working?

Matt Ackeret mattack at apple.com
Sat Jan 16 00:53:38 UTC 2010


I'm very much of a buildbot (and subversion) newbie..

I have a periodic scheduler successfully building every 10 minutes.
I'm trying to convert that into using SVNPoller, but the poller is failing.

I'm using
Buildbot version: 0.7.6
Twisted version: 8.2.0

on Mac OS X.

Here's the output I'm getting:
2010-01-15 23:28:20+0000 [-] SVNPoller polling
2010-01-15 23:28:20+0000 [-] SVNPoller failed
2010-01-15 23:28:20+0000 [-] _finished : [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.utils._UnexpectedErrorOutput'>: got stderr: 'svn: Network connection closed unexpectedly\n'
  ]

I think this is all of the guts of the master.cfg that I have changed.

I have only slightly obfuscated the src path, but I can manually check out 
the real path over a ssh connection (and again, the Periodic timer can too).

c['slaves'] = [BuildSlave("buildslave", "buildslave")]

...
from buildbot.changes.svnpoller import SVNPoller
c['change_source'] = SVNPoller("svn+ssh://MYSOURCEPATH/branches/buildbot-test-branch")

from buildbot import scheduler
#MAA changed to every 3 minutes to test quickly
periodic = scheduler.Periodic("every 10 minutes", ["buildbot-full"], 3*60)

quick = scheduler.Scheduler("BuildOnSourceChange", None, 5, ["buildbot-full"])
#c['schedulers'] = [quick, periodic]
c['schedulers'] = [quick]


from buildbot.process import factory
from buildbot.steps.source import SVN
from buildbot.steps.shell import ShellCommand
from buildbot.steps.shell import Compile
from buildbot.steps.python_twisted import Trial

f1 = factory.BuildFactory()
f1.addStep(SVN(svnurl="svn+ssh://MYSOURCEPATH/branches/buildbot-test-branch"))
f1.addStep(ShellCommand(command="rm -rf obj sym"))
f1.addStep(Compile(command=["make", "install"]))

b1 = {'name': "buildbot-full",
      'slavename': "buildslave",
      'builddir': "full",
      'factory': f1,
      }
c['builders'] = [b1]

I don't understand why the timer one works, but the poller isn't.

Thanks..




More information about the devel mailing list