Some repos are fine, but many error with a trace like this. I don't remember what repo this was from (allura?) so may need to get another example to figure out what's wrong exactly.
Module allura.controllers.repository:181 in commit_browser_data << def commit_browser_data(self): head_ids = [ head.object_id for head in c.app.repo.heads ] commit_ids = list(M.repo.commitlog(head_ids)) log.info('Grab %d commit objects by ID', len(commit_ids)) commits_by_id = dict( >> commit_ids = list(M.repo.commitlog(head_ids)) Module allura.model.repo:402 in _gen_ids << # parents to the 'ready set' new_parent = None for oid in ci_parents[ci]: children = ci_children[oid] children.discard(ci) >> for oid in ci_parents[ci]: KeyError: u'fe0c660f87d355d39886d3d013868a6d83a65643'
forge:tv/3759 (branched off of tv/3059)
You can repro the problem on dev by doing the following:
After the 3rd push, the commit browser will break, and you'll see the KeyError in the log.
On tv/3759, the commit browser will work as expected using the same steps. You can also try doing some branching and merging and make sure the commit browser works as expected (I did).
In prod, we now have CommitRunDoc mongo docs that are missing commit_times. To fix this we'll need to run:
You can do this on your sandbox to fix the repo from steps 1-3 above, and then verify the commit browser is working.
After making several hg commits on dev, i switched and reindexed. I got a new error. This also appeared when trying to browse the history.
If you want to look at the specific commits, it is on 7024. Repo at /hg/p/xyz/code-1/
Also if we could get a test that'd be nice.
To ssh://engr.geek.net/forge
+ a7bc048...98f7792 tv/3759 -> tv/3759 (forced update)
Fixed Hg problem and added tests for CommitRunBuilder for Git and Hg. Rick fixed the SVN last_commit problem and added a test for that.
This particular issue is fixed. Will merge with [#3059] though
Related
Tickets:
#3059