koschei
koschei copied to clipboard
Try build from dist-git when package is FTBFS
When shebang mangling was introduced into Fedora, rubygem-bundler started to fail [[1], [2]] and I fixed the bug in dist-git. However, this won't fix nothing serious in Bundler so I would prefer not to build the package, since it is just unnecessary churn for our users. OTOH, I'd love this bug to be resolved and reflected in Koschei.
Is there any chance, that Koschei would detect the additional commit in dist-git and started to build the dist-git version?
[1] https://apps.fedoraproject.org/koschei/package/rubygem-bundler?collection=f28 [2] https://koji.fedoraproject.org/koji/taskinfo?taskID=24611545
In short: No, I don't think this is doable right now, but maybe @msimacek will have some ideas.
There is no way to reliably detect from which git commit particular build was done (I don't count parsing build logs as a reliable way that Koschei could depend on). Technically it would be possible to switch all builds to SCM, but that would cause much more resources to be consumed - in many cases twice as much as building from existing SRPM.
Moreover, IMHO FTBFS is a serious bug. Users should be able to rebuild SRPM on their own. But unless you include the fix in a build, users won't receive it through normal channels.
See also https://github.com/msimacek/koschei/issues/276