Add support for bodhi update messages to trigger
ClosedPublic

Authored by mkrizek on Mar 20 2014, 2:36 PM.

Details

Summary

This also refactors the code for easier unit test writing. This is rather incremental refactor change. Fixes T92 T105

Test Plan

Tests included

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped

Overall, it looks like a good start. One question, though: Do we really want to be combining fedmsg.d config with trigger config. I have no doubt it would work, mostly wondering if it's wise.

We'll need to augment the functionality here at some point so that triggering i386 and x86_64 jobs are possible from the same build/update but that can wait for another ticket.

BTW, what branch were you working from? I tried applying the patch and the parent commit here doesn't seem to exist in libtaskotron.

jobtriggers/bodhi_msg.py
39

This works for the moment, but we'll eventually need to trigger jobs for all relevant arches

pytest.ini
5

If the intention is to add functional tests, you'll need to grab the conftest.py from one of libtaskotron, blockerbugs etc.

Overall, it looks like a good start. One question, though: Do we really want to be combining fedmsg.d config with trigger config. I have no doubt it would work, mostly wondering if it's wise.

Yeah, I was inspired by https://github.com/fedora-infra/fedmsg/blob/develop/fedmsg.d/tweet.py, they seem to combine it as well. But it might be different in our case. We can always reconsider when needed though.

We'll need to augment the functionality here at some point so that triggering i386 and x86_64 jobs are possible from the same build/update but that can wait for another ticket.

Agreed, let's leave that for another ticket.

BTW, what branch were you working from? I tried applying the patch and the parent commit here doesn't seem to exist in libtaskotron.

The patch is based on the master branch of taskotron-trigger. arc patch won't work as it thinks it's based on libtaskotron, I guess?

tflink accepted this revision.Mar 21 2014, 3:12 PM

The patch is based on the master branch of taskotron-trigger. arc patch won't work as it thinks it's based on libtaskotron, I guess?

Derp.

Now that I'm not trying to apply the patch against the wrong repo, looks good.

mkrizek closed this revision.Mar 24 2014, 9:05 AM

Closed by commit rTRGRa661e1048222 (authored by @mkrizek).