Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Move 'org.gradle.caching' to build-cache

+review REVIEW-6562

    • -126
    • +0
    ./BaseBuildCacheServiceHandle.java
    • -40
    • +0
    ./BuildCacheServicesConfiguration.java
    • -66
    • +0
    ./DefaultLocalBuildCacheServiceHandle.java
    • -47
    • +0
    ./LocalBuildCacheServiceHandle.java
    • -63
    • +0
    ./NullLocalBuildCacheServiceHandle.java
    • -131
    • +0
    ./OpFiringBuildCacheServiceHandle.java
  1. … 140 more files in changeset.
Add task path to task output build cache key (#2668)

  1. … 18 more files in changeset.
Improve progress feedback for remote build cache operations.

    • -3
    • +54
    ./OpFiringBuildCacheServiceHandle.java
Polish progress display name for build cache operations

We now use `Loading from build cache` and `Storing in build cache`.

    • -2
    • +2
    ./OpFiringBuildCacheServiceHandle.java
Use sentence case for progress logging of build cache ops

PR #2498

    • -2
    • +2
    ./OpFiringBuildCacheServiceHandle.java
  1. … 1 more file in changeset.
Add progress message for build cache operations

    • -2
    • +4
    ./OpFiringBuildCacheServiceHandle.java
  1. … 1 more file in changeset.
Set content length when uploading HTTP build cache entry

  1. … 5 more files in changeset.
Improve error feedback for build cache errors (#2473)

We shouldn't fail the build when we can't package a task's outputs. We should also not fail the build when unpacking some already downloaded outputs.

If there was a failure during unpacking, we can expect the task's output files to be in a messed up state. If this happens, we explicitly clean all of the task's outputs, update the pre-execution output file snapshots, and force the task to execute in non-incremental mode.

This commit also removes the retry logic we had previously when "recoverable" errors were encountered while downloading or uploading cached results. Instead, all errors (except for the aforementioned failed unpacking cleanup errors) are recoverable, and we simply switch off the cache for the build after the first such error.

    • -1
    • +1
    ./DefaultLocalBuildCacheServiceHandle.java
    • -1
    • +1
    ./NullLocalBuildCacheServiceHandle.java
  1. … 23 more files in changeset.
Copy remote cache artifacts into local cache 2

Fixes some issues and improves test coverage

  1. … 11 more files in changeset.
Store artifacts from the remote cache in the local cache

When the default local directory build cache is used, we use an optimized

way to store the downloaded artifact in the cache. Using a custom local

cache, or with the local cache disabled, a temporary file will be used

to store the downloaded artifact.

Packing is also separated from uploading to the remote cache. Again,

when the default directory cache is used to store the cached artifact in

the local cache before uploading it to the remote cache. With a custom

local cache, or when a local cache is not enabled, task outputs will be

stored in a temporary file before uploading.

Build operations are emitted separately for packing, unpacking,

uploading and downloading the cache artifact.

    • -0
    • +126
    ./BaseBuildCacheServiceHandle.java
    • -0
    • +42
    ./BuildCacheServiceHandle.java
    • -0
    • +35
    ./BuildCacheServiceRole.java
    • -0
    • +40
    ./BuildCacheServicesConfiguration.java
    • -0
    • +66
    ./DefaultLocalBuildCacheServiceHandle.java
    • -0
    • +47
    ./LocalBuildCacheServiceHandle.java
    • -0
    • +58
    ./NullBuildCacheServiceHandle.java
    • -0
    • +63
    ./NullLocalBuildCacheServiceHandle.java
    • -0
    • +78
    ./OpFiringBuildCacheServiceHandle.java
  1. … 46 more files in changeset.
Replace usages of org.gradle.api.Nullable

With javax.annotation.Nullable.

  1. … 459 more files in changeset.