Bug 1130233

Summary: koji: Immediate scratch build purging
Product: [Fedora] Fedora Reporter: Mikolaj Izdebski <mizdebsk>
Component: kojiAssignee: Mike McLean <mikem>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dennis, kdreyer, kevin, mikem
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-25 18:27:37 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:

Description Mikolaj Izdebski 2014-08-14 15:10:59 UTC
(Moved from trac because appearently it's not very active.
See: https://fedorahosted.org/koji/ticket/284 )

Please implement boolean option for build XML-RPC call which when set together with scratch flag would cause scratch build results (except logs) to be immediately removed (instead moving to scratch location) after build upon completion.

Justification: Results of a single scratch build may take space in order of hundreds of megabytes and they add up quickly. One of the most important uses of scratch builds is simply checking whether package builds or not. Build results (RPMs) are not needed and only waste storage. If this feature is implemented then submitter of scratch build will be able to tell Koji that build results are not important and should be removed immediately to conserve storage.

This feature has to be explicitly enabled by build requester thus it's completely backwards-compatible.

I can provide patch if you think that this feature should be implemented.

Comment 1 Parag Nemade 2014-08-14 16:52:16 UTC
+1. I too have same kind of thinking. While doing package reviews/updates I sometimes need to just do scratch build for rawhide and after checking the results I no longer need the logs.

Comment 2 Fedora Admin XMLRPC Client 2016-03-10 14:44:24 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 3 Kevin Fenzi 2020-04-25 18:27:37 UTC
This is a enhancement type of request and we prefer all such requests are handled upstream as we have no resources to do new development, nor do we want to diverge from upstream if possible. 

Would you be willing to refile this upstream at https://pagure.io/koji/issues ? 

If there's some reason you would prefer not to, I can do so, but note that you might have more interest in convincing koji developers to work on your request than I might. 

Thanks!