DefaultTaskContainerTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Make deprecations in TaskContainer throw errors

    • -394
    • +75
    ./DefaultTaskContainerTest.groovy
  1. … 14 more files in changeset.
Make deprecations in TaskContainer throw errors

    • -394
    • +75
    ./DefaultTaskContainerTest.groovy
  1. … 14 more files in changeset.
Do not run the constructors of tasks that are deserialized from the instant execution cache.

  1. … 22 more files in changeset.
Do not run the constructors of tasks that are deserialized from the instant execution cache.

  1. … 22 more files in changeset.
Do not run the constructors of tasks that are deserialized from the instant execution cache.

  1. … 22 more files in changeset.
Do not run the constructors of tasks that are deserialized from the instant execution cache.

  1. … 21 more files in changeset.
Test the matching/withType filter ordering

  1. … 7 more files in changeset.
Test the matching/withType filter ordering

  1. … 8 more files in changeset.
Allow the services required by a given class to be queried prior to creating any instances of that class. Use this to allow `ArtifactTransformDependencies` to be injected into artifact transforms using any of the service injection patterns (that is, via a constructor or a getter).

  1. … 127 more files in changeset.
Replace most direct usages of `DirectInstantiator` with indirect usages via `InstantiatorFactory` or test fixtures instead. This means more consistent behaviour in unit tests because the objects under test will behave more similarly to how they do at runtime. This also allows the decision of how the instantiation should behave to live in as few places as possible, so this can be more easily evolved and contextualized.

  1. … 60 more files in changeset.
Remove pointless decoration from `TaskFactory` as the instantiation takes care of this.

  1. … 7 more files in changeset.
Emit build operations around container callback executions (core and dependencyMgmt containers) (#7734)

* Decorate taskcontainer callbacks to track application id

* Decorate plugin container callbacks

* Decorate repositoryContainer callbacks

* Decoreate configurations and configuration.dependencies container callbacks

* Decorate artifactTypesDecorator callbacks

* Dont emit build ops for internal declared callbacks

* Provide usercode context in beforeResolve / afterResolve callbacks

* keep compatibility for nebula.dependency-recommender plugin

* Put domain collection callback build ops behind feature toggle

* Decorate Provider.configure() methods

* Simplify container callback filtering and decoration

Previously, we had three classes collaborating to achieve this but now this is inlined into effectively one. While this creates a more complex implementation, that is still rather simple, it avoids the more problematic complexity of a complicated relationship between the three implementations that also required extra state and details to be propagated through all of the collections.

  1. … 70 more files in changeset.
Merge remote-tracking branch 'origin/lacasseio/lazy/test-refactor'

* origin/lacasseio/lazy/test-refactor:

Add test coverage around register/create

Refactor the allow/disallow configuration code

  1. … 2 more files in changeset.
Refactor the allow/disallow configuration code

  1. … 7 more files in changeset.
Merge pull request #6643 from gradle/oehme/task-timeouts

Support task-level timeouts

  1. … 1 more file in changeset.
Remove placeholder tasks

  1. … 11 more files in changeset.
Disallow mutation during `NamedDomainObjectProvider#configure`

  1. … 7 more files in changeset.
Merge pull request #6688 from gradle/sg/lazy/named-type

Introduce named(String, Class), named(String, Action) and named(String, Class, Action) methods

  1. … 2 more files in changeset.
Fix unit tests

  1. … 1 more file in changeset.
Add allowed method test coverage

  1. … 3 more files in changeset.
Support per-task timeouts

Users can now configure a timeout on a per-task level.

If the task exceeds this timeout while running, its thread

is interrupted and it is marked as failed. This works for any

task that handles InterruptedExceptions correctly, including

tasks using our exec() infrastructure or worker API.

A timed-out task behaves just like a failed task in all other

respects, e.g. finalizers will still be run. If --continue is

used, other tasks can continue running after it.

Tasks that don't respond to interrupts are not yet handled.

Those should result in a shutdown of the daemon, as there is no

other way to restore a working system.

  1. … 15 more files in changeset.
Separate `ITaskFactory` from `NamedEntityInstantiator<Task>` so that the instantiator is applied as a decoration over the factory.

  1. … 37 more files in changeset.
Wrap external provider inside `NamedDomainObjectProvider`

It allow `NamedDomainObjectCollection#named` to work properly.

  1. … 2 more files in changeset.
Make replacing an incompatible type a deprecation only

  1. … 2 more files in changeset.
Disallow container mutation during lazy configuration

  1. … 11 more files in changeset.
Revert `retainAll` to use object instance only

  1. … 2 more files in changeset.
Providers return better error message when removed from container

  1. … 2 more files in changeset.
Fix `retainAll` to be eager as well as test coverage

  1. … 3 more files in changeset.
Merge branch 'master' into lacasseio/lazy/deprecate-task-removal

PS: This merge was painful so there may be some mistake

  1. … 11 more files in changeset.
Verify querying the name of `TaskProvider` doesn't realize the provider