[Buildbot] #3112: Git step fails when source dir is missing

Buildbot trac trac at buildbot.net
Fri Mar 13 04:43:40 UTC 2015


#3112: Git step fails when source dir is missing
---------------------+---------------------
Reporter:  dustin    |       Owner:  dustin
    Type:  defect    |      Status:  closed
Priority:  critical  |   Milestone:  0.8.x
 Version:  0.8.10    |  Resolution:  fixed
Keywords:  git       |
---------------------+---------------------

Comment (by yarikoptic):

 I am observing the same issue with the current master
 (v0.9.0-pre-1265-gcb9b4c0).
 Started to appear after my initial attempt to follow
 http://github.com/ethereum/ethereum-buildbot setup to provide testing of
 the pull requests.  Here is my changes:
 https://github.com/datalad/buildbot/commit/455e2049e3ce6435907ac00e737d4e25b5190f6d

 Here is backtrace for completeness:

 {{{
 ...
           self.results = yield self.run()
           File "/usr/lib/python2.7/dist-
 packages/twisted/internet/defer.py", line 1099, in _inlineCallbacks
             result = g.send(result)
           File "/home/buildbot/buildbot/venv/local/lib/python2.7/site-
 packages/buildbot/process/buildstep.py", line 602, in run
             results = yield self._start_deferred
           File "/usr/lib/python2.7/dist-
 packages/twisted/internet/defer.py", line 1097, in _inlineCallbacks
             result = result.throwExceptionIntoGenerator(g)
           File "/usr/lib/python2.7/dist-
 packages/twisted/python/failure.py", line 389, in
 throwExceptionIntoGenerator
             return g.throw(self.type, self.value, self.tb)
           File "/home/buildbot/buildbot/venv/local/lib/python2.7/site-
 packages/buildbot/steps/source/git.py", line 185, in full
             yield self.copy()
           File "/usr/lib/python2.7/dist-
 packages/twisted/internet/defer.py", line 1097, in _inlineCallbacks
             result = result.throwExceptionIntoGenerator(g)
           File "/usr/lib/python2.7/dist-
 packages/twisted/python/failure.py", line 389, in
 throwExceptionIntoGenerator
             return g.throw(self.type, self.value, self.tb)
           File "/home/buildbot/buildbot/venv/local/lib/python2.7/site-
 packages/buildbot/steps/source/git.py", line 204, in incremental
             action = yield self._sourcedirIsUpdatable()
           File "/usr/lib/python2.7/dist-
 packages/twisted/internet/defer.py", line 577, in _runCallbacks
             current.result = callback(current.result, *args, **kw)
           File "/home/buildbot/buildbot/venv/local/lib/python2.7/site-
 packages/buildbot/steps/source/git.py", line 594, in checkWithListdir
             files = cmd.updates['files'][0]
         exceptions.KeyError: 'files'

 }}}


 I had mode='copy'... commenting it out it started to work.  so it might be
 worth may be sophisticating checks even further for such silly oes like me
 overriding logic with custom copy without having a local copy?

--
Ticket URL: <http://trac.buildbot.net/ticket/3112#comment:6>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the bugs mailing list