are there tests that cover the new commit shortlinks? I can't find any new tests
also should have tests for the svn-specific logic (e.g. link notation, refresh_commit_info which has typos on lines 243 & 268)
After locally fixing those typos I got this (while refreshing an svn repo):
Traceback (most recent call last):
File "../scripts/refresh-all-repos.py", line 67, in main
c.app.repo.refresh(options.all, notify=options.notify)
File "/home/dbrondsema/dbrondsema-7024/forge/Allura/allura/model/repository.py", line 306, in refresh
refresh_repo(self, all_commits, notify)
File "/home/dbrondsema/dbrondsema-7024/forge/Allura/allura/model/repo_refresh.py", line 52, in refresh_repo
cache = refresh_commit_trees(ci, cache)
File "/home/dbrondsema/dbrondsema-7024/forge/Allura/allura/model/repo_refresh.py", line 72, in refresh_commit_trees
tree_ids = list(trees(ci.tree_id, cache))))
File "/home/dbrondsema/dbrondsema-7024/forge/Allura/allura/model/repo_refresh.py", line 214, in trees
entries = [ o.id for o in t.tree_ids ]
AttributeError: 'NoneType' object has no attribute 'tree_ids'
And from taskd after committing a new SVN commit:
File "/home/dbrondsema/dbrondsema-7024/forge/Allura/allura/model/monq_model.py", line 219, in __call__
self.result = func(*self.args, **self.kwargs)
File "/home/dbrondsema/dbrondsema-7024/forge/Allura/allura/tasks/repo_tasks.py", line 35, in refresh
c.app.repo.refresh()
File "/home/dbrondsema/dbrondsema-7024/forge/Allura/allura/model/repository.py", line 306, in refresh
refresh_repo(self, all_commits, notify)
File "/home/dbrondsema/dbrondsema-7024/forge/Allura/allura/model/repo_refresh.py", line 66, in refresh_repo
send_notifications(commit_ids)
TypeError: send_notifications() takes exactly 2 arguments (1 given)
Lastly, after that error got this (so not necessarily an error unto its own) when visiting a wiki page that that had commit references in it:
I don't have to be sitting on this - someone else could take it, since dstats is a high priority for me now
After locally fixing those typos I got this (while refreshing an svn repo):
And from taskd after committing a new SVN commit:
Lastly, after that error got this (so not necessarily an error unto its own) when visiting a wiki page that that had commit references in it:
~~~~
[Mon Jul 25 19:15:47 2011] [error] [client 127.0.0.1] File '/home/dbrondsema/dbrondsema-7024/forge/Allura/allura/templates/jinja_master/lib.html', line 2 in template
[Mon Jul 25 19:15:47 2011] [error] [client 127.0.0.1] {% set related_artifacts = artifact.related_artifacts() %}
[Mon Jul 25 19:15:47 2011] [error] [client 127.0.0.1] File '/home/dbrondsema/dbrondsema-7024/forge/Allura/allura/model/artifact.py', line 106 in related_artifacts
[Mon Jul 25 19:15:47 2011] [error] [client 127.0.0.1] ref = ArtifactReference.query.get(_id=ref_id)
... ming lines ...
[Mon Jul 25 19:13:45 2011] [error] [client 127.0.0.1] Invalid: <class 'ming.metadata.document\<artifact_reference="">'>:
[Mon Jul 25 19:13:45 2011] [error] [client 127.0.0.1] artifact_reference:cls:callura.model.repo
[Mon Jul 25 19:13:45 2011] [error] [client 127.0.0.1] Commit
[Mon Jul 25 19:13:45 2011] [error] [client 127.0.0.1] p1
[Mon Jul 25 19:13:45 2011] [error] [client 127.0.0.1] . is not a <class 'bson.binary.binary'="">
~~~</class></class>
Oh, and use rc/2020-rebased. It is rebased and includes a few commits from me
Back at you with tests and several fixes discovered when adding tests
Many ForgeSVN/Hg/Git tests fail with NotImplementedError: $addToSet. I'm on Ming==0.2.2dev-20110720
Version of Ming bumped
If I put any artifact reference (e.g.
[r1]or[2fcfb5e9c477675949426450cbe6240b6488e217]) in a page, that page 500s upon render:and allura.log shows this (not sure if relevant):
Update on rc/2020
I'm getting another error trying the same thing (commit references). Maybe we should have a test that exercises this?
Now with a test, and I was unable to duplicate the error you were getting.
To reproduce:
scm.new_refresh = trueP.S. can the new test assert rather than just print?