Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Revert "Ignore failing test for now"

This reverts commit 09f28a51ae9b673d8693b07b93f7a66cf31af982.

    • -8
    • +0
    ./configuration/BuildProcessTest.groovy
    • -4
    • +0
    ./configuration/DaemonParametersTest.groovy
Revert "Ignore failing test for now"

This reverts commit 09f28a51ae9b673d8693b07b93f7a66cf31af982.

    • -8
    • +0
    ./configuration/BuildProcessTest.groovy
    • -4
    • +0
    ./configuration/DaemonParametersTest.groovy
Revert "Ignore failing test for now"

This reverts commit 90e15b3e55fbba276f94e96aea8bfed7ab9fa85a.

    • -8
    • +0
    ./configuration/BuildProcessTest.groovy
    • -4
    • +0
    ./configuration/DaemonParametersTest.groovy
Ignore some tests

    • -0
    • +2
    ./configuration/DaemonJvmOptionsTest.groovy
  1. … 1 more file in changeset.
    • -0
    • +8
    ./configuration/BuildProcessTest.groovy
    • -0
    • +4
    ./configuration/DaemonParametersTest.groovy
    • -0
    • +8
    ./configuration/BuildProcessTest.groovy
    • -0
    • +4
    ./configuration/DaemonParametersTest.groovy
Print properties

    • -0
    • +4
    ./configuration/DaemonParametersTest.groovy
Move Stat and Chmod to :files

    • -1
    • +1
    ./registry/DaemonRegistryServicesTest.groovy
    • -3
    • +4
    ./registry/PersistentDaemonRegistryTest.groovy
  1. … 37 more files in changeset.
Move Stat and Chmod to :files

    • -1
    • +1
    ./registry/DaemonRegistryServicesTest.groovy
    • -3
    • +4
    ./registry/PersistentDaemonRegistryTest.groovy
  1. … 37 more files in changeset.
Relax what we check for in the daemon health stats unit test

Make test Locale independent

Introduce test that simulates GC activity

  1. … 5 more files in changeset.
Rework daemon GC/memory expiration checks

- Do not sniff for VM vendor to figure out which GC strategies may be used

- Rename permgen -> non-heap in most places, Java 8+ uses metaspace for this memory pool

- Rename tenured -> heap

- Only add GarbageCollectionEvents to the observation window when there's been a GC collection

- This simplifies the calculation of GC rate

- Non-heap memory pools are not GC'd

- Re-enable daemon performance soak test

    • -14
    • +12
    ./server/health/DaemonHealthStatsTest.groovy
    • -100
    • +55
    ./server/health/DaemonMemoryStatusTest.groovy
    • -0
    • +53
    ./server/health/LowHeapSpaceDaemonExpirationStrategyTest.groovy
    • -0
    • +53
    ./server/health/LowNonHeapDaemonExpirationStrategyTest.groovy
    • -53
    • +0
    ./server/health/LowPermGenDaemonExpirationStrategyTest.groovy
    • -53
    • +0
    ./server/health/LowTenuredSpaceDaemonExpirationStrategyTest.groovy
    • -23
    • +4
    ./server/health/gc/GarbageCollectionMonitorTest.groovy
    • -13
    • +54
    ./server/health/gc/GarbageCollectionStatsTest.groovy
  1. … 18 more files in changeset.
Change `DefaultServiceRegistry.getAll()` so that it does not return services from parents that have been decorated or overridden by the current registry.

Also change the interaction between parent and child registry so as to avoid assuming a particular parent implementation.

    • -6
    • +6
    ./registry/DaemonRegistryServicesTest.groovy
  1. … 13 more files in changeset.
Change `DefaultServiceRegistry.getAll()` so that it does not return services from parents that have been decorated or overridden by the current registry.

Also change the interaction between parent and child registry so as to avoid assuming a particular parent implementation.

    • -6
    • +6
    ./registry/DaemonRegistryServicesTest.groovy
  1. … 13 more files in changeset.
Replace some direct usages of `DefaultConfigurableFileCollection` with `FileCollectionFactory`.

    • -3
    • +2
    ./client/DaemonClientServicesTest.groovy
    • -20
    • +19
    ./configuration/BuildProcessTest.groovy
    • -1
    • +1
    ./configuration/DaemonJvmOptionsTest.groovy
    • -1
    • +16
    ./configuration/DaemonParametersTest.groovy
  1. … 47 more files in changeset.
Replace some direct usages of `DefaultConfigurableFileCollection` with `FileCollectionFactory`.

    • -3
    • +2
    ./client/DaemonClientServicesTest.groovy
    • -20
    • +19
    ./configuration/BuildProcessTest.groovy
    • -1
    • +1
    ./configuration/DaemonJvmOptionsTest.groovy
    • -1
    • +16
    ./configuration/DaemonParametersTest.groovy
  1. … 47 more files in changeset.
Include process command line in daemon startup failure message

  1. … 3 more files in changeset.
spelling: daemon

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

Signed-off-by: Bo Zhang <bo@gradle.com>

Fix for starting a single-use daemon when client has low memory

The previous logic was testing whether the daemon parameters had

a memory setting, but not whether that setting was the default or

whether it actually came from the user. The default settings are

ignored for the purpose of forking a single-use daemon, so they

also need to be ignored in the decision whether the current VM

has enough memory.

    • -2
    • +2
    ./configuration/BuildProcessTest.groovy
  1. … 2 more files in changeset.
Remove some usages of Java serialization in sending the build result to the client. The `BuildActionResult` and `SerializedPayload` are serialized much more efficiently in the response to the client, particularly for 'build successful' results when invoked from the command-line, but also for results when invoked from the tooling API.

Previously, these types were not used in the command-line case so this improvement is really only returning to existing behaviour for these builds.

    • -0
    • +56
    ./protocol/DaemonMessageSerializerTest.groovy
  1. … 4 more files in changeset.
Add some context to the exception thrown by the TAPI when the daemon is force killed on cancellation.

Remove some consumer side assumptions about the implementation of the producer, which were present as a work around to produce the correct exception in the consumer when the daemon is force killed by the producer and for very old producer versions.

  1. … 11 more files in changeset.
Represent the result of `BuildActionExecuter.execute()` as an object that encapsulates either a result object or a failure, rather than as an opaque return value or a thrown `ReportedException`.

  1. … 25 more files in changeset.
Fork a single-use daemon of client VM has too little memory

We lowered the client VMs memory to 64m by default, which is plenty

for displaying log output, but not enough to run the vast majority

of builds. Users who really want to run their build inside the client

process should set a higher memory requirement via GRADLE_OPTS.

For all others we now automatically fork a single-use daemon, so their

build doesn't fail in environments that automatically append the "--no-daemon" flag.

These environments unfortunately include popular ones like Travis and TeamCity.

    • -0
    • +13
    ./configuration/BuildProcessTest.groovy
  1. … 1 more file in changeset.
Allow starting daemon with lower priority

    • -2
    • +3
    ./client/DefaultDaemonConnectorTest.groovy
    • -0
    • +10
    ./context/DaemonCompatibilitySpecSpec.groovy
    • -1
    • +1
    ./protocol/DaemonStatusAndErrorReportingTest.groovy
    • -1
    • +2
    ./registry/DaemonRegistryServicesTest.groovy
    • -2
    • +3
    ./server/DaemonRegistryUnavailableExpirationStrategyTest.groovy
  1. … 18 more files in changeset.
Move the 'interactive' flag that is passed from the client to daemon so that it lives in only one place. The flag is still on `StartParameter` but is unused and should later be deprecated and removed.

    • -2
    • +3
    ./protocol/DaemonMessageSerializerTest.groovy
  1. … 19 more files in changeset.
Change the user prompt infrastructure to give the user some feedback when they enter a value that isn't valid for the question. Add some test coverage for user prompting.

    • -3
    • +10
    ./protocol/DaemonMessageSerializerTest.groovy
  1. … 24 more files in changeset.
Use PathToFileResolver where possible (#5805)

    • -1
    • +1
    ./configuration/DaemonJvmOptionsTest.groovy
  1. … 41 more files in changeset.
Speed up tests by creating global services less often

    • -3
    • +3
    ./client/DaemonClientServicesTest.groovy
  1. … 1 more file in changeset.
Revert "Speed up tests by creating services less often"

This reverts commit d828dbd83322b2510b3fe20831e12dd7e5a9af86.

    • -3
    • +3
    ./client/DaemonClientServicesTest.groovy
  1. … 1 more file in changeset.