[Buildbot-devel] dynamically updating the step status text in the waterfall?

Charles Lepple clepple at gmail.com
Fri May 16 15:18:43 UTC 2008


Dustin,

thanks for the explanation.

It looks like I am getting updates on the waterfall now. Do you
foresee any long-term problems with calling
self.step.step_status.setText() from a LogLineObserver callback?

- Charles

On Thu, May 15, 2008 at 8:20 PM, Dustin J. Mitchell <dustin at zmanda.com> wrote:
> The reason behind this is the weird division of process objects from
> status objects.  A BuildStepStatus object's text is what is displayed
> in the waterfall, not the BuildStep.  The function
> LoggingBuildStep.setStatus updates the step's status with
> self.step_status.setText(..).  You could do a similar thing within
> your buildstep.
>
> Dustin
>
> On Thu, May 15, 2008 at 1:29 PM, Charles Lepple <clepple at gmail.com> wrote:
>> Using buildbot 0.7.6, I would like to show the current working
>> directory of a long make buildstep in the waterfall.
>>
>> I have a custom build step that inherits from Compile, and sets up a
>> LogObserver.
>>
>> I am fairly certain that my LogObserver is working properly, since I
>> can see the number of directories increasing in the expectations for
>> the build.
>>
>> However, when I override getText for the build step, and append the
>> current directory to the results of Compile.getText, it only seems to
>> update at the end of the build. (The rest of the time, the status text
>> for that step is just the original step.description.)
>>
>> My code is very similar to what was posted here:
>>
>> http://blogs.igalia.com/itoral/?p=36
>>
>> Any ideas on how to debug this? Potential pitfalls?
>>
>> I have a manhole port enabled, if that helps at all.




More information about the devel mailing list