[kforge-dev] trac tests - what a mess!

Rufus Pollock rufus.pollock at okfn.org
Thu Oct 11 17:37:31 UTC 2007


John Bywater wrote:
> Hi Rufus,
> 
> I wasted several hours this afternoon with KForge. I'm totally

I'm really sorry to hear that John.

> unimpressed that these tests don't actually work. I blame the crap
> testing regime I've been forced to accept. Any idea what the following

I hope you haven't been 'forced' to accept any testing regime. I think 
we have both agreed that we would like to have more testing ...

> is all about? I'm running Debian stable.

Looking at the below this seems to be an issue in. trac/libsvn and not 
to do with kforge at all. I would note that when I upgraded from old 
debian stable to the new one I encountered problems with libsvn due to 
the fact related to the change from python2.3 to python2.4. It might be 
worth uninstalled (and purging) your python-subversion package and then 
reinstalling ...

> Bored, bored, bored.....

I too have spent hours tracking down more or less subtle bugs so you 
have my complete sympathies.

> John.
> 
> 
> 
> ======================================================================
> ERROR: test_TracProjectEnvironmentCreate
> (kforge.plugin.trac.commandtest.TestTracCommands)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/john/kforged/lib/python/kforge/plugin/trac/commandtest.py",
> line 71, in test_TracProjectEnvironmentCreate
>     self.command.execute()
>   File "/home/john/kforged/lib/python/kforge/plugin/trac/command.py",
> line 96, in execute
>     self.createTracProjectEnvironment()
>   File "/home/john/kforged/lib/python/kforge/plugin/trac/command.py",
> line 148, in createTracProjectEnvironment
>     self.raiseError(msg)
>   File "/home/john/kforged/lib/python/dm/command/base.py", line 46, in
> raiseError
>     raise exceptionClass(message)
> KforgeCommandError: Creation of trac project environment failed(cmd
> was: trac-admin
> /home/john/kforged/var/project_data/annakarenina/trac/24  initenv 24
> sqlite:db/trac.db svn
> /home/john/kforged/var/project_data/annakarenina/svn/23
> /usr/share/trac/templates) (output was: Traceback (most recent call
> last):
>   File "/var/lib/python-support/python2.4/trac/scripts/admin.py", line
> 628, in do_initenv
>     repos = self.__env.get_repository()
>   File "/var/lib/python-support/python2.4/trac/env.py", line 195, in
> get_repository
>     return RepositoryManager(self).get_repository(authname)
>   File "/var/lib/python-support/python2.4/trac/versioncontrol/api.py",
> line 101, in get_repository
>     repos = self._connector.get_repository(rtype, rdir, authname)
>   File "/var/lib/python-support/python2.4/trac/versioncontrol/svn_fs.py",
> line 260, in get_repository
>     crepos = CachedRepository(self.env.get_db_cnx(), repos, None, self.log)
>   File "/var/lib/python-support/python2.4/trac/versioncontrol/cache.py",
> line 39, in __init__
>     self.sync()
>   File "/var/lib/python-support/python2.4/trac/versioncontrol/cache.py",
> line 143, in sync
>     cset = self.repos.get_changeset(next_youngest)
>   File "/var/lib/python-support/python2.4/trac/versioncontrol/svn_fs.py",
> line 346, in get_changeset
>     self.fs_ptr, self.pool)
>   File "/var/lib/python-support/python2.4/trac/versioncontrol/svn_fs.py",
> line 638, in __init__
>     message = self._get_prop(core.SVN_PROP_REVISION_LOG)
>   File "/var/lib/python-support/python2.4/trac/versioncontrol/svn_fs.py",
> line 729, in _get_prop
>     return fs.revision_prop(self.fs_ptr, self.rev, name, self.pool())
>   File "/var/lib/python-support/python2.4/libsvn/fs.py", line 570, in
> svn_fs_revision_prop
>     return apply(_fs.svn_fs_revision_prop, args)
> SubversionException: ('No such revision 1', 160006)




More information about the kforge-dev mailing list