Steve Fink:
# Which brings me to my question: is there some way of getting 
# machine-readable output from tinderbox? I'd really like to 
# alias my cvs commit to something that automatically monitors 
# the tinderbox for the next hour and a half so it screams at 
# me when I increase the current breakage level. But parsing 
# the HTML looks like it would be difficult and fragile. 
# Perhaps tinderbox already has something that I just don't 
# know about? A simple event listing, in text or XML or 
# whatever, would be perfect.

There are a couple ways to do it.

The first is available with either the showbuilds.cgi or bdshowbuild.cgi
scripts (both do the same thing, but bdshowbuild shows them more
prettily): just add quickparse=1 to the end of the URL.  This'll give
you something like:

        State|parrot|parrot|open
        Build|parrot|DavidLloyd Solaris8 32-Bit|success
        Build|parrot|DavidLloyd Solaris8 32-Bit (64-Bit Ints)|success
        Build|parrot|DavidLloyd Solaris8 64-Bit|success
        ...
        Build|parrot|brentdax-win2k-cygwin gcc-2.95.3-5|busted
        Build|parrot|galactic (Debian x86), gcc 2.94.4|success
        Build|parrot|galactic-tcc (Debian x86, tcc 4.0
(TenDRA-4.1.2))|busted

Also, the bdshowbuild.cgi script allows you to look at its data
structure--just add dump=1 to its URL and you can get an evalable
string.  You'll have to explore the data structure yourself, however, to
understand how to use it.

Quickparse:
        
http://tinderbox.perl.org/tinderbox/showbuilds.cgi?tree=parrot&quickpars
e=1
        
http://tinderbox.perl.org/tinderbox/bdshowbuild.cgi?tree=parrot&quickpar
se=1
Dump:
        
http://tinderbox.perl.org/tinderbox/bdshowbuild.cgi?tree=parrot&dump=1

--Brent Dax <[EMAIL PROTECTED]>
@roles=map {"Parrot $_"} qw(embedding regexen Configure)

blink:  Text blinks (alternates between visible and invisible).
Conforming user agents are not required to support this value.
    --The W3C CSS-2 Specification

Reply via email to