Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Opened 8 years ago

Closed 8 years ago

Last modified 7 years ago

#453 closed task (fixed)

Migrate SVN hooks

Reported by: lferran Owned by: lferran
Priority: major Milestone: IT: Server Migration
Component: IT Version:
Keywords: Cc:
Referenced By: References:

Description

When migrating the SVN service, all hooks must be migrated too! Subtasks:

  1. Identify which hooks are there for each repository: scripts, compilations, emails…
  1. Can they be migrated to the new server?
  1. Test them in the new server.
  1. Migrate them.

Change History (5)

comment:1 Changed 8 years ago by landauf

This is related to #439

Last edited 7 years ago by landauf (previous) (diff)

comment:2 Changed 8 years ago by lferran

/var/svn/game

The game repository only has a post-commit hook.

REPOS="$1"
REV="$2"

# Send email to the mailing list
#/var/svn/scripts/commit-email.pl "$REPOS" "$REV" orxonox-commit@mail.datacore.ch
/var/svn/scripts/commit-email.pl "$REPOS" "$REV" orxonox-commit@orxonox.net

##log-commit.py --repository "$REPOS" --revision "$REV"

# Do a backup of the repositories
/var/svn/scripts/svnbackup --rep orxonox dump all


# Why svn up here? 
cd /var/www/www.orxonox.net/trunk; sudo -u orxonox /usr/bin/svn up

## now update doxygen if this was a trunk-commit
if [[ `echo $REPOS | grep trunk` ]]; then
        sudo /etc/cron.daily/doxygen_orx
fi;
Version 0, edited 8 years ago by lferran (next)

comment:3 Changed 8 years ago by lferran

We decided that:

  • Only the email-commit should be migrated

wrt the rest of hooks:

  • Doxygen updates are not needed anymore: they are done through Jenkins
  • Svn updates are not needed anymore: Jenkins
  • Special svn backups are not needed anymore: we accept 24hour loss (since there's a full backup every night), + emails can be seen as a distributed backup.

comment:4 Changed 8 years ago by lferran

Migrate commit-email script

This is an example of post-commit script. Instead of lferran@…, the corresponding mailing list address should be put.

REPOS="$1"
REV="$2"
TXN_NAME="$3"

REPONAME=`echo ${REPOS:15}`

/usr/share/subversion/hook-scripts/commit-email.pl "$REPOS" "$REV" lferran@orxonox.net -s "$REPONAME \
revision" --from admin@orxonox.net

Tutorial Followed

Last edited 7 years ago by landauf (previous) (diff)

comment:5 Changed 8 years ago by lferran

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.