JavaExecHandleBuilderTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Merge remote-tracking branch 'origin/release'

* origin/release:

Link to fixed issues in release notes

Bump to 5.6.1

Prepare for 5.6.2

Make sure the memory leak tests for workers use separate daemons

Fix tests

Fix typo

Add test for legacy worker API as well

Use a non-decorated fork options when creating fork options for worker daemon

Reproduce OOM with out-of-process worker API

Add build cache training promotion link to selected docs

Remove duplicate project dependency from Eclipse classath when project is referenced with different configuration

  1. … 7 more files in changeset.
Merge remote-tracking branch 'origin/master-test' into release-test

  1. … 3 more files in changeset.
Use a non-decorated fork options when creating fork options for worker daemon

WorkerDaemonClients are retained across builds, so any object associated with

it must not contain project state since this will be kept around until the worker

expires.

- Introduce a newDecoratedJavaForkOptions which creates a decorated JavaForkOptionsInternal

- Replace calls to the decorated version of the method with non-decorated versions where appropriate

  1. … 10 more files in changeset.
Use a non-decorated fork options when creating fork options for worker daemon

WorkerDaemonClients are retained across builds, so any object associated with

it must not contain project state since this will be kept around until the worker

expires.

- Introduce a newDecoratedJavaForkOptions which creates a decorated JavaForkOptionsInternal

- Replace calls to the decorated version of the method with non-decorated versions where appropriate

  1. … 13 more files in changeset.
Use a non-decorated fork options when creating fork options for worker daemon

WorkerDaemonClients are retained across builds, so any object associated with

it must not contain project state since this will be kept around until the worker

expires.

- Introduce a newDecoratedJavaForkOptions which creates a decorated JavaForkOptionsInternal

- Replace calls to the decorated version of the method with non-decorated versions where appropriate

  1. … 14 more files in changeset.
Fixes for previous commit.

  1. … 14 more files in changeset.
Fixes for previous commit.

  1. … 14 more files in changeset.
Replace `FileResolver.resolveFilesAsTree()` and `compositeFileTree()` with `FileCollectionFactory`.

  1. … 44 more files in changeset.
Replace `FileResolver.resolveFilesAsTree()` and `compositeFileTree()` with `FileCollectionFactory`.

  1. … 44 more files in changeset.
Remove deprecated `DefaultFileCollectionFactory` constructor

  1. … 2 more files in changeset.
Remove deprecated `DefaultFileCollectionFactory` constructor

  1. … 2 more files in changeset.
Remove deprecated `DefaultFileCollectionFactory` constructor

  1. … 2 more files in changeset.
Remove deprecated `DefaultFileCollectionFactory` constructor

  1. … 2 more files in changeset.
Revert "Revert "Add debug support to TestLauncher (#9863)""

This reverts commit 17d0ec1ba0dd44df1a6e2e2f8e79c366faa2bee7.

  1. … 39 more files in changeset.
Revert "Add debug support to TestLauncher (#9863)"

This reverts commits 026d9f4f8b33e64a64fd0f9f4c364b4c7cebf26f and fda0f3d58074137a1e9204fbf2762d9f63a0603b.

Temporarily reverted due to a possible performance regression.

  1. … 40 more files in changeset.
Add debug support to TestLauncher (#9863)

  1. … 39 more files in changeset.
Use Property API in JavaDebugOptions

  1. … 17 more files in changeset.
Use Property API in JavaDebugOptions

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

Re-initialise field on setClasspath

Without that change, it became illegal to do something like

`setClasspath(files(someFile, getClasspath())` which can be used to

prepend values to the classpath.

Fixes #8748

  1. … 1 more file in changeset.
Restore JavaExecHandleBuilder.classpath contract

The contract is to append the passed in parameters to the existing

classpath. This was broken in refactoring and instead would behave as if

JavaExecHandleBuilder.setClasspath had been called.

Issue #8748

  1. … 1 more file in changeset.
Restore JavaExecHandleBuilder.classpath contract

The contract is to append the passed in parameters to the existing

classpath. This was broken in refactoring and instead would behave as if

JavaExecHandleBuilder.setClasspath had been called.

Issue #8748

  1. … 1 more file in changeset.
Restore JavaExecHandleBuilder.classpath contract

The contract is to append the passed in parameters to the existing

classpath. This was broken in refactoring and instead would behave as if

JavaExecHandleBuilder.setClasspath had been called.

Issue #8748

  1. … 1 more file in changeset.
Restore JavaExecHandleBuilder.classpath contract

The contract is to append the passed in parameters to the existing

classpath. This was broken in refactoring and instead would behave as if

JavaExecHandleBuilder.setClasspath had been called.

Issue #8748

  1. … 1 more file in changeset.
Replace some direct usages of `DefaultConfigurableFileCollection` with `FileCollectionFactory`.

  1. … 50 more files in changeset.
Replace some direct usages of `DefaultConfigurableFileCollection` with `FileCollectionFactory`.

  1. … 50 more files in changeset.
Make DefaultExecHandle respond to Ctrl-C (#5249)

This is an attempt to fix https://github.com/gradle/gradle/issue/2128

Previously, all execution actions (started by `DefaultExecHandle`) don't respond to Ctrl-C. This will cause unexpected daemon shutdown - when Ctrl-C is pressed, daemon wait 10s for everything to finish - but `DefaultExecHandle` don't respond, so the result is always daemon shutting down.

This PR creates `ExecFactory` as a build session scope service and injects `BuildCancellationToken` into `DefaultExecHandle` so that `DefaultExecHandle` can register hooks to the `BuildCancellationToken`.

  1. … 18 more files in changeset.
Changed the process forking infrastructure so that it attempts to reuse threads rather than creating 3 or more threads per process that is forked.

There is now a global `ExecFactory` service that manages the infrastructure, including a pool of threads. It provides various factory methods to create instances of `ExecHandleBuilder`, `ExecAction`, `JavaExecHandleBuilder` and `JavaExecAction` backed by this infrastructure.

Replaced all direct instantiation of these types with usages of these factory methods.

  1. … 44 more files in changeset.
change tmpdir behaviour or daemon

- only set tmpdir explicitly when it was configured as an explicit input argument

- adapt couple of integ tests to reflect this behaviour

  1. … 11 more files in changeset.
next try to handle tmp directory as imutable property of the daemon

  1. … 9 more files in changeset.