juhp / fbrnch

Tool to update fedora packages branches
https://hackage.haskell.org/package/fbrnch
GNU General Public License v2.0
23 stars 3 forks source link

Don't background `parallel` for a single package #17

Closed QuLogic closed 3 years ago

QuLogic commented 3 years ago

With the mass rebuild going on, I've been wondering why my builds are taking forever to even start, and I just realized it's because I used fbrnch parallel -F and it passes --background. This might make sense for a huge rebuild, but I'm just running like 2 or 3 builds.

juhp commented 3 years ago

Ah that's a fair point - maybe there should be some threshold for this (actually Fedora Koji seems to have quite a lot of capacity). Maybe --background should/could even be optional hmm. (Certainly not helpful during a Mass Rebuild... hehe;-)

(The only problem I have with a higher threshold is that it is rather arbitrary - it makes the behavior surprising to users. Also it's not really the total number of packages but should be the number of concurrent builds.)

juhp commented 3 years ago

(I totally agree doing it for a single package is a no-brainer.)

We can easily start from there, though I can see someone in 6 months time from now complain why their 2-3 packages didn't start building with parallel...

juhp commented 3 years ago

Also btw (only related but) the next release should have a build --no-prompt option if that helps.

juhp commented 3 years ago

I think I will go with the following:

I think these should give reasonable behavior in most use-cases. An override option could also be added.