Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Update snapshots while unpacking task outputs (#2745)

Previously we were naively extracting task outputs, and then snapshot

them in a separate step, just as if the output was generated by some

unknown process. However, during unpacking we already know everything we

need to also do the snapshotting. This speeds up the unpacking process

substantially.

    • -1
    • +5
    ./internal/tasks/TarTaskOutputPackerTest.groovy
    • -9
    • +57
    ./internal/tasks/TaskOutputCacheCommandFactoryTest.groovy
  1. … 45 more files in changeset.
Address review feedback

+review REVIEW-6562

    • -2
    • +6
    ./internal/controller/BuildCacheControllerFactoryTest.groovy
  1. … 4 more files in changeset.
Move DirectoryBuildCacheServiceFactory to build-cache

    • -1
    • +5
    ./local/internal/DirectoryBuildCacheServiceFactoryTest.groovy
  1. … 5 more files in changeset.
Move BuildCacheControllerFactory to build-cache project

+review REVIEW-6562

    • -0
    • +254
    ./internal/controller/BuildCacheControllerFactoryTest.groovy
  1. … 4 more files in changeset.
Move 'org.gradle.caching' to build-cache

+review REVIEW-6562

    • -0
    • +67
    ./MapBasedBuildCacheServiceTest.groovy
    • -0
    • +115
    ./configuration/internal/DefaultBuildCacheConfigurationTest.groovy
    • -0
    • +65
    ./internal/DefaultBuildCacheHasherTest.groovy
    • -0
    • +340
    ./internal/controller/DefaultBuildCacheControllerTest.groovy
    • -0
    • +86
    ./internal/controller/service/LoadTargetTest.groovy
    • -0
    • +84
    ./internal/controller/service/StoreTargetTest.groovy
    • -0
    • +262
    ./internal/tasks/TarTaskOutputPackerTest.groovy
    • -0
    • +149
    ./internal/tasks/TaskOutputCacheCommandFactoryTest.groovy
    • -0
    • +87
    ./internal/tasks/TaskOutputPackerUtilsTest.groovy
    • -0
    • +62
    ./internal/tasks/origin/TaskOutputOriginFactoryTest.groovy
    • -0
    • +83
    ./local/internal/DirectoryBuildCacheServiceFactoryTest.groovy
    • -0
    • +71
    ./local/internal/DirectoryBuildCacheServiceTest.groovy
  1. … 139 more files in changeset.
Split out `Timer` from `EventTimer`

- `Timer` has no wall-clock time, and only measure relative/elapsed time

- `EventTimer` (nee `Clock`) has a wall-clock start time, plus

an elapsed time measure.

- Removed the need for wall-clock time in CountdownTimer

- Renamed `org.gradle.internal.time.Clock` -> `DefaultEventTimer`

Renamed Clock -> EventTimer

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