pkg-kde-tools vcs import fails

Asked by Felix Geyer

This branch fails to import:
https://code.launchpad.net/~vcs-imports/pkg-kde-tools/debian

Converting the git branch to bzr locally works fine (using bzr-git)

Traceback (most recent call last):
  File "/srv/importd.launchpad.net/production/launchpad-rev-12915/scripts/code-import-worker.py", line 82, in <module>
    sys.exit(script.main())
  File "/srv/importd.launchpad.net/production/launchpad-rev-12915/scripts/code-import-worker.py", line 77, in main
    return import_worker.run()
  File "/srv/importd.launchpad.net/production/launchpad-rev-12915/lib/lp/codehosting/codeimport/worker.py", line 452, in run
    return self._doImport()
  File "/srv/importd.launchpad.net/production/launchpad-rev-12915/lib/lp/codehosting/codeimport/worker.py", line 590, in _doImport
    overwrite=True, **self.getExtraPullArgs())
  File "/srv/importd.launchpad.net/production/launchpad-rev-12915/bzrplugins/optional/git/branch.py", line 514, in pull
    stop_revision, overwrite=overwrite, graph=graph, limit=limit)
  File "/srv/importd.launchpad.net/production/launchpad-rev-12915/bzrplugins/optional/git/branch.py", line 463, in _update_revisions
    determine_wants, self.source.mapping, limit=limit)
  File "/srv/importd.launchpad.net/production/launchpad-rev-12915/bzrplugins/optional/git/fetch.py", line 571, in fetch_objects
    objects_iter, store, wants_recorder.wants, pb, limit)
  File "/srv/importd.launchpad.net/production/launchpad-rev-12915/bzrplugins/optional/git/fetch.py", line 448, in import_git_objects
    target_git_object_retriever, trees_cache)
  File "/srv/importd.launchpad.net/production/launchpad-rev-12915/bzrplugins/optional/git/fetch.py", line 349, in import_git_commit
    parent_trees = trees_cache.revision_trees(rev.parent_ids)
  File "/srv/importd.launchpad.net/production/launchpad-rev-12915/bzrplugins/optional/git/object_store.py", line 101, in revision_trees
    return list(self.iter_revision_trees(revids))
  File "/srv/importd.launchpad.net/production/launchpad-rev-12915/bzrplugins/optional/git/object_store.py", line 93, in iter_revision_trees
    assert tree.inventory.revision_id == revid
AssertionError
Import failed:
Traceback (most recent call last):
Failure: twisted.internet.error.ProcessTerminated: A process has ended with a probable error condition: process ended with exit code 1.

Question information

Language:
English Edit question
Status:
Answered
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Aaron Bentley (abentley) said :
#1

What version/revno of bzr-git are you using?

With bzr-git r1212, importing from scratch works, but not an incremental import
$ bzr branch lp:~vcs-imports/pkg-kde-tools/debian
$ cd debian/
$ bzr pull lp:~vcs-imports/pkg-kde-tools/debian
bzr: ERROR: An inconsistent delta was supplied involving u'qt-kde-team/2', 'qt-kde-team/2'
reason: New id is already present in target.

Revision history for this message
Felix Geyer (debfx) said :
#2

You're right, importing from scratch works but updating the vcs-imports branch fails with the same error as on launchpad.

So what are our options?
Recreate the branch and hope it doesn't fail again in the future?

Revision history for this message
Aaron Bentley (abentley) said :
#3

Yes, I think recreating the branch is the only option. It's possible that the remote branch was altered, leading to this issue, or it could be a bzr-git problem. Right now, we don't have enough information to know.

Can you help with this problem?

Provide an answer of your own, or ask Felix Geyer for more information if necessary.

To post a message you must log in.