Bug 1782983

Summary: koji download-build should support resumption to avoid repeated downloads
Product: [Fedora] Fedora Reporter: Frank Ch. Eigler <fche>
Component: kojiAssignee: Mike McLean <mikem>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 30CC: dennis, jkeating, kevin, mikem, puiterwijk
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: 2020-04-22 22:45:05 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:
Attachments:
Description Flags
proposed patch for http range none

Description Frank Ch. Eigler 2019-12-12 18:39:56 UTC
Created attachment 1644537 [details]
proposed patch for http range

koji 1.19.1 in f30 

% koji download-build --latestfrom f32 kernel
works, but then
% koji download-build --latestfrom f32 kernel
downloads all the same files all over again

The attached patch uses the HTTP Range request header to avoid repeated downloading of existing complete or partially-completed files.  This makes repeated downloads almost instant.

Comment 1 Kevin Fenzi 2019-12-15 01:43:39 UTC
Would you be willing to file this upstream?

https://pagure.io/koji/

Comment 2 Kevin Fenzi 2020-04-22 22:45:05 UTC
Landed in 1.21.0. :) 

https://pagure.io/koji/pull-request/2080

Comment 3 Frank Ch. Eigler 2020-04-22 23:04:10 UTC
awesome, thanks!