fingerprint

Clone Tools
  • last updated a few minutes ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
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.
Notify VFS when manifest is written

by GeneratedSingletonFileTree.

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

by GeneratedSingletonFileTree.

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

by GeneratedSingletonFileTree.

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

by GeneratedSingletonFileTree.

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

by GeneratedSingletonFileTree.

    • -1
    • +3
    ./impl/DefaultFileCollectionSnapshotterTest.groovy
  1. … 6 more files 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.
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.
Fix unit tests

    • -6
    • +3
    ./classpath/impl/DefaultClasspathFingerprinterTest.groovy
    • -18
    • +15
    ./impl/AbsolutePathFileCollectionFingerprinterTest.groovy
  1. … 8 more files in changeset.
Fix unit tests

    • -6
    • +3
    ./classpath/impl/DefaultClasspathFingerprinterTest.groovy
    • -18
    • +15
    ./impl/AbsolutePathFileCollectionFingerprinterTest.groovy
  1. … 6 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.
Use a virtual file system everywhere

    • -6
    • +3
    ./classpath/impl/DefaultClasspathFingerprinterTest.groovy
    • -18
    • +15
    ./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.
ProjectLayout APIs for resolving files and creating immutable FileTrees

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

    • -17
    • +1
    ./impl/DefaultFileCollectionSnapshotterTest.groovy
  1. … 6 more files in changeset.
Do not keep reference to Stat in SnapshottingFilter

    • -1
    • +1
    ./classpath/impl/DefaultClasspathFingerprinterTest.groovy
    • -1
    • +1
    ./impl/AbsolutePathFileCollectionFingerprinterTest.groovy
  1. … 14 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.
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.
Address more review feedback

    • -5
    • +4
    ./classpath/impl/ClasspathFingerprintCompareStrategyTest.groovy
TODO

    • -8
    • +8
    ./classpath/impl/ClasspathFingerprintCompareStrategyTest.groovy
  1. … 45 more files in changeset.
Split FileType into SnapshotFileType and FingerprintFileType

    • -8
    • +8
    ./classpath/impl/ClasspathFingerprintCompareStrategyTest.groovy
  1. … 44 more files in changeset.
Split FileType into SnapshotFileType and FingerprintFileType

    • -8
    • +8
    ./classpath/impl/ClasspathFingerprintCompareStrategyTest.groovy
  1. … 44 more files in changeset.