Git recipe fails; log output unhelpful

Bug #1621297 reported by Robert Bruce Park
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
git-build-recipe
New
Undecided
Unassigned

Bug Description

I'm trying out git recipes for the first time and I'm seeing this:

https://launchpadlibrarian.net/283235311/buildlog.txt.gz

Building recipe:
# git-build-recipe format 0.4 deb-version 2:{time}
lp:~untrusted-ci-dev-bot/emacs master
merge packaging lp:~ubuntu-elisp/emacs snapshot-packaging

RUN ['git-build-recipe', '--safe', '--no-build', '--manifest', '/home/buildd/build-RECIPEBRANCHBUILD-1216057/chroot-autobuild/home/buildd/work/tree/manifest', '--distribution', 'yakkety', '--allow-fallback-to-native', '--append-version', '~ubuntu16.10.1', '/home/buildd/build-RECIPEBRANCHBUILD-1216057/chroot-autobuild/home/buildd/work/recipe', '/home/buildd/build-RECIPEBRANCHBUILD-1216057/chroot-autobuild/home/buildd/work/tree']
Traceback (most recent call last):
  File "/usr/bin/git-build-recipe", line 9, in <module>
    load_entry_point('git-build-recipe==0.1', 'console_scripts', 'git-build-recipe')()
  File "/usr/lib/python3/dist-packages/gitbuildrecipe/main.py", line 110, in main
    build_tree(base_branch, working_directory)
  File "/usr/lib/python3/dist-packages/gitbuildrecipe/recipe.py", line 464, in build_tree
    _build_inner_tree(base_branch, target_path)
  File "/usr/lib/python3/dist-packages/gitbuildrecipe/recipe.py", line 388, in _build_inner_tree
    instruction.apply(target_path)
  File "/usr/lib/python3/dist-packages/gitbuildrecipe/recipe.py", line 520, in apply
    merge_branch(self.recipe_branch, target_path)
  File "/usr/lib/python3/dist-packages/gitbuildrecipe/recipe.py", line 343, in merge_branch
    fetch_branches(child_branch)
  File "/usr/lib/python3/dist-packages/gitbuildrecipe/recipe.py", line 332, in fetch_branches
    "refs/heads/*:refs/remotes/%s/*" % child_branch.remote_name)
  File "/usr/lib/python3/dist-packages/gitbuildrecipe/recipe.py", line 637, in git_call
    **kwargs)
  File "/usr/lib/python3.4/subprocess.py", line 620, in check_output
    raise CalledProcessError(retcode, process.args, output=output)
subprocess.CalledProcessError: Command '['git', '-C', '/home/buildd/build-RECIPEBRANCHBUILD-1216057/chroot-autobuild/home/buildd/work/tree/recipe', 'fetch', 'lp:~ubuntu-elisp/emacs', 'HEAD:refs/remotes/source-packaging/HEAD', 'refs/heads/*:refs/remotes/source-packaging/*']' returned non-zero exit status 128

So git fetch is failing there, but why? would be nice if git's stderr could be shared in the log here. Also the traceback is meaningless, perhaps that could be caught and displayed a bit nicer?

It works fine for me locally:

$ git fetch lp:~ubuntu-elisp/emacs HEAD:refs/remotes/source-packaging/HEAD 'refs/heads/*:refs/remotes/source-packaging/*'
From git+ssh://git.launchpad.net/~ubuntu-elisp/emacs
 * [new ref] -> source-packaging/HEAD
 * [new branch] snapshot-packaging -> source-packaging/snapshot-packaging

Thanks.

Colin Watson (cjwatson)
affects: launchpad → git-build-recipe
Revision history for this message
Pavel (spvkgn) wrote :

Me too.

Building recipe:
# git-build-recipe format 0.4 deb-version {debupstream}-0~{revtime}
lp:~spvkgn/+git/fzf master
nest-part packaging lp:~spvkgn/+git/fzf-pkg debian/sid debian

git fails with error

subprocess.CalledProcessError: Command '['git', '-C', '/home/buildd/build-RECIPEBRANCHBUILD-1421620/chroot-autobuild/home/buildd/work/tree/recipe', 'fetch', 'lp:~spvkgn/+git/fzf-pkg', 'HEAD:refs/remotes/source-packaging/HEAD', 'refs/heads/*:refs/remotes/source-packaging/*']' returned non-zero exit status 128

Please see full build log
https://launchpad.net/~spvkgn/+archive/ubuntu/test/+recipebuild/1421620/+files/buildlog.txt.gz

I didn't work with recipes before. Would like to know is it a bug and is there a way to solve this? Thanks.

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

Other bug subscribers

Remote bug watches

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