Bug 1357562

Summary: RFE: provide copr-builder package to be installed on builders
Product: [Community] Copr Reporter: Pavel Raiskup <praiskup>
Component: backendAssignee: Miroslav Suchý <msuchy>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: clime, jkadlcik, mvadkert
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: 1334701 Environment:
Last Closed: 2017-11-02 11:40:44 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: 1441588    
Bug Blocks: 1334701    

Description Pavel Raiskup 2016-07-18 13:56:15 UTC
It would be super nice if copr builders were less bound by copr backend, by
that I mean we should have a way to say (on builder):

  $ copr-build --copr USER/ID --DISTGIT-HASH .... [--copr-instance=fedora]

This command would be called by backend (through ssh/ansible over ssh) 
-> and thus there would be no need to play with constructing the ugly
'mockbuild' command on backend.  The backend code would be much simpler and
easy to maintain.

Some reasons to do so:
* there are people which would like to have project-dedicated builders (see the
bug 1334701), this should allow them easily to provide buidler 'IP' (there is
only need to have installed copr-builder, one config because builder needs to
know where backend/fronend/dist-git reside, and installed copr-builder package).

* lower the work done by dist-git --> we should be able to generate SRPMs on
builder so other machines should be less overloaded.

* build would be more reproducible, it would be very easy to run that
'copr-build' command on local box

* easier implementation of live logs (i would like to propose the idea very
soon)

* I'll provide more reasons probably :) I know there were some

I would very appreciate not closing this bug as WONTFIX or NOTABUG if we
don't have enough manpower to do this -- unless there are really good reasons
to not work on this.  Otherwise, I'm probably able to help here and hack on
making this done.

+++ This bug was initially created as a clone of Bug #1334701 +++

Comment 1 Jakub Kadlčík 2016-07-18 15:02:47 UTC
* easier implementation of live logs (i would like to propose the idea very
soon)

AFAIK there already is RFE for this: 1148757

Comment 2 Pavel Raiskup 2016-07-18 15:16:34 UTC
I'm aware of that RFE, I have some ideas how that could be implemented..  and
I do plan to have a look at it some day if nobody is faster than me.

Comment 3 Pavel Raiskup 2017-03-20 11:23:43 UTC
PoC is living here: https://pagure.io/copr/copr/pull-request/50

Comment 4 clime 2017-11-02 11:40:44 UTC
So, this has been implemented already for quite some time. First with copr-builder package, then with copr-rpmbuild.