Bug 1384609

Summary: RFE: Download/generate the SRPM only once per build request
Product: [Community] Copr Reporter: John Ellson <john.ellson>
Component: backendAssignee: Miroslav Suchý <msuchy>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: kdudka, praiskup
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-16 12:04:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1420540    

Description John Ellson 2016-10-13 16:22:45 UTC
Description of problem:
Graphviz has a distroagnostic src.rpm for el[67],fc2[3456]
but COPR downloads the same src.rpm 6 times

Version-Release number of selected component (if applicable):


How reproducible:
100%

Steps to Reproduce:
1. copr-cli build graphviz http://john.ellson.com/copr/graphviz-2.39.20161012.1437-1.src.rpm
2.
3.

Actual results:
src.rpm downloaded 6 stimes

Expected results:
src.rpm downloaded 1 time

Additional info:

Comment 1 Pavel Raiskup 2017-01-17 14:53:32 UTC
Stealing the bug report to make it a bit more general.

This becomes extremely important WRT mock-scm/tito builds;  where not only
download happens multiple times, but also docker container (doing mock
--srpmbuildm thus installing minimal buildroot) happens N-times, I guess
in all cases this happens on "dist-git" machine (not on builders) so this
causes huge load.

Comment 2 Pavel Raiskup 2017-01-23 09:41:58 UTC
Looks like to OOM bug 1412658 is related.

Comment 3 Pavel Raiskup 2017-06-16 12:04:04 UTC
Fixed by https://pagure.io/copr/copr/pull-request/70 and deployed to
production.