DaemonClientServicesTest.groovy

Clone Tools
  • last updated a few minutes ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
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.
Speed up tests by creating global services less often

  1. … 1 more file in changeset.
Revert "Speed up tests by creating services less often"

This reverts commit d828dbd83322b2510b3fe20831e12dd7e5a9af86.

  1. … 1 more file in changeset.
Remove unused import

Speed up tests by creating services less often

Creating the global scope services is expensive.

This change makes sure we eithe reuse them or

use the less expensive basic global scope services.

  1. … 1 more file in changeset.
Moved classes out of o.g.internal.logging.internal to remove this package.

  1. … 81 more files in changeset.
Moved internal logging classes from 'core' to 'logging' project.

  1. … 418 more files in changeset.
Hoisted up a couple of daemon client services to global scope.

  1. … 2 more files in changeset.
Cleanup of NativeServices testing changes - Changed use of NativeServicesTestFixture to annotation in many cases - Centralized temp dir creation logic - Enhanced uninitialized NativeServices error message

+review REVIEW-5378

  1. … 41 more files in changeset.
Some cleanup of native services initialization in unit tests

+review REVIEW-5378

  1. … 13 more files in changeset.
Initializing native services for more broken tests

+review REVIEW-5378

  1. … 11 more files in changeset.
Changed daemon client wiring so that the client shares services from the environment it is running in.

  1. … 7 more files in changeset.
Expand test time support for setting language to the full locale, and respect locale settings when finding a compatible daemon.

+review REVIEW-5061

  1. … 21 more files in changeset.
REVIEW-1198 Refactored the commandline / properties conversion in order to tidy up the internals.

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

  1. … 308 more files in changeset.
Rename TestFileContext to TestWorkDirProvider, and don't make TestFile implement it.

  1. … 63 more files in changeset.
Refactoring of DaemonClient for single-use mode - Added DaemonConnector.createConnection, which doesn't require a compatibility spec and does not look through existing daemons - Only attempt to contact the created daemon process once - Added a SingleUseDaemonClient, which does not make repeated attempts to contact a remote daemon - Improved logging/error messages to differentiate from regular daemon processing - Cleaned up the way that DaemonClients were created: got rid of DaemonClientFactory and introduced new service stacks.

  1. … 13 more files in changeset.
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.
Refactoring. Fixed some class dependencies to make the design clearer. The DaemonMain/ForegroundDaemonMain does not depend on DaemonParameters any more. It's clearer to see what is the configuration of the daemon server without actually going through the DaemonParameters that contain various defaulting and parsing logic. Still some cleanup with the daemon's startupJvmOptions is pending.

  1. … 19 more files in changeset.
Changes to the way we create a Daemon Client - Added a DaemonClientFactory that is constructed by DaemonClientServices - Supply the DaemonCompatibilitySpec when creating a DaemonClient using the DaemonClientFactory. - DaemonClient now only stops those daemons that match it's compatibility spec - Use a 'compatible with all daemons' client for running stop command - Construct a client that matches the daemon startup parameters for executing a build

  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.
Some fixes to the tests so that redundant emtpy folders are no longer created within project structure.

  1. … 2 more files in changeset.
Made the daemon process honour the configured javaHome for selecting the java executable...

It's one of the remaining things around the javaHome setting for daemon (also related to the tooling api). Also, moved the DaemonParameters to the daemon.client package as it fits much better there.

  1. … 13 more files in changeset.
Removed a recently added type as it seems to be an overkill

Revert "Tooling api consuming std input. Refactoring..."

This reverts commit e504be36e79e8cd411948d194fe91f9fcb05e467.

  1. … 8 more files in changeset.
Tooling api consuming std input. Refactoring...

Wrapped the InputStream into something more descriptive and easier to refactor down the road if necessary.

  1. … 8 more files in changeset.
Basic support for passing input stream from tooling api to the builds...

-For now, I'm using reflection to find out if a VersionX interface has the method I need. It would be cool to work out a good strategy for such cases (e.g. something better than adding more VersionX interfaces).

-Added for now only to the model builder. Needs a bit of polishing.

-For now, only works with tooling api and forked daemon.

-For now, passing the InputStream down to the DaemonClient. I'm thinking to wrap it into something nicer.

-If inputStream is not provided, the tooling api will use 'dummy' input stream, so that the builds will mess the host process's streams.

-Needs some coverage around concurrency

  1. … 11 more files in changeset.
- Introduced DaemonParameters to package up the daemon startup parameters. - Merged DaemonIdleTimeout and most of DaemonDir into DaemonParameters. - Change DaemonServices to records its actual jvm args in DaemonContext.

  1. … 20 more files in changeset.
added ability to set JVM opts for daemon VM via GRADLE_DAEMON_OPTS env variable

  1. … 4 more files in changeset.
Remove the “daemon-registry-dir” CLI option, instead using a system property to specify this.

  1. … 12 more files in changeset.