spacepaste

  1.  
  2. When using a AbstractLatentBuildSlave with build_wait_timeout >0, I have this tracback when the slave is disconnected when the build_wait_timer fired:
  3. Traceback (most recent call last):
  4. File "/home/xavierd/Projects/myGitHub/buildbot-work/sandbox/local/lib/python2.7/site-packages/twisted/spread/pb.py", line 1341, in maybeLogout
  5. fn()
  6. File "/home/xavierd/Projects/myGitHub/buildbot-work/src/master/buildbot/pbmanager.py", line 177, in <lambda>
  7. return (pb.IPerspective, persp, lambda: persp.detached(mind))
  8. File "/home/xavierd/Projects/myGitHub/buildbot-work/src/master/buildbot/buildslave/protocols/pb.py", line 104, in detached
  9. self.notifyDisconnected()
  10. File "/home/xavierd/Projects/myGitHub/buildbot-work/src/master/buildbot/buildslave/protocols/base.py", line 43, in notifyDisconnected
  11. self._disconnectSubs.deliver()
  12. --- <exception caught here> ---
  13. File "/home/xavierd/Projects/myGitHub/buildbot-work/src/master/buildbot/util/subscription.py", line 37, in deliver
  14. sub.callback(*args, **kwargs)
  15. exceptions.TypeError: _disconnected() takes exactly 1 argument (0 given)
  16. sub.callback is:
  17. # notifyOnDisconnect runs the callback with one argument, the
  18. # RemoteReference being disconnected.
  19. def _disconnected(rref):
  20. eventually(d.callback, None)
  21. my fix is:
  22. def _disconnected():
  23. eventually(d.callback, None)
  24.