Clone Tools
  • last updated a few seconds ago
Constraints: committers
Constraints: files
Constraints: dates
Force AbstractTestDirectoryProvider to use Class (#12431)


This PR adds `className` to `AbstractTestDirectoryProvider` so there'll be no more `unknown-test-class`.

  1. … 407 more files in changeset.
Fix tests that were using in scripts under test

using instead, both are internal anyway

Signed-off-by: Paul Merlin <>

  1. … 6 more files in changeset.
make inner classes static where possible

Signed-off-by: Steven Crockett <>

  1. … 42 more files in changeset.
Address code review comments

Include integration test instead of unit test.

    • -1
    • +1
  1. … 5 more files in changeset.
Increase integration test timeout

Fixes gradle/build-tool-flaky-tests#1

Revert "Revert "Merge branch 'release'""

This reverts commit 67b8bb8f18f854f45a2f5ec52cc9c8a25981e2f2.

This restores the merge attempt from earlier.

  1. … 65 more files in changeset.
Revert "Merge branch 'release'"

This reverts commit c7fdc455dcb9a8016af0ae9bc8b4c43fde1e2d06, reversing

changes made to 9f70d52b74dbc8c71381781b6c155474031b3cf8.

The changes need a wrapper as there are API changes. Reverting for now.

  1. … 65 more files in changeset.
Reduce the amount of logging that is periodically emitted by an idle daemon

  1. … 2 more files in changeset.
Add JavaExec#getExecResult.

The `AbstractExecTask` includes a `getExecResult`. This is useful if you

use the setIgnoreExitValue but want to know the result of the exec task

later on. JavaExec should also include this ability.

Was inspired by (this stackoverflow comment)[]

Signed-off-by: Nelson Osacky <>

    • -1
    • +1
  1. … 2 more files in changeset.
De-incubate CommandLineArgumentProvider

  1. … 3 more files in changeset.
Make Linux /proc/meminfo parser thread safe

Upgrade to new version of native-platform.

  1. … 13 more files in changeset.
Make totalMemory and freeMemory consistent

We were using different data sources for total and free physical

memory on Linux and MacOS, which lead us to detect memory pressure

were there was in fact none, e.g. when running in containers with

resource limits.

We now get both total and available memory from the same OS specific

data source.

  1. … 4 more files in changeset.
Fix handling of InterruptedExceptions

These exceptions were handled incorrectly throughout the whole

codebase, usually rethrown without restoring the interrupt status

or discarded entirely. This means that the system would not stop

executing even though the user wanted it to. In some cases this

also left the system in an inconsistent state, leading to deadlocks.

The most notable changes include:

- UncheckedException.rethrow automatically restores the interrupt status

- AsyncDispatch is guaranteed to deliver its messages, even when interrupted

- ExecHandle cancels the started process if it is interrupted while waiting

- ExecHandle disconnects from the process' output before killing it

- The worker API cancels the started work items if it is interrupted

- ManagedExecutors shut down immediately if they are interrupted while stopping

- We no longer log exceptions caused by interruption to the console

- Interrupting our caches no longer leaks file locks

  1. … 38 more files in changeset.
Set timeout for AbstractIntegrationSpec (#5806)

We have been bitten by CI build exection timeout for a long time.

This PR introduces timeout for AbstractIntegrationSpec in order to

monitor execution timeout. Upon timeout, a spock interceptor can

print all threads' stack traces in all JVMs so that we can diagnose

the potential issues in other JVMs (daemons, test workers, etc.).

  1. … 29 more files in changeset.
Add argumentProviders for Exec task

    • -0
    • +10
  1. … 7 more files in changeset.
Some fixed to `DefaultExecHandle` to ensure listeners are notified before `waitForFinish()` completes and that exceptions thrown by the listeners are handled and forwarded to the waiting thread.

  1. … 2 more files in changeset.
Changed process execution infrastructure so that it no longer creates 2 threads to forward content to the process' stdin when there is nothing to forward (which is the default).

  1. … 14 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.

    • -0
    • +28
  1. … 43 more files in changeset.
Copy under lock, iterate out of lock

Fix `ConcurrentModificationException`

This commit adds guards around `holder` to make sure the list is not modified concurrently.

This fixes #2452, which was seen under heavy load.

Replace usages of org.gradle.api.Nullable

With javax.annotation.Nullable.

  1. … 460 more files in changeset.
Simplify executor relationships

  1. … 46 more files in changeset.
Delay memory info until first interval has passed

Add missing type safe collections setters on *ForkOptions & *ExecSpec

    • -0
    • +17
  1. … 10 more files in changeset.
Fix NativeOsxAvailableMemory error handling

This fixes ApplyPluginIntegSpec that generates ProjectBuilder based

tests which in turn doesn’t have native integrations enabled.

Sample macOS system memory using native-platform instead of vm_stat

See #1270

  1. … 3 more files in changeset.
Changed a couple more projects to use `java-library` plugin. Also inject Groovy as a test compile dependency for all projects, and removed the declaration from various project's build files.

  1. … 34 more files in changeset.
Make Os/JvmMemoryInfo only provide snapshots

  1. … 3 more files in changeset.
process-services: properly cleanup DefaultMemoryManagerTest