fingerprint

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Remove ClasspathResourceFilters

    • -2
    • +6
    ./classpath/impl/DefaultClasspathFingerprinterTest.groovy
  1. … 7 more files in changeset.
Rename FileMetadata{Snapshot -> }

Snapshot doesn't add anything to the name.

    • -5
    • +5
    ./impl/FileSystemSnapshotBuilderTest.groovy
  1. … 50 more files in changeset.
Detect symlinks for generic trees

When visiting generic file trees, we now

detect symlinks as well and propagate them

to the snapshots.

    • -3
    • +51
    ./impl/FileSystemSnapshotBuilderTest.groovy
  1. … 3 more files in changeset.
Determine symlink access in stat

This way we can use the information when deciding what to

watch.

    • -1
    • +2
    ./impl/FileSystemSnapshotBuilderTest.groovy
  1. … 10 more files in changeset.
Use factory methods for DefaultFileMetadataSnapshot

and make the constructor private.

    • -3
    • +3
    ./impl/FileSystemSnapshotBuilderTest.groovy
  1. … 4 more files in changeset.
Rename DefaultFileMetadata{ -> Snapshot}

so it is consistent with the interface.

    • -3
    • +3
    ./impl/FileSystemSnapshotBuilderTest.groovy
  1. … 9 more files in changeset.
Force AbstractTestDirectoryProvider to use Class (#12431)

Closes https://github.com/gradle/gradle-private/issues/2988

This PR adds `className` to `AbstractTestDirectoryProvider` so there'll be no more `unknown-test-class`.

    • -1
    • +1
    ./classpath/impl/DefaultClasspathFingerprinterTest.groovy
    • -1
    • +1
    ./impl/AbsolutePathFileCollectionFingerprinterTest.groovy
    • -1
    • +1
    ./impl/DefaultFileCollectionSnapshotterTest.groovy
  1. … 405 more files in changeset.
Simplify the implementation of `GeneratedSingletonFileTree`.

    • -3
    • +2
    ./impl/DefaultFileCollectionSnapshotterTest.groovy
  1. … 25 more files in changeset.
Replace several more usages of direct `FileCollection` implementation instantiation with a factory method.

Remove/deprecate a couple of `FileCollection` implementations, as these can now be replaced with public API factory methods instead.

The deprecation is intended to be tempory, until the play plugin can be updated to use public APIs instead, then the implementation will be removed.

    • -2
    • +1
    ./classpath/impl/DefaultClasspathFingerprinterTest.groovy
    • -2
    • +1
    ./impl/AbsolutePathFileCollectionFingerprinterTest.groovy
  1. … 44 more files in changeset.
Fix the `jar` task with instant execution when the classes output directory does not exist when writing the instant execution cache.

More generally, do not ignore input directories for archive tasks which did not exist when the instant execution cache was written.

    • -4
    • +2
    ./impl/DefaultFileCollectionSnapshotterTest.groovy
  1. … 9 more files in changeset.
Normalize metaInf entries

Jar file manifests can't be normalized via the current normalization method due to their potential impact on runtime behaviour, so this makes their normalization a feature. In addition to allowing attributes to be ignored by key, for changing attributes such as Created-By (typically includes the exact JDK version) attributes are sorted before they're filtered and hashed ensuring a stable result.

This also normalizes property files with in META-INF/ and optionally allows values to be ignored by key.

Signed-off-by: Danny Thomas <dannyt@netflix.com>

    • -2
    • +2
    ./classpath/impl/DefaultClasspathFingerprinterTest.groovy
  1. … 22 more files in changeset.
Use own listener type for GeneratedSingletonFileTree

    • -3
    • +2
    ./impl/DefaultFileCollectionSnapshotterTest.groovy
  1. … 1 more file in changeset.
Notify VFS when manifest is written

by GeneratedSingletonFileTree.

    • -1
    • +3
    ./impl/DefaultFileCollectionSnapshotterTest.groovy
  1. … 6 more files in changeset.
Add test for empty jar handling

    • -0
    • +17
    ./classpath/impl/DefaultClasspathFingerprinterTest.groovy
Rename types for better understanding

We distinguish between complete and incomplete snapshots.

    • -5
    • +5
    ./impl/DefaultFileCollectionSnapshotterTest.groovy
    • -5
    • +5
    ./impl/FileSystemSnapshotBuilderTest.groovy
  1. … 67 more files in changeset.
Use Consumer<FileSystemLocationSnapshot> in VFS

This makes sure that the file system snapshot is consumed and all the

files are read with the VFS aware of it while simplifying the API

quite a bit.

    • -2
    • +1
    ./impl/DefaultFileCollectionSnapshotterTest.groovy
  1. … 25 more files in changeset.
Move FileSystemSnapshotBuilder to core

It isn't used in `snapshots` at all.

    • -0
    • +141
    ./impl/FileSystemSnapshotBuilderTest.groovy
  1. … 4 more files in changeset.
Move snapshotting generic file trees to own service

    • -1
    • +1
    ./classpath/impl/DefaultClasspathFingerprinterTest.groovy
    • -1
    • +1
    ./impl/AbsolutePathFileCollectionFingerprinterTest.groovy
  1. … 16 more files in changeset.
Use a virtual file system everywhere

    • -6
    • +3
    ./classpath/impl/DefaultClasspathFingerprinterTest.groovy
    • -18
    • +15
    ./impl/AbsolutePathFileCollectionFingerprinterTest.groovy
  1. … 16 more files in changeset.
Rename FileSystemSnapshotVisitor.{visit -> visitFile} (#9858)

So it is more obvious that directory snapshots are not passed into this

method.

    • -1
    • +1
    ./impl/DefaultFileCollectionSnapshotterTest.groovy
  1. … 24 more files in changeset.
Remove includedAdded (#9860)

Since we filter the before execution output snapshot, we don't need

`includeAdded` any more.

    • -101
    • +39
    ./classpath/impl/ClasspathFingerprintCompareStrategyTest.groovy
    • -21
    • +1
    ./impl/AbsolutePathFileCollectionFingerprinterTest.groovy
  1. … 19 more files in changeset.
Merge branch 'master'

    • -4
    • +1
    ./impl/AbsolutePathFileCollectionFingerprinterTest.groovy
Address review feedback

    • -1
    • +5
    ./classpath/impl/ClasspathFingerprintCompareStrategyTest.groovy
  1. … 30 more files in changeset.
Visitor should be the last argument

so a Closure can be used in a nice way.

    • -1
    • +1
    ./classpath/impl/ClasspathFingerprintCompareStrategyTest.groovy
    • -2
    • +2
    ./impl/AbsolutePathFileCollectionFingerprinterTest.groovy
  1. … 6 more files in changeset.
Wrap the patternSet

Instead of using a strategy.

    • -1
    • +1
    ./classpath/impl/DefaultClasspathFingerprinterTest.groovy
    • -1
    • +1
    ./impl/AbsolutePathFileCollectionFingerprinterTest.groovy
  1. … 36 more files in changeset.
Move the tests around

    • -2
    • +2
    ./classpath/impl/ClasspathFingerprintCompareStrategyTest.groovy
    • -3
    • +3
    ./impl/AbsolutePathFileCollectionFingerprinterTest.groovy
  1. … 62 more files in changeset.
Move comparing fingerprints to execution

It made no sense to have the compare strategy on

FileCollectionFingerprint anyway.

    • -1
    • +2
    ./classpath/impl/ClasspathFingerprintCompareStrategyTest.groovy
    • -1
    • +2
    ./impl/AbsolutePathFileCollectionFingerprinterTest.groovy
  1. … 57 more files in changeset.
Do not use PatternSet in snapshots package

Use a pluggable type instead.

    • -18
    • +14
    ./classpath/impl/DefaultClasspathFingerprinterTest.groovy
    • -4
    • +1
    ./impl/AbsolutePathFileCollectionFingerprinterTest.groovy
    • -9
    • +1
    ./impl/DefaultFileCollectionSnapshotterTest.groovy
  1. … 41 more files in changeset.
Use only FileSystemSnapshotter from FileCollectionSnapshotter

    • -1
    • +1
    ./classpath/impl/DefaultClasspathFingerprinterTest.groovy
    • -1
    • +1
    ./impl/AbsolutePathFileCollectionFingerprinterTest.groovy
    • -1
    • +1
    ./impl/DefaultFileCollectionSnapshotterTest.groovy
  1. … 13 more files in changeset.
Move file collection snapshotting to core

    • -1
    • +3
    ./classpath/impl/DefaultClasspathFingerprinterTest.groovy
    • -2
    • +3
    ./impl/AbsolutePathFileCollectionFingerprinterTest.groovy
    • -0
    • +269
    ./impl/DefaultFileCollectionSnapshotterTest.groovy
  1. … 23 more files in changeset.