Having to host source rpms somewhere outside of copr is an annoyance, in fact annoying enough for me to not use it yet. The ability to upload srpms to build, both from cli as well as the web interface would be a big improvement.
This is on my wishlist as well. However this will require to have bigger storage. And having this implemented in fronted. Especially the storage will need some time. My ETA is at least 6 months.
(In reply to Miroslav Suchý from comment #1) > However this will require to have bigger storage. Hm, I don't understand how this would need any more storage than what is currently required. Retrieving a source rpm from a URL or uploading it takes the same (probably temporary) space. And source rpms resulting from builds seem to be hosted in repositories already, and uploading/downloading-from-URL shouldn't make a difference there anyway. Did I miss something?
Current design is that: frontend does not touch neither src.rpm nor binary rpm at all. And neither backend touch src.rpm. The URL is passed directly to builder. Which download it itself. Builder is VM which is terminated right after build. Rebuilded binary rpm and src.rpm (which is different from original src.rpm) are exctracted by backend right before terminating that VM. Hmm, but you are right we can upload src.rpm to fronted only temporary and remove it after the build finish (no matter with what result). That should work.
Thanks for the explanation and in advance for taking time to look into this.
*** Bug 1141881 has been marked as a duplicate of this bug. ***
Note that anyone with an FAS account can use their webspace on fedorapeople.org for srpm uploads. Say: scp ${rpm} ${user}.fedoropeople.org:public_html/copr/ Then point copr (cli or web) to ${user}.fedorapeople.org:copr/${rpm} All with the same FAS account. bug 1118968 would help with specifying a default location.
(In reply to Michael J Gruber from comment #6) > Note that anyone with an FAS account can use their webspace on > fedorapeople.org for srpm uploads. Say: > > scp ${rpm} ${user}.fedoropeople.org:public_html/copr/ > > Then point copr (cli or web) to ${user}.fedorapeople.org:copr/${rpm} Sure. And then "ssh ${user}.fedorapeople.org rm public_html/copr/${rpm}". The point of this bug report is that at least for me and I guess for many others, these extra steps are a complete waste of time. Bug 1118968 doesn't help that at all.
Frontend modified in: 852775f CLI modified in: ccd1680, adf07fe --- Usage will be: copr-cli build user/project /tmp/tito/foo.src.rpm agreed Miroslav?
This fix is deployed in production on copr.fedoraproject.org
Sweet, will try it out soon!
(In reply to Miroslav Suchý from comment #9) > This fix is deployed in production on copr.fedoraproject.org Which copr-cli version supports this? Is this web UI only?
(In reply to Severin Gehwolf from comment #11) > Which copr-cli version supports this? Is this web UI only? python-copr-1.58-1 -- should be in testing soon. I just submitted it there today.