git to bzr importer fails after new github Verified changes

Asked by Cody Garver

github added a gpgsig feature for "verified" commits, which the git to bzr importer doesn,t know how to handle

log:

2017-10-30 22:27:16 INFO Starting job.
2017-10-30 22:27:16 INFO Getting exising bzr branch from central store.
2017-10-30 22:27:17 INFO [chan bzr SocketAsChannelAdapter] Opened sftp connection (server version 3)
2017-10-30 22:27:17 INFO 35 bytes transferred
2017-10-30 22:27:20 INFO [chan bzr SocketAsChannelAdapter] Opened sftp connection (server version 3)
2017-10-30 22:27:21 INFO Importing branch.
2017-10-30 22:27:24 INFO Counting objects: 4, done. 0
2017-10-30 22:27:24 INFO finding revisions to fetch:generating index 0/4
2017-10-30 22:27:24 INFO finding revisions to fetch:generating index 0/4
2017-10-30 22:27:24 INFO
Traceback (most recent call last):
  File "/srv/importd.launchpad.net/production/launchpad-rev-18493/scripts/code-import-worker.py", line 106, in <module>
    sys.exit(script.main())
  File "/srv/importd.launchpad.net/production/launchpad-rev-18493/scripts/code-import-worker.py", line 101, in main
    return import_worker.run()
  File "/srv/importd.launchpad.net/production/launchpad-rev-18493/lib/lp/codehosting/codeimport/worker.py", line 617, in run
    return self._doImport()
  File "/srv/importd.launchpad.net/production/launchpad-rev-18493/lib/lp/codehosting/codeimport/worker.py", line 820, in _doImport
    inter_branch.fetch(limit=revision_limit)
  File "/srv/importd.launchpad.net/production/launchpad-rev-18493/bzrplugins/git/branch.py", line 722, in fetch
    self.fetch_objects(stop_revision, fetch_tags=fetch_tags, limit=limit)
  File "/srv/importd.launchpad.net/production/launchpad-rev-18493/bzrplugins/git/branch.py", line 745, in fetch_objects
    determine_wants, self.source.mapping, limit=limit)
  File "/srv/importd.launchpad.net/production/launchpad-rev-18493/bzrplugins/git/fetch.py", line 718, in fetch_objects
    limit)
  File "/srv/importd.launchpad.net/production/launchpad-rev-18493/bzrplugins/git/fetch.py", line 484, in import_git_objects
    mapping.revision_id_foreign_to_bzr)
  File "/srv/importd.launchpad.net/production/launchpad-rev-18493/bzrplugins/git/mapping.py", line 334, in import_commit
    raise UnknownCommitExtra(commit, [item[0] for item in commit.extra])
bzrlib.plugins.git.errors.UnknownCommitExtra: Unknown extra fields in <Commit 62d426b4077cdeacdcf83c47cc117c7fe53efd0d>: ['gpgsig'].
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
Colin Watson (cjwatson) said :
#1

Yes, I'm afraid there's not much we can do about this unless bzr gains a round-trippable representation of these commits (see the linked bug). In the meantime, we recommend using Launchpad's git-to-git import facility instead if you can.

Can you help with this problem?

Provide an answer of your own, or ask Cody Garver for more information if necessary.

To post a message you must log in.