Slackbot
06/15/2023, 10:47 AMVampire
06/15/2023, 10:55 AMMarkus Maier
06/15/2023, 12:10 PMfinished events, I'd have to keep a cache of all events until the build is fully finished before I can process them. Not good, since the main build this should be used for generates about 100k events.Vampire
06/15/2023, 12:17 PMWhat I'm missing is an officially supported way of getting this data, and with start events.I asked which information it is you miss from the officially supported
OperationCompletionListener that you currently cannot get out of it.
The external API I'm tracing to requires the parent to be there before the child, so with onlyUnfortunately, I didn't get what you mean, can you elaborate a bit on what you mean / what you try to achieve? Then I might be able to suggest some proper way to do it.events, I'd have to keep a cache of all events until the build is fully finished before I can process them.finished
Markus Maier
06/15/2023, 12:46 PMOperationCompletionListener only seems to support task executions, which is way too coarse for my purposes and completely excludes the configuration phase.
To correlate all that information in the external system I'm reporting to, I need proper parent-child relationships at the time I'm seeing the child, which is the opposite order of finished events.
I can get all that if I register a BuildOperationListener via an injected BuildOperationListenerManager, but all of that is internal, and if I don't manage to remove my listener again, it even stays active in the daemon for all subsequent builds, which is really not what I want.Vampire
06/15/2023, 12:51 PMMarkus Maier
06/15/2023, 12:57 PMVampire
06/15/2023, 1:01 PMdoFirst action to all tasks where you can to "before-task" actions.Markus Maier
06/15/2023, 1:33 PMephemient
06/16/2023, 4:25 AMMarkus Maier
06/16/2023, 6:05 AMVampire
06/16/2023, 11:24 PMTaskExecutionGraph.addTaskExecutionListener
It's just deprecated and not compatible with configuration cache. 🙂