RFC 0196 - Trigger hooks from Github Service#196
Conversation
5ccb5fb to
c241428
Compare
|
Thank you @ahal, that's a solid proposal. As I understand we don't limit the number of hooks we could trigger here, same way as we didn't limit number of tasks created. But I guess this might not be the desired flow |
|
So we need to filter on more than just the Github event type and action. Off the top of my head, we also filter on branch name and repo URL, but there are probably others. Currently we use the JSON-e in the From the docs:
This gives us more control over where tasks can run. I'm not opposed to TC Github also providing a way to do some basic filtering, I just don't think it would benefit our specific use case much. Unless it's trivial to do, I'd suggest leaving it out of this RFC to keep things simple. We can always implement later if needed. |
c241428 to
33c2060
Compare
|
Added a blurb to the "Edge Cases" section about what to do if the |
Though thinking about it.. without any GH service side filtering, we would have a lot of I dunno, I could be persuaded either way. |
Right, this might a good reason to not trigger a hook knowing it would be competing with valid tasks in the dedicated worker pools. I quickly checked logs Gives me ~9k for the last 2 weeks (most of which are web-platform-tests ~5k of those) So maybe in the grand scheme that is not too many tasks |
petemoore
left a comment
There was a problem hiding this comment.
Looks great, just some nits, thanks Andrew!
ded1d30 to
7befba0
Compare
Co-authored-by: Pete Moore <pmoore@mozilla.com>
|
As far as filtering goes, I propose we leave it out of the initial RFC. I don't think it's necessary for fxci's use case and we can always add it as a feature later on if it turns out I'm wrong or someone else requests it. |
Rendered