[Buildbot-devel] longer waterfall

Brian Warner warner-buildbot at lothar.com
Mon Aug 7 15:53:40 UTC 2006


> > can i configure there lenght of the waterfall display somewhere?
> > since a lot happens on our buildbot system, the displayed building 
> > period has gotten rather short with the standard value.

Take a look at buildbot/status/html.py, around line 1252 (in the
WaterfallStatusResource.buildGrid method). There are a pair of variable
settings:

        tooOld = util.now() - 12*60*60 # never show more than 12 hours
        maxPageLen = 200

Just increase those numbers. The 12*60*60 is a number of seconds before the
present. The maxPageLen is a count of timestamps (equivalent to the number of
boxes in the left-most column). The display is generated starting with the
latest event and working backwards, and it stops once you've gone past either
of these limits.

Another option is to increase spanLength, which is the number of seconds that
are covered by any given timestamp box. This might help if you have a lot of
events happening fairly quickly, at the expense of coarser-resolution
timestamps, of course.

I'll see if I can get in a patch that makes these configurable through a
query argument.. that would let you up the numbers just by changing the URL.
Another feature I'd like to add is the ability to scroll backwards (i.e. have
the top of the display be at some time other than the present), but that's
more complicated to put in.

cheers,
 -Brian




More information about the devel mailing list