[26] in athena10

home help back first fref pref prev next nref lref last post

Repository syncing notes

daemon@ATHENA.MIT.EDU (Greg Hudson)
Wed Jan 2 15:08:53 2008

Date: Wed, 2 Jan 2008 15:08:33 -0500
Message-Id: <200801022008.m02K8XSW024197@equal-rites.mit.edu>
From: Greg Hudson <ghudson@MIT.EDU>
To: athena10@MIT.EDU

(Just for posterity.)

We have an AFS mirror of our svn.mit.edu repository in
/afs/dev.mit.edu/source/svn-repos for anonymous access.  I initially
tried setting up this mirror using the approach used by the krb5
locker, and I put together /mit/svn/examples/sync-to.pl for that
purpose.

Unfortunately, that approach won't work for a repository in the dev
cell.  The post-commit hook runs with a mostly empty environment, so
it can't find the krb5 credentials cache created by sshd.  sshd
already acquired tokens for the athena cell, but we can't fetch tokens
for other cells in the post-commit hook.

For the moment, I'm running a cron job
(/afs/dev.mit.edu/wash/sync-athena.sh) every half hour.  I'd like
mirror updates to be instantaneous, but triggering the update on
equal-rites from the post-commit script seems like too many moving
parts.


home help back first fref pref prev next nref lref last post