VersionSpecificCacheCleanupActionTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Use Deleter for cache directory cleanup

    • -1
    • +3
    ./VersionSpecificCacheCleanupActionTest.groovy
  1. … 7 more files in changeset.
Use Deleter for cache directory cleanup

    • -1
    • +3
    ./VersionSpecificCacheCleanupActionTest.groovy
  1. … 6 more files in changeset.
Revert "Clean up distributions at most every 24 hours"

This reverts commit d997fd68ece6591bf3f882b94220030899a5b4f9.

    • -22
    • +13
    ./VersionSpecificCacheCleanupActionTest.groovy
  1. … 5 more files in changeset.
Clean up distributions at most every 24 hours

Since the distribution cleanup was made independent of the

version-specific cache cleanup in #5981, it was run every time the

daemon was stopped. Now, instead of introducing yet another

`gc.properties` file, it is only executed if version-specific cache

cleanup was executed but regardless whether the latter actually deleted

something.

Fixes #6083.

    • -13
    • +22
    ./VersionSpecificCacheCleanupActionTest.groovy
  1. … 5 more files in changeset.
Clean up distributions at most every 24 hours

Since the distribution cleanup was made independent of the

version-specific cache cleanup in #5981, it was run every time the

daemon was stopped. Now, instead of introducing yet another

`gc.properties` file, it is only executed if version-specific cache

cleanup was executed but regardless whether the latter actually deleted

something.

Fixes #6083.

    • -13
    • +22
    ./VersionSpecificCacheCleanupActionTest.groovy
  1. … 5 more files in changeset.
Rename fixture class

    • -1
    • +1
    ./VersionSpecificCacheCleanupActionTest.groovy
  1. … 5 more files in changeset.
Report deleted/skipped entries for project cache dir

    • -9
    • +26
    ./VersionSpecificCacheCleanupActionTest.groovy
  1. … 4 more files in changeset.
Make cache cleanup non-incremental

    • -20
    • +0
    ./VersionSpecificCacheCleanupActionTest.groovy
  1. … 14 more files in changeset.
Delete unused version-specific caches from project directory

`ProjectCacheDir` now implements `Stoppable` to use

`VersionSpecificCacheCleanup` for deleting unused version-specific

caches from the project directory. The cleanup is wrapped in a build

operation to be observable.

    • -4
    • +4
    ./VersionSpecificCacheCleanupActionTest.groovy
  1. … 8 more files in changeset.
Split service classes to enable reuse

The following classes have been extracted from

`VersionSpecificCacheAndWrapperDistributionCleanupService` so they can

be reused in a different context and independently from each other:

- `VersionSpecificCacheCleanupAction`

- `WrapperDistributionCleanupAction`

In addition, the implementation of `UsedGradleVersions` has been

extracted from `VersionSpecificCacheDirectoryService` into

`UsedGradleVersionsFromGradleUserHomeCaches` and the class has been

renamed to `VersionSpecificCacheDirectoryScanner` since it may now be

instantiated multiple times with potentially different base directories.

    • -0
    • +186
    ./VersionSpecificCacheCleanupActionTest.groovy
  1. … 13 more files in changeset.