ResolveBuildCacheKeyExecuterTest.groovy

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

    • -149
    • +0
    ./ResolveBuildCacheKeyExecuterTest.groovy
  1. … 57 more files in changeset.
Make Checkstyle happy

    • -0
    • +2
    ./ResolveBuildCacheKeyExecuterTest.groovy
  1. … 38 more files in changeset.
Mark input snapshotting finished in execution engine

Moving more parts over to execution engine.

    • -1
    • +2
    ./ResolveBuildCacheKeyExecuterTest.groovy
  1. … 11 more files in changeset.
Code cleanup NO_REUSED_OUTPUTS -> WITHOUT_OUTPUTS

    • -2
    • +2
    ./ResolveBuildCacheKeyExecuterTest.groovy
  1. … 16 more files in changeset.
Undo rename of TaskProperties

    • -3
    • +3
    ./ResolveBuildCacheKeyExecuterTest.groovy
  1. … 23 more files in changeset.
Move more things to properties package

    • -2
    • +3
    ./ResolveBuildCacheKeyExecuterTest.groovy
  1. … 35 more files in changeset.
Add ExecutingBuildOperation

And use it to track input snapshotting and build cache key calculation.

    • -29
    • +2
    ./ResolveBuildCacheKeyExecuterTest.groovy
  1. … 13 more files in changeset.
Pass whether results are reused separate from origin metadata

    • -2
    • +3
    ./ResolveBuildCacheKeyExecuterTest.groovy
  1. … 32 more files in changeset.
Resolve before execution state explicitly

    • -17
    • +3
    ./ResolveBuildCacheKeyExecuterTest.groovy
  1. … 15 more files in changeset.
Resolve output files before execution explicitly

    • -3
    • +3
    ./ResolveBuildCacheKeyExecuterTest.groovy
  1. … 16 more files in changeset.
Pass in before execution outputs when getting execution state

    • -3
    • +7
    ./ResolveBuildCacheKeyExecuterTest.groovy
  1. … 8 more files in changeset.
Move persistNewOutput() out to TaskExecution

    • -10
    • +13
    ./ResolveBuildCacheKeyExecuterTest.groovy
  1. … 10 more files in changeset.
Store previous execution state in task context only

    • -3
    • +8
    ./ResolveBuildCacheKeyExecuterTest.groovy
  1. … 13 more files in changeset.
Use BeforeExecutionState

Instead of CurrentTaskWExecution, as the distinction is not needed anymore.

    • -4
    • +5
    ./ResolveBuildCacheKeyExecuterTest.groovy
  1. … 9 more files in changeset.
Move value snapshot implementations to snapshots project

    • -1
    • +1
    ./ResolveBuildCacheKeyExecuterTest.groovy
  1. … 96 more files in changeset.
Fix test

    • -5
    • +5
    ./ResolveBuildCacheKeyExecuterTest.groovy
Fix / ignore tests until build scan plugin 2.0 is out and used in AutoAppliedBuildScanPlugin

    • -4
    • +4
    ./ResolveBuildCacheKeyExecuterTest.groovy
  1. … 1 more file in changeset.
Better reporting on non-cacheable inputs (#6872)

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

    • -2
    • +5
    ./ResolveBuildCacheKeyExecuterTest.groovy
  1. … 32 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.

    • -1
    • +1
    ./ResolveBuildCacheKeyExecuterTest.groovy
  1. … 13 more files in changeset.
Make unknown nested inputs available to build scan plugin (#3958)

The build scan plugin should be aware when a task is not cached or not

up-to-date if nested inputs have been loaded by a classloader not

managed by Gradle.

    • -6
    • +5
    ./ResolveBuildCacheKeyExecuterTest.groovy
  1. … 4 more files in changeset.
Support rich task inputs (#3720)

@Nested inputs are now discovered based on the runtime type instead of the static type.

    • -6
    • +5
    ./ResolveBuildCacheKeyExecuterTest.groovy
  1. … 150 more files in changeset.
Use our own hashing architecture, take 2 (#2817)

This replaces Guava's hashing. We need this for two reasons:

- it allows the addition of custom hash functions, like BLAKE2b which would not be possible with Guava's closed design

- it fixes a few performance issues that Guava only fixes in version 20 (which we can't upgrade to right now, because we still need to support Java 5 in places)

    • -9
    • +9
    ./ResolveBuildCacheKeyExecuterTest.groovy
  1. … 159 more files in changeset.
Add task path to task output build cache key (#2668)

    • -4
    • +4
    ./ResolveBuildCacheKeyExecuterTest.groovy
  1. … 18 more files in changeset.
Expose the task up to date messages to scans (#2146)

This change makes the existing “execute task” build operation a “rich” operation (i.e. visible to scans) and uses it to convey the up to date messages.

Other task result data that was on TaskStateInternal for the sake of scans has been moved to the result of this op.

As part of this change, the scan plugin no longer uses TaskStateInternal, TaskExecutionListener or InternalTaskExecutionListener. The latter existed just for build scans, so it has now been removed.

    • -10
    • +0
    ./ResolveBuildCacheKeyExecuterTest.groovy
  1. … 27 more files in changeset.
Remove TaskOutputCachingListener

+review REVIEW-6539

    • -6
    • +3
    ./ResolveBuildCacheKeyExecuterTest.groovy
  1. … 4 more files in changeset.
Handle null cases of task input snapshots. (#2073)

* Handle null cases of task input snapshots.

* Handle null cases of task input snapshots.

    • -1
    • +3
    ./ResolveBuildCacheKeyExecuterTest.groovy
  1. … 5 more files in changeset.
Always use List as the collection type for rich build operation details/results.

    • -1
    • +1
    ./ResolveBuildCacheKeyExecuterTest.groovy
  1. … 5 more files in changeset.
Add the action class names to the SnapshotTaskInputsBuildOperationType.Result.

    • -2
    • +10
    ./ResolveBuildCacheKeyExecuterTest.groovy
  1. … 4 more files in changeset.
Reorganise the rich build operation details/results type to further decouple from producer side semantics.

    • -8
    • +8
    ./ResolveBuildCacheKeyExecuterTest.groovy
  1. … 82 more files in changeset.