I've upgraded to Ubunty Hardy which upgrades buildbot from 0.7.5 to 0.7.6. Since then I'm seeing buildbot fail the svn step with the output below. It seems to fairly consistently fail at every second build.
The first build always succeeds, i.e. when no build directory exists. The second build fails at this step, although the build directory is empty afterwards. The third build succeeds again, and so on.
This is most notable with mode='export' et al., but mode='update' also clobbers the build directory in my case. Either way, it's mode='export' that I really want to use.
starting svn operation
rm -rf /var/lib/buildbot/foo/localbot/foo-dist/build
in dir /var/lib/buildbot/foo/localbot/foo-dist (timeout 1200 secs)
watching logfiles {}
argv: ['rm', '-rf', '/var/lib/buildbot/foo/localbot/foo-dist/build']
environment:
HOME=/var/lib/buildbot
LOGNAME=buildbot
MAIL=/var/mail/buildbot
PATH=/usr/local/bin:/usr/bin:/bin:/usr/games
PWD=/var/lib/buildbot
SHELL=/bin/sh
TERM=xterm-color
USER=buildbot
closing stdin
using PTY: True
program finished with exit code -1
And the log file shows this:
2008/05/20 11:43 +0200 [Broker,client] startCommand:svn [id 17]
2008/05/20 11:43 +0200 [Broker,client] ShellCommand._startCommand
2008/05/20 11:43 +0200 [Broker,client] rm -rf /var/lib/buildbot/foo/localbot/foo-dist/build
2008/05/20 11:43 +0200 [Broker,client] in dir /var/lib/buildbot/foo/localbot/foo-dist (timeout 1200 secs)
2008/05/20 11:43 +0200 [Broker,client] watching logfiles {}
2008/05/20 11:43 +0200 [Broker,client] argv: ['rm', '-rf', '/var/lib/buildbot/foo/localbot/foo-dist/build']
2008/05/20 11:43 +0200 [Broker,client] environment: {'TERM': 'xterm-color', 'SHELL': '/bin/sh', 'PWD': '/var/lib/buildbot', 'LOGNAME': 'bu>
2008/05/20 11:43 +0200 [Broker,client] closing stdin
2008/05/20 11:43 +0200 [Broker,client] using PTY: True
2008/05/20 11:43 +0200 [-] command finished with signal 1, exit code None
2008/05/20 11:43 +0200 [-] _checkAbandoned [Failure instance: Traceback: <class 'buildbot.slave.commands.AbandonChain'>: -1
>./usr/lib/python2.5/site-packages/buildbot/slave/commands.py:158:processEnded
>./usr/lib/python2.5/site-packages/buildbot/slave/commands.py:482:finished
>./usr/lib/python2.5/site-packages/twisted/internet/defer.py:239:callback
>./usr/lib/python2.5/site-packages/twisted/internet/defer.py:304:_startRunCallbacks
>.--- <exception caught here> ---
>./usr/lib/python2.5/site-packages/twisted/internet/defer.py:317:_runCallbacks
>./usr/lib/python2.5/site-packages/buildbot/slave/commands.py:707:_abandonOnFailure
>.]
2008/05/20 11:43 +0200 [-] abandoning chain -1
2008/05/20 11:43 +0200 [-] SlaveBuilder.commandComplete <buildbot.slave.commands.SVN instance at 0xdf82d8>
I've not seen any change in buildbot's code surrounding this rm command between versions 0.7.5 and 0.7.6, so I've no idea what might have changed to make this happen. If I manually install Intrepid's 0.7.7 package (which again has no code change in that area that I can see), the same thing happens. Might this be a twisted problem?