ContinuousBuildActionExecuterTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
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`.

    • -56
    • +2
    ./ContinuousBuildActionExecuterTest.groovy
  1. … 25 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.

    • -1
    • +1
    ./ContinuousBuildActionExecuterTest.groovy
  1. … 19 more files in changeset.
Dogfood ImmutableFileCollection in tests (#4972)

Reduce the number of static factory methods from ImmutableFileCollection

Use layout.fileFor() in a smoke test

    • -2
    • +2
    ./ContinuousBuildActionExecuterTest.groovy
  1. … 32 more files in changeset.
Add a test for #3601

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

    • -0
    • +23
    ./ContinuousBuildActionExecuterTest.groovy
Strive to keep Gradle's monotonic clock in sync with the system clock

    • -3
    • +6
    ./ContinuousBuildActionExecuterTest.groovy
  1. … 71 more files in changeset.
Simplify time handling internally and for build scans (#2857)

* Don't make TimeProvider Serializable.

This isn't safe and generally doesn't make sense.

* Extract and promote the concept of a build timer.

This was previously not well defined and being overlaid with the concept of when a user/tool requested something, which is not always the same thing.

* Pare down the deprecated org.gradle.util.Clock down to the minimum required.

Internal usage is replaced by a `getStartTime()` directly on BuildRequestContext.

What is left is only kept for backwards compatibility with scans.

* Rename TimeProvider to Clock.

* Move BuildExecutionTimer out of baseServices into core, and into a better package.

* Remove unused.

* Simplify the time package by merging types.

* Prevent the client's build started timestamp from being later than when the provider received the build request.

* Provide a dedicated mechanism for conveying the build start time to build scans.

* Consolidate the ways of formatting durations.

    • -7
    • +7
    ./ContinuousBuildActionExecuterTest.groovy
  1. … 179 more files in changeset.
`ContinuousExecutionGate` is now provided by `DeploymentRegistry`

    • -6
    • +4
    ./ContinuousBuildActionExecuterTest.groovy
  1. … 7 more files in changeset.
Moved deployment API into public `org.gradle.deployment`

    • -1
    • +1
    ./ContinuousBuildActionExecuterTest.groovy
  1. … 25 more files in changeset.
Rename BuildGateToken to ContinuousExecutionGate

    • -3
    • +3
    ./ContinuousBuildActionExecuterTest.groovy
  1. … 17 more files in changeset.
Combine DeploymentHandleWrapper with Deployment

    • -0
    • +4
    ./ContinuousBuildActionExecuterTest.groovy
  1. … 14 more files in changeset.
Refer to the BuildGateToken as the buildGate

    • -2
    • +2
    ./ContinuousBuildActionExecuterTest.groovy
  1. … 10 more files in changeset.
Wire build gate into build request context

    • -1
    • +3
    ./ContinuousBuildActionExecuterTest.groovy
  1. … 4 more files in changeset.
Add BuildGateToken dummy implementation

- Introduce a BuildGateToken type to be used to block continuous build

- Dummy implementation can never be blocked

    • -1
    • +1
    ./ContinuousBuildActionExecuterTest.groovy
  1. … 6 more files in changeset.
Notify deployments when pending changes are detected

- The play application keeps track of the number of pending changes

- When the number of pending changes == 0, we release the Play app

and reload it

- Only notify about changes once per build

    • -4
    • +8
    ./ContinuousBuildActionExecuterTest.groovy
  1. … 26 more files in changeset.
Refactor to move the file event watcher to a separate class/factory

    • -3
    • +3
    ./ContinuousBuildActionExecuterTest.groovy
  1. … 10 more files in changeset.
Fix Gradle's buildSrc tests that rely on calling execute() on a task

    • -1
    • +2
    ./ContinuousBuildActionExecuterTest.groovy
  1. … 4 more files in changeset.
Change TaskInputsListener into a service vs a simple Listener

Using the ListenerManager prevents different threads from notifying

the same type of listener if the listener causes the same type of

notifications when called.

    • -6
    • +4
    ./ContinuousBuildActionExecuterTest.groovy
  1. … 4 more files in changeset.
Revert removal of org.gradle.util.Clock

The change currently breaks the build scan plugin.

    • -1
    • +1
    ./ContinuousBuildActionExecuterTest.groovy
  1. … 5 more files in changeset.
Remove misc deprecated classes and methods in core module (#1755)

    • -1
    • +1
    ./ContinuousBuildActionExecuterTest.groovy
  1. … 18 more files in changeset.
Fix test that mocks `org.gradle.util.Clock`

    • -4
    • +1
    ./ContinuousBuildActionExecuterTest.groovy
Moved `Clock` and `TimeProvider` into a separate package

This commit reverts recent changes to the API of

`org.gradle.util.Clock`, and instead deprecates the existing type

replacing with a new internal type. This was done because the

`ExtractDslMetaDataTask` uses this type for timing, and external plugins may have copied this pattern.

`org.gradle.util.Clock` is now deprecated.

    • -1
    • +1
    ./ContinuousBuildActionExecuterTest.groovy
  1. … 103 more files in changeset.
Fix launcher unit test import

    • -0
    • +1
    ./ContinuousBuildActionExecuterTest.groovy
Revert changes to continuous build

This removes changes that would have ignored changes to project cache dir,

buildDir and the default Ant exclude patterns

Revert "Use CacheScopeMapping.getRootDirectory to lookup cache directory"

This reverts commit bf5f01bca6d67613f1dbfe096cb7a4512105ef1e.

Revert "Ignore changes in project build directories in continuous build"

This reverts commit d339a7067cb839aa2c2317291764c6343954eb67.

Revert "Ignore changes in .gradle directory in continuous build"

This reverts commit 6636655a5ba17f66c18837b80989d21472f66e06.

    • -22
    • +12
    ./ContinuousBuildActionExecuterTest.groovy
  1. … 9 more files in changeset.
Use CacheScopeMapping.getRootDirectory to lookup cache directory

- handle custom project-cache-dir

+review REVIEW-6260

    • -11
    • +16
    ./ContinuousBuildActionExecuterTest.groovy
  1. … 2 more files in changeset.
Introduced a service scope to represent the services that are scoped to a particular Gradle user home directory, and which can be reused across builds. This can include, for example, caches and the shared services that use them.

The services in this scope are reused while the Gradle user home dir remains unchanged, and recreated when it changes.

    • -42
    • +7
    ./ContinuousBuildActionExecuterTest.groovy
  1. … 9 more files in changeset.
Ignore changes in .gradle directory in continuous build

- after making change 6a961999, MultiProjectContinuousIntegrationTest

goes into endless loop because it watches changes under .gradle

directory

+review REVIEW-6260

    • -1
    • +8
    ./ContinuousBuildActionExecuterTest.groovy
  1. … 9 more files in changeset.
Remove GradleConnection API

The GradleConnection API was our first attempt at

implementing composite builds. We have improved on that

in Gradle 3.1, allowing the user to define composite builds

in settings.gradle and giving the user much more control

over how dependency substitution works.

A composite build is a normal Gradle build as far as the

Tooling API is concerned, so the separate concept of

the GradleConnection is no longer needed. We will add

methods for fetching all models from a composite build

to ProjectConnection in Gradle 3.2

    • -1
    • +1
    ./ContinuousBuildActionExecuterTest.groovy
  1. … 136 more files in changeset.
Fixed class cycle

    • -0
    • +222
    ./ContinuousBuildActionExecuterTest.groovy
  1. … 5 more files in changeset.