[Buildbot-devel] Properties for build steps
neil.hemingway at googlemail.com
Wed Jan 23 22:00:47 UTC 2008
I've started extending buildbot to be able to parse the output of a perl
module test and capture some statistics (count of tests passed, skipped,
failed, and total count of tests) which are to be made available to status
classes as properties. My goal is to have the Waterfall be able to display
the number of tests failed for failing steps without you having to look at
the stdio log.
I've since realised that setting a property within a step sets the property
on the *build*'s status, not on the *step*'s status, so a subsequent step
setting the property overwrites the first.
What I would like to be able to do is have steps have their own persisted
status object and then they can choose whether to set a property for the
entire build, or simply for themselves.
I don't see a problem creating setStepProperty, getStepProperty etc. for the
step and its status object, but it'll be a little confusing to then have
setStepProperty and setProperty. It would seem better to rename setProperty
as setBuildProperty, but I suspect that would break existing code.
As I don't know the buildbot way regarding breaking existing code, I thought
I'd better ask.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the devel