Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Remove synthetic accessors for internal private symbol references

  1. … 890 more files in changeset.
Remove synthetic accessors for internal private symbol references

  1. … 897 more files in changeset.
Remove synthetic accessors for internal private symbol references

  1. … 902 more files in changeset.
Remove synthetic accessors for internal private symbol references

  1. … 902 more files in changeset.
Add missing @Override to public api types

Signed-off-by: Paul Merlin <paul@gradle.com>

  1. … 339 more files in changeset.
Avoid the creation of a string to build the path in the file store

This creates a significant amount of garbage. Assuming we read from the store

more often than we write to, this commit builds an array corresponding to the

path in the store, rather than a string.

  1. … 3 more files in changeset.
Add convenience method to track access to single file

  1. … 8 more files in changeset.
Track file access in AbstractCachedIndex

Instead of tracking access in DefaultCacheAwareExternalResourceAccessor

and CachingModuleComponentRepository this is now done in

AbstractCachedIndex which ensures it's done always when reading from

indexes of CachedItems and only does so when not already present in an

in-memory cache from a previous lookup.

  1. … 39 more files in changeset.
Remove separate interfaces for reading and writing file access time

Now that reading and writing is safe again regardless of the phase

we don't need the separate interfaces anymore.

  1. … 8 more files in changeset.
Clarify constants used by GroupedAndNamedUniqueFileStore and subclasses

  1. … 3 more files in changeset.
Write access time asynchronously, read synchronously

File access times are now written asynchronously while the cache is

being used. When it's about to be closed, they are now read

synchronously from the cleanup action because the cache access worker

has then already been stopped.

  1. … 31 more files in changeset.
Track artifact cache file access in PersistentIndexedCache

This commit introduces the `FileAccessJournal` interface and provides

two implementations:

ModificationTimeFileAccessJournal::

Reads and sets `File.lastModified()`.

IndexedCacheBackedFileAccessJournal::

Uses a PersistentIndexedCache to store the access timestamp.

The latter is now used in DefaultCacheLockingManager for the artifact

cache. All other PersistentCaches still use the former.

    • -4
    • +12
    ./GroupedAndNamedUniqueFileStore.java
  1. … 30 more files in changeset.
Mark cached files accessed when resolved via index

Both CachingModuleComponentRepository and

DefaultCacheAwareExternalResourceAccessor use an index to resolve

cached artifacts. Both now notify the underlying FileStore which now

implements FileAccessTracker. The new AccessTrackingFileStore interface

combines both interfaces so the GroupedAndNamedUniqueFileStore

subclasses (ArtifactIdentifierFileStore and ExternalResourceFileStore)

can be injected into dependent components.

  1. … 32 more files in changeset.
Clean up least recently used entries in external resources file store

The files in the external resources file store cache are now

automatically cleaned up based on a least recently used strategy. The

structure in the cache is as follows:

- modules-2

- resources-2.1

- 0

- hash 1 (*)

- hash 2 (*)

- ...

- ...

The cache now keeps track of files accessed inside the marked hash

directories. The cleanup action then deletes all such files that have

not been accessed in the last 30 days.

    • -9
    • +27
    ./GroupedAndNamedUniqueFileStore.java
  1. … 29 more files in changeset.
Only support moving into file store

  1. … 10 more files in changeset.
Annotate PathKeyStores with nullability annotations

Speed up moving to file store, no 2

Speed up moving to file store

  1. … 3 more files in changeset.
Some changes to caching of external resources:

- Moved the file store to live under `caches/modules-2` as the file store is protected by the lock on this directory. The external resource metadata is cached under this directory as well.

- Use a hash of the _content_ of the external resource to calculate the resource's location in the file store, so that entries never need to be overwritten. Previously a hash of the _location_ of the external resource was used. Also include the base name from the URL to allow a human to get some idea of what each file contains.

- Use custom serialization rather than Java serialization for the external resource metadata cache.

- Renamed a couple of metadata caches to better reflect their purpose.

  1. … 15 more files in changeset.
Move PathKeyFileStore to `:resources`

+review REVIEW-6562

    • -0
    • +237
    ./DefaultPathKeyFileStore.java
  1. … 13 more files in changeset.
Move GFileUtils to base-services

+review REVIEW-6562

  1. … 31 more files in changeset.
Consolidated ExternalResourceUriResolver and ExternalResourceRepositoryAccessor

- ExternalResourceAccessor takes care of downloading and caching URI resources

- Only cache HTTP and HTTPS URI resources

- Use a shared FileStore<String>

    • -83
    • +0
    ./DefaultGroupedAndNamedUniqueFileStore.java
    • -0
    • +83
    ./GroupedAndNamedUniqueFileStore.java
  1. … 13 more files in changeset.
Revert "Reverted changes from PR#1900"

This reverts commit 3769869c339a2d4b753f92617641055adb3e4b16.

    • -0
    • +83
    ./DefaultGroupedAndNamedUniqueFileStore.java
    • -83
    • +0
    ./GroupedAndNamedUniqueFileStore.java
  1. … 12 more files in changeset.
Reverted changes from PR#1900

    • -83
    • +0
    ./DefaultGroupedAndNamedUniqueFileStore.java
    • -0
    • +83
    ./GroupedAndNamedUniqueFileStore.java
  1. … 24 more files in changeset.
Made settings.gradle apply works (and added test)

    • -0
    • +83
    ./DefaultGroupedAndNamedUniqueFileStore.java
    • -83
    • +0
    ./GroupedAndNamedUniqueFileStore.java
  1. … 14 more files in changeset.
Avoid computing relative path when we already know it (because it implies file canonicalization)

  1. … 1 more file in changeset.
Clean up cached artifact transform outputs on failure or crash.

  1. … 8 more files in changeset.
Added support for adding directories to `FileStore` instances.

  1. … 1 more file in changeset.
Javadocs.

  1. … 1 more file in changeset.
Renamed src/main/groovy to src/main/java in core

    • -0
    • +80
    ./GroupedAndNamedUniqueFileStore.java
    • -0
    • +202
    ./PathKeyFileStore.java
    • -0
    • +63
    ./PathNormalisingKeyFileStore.java
    • -0
    • +51
    ./UniquePathKeyFileStore.java
  1. … 2542 more files in changeset.