DaemonRegistryServicesTest.groovy

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

Closes https://github.com/gradle/gradle-private/issues/2988

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

  1. … 407 more files in changeset.
Fix tests

  1. … 372 more files in changeset.
Move Stat and Chmod to :files

  1. … 38 more files in changeset.
Move Stat and Chmod to :files

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

  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.

  1. … 13 more files in changeset.
Allow starting daemon with lower priority

  1. … 23 more files in changeset.
Move some of persistent-cache out of core

+review REVIEW-6562

  1. … 127 more files in changeset.
Fix mocking of services

  1. … 7 more files in changeset.
Make daemon state visible in the registry

+review REVIEW-6160

  1. … 24 more files in changeset.
Ensure that the daemon registry file and parent directory have read and write permission set only for the user.

  1. … 9 more files in changeset.
Changed the daemon to reject a build command that does not include the correct authentication token.

The authentication token is generated by the daemon on startup and written to the registry, and read from the registry by the client and passed back to the daemon in build/stop commands.

Note that the daemon and client currently do not take any steps to prevent the world reading (or writing) the registry beyond whatever the OS happens to do by default. This will be fixed in a later commit.

  1. … 38 more files in changeset.
Reinstate "Implement and test the LRU expiration strategy."

This reverts commit 2b9a76181b061922daea852a63b660c346689b66.

  1. … 17 more files in changeset.
Temporarily revert "Implement and test the LRU expiration strategy. This commit doesn't flip it on." to get CompositeDaemonExpirationStrategy class back.

This reverts commit 9458848597819f9c8e55631ba5289ca9c52ba369.

  1. … 17 more files in changeset.
Implement and test the LRU expiration strategy. This commit doesn't flip it on.

  1. … 17 more files in changeset.
Moved `o.g.messaging.*` to `o.g.internal.*`.

  1. … 295 more files in changeset.
Changes to make it ready for build with Gradle 2.0 (codenarc).

  1. … 13 more files in changeset.
Changed GlobalScopeServices so that it no longer extends DefaultServiceRegistry.

    • -2
    • +10
    ./DaemonRegistryServicesTest.groovy
  1. … 17 more files in changeset.
Converted DaemonRegistryServices so that it no longer extends DefaultServiceRegistry.

  1. … 6 more files in changeset.
Some renaming and cleanup around the test/temp directory used in tests.

  1. … 308 more files in changeset.
Rename org.gradle.tests package to org.gradle.test

  1. … 12 more files in changeset.
Add the daemon entry to the registry and mark as busy as a single atomic operation, so that the daemon cannot be stolen by another client.

  1. … 8 more files in changeset.
Added a sanity test for concurrent writing to the daemon registry. I needed that earlier to eliminate some of the theories on the daemon issues.

    • -0
    • +19
    ./DaemonRegistryServicesTest.groovy
more Spock-related test fixes

- JUnit rules must now declare a field type, and that type must implement MethodRule/TestRule

- turned TestProxyServer into a rule (it was already used as if it was a rule)

- extended org.junit.rules.ExternalResource instead of implementing TestRule in some places

  1. … 9 more files in changeset.
More fixes to the tests so that redundant emtpy folders are no longer created within project structure.

  1. … 3 more files in changeset.
Test for daemon registry instance reuse per registry file

    • -0
    • +32
    ./DaemonRegistryServicesTest.groovy