CachedTaskExecutionIntegrationTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Deprecate specifying the type of the local cache

    • -2
    • +2
    ./CachedTaskExecutionIntegrationTest.groovy
  1. … 10 more files in changeset.
Deprecate specifying the type of the local cache

    • -2
    • +2
    ./CachedTaskExecutionIntegrationTest.groovy
  1. … 10 more files in changeset.
Change more tests.

    • -6
    • +6
    ./CachedTaskExecutionIntegrationTest.groovy
  1. … 40 more files in changeset.
Change more tests.

    • -14
    • +14
    ./CachedTaskExecutionIntegrationTest.groovy
  1. … 17 more files in changeset.
Change more tests.

    • -8
    • +8
    ./CachedTaskExecutionIntegrationTest.groovy
  1. … 13 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.

    • -28
    • +28
    ./CachedTaskExecutionIntegrationTest.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.

    • -28
    • +28
    ./CachedTaskExecutionIntegrationTest.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.

    • -28
    • +28
    ./CachedTaskExecutionIntegrationTest.groovy
  1. … 98 more files in changeset.
Remove duplicate test

    • -25
    • +5
    ./CachedTaskExecutionIntegrationTest.groovy
Test build cache debug logging

    • -0
    • +17
    ./CachedTaskExecutionIntegrationTest.groovy
  1. … 1 more file in changeset.
Determine caching state and calculate cache key in execution engine

This also moves logging while building the cache key to the execution engine. As a consequence transforms can also log how their cache keys are being built.

    • -8
    • +9
    ./CachedTaskExecutionIntegrationTest.groovy
  1. … 57 more files in changeset.
Test that upToDateWhen { false } disables caching

    • -2
    • +10
    ./CachedTaskExecutionIntegrationTest.groovy
Finalize the value of any task `@Input` property whose getter returns a property instance, at the start of execution of the task.

This means that the property value will not change once the task has started execution, so that the same value is always used during fingerprinting, cache key calculation, validation, when queried by a task action, and so on.

This behaviour only applies to `@Input` properties in this commit. This was just a place to start. Other properties will be added in later commits.

Changes to the property are ignored once the value is finalized implicitly in this way and generate a deprecation warning instead of failing, as would happen after `finalizeValue()` is called. This allows a migration path for task types that can add a new property to represent some input and keep their existing lenient (but now deprecated) behaviour for an existing property backed by the new property. It might prove better to flip this around, let's see.

    • -0
    • +1
    ./CachedTaskExecutionIntegrationTest.groovy
  1. … 61 more files in changeset.
Use ImplementationSnapshot for ClassLoaderAwareAction

    • -4
    • +2
    ./CachedTaskExecutionIntegrationTest.groovy
  1. … 8 more files in changeset.
Expose input file snapshots to build operation listeners (#6153)

    • -1
    • +2
    ./CachedTaskExecutionIntegrationTest.groovy
  1. … 32 more files in changeset.
Change int tests to use relevant fixture methods to express their expectations about the build log output.

    • -1
    • +1
    ./CachedTaskExecutionIntegrationTest.groovy
  1. … 30 more files in changeset.
Log events on INFO level instead of LIFECYCLE

    • -6
    • +6
    ./CachedTaskExecutionIntegrationTest.groovy
  1. … 3 more files in changeset.
Add a property for enabling build cache debugging (#4206)

Input property hashes will now only be printed if the property `org.gradle.caching.debug` is

enabled.

    • -3
    • +18
    ./CachedTaskExecutionIntegrationTest.groovy
  1. … 13 more files in changeset.
Fix implementation

    • -3
    • +3
    ./CachedTaskExecutionIntegrationTest.groovy
  1. … 8 more files in changeset.
Allow enabling build cache in all integration tests

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

    • -34
    • +34
    ./CachedTaskExecutionIntegrationTest.groovy
  1. … 27 more files in changeset.
Do not restore file dates when unpacking task outputs (#2667)

    • -29
    • +0
    ./CachedTaskExecutionIntegrationTest.groovy
  1. … 5 more files in changeset.
Use GStrings in Test

+review REVIEW-6543

    • -8
    • +8
    ./CachedTaskExecutionIntegrationTest.groovy
Report input property hashes at info level

Users should be able to inspect input property hashes.

Users should never have to enable `debug` logs.

+review REVIEW-6543

    • -0
    • +22
    ./CachedTaskExecutionIntegrationTest.groovy
  1. … 1 more file in changeset.
Extract test fixture for HttpBuildCache

    • -2
    • +2
    ./CachedTaskExecutionIntegrationTest.groovy
  1. … 21 more files in changeset.
Only disable caching if compiler is actually forked

+review REVIEW-6514

    • -1
    • +2
    ./CachedTaskExecutionIntegrationTest.groovy
  1. … 5 more files in changeset.
Un-deprecate ForkOptions.executable

Task output caching is disabled if this feature is used as we can’t track what we actually execute.

+review REVIEW-6514

    • -0
    • +22
    ./CachedTaskExecutionIntegrationTest.groovy
  1. … 7 more files in changeset.
Log when task has custom actions

Do this for every task when task output caching is enabled.

+review REVIEW-6511

    • -0
    • +20
    ./CachedTaskExecutionIntegrationTest.groovy
  1. … 1 more file in changeset.
Use separate output directories for all JVM languages

- Introduce an outputDir on SourceDirectorySet

- Default output directory is now `build/classes/<source directory set name>/<source set name>`

- Example: Java compilation goes to build/classes/java/main instead of build/classes/main

- Adapt JDepend, FindBugs, Test and ValidateTaskProperties tasks to handle multiple class directories

- Deprecate setClassesDir/getClassesDir on SourceSetOutput

- Calling setClassesDir restores old behavior (shared output directory)

- Introduce addClassesDir and getClassesDirs on SourceSetOutput

- OSGi plugin needs a single classes directory, so introduce 'osgiClasses' task that syncs all classes to a single directory

Most of the changes to integration tests are find classes in their new location. Helper methods in AbstractIntegrationSpec

can locate class files vs hardcoding a path.

Squashed commit of sg-split-jvm-classes branch for REVIEW-6502

    • -5
    • +5
    ./CachedTaskExecutionIntegrationTest.groovy
  1. … 119 more files in changeset.
Cache hashes for classpath entries

    • -2
    • +0
    ./CachedTaskExecutionIntegrationTest.groovy
  1. … 15 more files in changeset.
Clarify comment in test

#1873

    • -3
    • +3
    ./CachedTaskExecutionIntegrationTest.groovy