[SAC] Buildbot accommodations

All,

Mateusz and I added support for post-commit hooks for the GDAL subversion repository to push its changes to GDAL's buildbot. This means that as changes are made, new builds are generated. The following items on osgeo1 were added:

- Twisted Python to support the svn_buildbot.py hookscript
- svn_buildbot.py was added to /var/www/svn/hookscripts
- A new outbound firewall rule, /etc/sysconfig/iptables-custom/BUILDBOT to allow outbound connections on 1500
- svn_buildbot.py was added as a post-commit hook to GDAL's repository in /var/www/svn/repos/gdal/hooks

The setup allows other buildbots for other repositories to be fired if they wish with the commit-hook by modifying their post-commit hook scripts and adding another outbound connection line to the BUILDBOT firewall rule. If you notice any problems, or commits cannot complete for some reason, disable the hook script by commenting out the svn_buildbot.py script call in GDAL's post-commit hook.

Thanks for the hard work Mateusz!

Howard

Howard Butler wrote:

All,

Mateusz and I added support for post-commit hooks for the GDAL
subversion repository to push its changes to GDAL's buildbot. This
means that as changes are made, new builds are generated. The following
items on osgeo1 were added:

- Twisted Python to support the svn_buildbot.py hookscript
- svn_buildbot.py was added to /var/www/svn/hookscripts
- A new outbound firewall rule, /etc/sysconfig/iptables-custom/BUILDBOT
to allow outbound connections on 1500
- svn_buildbot.py was added as a post-commit hook to GDAL's repository
in /var/www/svn/repos/gdal/hooks

Today,

Tim Sutton added similar configuration to QGIS buildbot.
We had to deal with similar problem about "Can't open format file: No
such file or directory" thrown by svnlook and here is the post-commit
hook entry that solves this issue (used for QGIS):

# Buildbot automatic build after commit

/usr/bin/python /opt/svn/repository/qgis/hooks/svn_buildbot.py \
  --repository "$REPOS" --revision "$REV" \
  --bbserver buildbot.osgeo.org --bbport XXXZ

XXXZ is port number of Buildbot slave, where Z is Buildbot instance
number (0 - gdal, 1 - fdo, 2 - proj.4, 3 - mapguide, 4 - mapserver, 5 -
qgis, etc.)

Cheers
--
Mateusz Loskot
http://mateusz.loskot.net