[Buildbot-devel] talking to a ShellCommand spawn

Daniel Eggert deggert at apple.com
Fri Dec 19 01:24:49 UTC 2008


On Dec 18, 2008, at 1:33 PM, Ian Zimmerman wrote:

> Ian Zimmerman wrote:
>> Daniel Eggert wrote:
>>> 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.
>>> 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.
>> That's indeed very close to what i am looking for.  Many thanks!
>> i
>
> Then again, this is all master-side, while only the slave is in a  
> position to do the cleanup.  Sigh.

You'd have to run a second build step that does the clean up. Store  
the state using your LogObserver subclass, then create a BuildStep  
subclass that reads this state and does the cleanup. I forget how, but  
you can store state the is local to the build itself.

/Daniel





More information about the devel mailing list