← Back to team overview

maria-developers team mailing list archive

BuildBot Status Checker

 

I realized my buildbots went offline earlier today but wasn't notified
when they did.  I've worked to rectify that situation by writing a
small PHP script.  The lastest commit is at
http://git.thefuturegrid.org/?p=mariadb-scripts;a=commit;h=3d26dd7d842e2e5a7360f775bbe71283a3443bfc
.  It currently does the following:

$ php checkStatus.php -h
Welcome to the MariaDB BuildBot Checker:

   usage:
          php checkStatus.php ${URL} ${BUILDBOT} (show a bots info)
          php checkStatus.php ${URL} 1 (show all bots)

   note:
          A local file can be used in place of a URL.


You can check individual buildbot info:

$ php checkStatus.php http://askmonty.org/buildbot/buildslaves
adutko-centos5-amd64
adutko-centos5-amd64:
--------------
Used by Builders: centos5-amd64-minimal
Slave is currently connected
Admin: Kristian Nielsen
Last heard from: about 34 minutes ago (2010-Jan-12 05:22:32)

or get a list of all buildbots:

$ php checkStatus.php http://askmonty.org/buildbot/buildslaves 1
All buildbots ...
FOUND BOT NAME --> adutko-centos5-amd64
FOUND BOT NAME --> adutko-ultrasparc3
FOUND BOT NAME --> archivist-amd64
FOUND BOT NAME --> archivist-cnc
FOUND BOT NAME --> bo-win-1
FOUND BOT NAME --> centos5
FOUND BOT NAME --> hakan-mac-g5
FOUND BOT NAME --> knielsen-kvm-x86
FOUND BOT NAME --> mariadb-brs
FOUND BOT NAME --> opensolaris-x86
FOUND BOT NAME --> pcrews-win
FOUND BOT NAME --> psergey-foxhole-x86
FOUND BOT NAME --> psergey-pslp2-x86
FOUND BOT NAME --> psergey-pylon-amd64
FOUND BOT NAME --> psergey-pylon-x86
FOUND BOT NAME --> psergey-win32box
FOUND BOT NAME --> sanja-gentoo-x86_64
FOUND BOT NAME --> sanja-mac-x86
FOUND BOT NAME --> toby-sol10
FOUND BOT NAME --> toby-sol10-sparc
FOUND BOT NAME --> valgrind
FOUND BOT NAME --> vm-win-1
FOUND BOT NAME --> work-opensuse-amd64


You can also use a static file of the page you want to crawl as
opposed to an online URL:

$ php checkStatus.php file://buildslaves.htm adutko-centos5-amd64
adutko-centos5-amd64:
--------------
Used by Builders: centos5-amd64-minimal
Slave is currently connected
Admin: Kristian Nielsen
Last heard from: 0 seconds ago (2010-Jan-12 03:27:32)

I am going to try to add an e-mail notification piece so I can be
notified when a buildbot goes offline so "ideally" one could minimize
downtime.

I hope someone else finds this useful.

-Adam



Follow ups