Clone
 

tom dunstan <tomdcc@users.noreply.github.com> in Gradle

Merge pull request #6212 from gradle/td/listener-op-names

Emit registration point in listener execution build operations

Merge pull request #6096 from gradle/td/lifecycle-attribution-build-operations

Emit build operations around lifecycle listener executions

Emit build operations for task registration / realization (#5610)

* Wire in op executor to task container

* Add internal task id

* Add binary compatibility exception

* Add as-light-as-possible build ops for eagerly created tasks

* Use op task ids when creating tasks

* Emit light build ops for lazily realized tasks

* Only fire task creation build ops when collecting task stats

* Provide rich details for task creation build ops

* Use groovy method rather than JDK8 method

* Wire in op executor to task container

* Add internal task id

* Add binary compatibility exception

* Add as-light-as-possible build ops for eagerly created tasks

* Use op task ids when creating tasks

* Emit light build ops for lazily realized tasks

* Only fire task creation build ops when collecting task stats

* Provide rich details for task creation build ops

* Use groovy method rather than JDK8 method

* Change test to use new register method

* Make NullBuildOperationExecutor a singleton

* Add note about opt-in to operations being empty

* Consolidate name/type/uniqueId into TaskIdentity

Reduces the number of args flying around, consolidates how identity paths etc. are calculated and enforces only one instance of such paths.

* Don't nest realize op for eagerly created lazy task

* Add test for nesting of task realize build ops

  1. … 11 more files in changeset.
Add build operations around after/beforeEvaluate and projectsLoaded/Evaluated lifecycle hooks (#5558)

* Wrap build op around projectsLoaded hooks

Signed-off-by: Tom Dunstan <tom@gradle.com>

* Add test coverage

Signed-off-by: Tom Dunstan <tom@gradle.com>

* Wrap build op around projectsEvaluated hooks

Signed-off-by: Tom Dunstan <tom@gradle.com>

* Wrap build ops around project evaluation hooks

Signed-off-by: Tom Dunstan <tom@gradle.com>

* Don't make new ops logging groups

Signed-off-by: Tom Dunstan <tom@gradle.com>

* Add test coverage

Signed-off-by: Tom Dunstan <tom@gradle.com>

* Quieten down logging

Signed-off-by: Tom Dunstan <tom@gradle.com>

* Fix test

Signed-off-by: Tom Dunstan <tom@gradle.com>

* Fix codenarc

Signed-off-by: Tom Dunstan <tom@gradle.com>

* Polish before and after evaluate build operations

* Polish projectsEvaluated and projectsLoaded build operations

* fix unit tests

* Use wrapped exception as operation failure exception

  1. … 5 more files in changeset.