Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Use logical equality to determine whether a cached value needs to be updated.

  1. … 2 more files in changeset.
Use age-based strategy to clean local build cache

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

  1. … 12 more files in changeset.
Clean up partial files after errors and during GC

Previously '.part' files were left behind after local cache failures, because we expected they would be useful in debugging these cases. That never happened, so we are now removing them even if there's an error, and also during garbage collection.

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

  1. … 5 more files in changeset.
Detangle PersistentCache cleanup action dependencies

- Introduce a new CleanupAction

- Decorate CleanupActions via CleanupActionFactory

- Remove the special case for keeping .part files

- Ask PersistentCache for "reserved" files, these files should never be cleaned up

- Reduce the number of build operations produced when cleaning a PersistentCache

Signed-off-by: Sterling Greene <sterling@gradle.com>

  1. … 19 more files in changeset.
Add coverage for cleaning up VCS checkouts

Signed-off-by: Sterling Greene <sterling@gradle.com>

  1. … 2 more files in changeset.
Add persistent cache cleanup action that deletes files older than a given age

Signed-off-by: Sterling Greene <sterling@gradle.com>

    • -0
    • +71
    ./gradle/cache/internal/AbstractCacheCleanupTest.groovy
    • -0
    • +72
    ./gradle/cache/internal/FixedAgeOldestCacheCleanupTest.groovy
  1. … 5 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)

  1. … 159 more files in changeset.
Restart timer if the lock owner changes

If many processes fight and wait for the same lock, the timeout in one

process could be triggered, because it is "last in line". All the times

others hold the lock are added up for the timeout.

This change resets the timeout as soon as the lock owner changes.

  1. … 2 more files in changeset.
Provide an empty contended action instead of null

This contention handling is already active for exclusive locks, but

without an action it is ignoring requests from other parties.

With this, it sends confirmation that the request was received

and that lock releasing is in progress. Although the release itself

is not performed by the contended action, but manually after the

lock is no longer needed (which is the contract for exclusive locks).

    • -4
    • +4
    ./gradle/cache/internal/FixedExclusiveModeCrossProcessCacheAccessTest.groovy
  1. … 1 more file in changeset.
Start whenContented action before waiting for the lock

The action is now also responsible for receiving confirmation that the

lock is in the process of being released.

    • -44
    • +71
    ./gradle/cache/internal/LockOnDemandCrossProcessCacheAccessTest.groovy
  1. … 3 more files in changeset.
Fix classycle issue

+review REVIEW-6562

  1. … 5 more files in changeset.
Move org.gradle.api.internal.cache to persistent-cache project

+review REVIEW-6562

    • -0
    • +46
    ./gradle/cache/internal/MapBackedCacheTest.groovy
  1. … 85 more files in changeset.
Move org.gradle.cache.internal to persistent-cache project

+review REVIEW-6562

    • -0
    • +545
    ./gradle/cache/internal/AbstractFileLockManagerTest.groovy
    • -0
    • +201
    ./gradle/cache/internal/CacheAccessWorkerTest.groovy
    • -0
    • +729
    ./gradle/cache/internal/DefaultCacheAccessTest.groovy
    • -0
    • +223
    ./gradle/cache/internal/DefaultCacheFactoryTest.groovy
    • -0
    • +150
    ./gradle/cache/internal/DefaultCacheKeyBuilderTest.groovy
    • -0
    • +126
    ./gradle/cache/internal/DefaultCacheRepositoryTest.groovy
    • -0
    • +93
    ./gradle/cache/internal/DefaultFileLockManagerContentionTest.groovy
    • -0
    • +55
    ./gradle/cache/internal/DefaultFileLockManagerWithCrossVersionProtocolTest.groovy
    • -0
    • +282
    ./gradle/cache/internal/DefaultFileLockManagerWithNewProtocolTest.groovy
    • -0
    • +58
    ./gradle/cache/internal/DefaultPersistentDirectoryCacheSpec.groovy
    • -0
    • +290
    ./gradle/cache/internal/DefaultPersistentDirectoryCacheTest.groovy
    • -0
    • +61
    ./gradle/cache/internal/DefaultPersistentDirectoryStoreConcurrencyTest.groovy
    • -0
    • +123
    ./gradle/cache/internal/DefaultPersistentDirectoryStoreTest.groovy
    • -0
    • +40
    ./gradle/cache/internal/DefaultProcessMetaDataProviderTest.groovy
    • -0
    • +99
    ./gradle/cache/internal/FileLockCommunicatorTest.groovy
  1. … 170 more files in changeset.
Only send ping for lock release once

  1. … 5 more files in changeset.
Improve block pointer error handling

Don't throw a vanilla IllegalArgumentException, but

a CacheCorruptedException. This ensures that the layers

further up can discard the cache and recreate the value.

    • -0
    • +30
    ./gradle/cache/internal/btree/BlockPointerTest.groovy
  1. … 1 more file in changeset.