src:git fails to import due to `pristine-tar` failure

Bug #1699887 reported by Nish Aravamudan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
git-ubuntu
Fix Released
Undecided
Unassigned
pristine-tar (Debian)
New
Unknown
pristine-tar (Ubuntu)
New
Undecided
Unassigned

Bug Description

git ubuntu import git
06/22/2017 16:42:23 - INFO:Ubuntu Server Team importer v1.0-rc5
06/22/2017 16:42:23 - INFO:Using git repository at /tmp/tmp5a339xcj
06/22/2017 16:43:36 - INFO:Importing patches-unapplied 1:2.13.1+next.20170621-1 to debian/experimental
06/22/2017 16:44:02 - INFO:Importing patches-unapplied 1:2.13.1-1 to debian/sid
06/22/2017 16:45:15 - ERROR:Command exited 1: gbp import-orig --no-merge --upstream-branch do-not-push --pristine-tar --no-interactive --no-symlink-orig '--upstream-tag=importer/upstream/debian/%(version)s.xz' /tmp/tmp5a339xcj/.git/git-ubuntu-cache/git_2.13.1.orig.tar.xz
06/22/2017 16:45:15 - ERROR:stdout: gbp:info: Importing '/tmp/tmp5a339xcj/.git/git-ubuntu-cache/git_2.13.1.orig.tar.xz' to branch 'do-not-push'...
  gbp:info: Source package is git
  gbp:info: Upstream version is 2.13.1
06/22/2017 16:45:15 - ERROR:stderr: gbp:error: Couldn't commit to 'pristine-tar' with upstream 'do-not-push': pristine-xz failed to reproduce build of /tmp/tmp5a339xcj/.git/git-ubuntu-cache/git_2.13.1.orig.tar.xz
  (Please file a bug report.)
  pristine-tar: command failed: pristine-xz --no-verbose --no-debug --no-keep gendelta /tmp/tmp5a339xcj/.git/git-ubuntu-cache/git_2.13.1.orig.tar.xz /tmp/pristine-tar.eX2bMvJfKU/wrapper
  pristine-tar: failed to generate delta
  gbp:error: Import of /tmp/tmp5a339xcj/.git/git-ubuntu-cache/git_2.13.1.orig.tar.xz failed: Couldn't commit to 'pristine-tar' with upstream 'do-not-push': pristine-xz failed to reproduce build of /tmp/tmp5a339xcj/.git/git-ubuntu-cache/git_2.13.1.orig.tar.xz
  (Please file a bug report.)
  pristine-tar: command failed: pristine-xz --no-verbose --no-debug --no-keep gendelta /tmp/tmp5a339xcj/.git/git-ubuntu-cache/git_2.13.1.orig.tar.xz /tmp/pristine-tar.eX2bMvJfKU/wrapper
  pristine-tar: failed to generate delta
Traceback (most recent call last):
  File "/snap/git-ubuntu/61/gitubuntu/importer.py", line 414, in import_orig
    run(cmd, env=self.local_repo.env)
  File "/snap/git-ubuntu/61/gitubuntu/run.py", line 67, in run
    raise e
  File "/snap/git-ubuntu/61/gitubuntu/run.py", line 52, in run
    stdout=stdout, stderr=stderr, stdin=stdin)
  File "/snap/git-ubuntu/61/usr/lib/python3.5/subprocess.py", line 708, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['gbp', 'import-orig', '--no-merge', '--upstream-branch', 'do-not-push', '--pristine-tar', '--no-interactive', '--no-symlink-orig', '--upstream-tag=importer/upstream/debian/%(version)s.xz', '/tmp/tmp5a339xcj/.git/git-ubuntu-cache/git_2.13.1.orig.tar.xz']' returned non-zero exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/snap/git-ubuntu/61/gitubuntu/importer.py", line 770, in import_unapplied_spi
    spi.distribution.name.lower())
  File "/snap/git-ubuntu/61/gitubuntu/importer.py", line 417, in import_orig
    '%s' % dsc.orig_tarball_path)
gitubuntu.importer.GitUbuntuImportOrigException: Unable to import tarball: /tmp/tmp5a339xcj/.git/git-ubuntu-cache/git_2.13.1.orig.tar.xz

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/snap/git-ubuntu/61/gitubuntu/importer.py", line 1106, in import_publishes
    import_func(srcpkg_information)
  File "/snap/git-ubuntu/61/gitubuntu/importer.py", line 773, in import_unapplied_spi
    spi.version, e)
TypeError: not enough arguments for format string

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/snap/git-ubuntu/61/bin/git-ubuntu", line 18, in <module>
    main()
  File "/snap/git-ubuntu/61/gitubuntu/__main__.py", line 203, in main
    args.func(args)
  File "/snap/git-ubuntu/61/gitubuntu/importer.py", line 1252, in main
    ubuntu_head_versions=ubuntu_head_versions)
  File "/snap/git-ubuntu/61/gitubuntu/importer.py", line 1122, in import_publishes
    raise GitUbuntuImportException(msg)
gitubuntu.importer.GitUbuntuImportException: Unable to import patches-unapplied 1:2.13.1-1 to debian

Changed in git-buildpackage (Debian):
status: Unknown → New
Nish Aravamudan (nacc)
affects: git-buildpackage (Debian) → pristine-tar (Debian)
Nish Aravamudan (nacc)
summary: - src:git fails to import due to `gbp import-orig` failure
+ src:git fails to import due to `pristine-tar` failure
Robie Basak (racb)
tags: added: import-edge-case
Nish Aravamudan (nacc)
Changed in usd-importer:
status: New → Confirmed
milestone: none → 1.0
Revision history for this message
Nish Aravamudan (nacc) wrote :
Download full text (3.3 KiB)

Also seen with btrfs-progs:

08/07/2017 11:32:46 - DEBUG:Executing: gbp import-orig --no-merge --verbose --upstream-branch do-not-push --pristine-tar --no-interactive --no-symlink-orig '--upstream-tag=importer/upstream/ubuntu/%(version)s.xz' /tmp/tmpirn2c01m/.git/git-ubuntu-cache/btrfs-progs_4.12.orig.tar.xz
gbp:debug: ['git', 'rev-parse', '--show-cdup']
gbp:debug: ['git', 'rev-parse', '--is-bare-repository']
gbp:debug: ['git', 'rev-parse', '--git-dir']
gbp:debug: ['git', 'for-each-ref', '--format=%(refname:short)', 'refs/heads/']
gbp:debug: ['git', 'show-ref', 'refs/heads/do-not-push']
gbp:debug: ['git', 'status', '--porcelain']
gbp:debug: ['git', 'rev-parse', '--quiet', '--verify', 'master:debian/changelog']
gbp:debug: ['git', 'tag', '-l', 'importer/upstream/ubuntu/4.12.xz']
gbp:debug: tar ['-C', '../tmpYwYgC4', '-a', '-xf', '/tmp/tmpirn2c01m/.git/git-ubuntu-cache/btrfs-progs_4.12.orig.tar.xz'] []
gbp:debug: Unpacked '/tmp/tmpirn2c01m/.git/git-ubuntu-cache/btrfs-progs_4.12.orig.tar.xz' to '../tmpYwYgC4/btrfs-progs-v4.12'
gbp:info: Importing '/tmp/tmpirn2c01m/.git/git-ubuntu-cache/btrfs-progs_4.12.orig.tar.xz' to branch 'do-not-push'...
gbp:info: Source package is btrfs-progs
gbp:info: Upstream version is 4.12
gbp:debug: ['git', 'show-ref', 'refs/heads/do-not-push']
gbp:debug: ['git', 'rev-parse', '--quiet', '--verify', 'do-not-push']
gbp:debug: ['git', 'add', '-f', '.']
gbp:debug: ['git', 'write-tree']
gbp:debug: ['git', 'rev-parse', '--quiet', '--verify', 'do-not-push']
gbp:debug: ['git', 'commit-tree', 'ac65382da52adf93c3d699e05d457b48ccc9497a', '-p', '4e99aaf631ba2d755276eebdeae1812d1b108dc9']
gbp:debug: ['git', 'update-ref', '-m', 'gbp: New upstream version 4.12', 'refs/heads/do-not-push', '40abdd4c7d6ea40631f7888c07d27bdda5697ef0', '4e99aaf631ba2d755276eebdeae1812d1b108dc9']
gbp:debug: ['git', 'show-ref', 'refs/heads/pristine-tar']
gbp:debug: ['git', 'rev-parse', '--quiet', '--verify', 'pristine-tar']
gbp:debug: ['git', 'ls-tree', '-z', 'do-not-push', '--']
gbp:debug: ['git', 'mktree', '-z']
gbp:debug: /usr/bin/pristine-tar [] ['commit', '/tmp/tmpirn2c01m/.git/git-ubuntu-cache/btrfs-progs_4.12.orig.tar.xz', 'ac65382da52adf93c3d699e05d457b48ccc9497a']
gbp:error: Import of /tmp/tmpirn2c01m/.git/git-ubuntu-cache/btrfs-progs_4.12.orig.tar.xz failed: Couldn't commit to 'pristine-tar' with upstream 'ac65382da52adf93c3d699e05d457b48ccc9497a': pristine-xz failed to reproduce build of /tmp/tmpirn2c01m/.git/git-ubuntu-cache/btrfs-progs_4.12.orig.tar.xz
(Please file a bug report.)
pristine-tar: command failed: pristine-xz --no-verbose --no-debug --no-keep gendelta /tmp/tmpirn2c01m/.git/git-ubuntu-cache/btrfs-progs_4.12.orig.tar.xz /tmp/pristine-tar.5dIvJGzDkH/wrapper
pristine-tar: failed to generate delta
gbp:error: Error detected, Will roll back changes.
gbp:info: Rolling back branch do-not-push by resetting it to 4e99aaf631ba2d755276eebdeae1812d1b108dc9
gbp:debug: ['git', 'update-ref', '-m', 'gbp import-orig: failure rollback of do-not-push', 'refs/heads/do-not-push', '4e99aaf631ba2d755276eebdeae1812d1b108dc9']
gbp:info: Rolling back branch pristine-tar by resetting it to 0eec71ef109cbfdaa7269280da0b5378f140035a
gbp:debug: ['git', 'update-ref',...

Read more...

Revision history for this message
Nish Aravamudan (nacc) wrote :

And util-linux:

gbp:debug: ['git', 'rev-parse', '--show-cdup']
gbp:debug: ['git', 'rev-parse', '--is-bare-repository']
gbp:debug: ['git', 'rev-parse', '--git-dir']
gbp:debug: ['git', 'for-each-ref', '--format=%(refname:short)', 'refs/heads/']
gbp:debug: ['git', 'show-ref', 'refs/heads/do-not-push']
gbp:debug: ['git', 'status', '--porcelain']
gbp:debug: ['git', 'rev-parse', '--quiet', '--verify', 'master:debian/changelog']
gbp:debug: ['git', 'tag', '-l', 'importer/upstream/ubuntu/2.30.1.xz']
gbp:debug: tar ['-C', '../tmpWJpBj4', '-a', '-xf', '/tmp/tmp4oauh28r/.git/git-ubuntu-cache/util-linux_2.30.1.orig.tar.xz'] []
gbp:debug: Unpacked '/tmp/tmp4oauh28r/.git/git-ubuntu-cache/util-linux_2.30.1.orig.tar.xz' to '../tmpWJpBj4/util-linux-2.30.1'
gbp:info: Importing '/tmp/tmp4oauh28r/.git/git-ubuntu-cache/util-linux_2.30.1.orig.tar.xz' to branch 'do-not-push'...
gbp:info: Source package is util-linux
gbp:info: Upstream version is 2.30.1
gbp:debug: ['git', 'show-ref', 'refs/heads/do-not-push']
gbp:debug: ['git', 'rev-parse', '--quiet', '--verify', 'do-not-push']
gbp:debug: ['git', 'add', '-f', '.']
gbp:debug: ['git', 'write-tree']
gbp:debug: ['git', 'rev-parse', '--quiet', '--verify', 'do-not-push']
gbp:debug: ['git', 'commit-tree', '86e26620149b211d9cfbd9c03871cc6b363a3d67', '-p', '5294f8dee2287d49265d7ab5aa5ae124ad31962f']
gbp:debug: ['git', 'update-ref', '-m', 'gbp: New upstream version 2.30.1', 'refs/heads/do-not-push', '4d492cde0ceeb187059929ec275f6c9a335742b5', '5294f8dee2287d49265d7ab5aa5ae124ad31962f']
gbp:debug: ['git', 'show-ref', 'refs/heads/pristine-tar']
gbp:debug: ['git', 'rev-parse', '--quiet', '--verify', 'pristine-tar']
gbp:debug: ['git', 'ls-tree', '-z', 'do-not-push', '--']
gbp:debug: ['git', 'mktree', '-z']
gbp:debug: /usr/bin/pristine-tar [] ['commit', '/tmp/tmp4oauh28r/.git/git-ubuntu-cache/util-linux_2.30.1.orig.tar.xz', '86e26620149b211d9cfbd9c03871cc6b363a3d67']
gbp:error: Import of /tmp/tmp4oauh28r/.git/git-ubuntu-cache/util-linux_2.30.1.orig.tar.xz failed: Couldn't commit to 'pristine-tar' with upstream '86e26620149b211d9cfbd9c03871cc6b363a3d67': pristine-xz failed to reproduce build of /tmp/tmp4oauh28r/.git/git-ubuntu-cache/util-linux_2.30.1.orig.tar.xz
(Please file a bug report.)
pristine-tar: command failed: pristine-xz --no-verbose --no-debug --no-keep gendelta /tmp/tmp4oauh28r/.git/git-ubuntu-cache/util-linux_2.30.1.orig.tar.xz /tmp/pristine-tar.S5r9xK9qtR/wrapper
pristine-tar: failed to generate delta
gbp:error: Error detected, Will roll back changes.
gbp:info: Rolling back branch do-not-push by resetting it to 5294f8dee2287d49265d7ab5aa5ae124ad31962f
gbp:debug: ['git', 'update-ref', '-m', 'gbp import-orig: failure rollback of do-not-push', 'refs/heads/do-not-push', '5294f8dee2287d49265d7ab5aa5ae124ad31962f']
gbp:info: Rolling back branch pristine-tar by resetting it to 43938eee4ad7cfaf91c1d59aa4ec9b5bf9590279
gbp:debug: ['git', 'update-ref', '-m', 'gbp import-orig: failure rollback of pristine-tar', 'refs/heads/pristine-tar', '43938eee4ad7cfaf91c1d59aa4ec9b5bf9590279']
gbp:error: Rolled back changes after import error.
gbp:debug: rm ['-rf', '../tmpWJpBj4'] []

Revision history for this message
Nish Aravamudan (nacc) wrote : Re: [Bug 1699887] Re: src:git fails to import due to `pristine-tar` failure
Download full text (5.0 KiB)

And perl:

09/07/2017 23:04:55 - INFO:Importing patches-unapplied 5.16.0-1 to
debian/experimental
09/07/2017 23:06:27 - ERROR:Command exited 1: gbp import-orig
--no-merge --upstream-branch do-not-push --pristine-tar
--no-interactive --no-symlink-orig
'--upstream-tag=importer/upstream/debian/%(version)s.bz2'
/tmp/tmpjxa3xdz_/.git/git-ubuntu-cache/perl_5.16.0.orig.tar.bz2
09/07/2017 23:06:27 - ERROR:stdout: gbp:info: Importing
'/tmp/tmpjxa3xdz_/.git/git-ubuntu-cache/perl_5.16.0.orig.tar.bz2' to
branch 'do-not-push'...
  gbp:info: Source package is perl
  gbp:info: Upstream version is 5.16.0
  gbp:info: Rolling back branch do-not-push by resetting it to
175d7589b54d8c0732cd5682a0fb9acb616cfa1e
  gbp:info: Rolling back branch pristine-tar by resetting it to
8442e7f38d36473f4a0ac2b642cb0a58a98cb5e4
09/07/2017 23:06:27 - ERROR:stderr: gbp:error: Import of
/tmp/tmpjxa3xdz_/.git/git-ubuntu-cache/perl_5.16.0.orig.tar.bz2
failed: Couldn't commit to 'pristine-tar' with upstream
'0c9799299a9a8bccec0c3eca804618a99e5adcb7': pristine-bz2 failed to
reproduce build of
/tmp/tmpjxa3xdz_/.git/git-ubuntu-cache/perl_5.16.0.orig.tar.bz2
  (Please file a bug report.)
  pristine-tar: command failed: pristine-bz2 --no-verbose --no-debug
--no-keep gendelta
/tmp/tmpjxa3xdz_/.git/git-ubuntu-cache/perl_5.16.0.orig.tar.bz2
/tmp/pristine-tar.zIp5kBWl9R/wrapper
  pristine-tar: failed to generate delta
  gbp:error: Error detected, Will roll back changes.
  gbp:error: Rolled back changes after import error.

On Mon, Aug 7, 2017 at 12:10 PM, Nish Aravamudan
<email address hidden> wrote:
> And util-linux:
>
> gbp:debug: ['git', 'rev-parse', '--show-cdup']
> gbp:debug: ['git', 'rev-parse', '--is-bare-repository']
> gbp:debug: ['git', 'rev-parse', '--git-dir']
> gbp:debug: ['git', 'for-each-ref', '--format=%(refname:short)', 'refs/heads/']
> gbp:debug: ['git', 'show-ref', 'refs/heads/do-not-push']
> gbp:debug: ['git', 'status', '--porcelain']
> gbp:debug: ['git', 'rev-parse', '--quiet', '--verify', 'master:debian/changelog']
> gbp:debug: ['git', 'tag', '-l', 'importer/upstream/ubuntu/2.30.1.xz']
> gbp:debug: tar ['-C', '../tmpWJpBj4', '-a', '-xf', '/tmp/tmp4oauh28r/.git/git-ubuntu-cache/util-linux_2.30.1.orig.tar.xz'] []
> gbp:debug: Unpacked '/tmp/tmp4oauh28r/.git/git-ubuntu-cache/util-linux_2.30.1.orig.tar.xz' to '../tmpWJpBj4/util-linux-2.30.1'
> gbp:info: Importing '/tmp/tmp4oauh28r/.git/git-ubuntu-cache/util-linux_2.30.1.orig.tar.xz' to branch 'do-not-push'...
> gbp:info: Source package is util-linux
> gbp:info: Upstream version is 2.30.1
> gbp:debug: ['git', 'show-ref', 'refs/heads/do-not-push']
> gbp:debug: ['git', 'rev-parse', '--quiet', '--verify', 'do-not-push']
> gbp:debug: ['git', 'add', '-f', '.']
> gbp:debug: ['git', 'write-tree']
> gbp:debug: ['git', 'rev-parse', '--quiet', '--verify', 'do-not-push']
> gbp:debug: ['git', 'commit-tree', '86e26620149b211d9cfbd9c03871cc6b363a3d67', '-p', '5294f8dee2287d49265d7ab5aa5ae124ad31962f']
> gbp:debug: ['git', 'update-ref', '-m', 'gbp: New upstream version 2.30.1', 'refs/heads/do-not-push', '4d492cde0ceeb187059929ec275f6c9a335742b5', '5294f8dee2287d49265d7ab5aa5ae124ad31962f']
> gbp:debug: ['git', 'show-ref', 'refs/hea...

Read more...

Nish Aravamudan (nacc)
Changed in usd-importer:
status: Confirmed → Fix Released
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.