SVN refresh fails regularly with this error:
File "/var/local/allura/ForgeSVN/forgesvn/model/svn.py", line 174, in clone_from self._repo.refresh(notify=False) File "/var/local/allura/Allura/allura/model/repository.py", line 317, in refresh refresh_repo(self, all_commits, notify) File "/var/local/allura/Allura/allura/model/repo_refresh.py", line 75, in refresh_repo compute_diffs(repo._id, cache, ci) File "/var/local/allura/Allura/allura/model/repo_refresh.py", line 275, in compute_diffs rhs_tree_ids = TreesDoc.m.get(_id=rhs_ci._id).tree_ids AttributeError: 'NoneType' object has no attribute 'tree_ids'
allura:cj/4560
To reproduce (before this fix):
1) Create or import new SVN repo
2) Confirm that all entries in repo_ci for that repo have null
tree_id
s3) Run refresh while watching /var/log/allura/allura.log and confirm no errors
4) View one or more commits in the tree browser
5) Confirm that one or more entries in repo_ci for that repo have values in their
tree_id
6) Run refresh while watching /var/log/allura/allura.log and confirm NoneType error
To QA:
Check out this branch, restart reactor, then do the above, confirming no errors on the last step.
Clone of repo code-0 in project acorncd from https://acorncd.svn.sourceforge.net/svnroot/acorncd failed.
Clone of repo code in project fighterpilot from https://fighterpilot.svn.sourceforge.net/svnroot/fighterpilot failed.
I didn't get any errors on acorncd.
SB: https://sf-cjohns-7015.sb.sf.net/p/allura/svn/
Import log: https://sourceforge.net/p/allura/pastebin/500816adb9363c540c000042
Refresh log: https://sourceforge.net/p/allura/pastebin/50081780b9363c599a000006