gradle

Clone Tools
  • last updated a few minutes ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Wire ProviderFactory to WorkerDaemonServer

Signed-off-by: Paul Merlin <paul@gradle.com>

    • -0
    • +9
    ./workers/internal/WorkerDaemonServer.java
Align no isolation worker with isolated workers

    • -0
    • +32
    ./workers/internal/AbstractWorkerRequirement.java
    • -3
    • +3
    ./workers/internal/DefaultActionExecutionSpecFactory.java
    • -0
    • +32
    ./workers/internal/FixedClassLoaderWorkerRequirement.java
    • -0
    • +32
    ./workers/internal/ForkedWorkerRequirement.java
    • -0
    • +32
    ./workers/internal/IsolatedClassLoaderWorkerRequirement.java
    • -2
    • +3
    ./workers/internal/IsolatedClassloaderWorkerFactory.java
    • -0
    • +23
    ./workers/internal/WorkerRequirement.java
  1. … 4 more files in changeset.
Use lambdas where possible

    • -9
    • +6
    ./workers/internal/IsolatedClassloaderWorkerFactory.java
    • -21
    • +18
    ./workers/internal/NoIsolationWorkerFactory.java
    • -13
    • +5
    ./workers/internal/WorkerDaemonClientsManager.java
Move a bunch of shared project scope services to a shared provider

    • -82
    • +10
    ./workers/internal/WorkerDaemonServer.java
  1. … 2 more files in changeset.
Add ProjectLayout and ProviderFactory services to workers

    • -0
    • +5
    ./workers/internal/WorkerDaemonServer.java
  1. … 3 more files in changeset.
Add ProjectLayout and ProviderFactory services to workers

    • -0
    • +5
    ./workers/internal/WorkerDaemonServer.java
  1. … 3 more files in changeset.
Ensure reused worker daemons resolve files from the correct directory

    • -28
    • +11
    ./workers/internal/IsolatedClassloaderWorker.java
    • -1
    • +2
    ./workers/internal/IsolatedClassloaderWorkerFactory.java
    • -8
    • +12
    ./workers/internal/WorkerDaemonServer.java
  1. … 1 more file in changeset.
Ensure reused worker daemons resolve files from the correct directory

    • -28
    • +11
    ./workers/internal/IsolatedClassloaderWorker.java
    • -1
    • +2
    ./workers/internal/IsolatedClassloaderWorkerFactory.java
    • -8
    • +12
    ./workers/internal/WorkerDaemonServer.java
  1. … 1 more file in changeset.
Get rid of ProjectDirectoryProvider in favor of ProjectLayout

    • -3
    • +17
    ./workers/internal/WorkersServices.java
  1. … 2 more files in changeset.
Make DefaultResourceHandler.Factory an interface we can stub out in workers

    • -3
    • +24
    ./workers/internal/WorkerDaemonServer.java
  1. … 4 more files in changeset.
Introduce a ProjectDirectoryProvider to allow worker executor to find the project directory

    • -7
    • +3
    ./workers/internal/WorkersServices.java
  1. … 2 more files in changeset.
Fix the decoration on FileSystemOperations and ExecOperations closures

    • -6
    • +26
    ./workers/internal/WorkerDaemonServer.java
  1. … 2 more files in changeset.
Expose ExecOperations service to workers

    • -4
    • +16
    ./workers/internal/WorkerDaemonServer.java
  1. … 1 more file in changeset.
Expose ExecOperations service to workers

    • -4
    • +16
    ./workers/internal/WorkerDaemonServer.java
  1. … 1 more file in changeset.
Make file operations in worker daemons relative to project directory

    • -0
    • +55
    ./workers/internal/AbstractActionExecutionSpec.java
    • -6
    • +6
    ./workers/internal/DefaultActionExecutionSpecFactory.java
    • -1
    • +1
    ./workers/internal/IsolatedClassloaderWorkerFactory.java
    • -23
    • +5
    ./workers/internal/IsolatedParametersActionExecutionSpec.java
    • -26
    • +8
    ./workers/internal/TransportableActionExecutionSpec.java
    • -2
    • +6
    ./workers/internal/TransportableActionExecutionSpecSerializer.java
    • -14
    • +46
    ./workers/internal/WorkerDaemonServer.java
    • -2
    • +9
    ./workers/internal/WorkersServices.java
  1. … 7 more files in changeset.
Make file operations in worker daemons relative to project directory

    • -0
    • +55
    ./workers/internal/AbstractActionExecutionSpec.java
    • -6
    • +6
    ./workers/internal/DefaultActionExecutionSpecFactory.java
    • -1
    • +1
    ./workers/internal/IsolatedClassloaderWorkerFactory.java
    • -23
    • +5
    ./workers/internal/IsolatedParametersActionExecutionSpec.java
    • -26
    • +8
    ./workers/internal/TransportableActionExecutionSpec.java
    • -2
    • +6
    ./workers/internal/TransportableActionExecutionSpecSerializer.java
    • -14
    • +46
    ./workers/internal/WorkerDaemonServer.java
    • -2
    • +9
    ./workers/internal/WorkersServices.java
  1. … 7 more files in changeset.
Make file operations in worker daemons relative to project directory

    • -0
    • +55
    ./workers/internal/AbstractActionExecutionSpec.java
    • -6
    • +6
    ./workers/internal/DefaultActionExecutionSpecFactory.java
    • -1
    • +1
    ./workers/internal/IsolatedClassloaderWorkerFactory.java
    • -23
    • +5
    ./workers/internal/IsolatedParametersActionExecutionSpec.java
    • -26
    • +8
    ./workers/internal/TransportableActionExecutionSpec.java
    • -2
    • +6
    ./workers/internal/TransportableActionExecutionSpecSerializer.java
    • -14
    • +46
    ./workers/internal/WorkerDaemonServer.java
    • -2
    • +9
    ./workers/internal/WorkersServices.java
  1. … 7 more files in changeset.
Expose ObjectFactory and FileSystemOperations to worker actions

    • -0
    • +64
    ./workers/internal/WorkerDaemonServer.java
  1. … 3 more files in changeset.
Expose ObjectFactory and FileSystemOperations to worker actions

    • -0
    • +64
    ./workers/internal/WorkerDaemonServer.java
  1. … 3 more files in changeset.
Expose ObjectFactory and FileSystemOperations to worker actions

    • -0
    • +64
    ./workers/internal/WorkerDaemonServer.java
  1. … 3 more files in changeset.
Compiler daemons can access internal services

    • -8
    • +6
    ./workers/internal/DefaultActionExecutionSpecFactory.java
    • -2
    • +3
    ./workers/internal/IsolatedClassloaderWorkerFactory.java
    • -1
    • +8
    ./workers/internal/IsolatedParametersActionExecutionSpec.java
    • -1
    • +8
    ./workers/internal/TransportableActionExecutionSpec.java
    • -1
    • +3
    ./workers/internal/TransportableActionExecutionSpecSerializer.java
    • -7
    • +7
    ./workers/internal/WorkerDaemonServer.java
    • -0
    • +47
    ./workers/internal/WorkerPublicServicesBuilder.java
    • -2
    • +2
    ./workers/internal/WorkersServices.java
  1. … 6 more files in changeset.
Compiler daemons can access internal services

    • -8
    • +6
    ./workers/internal/DefaultActionExecutionSpecFactory.java
    • -2
    • +3
    ./workers/internal/IsolatedClassloaderWorkerFactory.java
    • -1
    • +8
    ./workers/internal/IsolatedParametersActionExecutionSpec.java
    • -1
    • +8
    ./workers/internal/TransportableActionExecutionSpec.java
    • -1
    • +3
    ./workers/internal/TransportableActionExecutionSpecSerializer.java
    • -7
    • +7
    ./workers/internal/WorkerDaemonServer.java
    • -0
    • +47
    ./workers/internal/WorkerPublicServicesBuilder.java
    • -2
    • +2
    ./workers/internal/WorkersServices.java
  1. … 6 more files in changeset.
Compiler daemons can access internal services

    • -8
    • +6
    ./workers/internal/DefaultActionExecutionSpecFactory.java
    • -2
    • +3
    ./workers/internal/IsolatedClassloaderWorkerFactory.java
    • -1
    • +8
    ./workers/internal/IsolatedParametersActionExecutionSpec.java
    • -1
    • +8
    ./workers/internal/TransportableActionExecutionSpec.java
    • -1
    • +3
    ./workers/internal/TransportableActionExecutionSpecSerializer.java
    • -7
    • +7
    ./workers/internal/WorkerDaemonServer.java
    • -0
    • +47
    ./workers/internal/WorkerPublicServicesBuilder.java
    • -2
    • +2
    ./workers/internal/WorkersServices.java
  1. … 6 more files in changeset.
Restrict services available to worker actions

    • -4
    • +13
    ./workers/internal/IsolatedClassloaderWorkerFactory.java
    • -5
    • +13
    ./workers/internal/WorkerDaemonServer.java
    • -8
    • +8
    ./workers/internal/WorkersServices.java
Restrict services available to worker actions

    • -4
    • +13
    ./workers/internal/IsolatedClassloaderWorkerFactory.java
    • -5
    • +13
    ./workers/internal/WorkerDaemonServer.java
    • -8
    • +8
    ./workers/internal/WorkersServices.java
Restrict services available to worker actions

    • -4
    • +13
    ./workers/internal/IsolatedClassloaderWorkerFactory.java
    • -0
    • +37
    ./workers/internal/WorkServicesBuilder.java
    • -5
    • +13
    ./workers/internal/WorkerDaemonServer.java
    • -8
    • +8
    ./workers/internal/WorkersServices.java
De-incubate Worker related APIs

  1. … 1 more file in changeset.
Fix tests

  1. … 2 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. … 8 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. … 8 more files in changeset.