Bug 1377780 - Multiple failed tasks with: Importing SRPM into Dist Git failed.
Summary: Multiple failed tasks with: Importing SRPM into Dist Git failed.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Copr
Classification: Community
Component: backend
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: clime
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-20 15:10 UTC by Severin Gehwolf
Modified: 2016-09-21 13:00 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-21 13:00:53 UTC


Attachments (Terms of Use)

Description Severin Gehwolf 2016-09-20 15:10:10 UTC
Description of problem:
I've seen a couple of dist-git imports fail today. Example builds are:
https://copr.fedorainfracloud.org/coprs/jerboaa/rh-thermostat16/build/455388/
https://copr.fedorainfracloud.org/coprs/jerboaa/thermostat-latest/build/455452/

Actual results:

2. Task: 455388-master, importing the package: https://copr.fedorainfracloud.org/tmp/tmpghpxDy/thermostat-1.6.6-1.fedora.src.rpm
downloading package https://copr.fedorainfracloud.org/tmp/tmpghpxDy/thermostat-1.6.6-1.fedora.src.rpm
Verifying packagage, getting  name and version.
make sure repos exist: jerboaa/rh-thermostat16/thermostat
importing srpm into the dist-git
repo_dir: /tmp/tmpYA1lhG/thermostat
clone the pkg repository into tmp directory
Checking out a specific branch ssh://copr-dist-git@localhost/jerboaa/rh-thermostat16/thermostat
Running git clone -b master ssh://copr-dist-git@localhost/jerboaa/rh-thermostat16/thermostat --origin origin and logging output

import the source rpm into git and save filenames of sources
Creating repo object from /tmp/tmpYA1lhG/thermostat
Running: rpm -qp --nosignature --qf %{NAME} /tmp/tmp5rThmZ/package.src.rpm
Running: rpm -qpl /tmp/tmp5rThmZ/package.src.rpm
save the source files into lookaside cache
Exception raised during srpm import:
Traceback (most recent call last):
  File "/usr/share/copr/dist_git/dist_git_importer.py", line 529, in do_import
    task.git_hash = self.git_import_srpm(task, fetched_srpm_path)
  File "/usr/share/copr/dist_git/dist_git_importer.py", line 454, in git_import_srpm
    return do_git_srpm_import(self.opts, filepath, task, tmp)
  File "/usr/share/copr/dist_git/srpm_import.py", line 118, in do_git_srpm_import
    raise PackageImportException("Failed to import the source rpm: {}".format(src_filepath))
PackageImportException: Failed to import the source rpm: /tmp/tmp5rThmZ/package.src.rpm
Sending back: 
{"task_id": "455388-master", "error": "srpm_import_failed"}


Expected results:
Import works.

Comment 2 clime 2016-09-21 03:49:01 UTC
Fixed by https://github.com/fedora-copr/copr/commit/b8c767cf. Thanks for the report!

Comment 3 clime 2016-09-21 13:00:53 UTC
New COPR version has been deployed (to be released).


Note You need to log in before you can comment on or make changes to this bug.