On Mon, Oct 31, 2016 at 08:30:28AM +0100, Michal Novotny wrote:
On Thu, Oct 27, 2016 at 7:56 PM, Pierre-Yves Chibon pingou@pingoured.fr wrote:
Pagure supports web-hook as well as fedmsg for notifying of an action. There is also of course the possibility to add COPR as some sort of CI service like we have for jenkins but that would be a little more work on pagure itself. Let me know if I can help with something!Thank you. I have already implemented some basic fedmsg listener that launches builds on pagure.git.receive message. It works but it would be nice to extend the message with the information about modified paths in the repository so that only the corresponding sub-package(s) are rebuilt (in COPR repo, there are 10 subpackages at least, which is quite a lot of building when only one of them has been actually updated). I will gladly send a PR for this unless there happens to be some better way.
We used to send more info but had to trim it down due to some massive commits that were basically breaking datagrepper (OutOfMemory), but if there is an use-case I'm fine with expending the amount of information sent. Worst case, do the computation client-side, listen to fedmsg, get the start and stop commits and see which files were touched in between.
Pierre