[Buildbot-devel] build cannot be saved: saveYourself fails in attribute lookup?

john gale john at smadness.com
Tue Sep 16 23:54:20 UTC 2008

I'm running a suite of unit tests on MacOS with a slightly older  
version of buildbot (0.7.6?)

We made lots of changes recently, and one of them seems to have  
produced a rather hidden error (you can only view this from the  
twistd.log, it doesn't appear on the waterfall).

I think this error may be interfering with the mail handler...  we  
turned it off for a while, but uncommenting and re-config'ing with our  
MailNotifiers loaded doesn't send any mail.

Anyway, this suggests to me that I may have misconfigured blahTest  
around somewhere, but I can't figure out where.  Any ideas?

2008/09/16 16:32 -0700 [-]  <Build blah>: build finished
2008/09/16 16:32 -0700 [-] unable to save build blah-#0
2008/09/16 16:32 -0700 [-] Unhandled Error
         Traceback (most recent call last):
           File "/Library/Python/2.5/site-packages/twisted/internet/ 
defer.py", line 239, in callback
           File "/Library/Python/2.5/site-packages/twisted/internet/ 
defer.py", line 304, in _startRunCallbacks
           File "/Library/Python/2.5/site-packages/twisted/internet/ 
defer.py", line 317, in _runCallbacks
             self.result = callback(self.result, *args, **kw)
           File "/Library/Python/2.5/site-packages/buildbot/status/ 
builder.py", line 1634, in _buildFinished
         --- <exception caught here> ---
           File "/Library/Python/2.5/site-packages/buildbot/status/ 
builder.py", line 1252, in saveYourself
             dump(self, open(tmpfilename, "wb"), -1)
         cPickle.PicklingError: Can't pickle __builtin__.blahTest:  
attribute lookup __builtin__.blahTest failed

master control:

class blahTest(ShellCommand):
    def start(self):
       self.description = ["checkout blah tests"]

and this fn is called from various parts, eventually adding it as a  
buildStep (with a few conditions).

It's probably something that we did...  but are there any ideas as to  
what's wrong?  Such as, I'm not sure what pickling is.


	~ john

support the arts!

updated October 12, 2005

More information about the devel mailing list