[Buildbot-devel] Logfile using WithProperties and absolute file name?

Marcus Lindblom macke at yar.nu
Tue Feb 16 16:09:13 UTC 2010


Hi,

I'm trying to track a logfile that's not in a dir relative to the 
build-dir but accessible via a property (it's really an.
(we support having the build-output on a separate partition, hence 
relative to-build-dir isn't possible)

logiles = {'buildlog': dict(
   filename=WithProperties('%(work_dir)s/buildlog.html'), follow=True)
           }

This gave me the following error. Either WithProperties isn't supported, 
or having an absolue path isn't supported.

remoteFailed: [Failure instance: Traceback from remote host -- Traceback 
(most recent call last):
   File "C:\Python25\lib\site-packages\twisted\spread\pb.py", line 851, 
in _recvMessage
     netResult = object.remoteMessageReceived(self, message, netArgs, netKw)
   File "C:\Python25\lib\site-packages\twisted\spread\flavors.py", line 
117, in remoteMessageReceived
     state = method(*args, **kw)
   File 
"C:\Python25\lib\site-packages\buildbot-0.7.10p1-py2.5.egg\buildbot\slave\bot.py", 
line 173, in remote_startCommand
     d = self.command.doStart()
   File 
"C:\Python25\lib\site-packages\buildbot-0.7.10p1-py2.5.egg\buildbot\slave\commands.py", 
line 732, in doStart
     d = defer.maybeDeferred(self.start)
--- <exception caught here> ---
   File "C:\Python25\lib\site-packages\twisted\internet\defer.py", line 
106, in maybeDeferred
     result = f(*args, **kw)
   File 
"C:\Python25\lib\site-packages\buildbot-0.7.10p1-py2.5.egg\buildbot\slave\commands.py", 
line 1209, in start
     usePTY=args.get('usePTY', "slave-config"),
   File 
"C:\Python25\lib\site-packages\buildbot-0.7.10p1-py2.5.egg\buildbot\slave\commands.py", 
line 347, in __init__
     os.path.join(self.workdir, filename))
   File "C:\Python25\Lib\ntpath.py", line 67, in join
     elif isabs(b):
   File "C:\Python25\Lib\ntpath.py", line 53, in isabs
     s = splitdrive(s)[1]
   File "C:\Python25\Lib\ntpath.py", line 119, in splitdrive
     if p[1:2] == ':':
exceptions.TypeError: unhashable type
]

Have anyone tried to do this or should I try something differently?

(I've been thinking of writing a LogObserver that dynamically adds 
log-files based on output. That would work in this case too, as I 
extract the log file's location from the output of a previous step, and 
that output is present in all steps.)

With 0.7.12, btw.

Cheers,
/Marcus





More information about the devel mailing list