Opened 15 years ago

Closed 15 years ago

#347 closed task (fixed)

PostGIS SVN post-commit hooks

Reported by: pramsey Owned by: sac@…
Priority: normal Milestone:
Component: SysAdmin Keywords: svn
Cc: Mateusz Łoskot, kneufeld


The old repository has the following hooks that need to be added:


/home/svn/bin/ -s "svn -" -h "$REPOS" "$REV"
/home/svn/bin/ "$REPOS" "$REV" "postgis" &

if svnlook dirs-changed /home/svn/repositories/postgis | grep trunk >/dev/null 2>&1; then
	/usr/bin/wget -O - -q -b
if svnlook dirs-changed /home/svn/repositories/postgis | grep branches >/dev/null 2>&1; then
        /usr/bin/wget -O - -q -b

Change History (7)

comment:1 by Mateusz Łoskot, 15 years ago


I'm not sure but perhaps it's helpful to admins to show content of /home/svn/bin/ file.

comment:2 by pramsey, 15 years ago

Here's the relevant parts (it's a standard script)

    project = "postgis"

    pathRegex = r"""
      ^(                                       # Start at beginning of path
        ( (?P<module>[^/]+) /trunk ) |
        ( (?P<bmodule>[^/]+) /(branches|tags)/ (?P<branch>[^/]+) )
       )/?                                     # Slurp up trailing slash

comment:3 by hobu, 15 years ago

generic CIA hook added and email hook added

/var/www/svn/hookscripts/ "$REPOS" "$REV" --from svn_postgis@osgeo.o
rg &
/var/www/svn/hookscripts/ "$REPOS" "$REV" "postgis" &

I have not implemented the wget that tickles the builder on, as I do not know if this is still to be used.

The postgis-commits email list needs to be created to complete this task.

comment:4 by Mateusz Łoskot, 15 years ago

Cc: Mateusz Łoskot added
Keywords: svn added

comment:5 by tmitchell, 15 years ago

Component: GeneralSAC
Owner: changed from tmitchell to sac@…

Assigning to SAC

comment:6 by pramsey, 15 years ago

Cc: kneufeld added

Kevin Neufeld writes:

Now that we are fully moved over to the osgeo SVN and I've had a chance to rebuild our autobuild environment, I need a couple of SVN hooks installed.

When the svn was hosted here, I installed a couple of post-commit hooks that automatically triggered several test builds/regression tests/pdf generatation/etc... after every commit.

I can I please get someone to install something similiar on the new repo?

i.e., something like this in post-commit:
if svnlook dirs-changed /home/svn/repositories/postgis | grep trunk >/dev/null 2>&1; then
       /usr/bin/wget -O - -q -b
if svnlook dirs-changed /home/svn/repositories/postgis | grep branches >/dev/null 2>&1; then
       /usr/bin/wget -O - -q -b
if svnlook dirs-changed /home/svn/repositories/postgis | grep branches >/dev/null 2>&1; then
       /usr/bin/wget -O - -q -b

(this will trigger independent builds for the PostGIS branch and trunk as well as the WKTRaster project).

At the moment, the reference buildfarm is polling the branch and trunk directories for changes ... I'd think it'd be better to move this to a push operation.

comment:7 by kneufeld, 15 years ago

Resolution: fixed
Status: newclosed

We have working hooks for the postgis branch, trunk, and raster directories that trigger autobuilds for each, currently located here:

The buildbot tests the triggered build, generates docbook html and pdf docs, and performs regression testing against 8.2, 8.3, and 8.4 (though there is still some regression testing for wktraster that could be done). At least now the website docs and tarball snapshots are up to date.

It's agreed this buildbot is not the best solution since the box is not available to all developers. If anyone wants to setup other bots that test in other environments, please feel free.

-- Kevin

Note: See TracTickets for help on using tickets.