Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Force non-incremental execution after cache load failure

    • -2
    • +3
    ./internal/controller/DefaultBuildCacheControllerTest.groovy
  1. … 22 more files in changeset.
Force non-incremental execution after cache load failure

    • -2
    • +3
    ./internal/controller/DefaultBuildCacheControllerTest.groovy
  1. … 22 more files in changeset.
Force non-incremental execution after cache load failure

    • -1
    • +1
    ./internal/controller/DefaultBuildCacheControllerTest.groovy
  1. … 22 more files in changeset.
Invert dependencies of buildCache and coreApi

While it would be great to have a split between domain object, the

tanglement of the current API makes it hard to do so.

For now, let's move the `buildCache` API to `coreApi` and invert the

dependency.

    • -67
    • +0
    ./MapBasedBuildCacheServiceTest.groovy
  1. … 28 more files in changeset.
Replace most direct usages of `DirectInstantiator` with indirect usages via `InstantiatorFactory` or test fixtures instead. This means more consistent behaviour in unit tests because the objects under test will behave more similarly to how they do at runtime. This also allows the decision of how the instantiation should behave to live in as few places as possible, so this can be more easily evolved and contextualized.

    • -3
    • +3
    ./internal/controller/BuildCacheControllerFactoryTest.groovy
  1. … 60 more files in changeset.
Address review feedback

    • -2
    • +2
    ./internal/origin/OriginMetadataFactoryTest.groovy
  1. … 12 more files in changeset.
Remove remaining task-related utils class

    • -87
    • +0
    ./internal/tasks/TaskOutputPackerUtilsTest.groovy
  1. … 4 more files in changeset.
Rename property -> tree and avoid using output in names

    • -2
    • +2
    ./internal/origin/OriginMetadataFactoryTest.groovy
  1. … 13 more files in changeset.
Move build cache packaging and execution to build-cache-packaging

With this change the build cache becomes independent of tasks, so that in future it can be used to cache things like artifact transforms and Kotlin build scripts via a unified interface.

    • -0
    • +61
    ./internal/origin/OriginMetadataFactoryTest.groovy
  1. … 70 more files in changeset.
Move tests to the correct location

    • -384
    • +0
    ./internal/tasks/TarTaskOutputPackerTest.groovy
    • -221
    • +0
    ./internal/tasks/TaskOutputCacheCommandFactoryTest.groovy
  1. … 2 more files in changeset.
Remove unused code

ContentHasherFactory has no real use, so let's decrease complexity.

    • -3
    • +1
    ./internal/tasks/TarTaskOutputPackerTest.groovy
  1. … 11 more files in changeset.
Fix tests

    • -1
    • +2
    ./internal/tasks/TarTaskOutputPackerTest.groovy
  1. … 1 more file in changeset.
Use MD5 as the default hashing function

    • -1
    • +1
    ./internal/tasks/TarTaskOutputPackerTest.groovy
  1. … 38 more files in changeset.
Move all hashing-related stuff to base-services

- Renamed existing Hasher -> PrimitiveHasher

- Renamed BuildCacheHasher -> Hasher (this is the one that prefixes hashed data with the length of the data to avoid collisions)

    • -65
    • +0
    ./internal/DefaultBuildCacheHasherTest.groovy
    • -1
    • +1
    ./internal/tasks/TarTaskOutputPackerTest.groovy
  1. … 71 more files in changeset.
Remove dependencies on :core

    • -1
    • +1
    ./internal/tasks/TarTaskOutputPackerTest.groovy
  1. … 19 more files in changeset.
Drop Physical from Physical*Snapshot

    • -8
    • +8
    ./internal/tasks/TaskOutputCacheCommandFactoryTest.groovy
  1. … 40 more files in changeset.
Move snapshotting files to own package

    • -2
    • +2
    ./internal/tasks/TarTaskOutputPackerTest.groovy
    • -5
    • +5
    ./internal/tasks/TaskOutputCacheCommandFactoryTest.groovy
  1. … 133 more files in changeset.
Keep empty fingerprint instance in Identifier

    • -3
    • +2
    ./internal/tasks/TarTaskOutputPackerTest.groovy
  1. … 5 more files in changeset.
Merge branch 'release'

    • -3
    • +4
    ./internal/tasks/TarTaskOutputPackerTest.groovy
  1. … 16 more files in changeset.
Expose input file snapshots to build operation listeners (#6153)

    • -3
    • +4
    ./internal/tasks/TarTaskOutputPackerTest.groovy
  1. … 32 more files in changeset.
Merge file and directory cache

Instead of using two different caches for file and directory snapshots,

there is only one. We now cache the metadata of individual files

separately.

    • -4
    • +3
    ./internal/tasks/TarTaskOutputPackerTest.groovy
    • -9
    • +4
    ./internal/tasks/TaskOutputCacheCommandFactoryTest.groovy
  1. … 31 more files in changeset.
Remove type hierarchy for PhysicalDirectorySnapshot

We now have only one implementation.

    • -2
    • +1
    ./internal/tasks/TaskOutputCacheCommandFactoryTest.groovy
  1. … 8 more files in changeset.
Rename get{ContentHash -> Hash}

    • -1
    • +1
    ./internal/tasks/TaskOutputCacheCommandFactoryTest.groovy
  1. … 21 more files in changeset.
Use the fingerprint package

    • -1
    • +1
    ./internal/tasks/TarTaskOutputPackerTest.groovy
  1. … 87 more files in changeset.
Use getContentHash instead of getTreeHash

    • -1
    • +1
    ./internal/tasks/TaskOutputCacheCommandFactoryTest.groovy
  1. … 8 more files in changeset.
Rename some more snapshots -> fingerprints

    • -8
    • +8
    ./internal/tasks/TaskOutputCacheCommandFactoryTest.groovy
  1. … 22 more files in changeset.
Rename Snapshot -> Fingerprint

Where applicable.

    • -6
    • +6
    ./internal/tasks/TarTaskOutputPackerTest.groovy
    • -2
    • +2
    ./internal/tasks/TaskOutputCacheCommandFactoryTest.groovy
  1. … 42 more files in changeset.
Move *Fingerprint to org.gradle.internal.fingerprint

    • -3
    • +3
    ./internal/tasks/TarTaskOutputPackerTest.groovy
  1. … 36 more files in changeset.
Separate fingerprints and snapshots (#5927)

This de-tangles FileContentSnapshot (and removes it) from NormalizedFileSnapshots.

Also it makes clear that only PhysicalSnapshots can be used to check if a file changed the timestamp.

    • -2
    • +2
    ./internal/tasks/TarTaskOutputPackerTest.groovy
    • -9
    • +6
    ./internal/tasks/TaskOutputCacheCommandFactoryTest.groovy
  1. … 86 more files in changeset.
Fix counting entries when unpacking

    • -4
    • +6
    ./internal/tasks/TarTaskOutputPackerTest.groovy
    • -1
    • +6
    ./internal/tasks/TaskOutputCacheCommandFactoryTest.groovy
  1. … 4 more files in changeset.