[Buildbot-devel] talking to a ShellCommand spawn

Daniel Eggert deggert at apple.com
Wed Dec 17 16:38:13 UTC 2008


On Dec 16, 2008, at 11:08 AM, Ian Zimmerman wrote:

> I need to get some information from the program being run in a
> ShellCommand, while it is in progress.  Simplifying slightly from the
> full horrifying truth, the information is needed for my modified
> slave.commands.ShellCommand.kill() which cleans up after the program.
>
> Until now I store the information in the file system, but that is ugly
> and fragile.  I am looking for a more direct way, communicating with  
> the
> slave bot as the information becomes available.  I can modify the
> program as necessary to print messages on stderr, to a socket, or
> anything, but i don't want to rewrite buildbot from scratch :-P
>
> Thanks for any hints,
> i

You might want to look into section 6.1.9.3 "Adding LogObserver" in  
the buildbot manual.

A LogObserver can parse a step's output as it is produced.

/Daniel





More information about the devel mailing list