CachedCustomTaskExecutionIntegrationTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Fix path sensitivity for property declarations in tests

    • -45
    • +71
    ./CachedCustomTaskExecutionIntegrationTest.groovy
  1. … 8 more files in changeset.
Fix test

    • -5
    • +5
    ./CachedCustomTaskExecutionIntegrationTest.groovy
Change more tests.

    • -13
    • +13
    ./CachedCustomTaskExecutionIntegrationTest.groovy
  1. … 40 more files in changeset.
Changed a bunch of integration tests to use the various task assertion methods instead of directly querying the `executedTasks` and `skippedTasks` collections. These methods can give better diagnostics when the assertion fails, and can perform additional checks.

    • -18
    • +18
    ./CachedCustomTaskExecutionIntegrationTest.groovy
  1. … 50 more files in changeset.
Changed a bunch of integration tests to use the various task assertion methods instead of directly querying the `executedTasks` and `skippedTasks` collections. These methods can give better diagnostics when the assertion fails, and can perform additional checks.

    • -31
    • +31
    ./CachedCustomTaskExecutionIntegrationTest.groovy
  1. … 98 more files in changeset.
Changed a bunch of integration tests to use the various task assertion methods instead of directly querying the `executedTasks` and `skippedTasks` collections. These methods can give better diagnostics when the assertion fails, and can perform additional checks.

    • -31
    • +31
    ./CachedCustomTaskExecutionIntegrationTest.groovy
  1. … 98 more files in changeset.
Changed a bunch of integration tests to use the various task assertion methods instead of directly querying the `executedTasks` and `skippedTasks` collections. These methods can give better diagnostics when the assertion fails, and can perform additional checks.

    • -18
    • +18
    ./CachedCustomTaskExecutionIntegrationTest.groovy
  1. … 50 more files in changeset.
Changed a bunch of integration tests to use the various task assertion methods instead of directly querying the `executedTasks` and `skippedTasks` collections. These methods can give better diagnostics when the assertion fails, and can perform additional checks.

    • -31
    • +31
    ./CachedCustomTaskExecutionIntegrationTest.groovy
  1. … 98 more files in changeset.
Fixes for changes to fixture.

    • -7
    • +7
    ./CachedCustomTaskExecutionIntegrationTest.groovy
  1. … 10 more files in changeset.
Change `ExecutionResult` so that it does not ignore `buildSrc` tasks.

    • -7
    • +7
    ./CachedCustomTaskExecutionIntegrationTest.groovy
  1. … 17 more files in changeset.
Change `ExecutionResult` so that it does not ignore `buildSrc` tasks.

    • -7
    • +7
    ./CachedCustomTaskExecutionIntegrationTest.groovy
  1. … 17 more files in changeset.
Change `ExecutionResult` so that it does not ignore `buildSrc` tasks.

    • -7
    • +7
    ./CachedCustomTaskExecutionIntegrationTest.groovy
  1. … 17 more files in changeset.
Change `ExecutionResult` so that it does not ignore `buildSrc` tasks.

    • -7
    • +7
    ./CachedCustomTaskExecutionIntegrationTest.groovy
  1. … 17 more files in changeset.
Fix tests

    • -2
    • +5
    ./CachedCustomTaskExecutionIntegrationTest.groovy
  1. … 11 more files in changeset.
Use `_Decorated` as class name for generated task classes

If we don't, there seems to be some problems when syncing with IDEA.

See #8244

    • -1
    • +1
    ./CachedCustomTaskExecutionIntegrationTest.groovy
  1. … 3 more files in changeset.
Allow the services required by a given class to be queried prior to creating any instances of that class. Use this to allow `ArtifactTransformDependencies` to be injected into artifact transforms using any of the service injection patterns (that is, via a constructor or a getter).

    • -1
    • +1
    ./CachedCustomTaskExecutionIntegrationTest.groovy
  1. … 127 more files in changeset.
Fix tests

    • -1
    • +1
    ./CachedCustomTaskExecutionIntegrationTest.groovy
  1. … 3 more files in changeset.
Better reporting on non-cacheable inputs (#6872)

    • -2
    • +2
    ./CachedCustomTaskExecutionIntegrationTest.groovy
  1. … 18 more files in changeset.
Enable caching for most plural outputs

When @OutputFiles or @OutputDirectories is used with an Iterable (instead of a Map), we previously disabled caching without much explanation. The original reason for this was that we expected a difference in cardinality of outputs between the task producing the output and the one consuming it. However, if we represent each entry in the collection as an indexed property, then unmatched cardinality will produce a different cache key anyway. Thus there's no need for this limitation.

    • -5
    • +75
    ./CachedCustomTaskExecutionIntegrationTest.groovy
  1. … 6 more files in changeset.
Disable caching when lambda is used as input

We disable caching an up-to-date checks whenever a lambda is used as

input.

    • -2
    • +2
    ./CachedCustomTaskExecutionIntegrationTest.groovy
  1. … 23 more files in changeset.
Use "store" instead of "push" in build cache documentation

Push can be misunderstood to mean that the remote cache pushes artifacts

to the local cache/the developer machine. Store makes it clear that

the outputs are stored in the build cache.

    • -2
    • +2
    ./CachedCustomTaskExecutionIntegrationTest.groovy
  1. … 5 more files in changeset.
Use "store" instead of "push" in build cache documentation

Push can be misunderstood to mean that the remote cache pushes artifacts

to the local cache/the developer machine. Store makes it clear that

the outputs are stored in the build cache.

    • -2
    • +2
    ./CachedCustomTaskExecutionIntegrationTest.groovy
  1. … 5 more files in changeset.
Add some more assertion methods to `ExecutionResult` and change several tests and utility methods to use these methods instead of reimplementing the logic.

    • -1
    • +1
    ./CachedCustomTaskExecutionIntegrationTest.groovy
  1. … 11 more files in changeset.
Allow enabling build cache in all integration tests

Signed-off-by: Lóránt Pintér <lorant@gradle.com>

    • -44
    • +44
    ./CachedCustomTaskExecutionIntegrationTest.groovy
  1. … 27 more files in changeset.
Clean up local cache fixture

Signed-off-by: Lóránt Pintér <lorant@gradle.com>

    • -0
    • +8
    ./CachedCustomTaskExecutionIntegrationTest.groovy
  1. … 8 more files in changeset.
Fix local cache concurrency (#3540)

The problem was that the local directory cache did not prevent reads overlapping with writes in-process. The assumption was that writes would be atomic, but in practice they are unfortunately not.

With this commit we now use a read-write lock to make sure reads only overlap other reads, and writes are executed in isolation. Both reads and writes happen behind an inter-process lock, so there's always just one process reading from or writing to the build cache directory.

    • -0
    • +32
    ./CachedCustomTaskExecutionIntegrationTest.groovy
  1. … 2 more files in changeset.
Fix store-first local cache bug (#3329)

Ensure local directory cache is initialized even if first access is a `store()` not a `load()`. This can happen when the first cacheable task in a build needs to be re-run (because of `--rerun-tasks` or `upToDateWhen()` returning `false`).

    • -0
    • +28
    ./CachedCustomTaskExecutionIntegrationTest.groovy
  1. … 7 more files in changeset.
Test for null local state

    • -0
    • +16
    ./CachedCustomTaskExecutionIntegrationTest.groovy
  1. … 1 more file in changeset.
Remove task's local state after loading from cache

    • -1
    • +54
    ./CachedCustomTaskExecutionIntegrationTest.groovy
  1. … 14 more files in changeset.
Merge branch 'release'

    • -0
    • +30
    ./CachedCustomTaskExecutionIntegrationTest.groovy
  1. … 7 more files in changeset.