git-to-git import from gerrit with many changes "fails"

Bug #1642699 reported by Michael Hudson-Doyle on 2016-11-17
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Colin Watson

Bug Description is an import of, which is a gerrit instance with many thousands of changes. The log: ( shows launchpad importing each of these changes as a new branch, and then failing to send them to lp with "2016-11-17 11:37:11 INFO fatal: cannot exec 'send-pack': Argument list too long".

The Go team had similar problems with their syncing-to-github thing (, and afaict ended up hacking something up to push refs in batches ( although comments also suggest that switching to git+ssh rather than git+https would have been enough (which I guess wouldn't be the easiest change ever for you to implement).

It's worth noting that the import of master succeeds, which is what I actually care about for now :)

summary: - git-to-git import from gerrit with many changes fails
+ git-to-git import from gerrit with many changes "fails"
description: updated
Colin Watson (cjwatson) wrote :

I've requested what should hopefully be the necessary set of git cherry-picks:

Changed in launchpad:
assignee: nobody → Colin Watson (cjwatson)
importance: Undecided → High
status: New → In Progress
Colin Watson (cjwatson) wrote :

(It's not clear whether we'll need to use SSH as well. We'll see.)

Colin Watson (cjwatson) wrote :

We've now upgraded all the importds to xenial, so the cherry-picks are no longer relevant. However, it's now failing like this instead:

One thing that could be the cause is that we don't enable progress output on the push, so that if it takes a long time the worker monitor is going to time it out even though it's still making progress. It may be worth fixing that.

I have a feeling there may be something else going on, though, as I can't find a record of the hypothetical long push request in the logs.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.