-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a transform to easily create summary
tasks
#71
Comments
I think one problem is that we don't have a "trigger this task when all the dependencies are in a resolved state, whether that's This is why I was wondering if going outside of the graph, to something listening in pulse, might be better, though we don't necessarily want to wait for a 24h deadline to be notified when something is hung or in a failure state mid-graph either. Not sure. But this could definitely be useful for telling us when all the dependent tasks are completed, definitely. |
We do, see the
Yeah, those edge cases would need some special consideration. Maybe the
I agree, I think this would be better. Though I think we could implement this issue in a day or two of work, whereas outside of Taskgraph feels like weeks to quarters. |
Nice, TIL :)
Yeah, or maybe we don't want notifications for every canceled graph anyway. Might be a topic of discussion.
👍 Outside of taskgraph could tie into the git pushlog / generic dashboard / improved TC UI / generic treeherder replacement project, and live in future blue sky land. |
This would help with mozilla/code-coverage#1047. Currently we have a service listening to pulse messages that acts when it receives a "group finished" notification. Here's the source code of it if you're curious: https://github.com/mozilla/code-coverage/blob/master/events/code_coverage_events/workflow.py. |
FWIW, here's how we set something like this up in app-services: https://github.com/mozilla/application-services/blob/main/taskcluster/app_services_taskgraph/transforms/deps_complete.py |
Turns out there is a transform that somewhat helps here already: So maybe this issue is more about re-naming it to something more generic and including more features + a howto guide in the docs. |
Hey there! @ahal just pointed me to this issue. Just like app-services, the Android repos have their own implementation which actually around For the record, Android repos have had this implementation for years. I think it's mature-enough to be part of core taskgraph 👍 |
Often people want to have a task that can summarize the results of other tasks. Either the entire graph or some subset. In Gecko there's a
code-review
task that does just this:https://searchfox.org/mozilla-central/source/taskcluster/ci/code-review/kind.yml
It basically waits for all tasks with the
code-review
attribute to finish, and then sends a pulse message to notify consumers that they're ready (the consumers do the actual status inspection).I propose we:
noop
- Task always passes, routes can notify that all tasks being summarized are finishedrequire_pass
- Task passes if all dependencies pass, otherwise it fails (can be useful if using anon-exception
notify route)custom
- Task runs some arbitrary command as normal (?)The text was updated successfully, but these errors were encountered: