Fixes T240
Details
- Reviewers
kparal tflink - Maniphest Tasks
- T240: Implement "fuse" scheduler for Taskotron
- Commits
- rTRGR2c8ff34b3516: Add fuse scheduler
Tests included.
Diff Detail
- Repository
- rTRGR taskotron-trigger
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Overall, looks pretty good to me. I wanted to test it locally first but there aren't really many updates changing right now.
I assume that you've run this locally some, how long did you let it run?
I'm wondering if we want unit tests to cover the fuse scheduler case but I'm also not sure how much work it would be to stub out the live bits of fedmsg. Looking at their unite test suite may help, there.
jobtriggers/bodhi_msg.py | ||
---|---|---|
5 | If we're directly importing it, I'd add it to the specfile's requires. Not strictly required but does help show which packages we're directly depending on |
jobtriggers/bodhi_msg.py | ||
---|---|---|
60–63 | Can you add some logging statements here to indicate that a fused task has been "scheduled"? |
We talked about this over IRC but I'd like to see some test coverage for the fuse scheduling - stubbing out the twisted/fedmsg components is fine but make sure that the proper items are queued and dequeued.
jobtriggers/bodhi_msg.py | ||
---|---|---|
60–63 | Minor nit, but could you change that to "setting fuse (%d seconds) for koji_tag %s', (config.fuse_delay, koji_tag)" |
Add comment that fuse_delay is in seconds.