execution

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Rename file collection visitor type and visit method.

    • -1
    • +1
    ./internal/DefaultTaskInputsListener.java
  1. … 33 more files in changeset.
Rename file collection visitor type and visit method.

    • -1
    • +1
    ./internal/DefaultTaskInputsListener.java
  1. … 33 more files in changeset.
Rename file collection visitor type and visit method.

    • -1
    • +1
    ./internal/DefaultTaskInputsListener.java
  1. … 33 more files in changeset.
Merge `FileCollection.registerWatchPoints()` into `visitLeafCollections()`, so that a visitor can optionally receive the 'spec' or definition for each participant in a file collection.

This will also later be used by instant execution to serialize some file collection participants as files and some as definitions.

    • -1
    • +1
    ./internal/DefaultTaskInputsListener.java
  1. … 19 more files in changeset.
Merge `FileCollection.registerWatchPoints()` into `visitLeafCollections()`, so that a visitor can optionally receive the 'spec' or definition for each participant in a file collection.

This will also later be used by instant execution to serialize some file collection participants as files and some as definitions.

    • -1
    • +1
    ./internal/DefaultTaskInputsListener.java
  1. … 19 more files in changeset.
Merge `FileCollection.registerWatchPoints()` into `visitLeafCollections()`, so that a visitor can optionally receive the 'spec' or definition for each participant in a file collection.

This will also later be used by instant execution to serialize some file collection participants as files and some as definitions.

    • -1
    • +1
    ./internal/DefaultTaskInputsListener.java
  1. … 19 more files in changeset.
Move ExecuteTaskBuildOperationType (#7374)

* Move ExecuteTaskBuildOperationType to org.gradle.api.internal.tasks.execution

* Remove redundant import

    • -68
    • +0
    ./internal/ExecuteTaskBuildOperationDetails.java
    • -88
    • +0
    ./internal/ExecuteTaskBuildOperationResult.java
  1. … 24 more files in changeset.
Add support for emitting information about repositories used during configuration resolution process, and sourced repository for a component (#5959)

- `ResolveConfigurationDependenciesBuildOperationType.Details` now contains a `List<Repository>` eventually provided by all `ResolutionAwareRepository` implementations

- `ResolvedComponentResult` has been subclassed to `ResolvedComponentResultInternal`, to provide the `repositoryName` used as source. This can be `null` in case of project dependency.

- Note that even when artifacts are resolved from the cache, they still convey the original repository that was used as source. The `name` of a repository is guaranteed to be unique inside a given repository container, and we use a single repository container to resolve a given configuration. Hence, the name can be safely used to uniquely identify which repository was used to source components.

- This commit also moves custom serialization logic to the owning type of `SerializedOperation` implementations to their owning types

    • -1
    • +13
    ./internal/ExecuteTaskBuildOperationDetails.java
  1. … 52 more files in changeset.
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

    • -6
    • +4
    ./internal/ExecuteTaskBuildOperationDetails.java
  1. … 25 more files in changeset.
Emit the origin build invocation ID and execution time of tasks reusing outputs (#3846)

Previously, we emitted the build invocation ID for both up-to-date and from-cache,

but emitted the original execution time only for from-cache. This is now unified.

Moreover, these values now reflect the true origin when from-cache outputs are reused as part of incremental build. Previously, the values from the first build to consider the task up-to-date after a from cache was considered as the origin for subsequent executions. Now, the origin information is kept from the from-cache execution.

    • -1
    • +10
    ./internal/ExecuteTaskBuildOperationResult.java
  1. … 46 more files in changeset.
Extract :core-api project (#2719)

  1. … 780 more files in changeset.
Move GeneratedSubclass to base-services

+review REVIEW-6562

    • -1
    • +1
    ./internal/ExecuteTaskBuildOperationDetails.java
  1. … 5 more files in changeset.
Replace usages of org.gradle.api.Nullable

With javax.annotation.Nullable.

    • -1
    • +1
    ./internal/ExecuteTaskBuildOperationResult.java
  1. … 460 more files in changeset.
Remove empty files and other merge relics.

    • -0
    • +0
    ./internal/InternalTaskExecutionListener.java
  1. … 2 more files in changeset.
Merge remote-tracking branch 'origin/release'

Conflicts:

subprojects/core/src/main/java/org/gradle/api/execution/internal/InternalTaskExecutionListener.java

subprojects/core/src/test/groovy/org/gradle/execution/taskgraph/DefaultTaskGraphExecuterSpec.groovy

subprojects/core/src/test/groovy/org/gradle/execution/taskgraph/DefaultTaskGraphExecuterTest.java

subprojects/docs/src/docs/release/notes.md

subprojects/resources/src/main/java/org/gradle/internal/resource/ExternalResourceWriteResult.java

    • -31
    • +0
    ./internal/InternalTaskExecutionListener.java
  1. … 6 more files in changeset.
More, more, merge cleanup.

    • -2
    • +2
    ./internal/ExecuteTaskBuildOperationResult.java
  1. … 1 more file in changeset.
Merge cleanup.

    • -2
    • +2
    ./internal/ExecuteTaskBuildOperationResult.java
  1. … 3 more files in changeset.
Expose the task up to date messages to scans (#2146)

This change makes the existing “execute task” build operation a “rich” operation (i.e. visible to scans) and uses it to convey the up to date messages.

Other task result data that was on TaskStateInternal for the sake of scans has been moved to the result of this op.

As part of this change, the scan plugin no longer uses TaskStateInternal, TaskExecutionListener or InternalTaskExecutionListener. The latter existed just for build scans, so it has now been removed.

    • -2
    • +26
    ./internal/ExecuteTaskBuildOperationDetails.java
    • -0
    • +79
    ./internal/ExecuteTaskBuildOperationResult.java
    • -29
    • +0
    ./internal/InternalTaskExecutionListener.java
    • -37
    • +0
    ./internal/TaskOperationInternal.java
  1. … 24 more files in changeset.
Annotate non public APIs used by the build scan plugin.

    • -0
    • +2
    ./internal/InternalTaskExecutionListener.java
  1. … 32 more files in changeset.
Fix Gradle's buildSrc tests that rely on calling execute() on a task

    • -0
    • +40
    ./internal/DefaultTaskInputsListener.java
  1. … 4 more files in changeset.
Change TaskInputsListener into a service vs a simple Listener

Using the ListenerManager prevents different threads from notifying

the same type of listener if the listener causes the same type of

notifications when called.

  1. … 4 more files in changeset.
Reorganise the rich build operation details/results type to further decouple from producer side semantics.

    • -0
    • +34
    ./internal/ExecuteTaskBuildOperationDetails.java
    • -40
    • +0
    ./internal/TaskOperationDetails.java
  1. … 81 more files in changeset.
Revert "Rename OperationFinishEvent back to OperationResult"

This reverts commit 86f8c521683df8a33ff4aa6c4bbac709ee592b81.

    • -2
    • +2
    ./internal/InternalTaskExecutionListener.java
  1. … 13 more files in changeset.
Rename OperationFinishEvent back to OperationResult

- reverts breaking change in InternalTaskExecutionListener cs

relies on

- TODO discuss follow up procedure

    • -2
    • +2
    ./internal/InternalTaskExecutionListener.java
  1. … 13 more files in changeset.
Introduce marker interface for build operation detailses without a result.

  1. … 7 more files in changeset.
Remove BuildOperationDetails.getResult().

This should be implemented elsewhere as to not burden implementations.

  1. … 13 more files in changeset.
Add dedicated details classes to build operations

Instead of reusing some type that just happened to be available,

use a new type that is dedicated to build scans. This way we have

can keep the compatible while rapidly evolving other build tool

internals.

    • -32
    • +0
    ./internal/TaskOperationDescriptor.java
    • -0
    • +45
    ./internal/TaskOperationDetails.java
  1. … 21 more files in changeset.
Give better names to some listener types

We should rename these types now that they are not used heavily yet.

The new names are more consistent and will hopefully make the

infrastructure a little easier to understand.

    • -2
    • +2
    ./internal/InternalTaskExecutionListener.java
  1. … 17 more files in changeset.
BuildOperationProcessor emits build operation events

WIP

    • -1
    • +2
    ./internal/InternalTaskExecutionListener.java
  1. … 23 more files in changeset.
rename InternalBuildOperationListener to BuildOperationListener

    • -2
    • +1
    ./internal/InternalTaskExecutionListener.java
  1. … 14 more files in changeset.