CachedRelocationIntegrationTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Change more tests.

    • -5
    • +5
    ./CachedRelocationIntegrationTest.groovy
  1. … 40 more files in changeset.
Change more tests.

    • -2
    • +2
    ./CachedRelocationIntegrationTest.groovy
  1. … 13 more files in changeset.
Changed a bunch of integration tests to use the various task assertion methods instead of directly querying the `executedTasks` and `skippedTasks` collections. These methods can give better diagnostics when the assertion fails, and can perform additional checks.

    • -7
    • +7
    ./CachedRelocationIntegrationTest.groovy
  1. … 98 more files in changeset.
Changed a bunch of integration tests to use the various task assertion methods instead of directly querying the `executedTasks` and `skippedTasks` collections. These methods can give better diagnostics when the assertion fails, and can perform additional checks.

    • -7
    • +7
    ./CachedRelocationIntegrationTest.groovy
  1. … 98 more files in changeset.
Changed a bunch of integration tests to use the various task assertion methods instead of directly querying the `executedTasks` and `skippedTasks` collections. These methods can give better diagnostics when the assertion fails, and can perform additional checks.

    • -7
    • +7
    ./CachedRelocationIntegrationTest.groovy
  1. … 98 more files in changeset.
Allow enabling build cache in all integration tests

Signed-off-by: Lóránt Pintér <lorant@gradle.com>

    • -5
    • +5
    ./CachedRelocationIntegrationTest.groovy
  1. … 27 more files in changeset.
Deprecate support for nested build without a settings.gradle (#3197)

Fix https://github.com/gradle/gradle/issues/3137

    • -0
    • +1
    ./CachedRelocationIntegrationTest.groovy
  1. … 8 more files in changeset.
Track original class name for task action’s defined in Groovy scripts

+review REVIEW-6534

    • -2
    • +12
    ./CachedRelocationIntegrationTest.groovy
  1. … 5 more files in changeset.
Use content hash where available to track task actions in build script

This way we lose the original name of the class, but we have a consistent hash to use regardless of the Gradle user home location.

+review REVIEW-6534

    • -0
    • +18
    ./CachedRelocationIntegrationTest.groovy
  1. … 6 more files in changeset.
Extract test fixture for HttpBuildCache

    • -2
    • +2
    ./CachedRelocationIntegrationTest.groovy
  1. … 21 more files in changeset.
Stop caching Jar, War and Ear tasks

+review REVIEW-6457

    • -3
    • +3
    ./CachedRelocationIntegrationTest.groovy
  1. … 9 more files in changeset.
Removed some cases of messing with file timestamps in tests. These should not be required any more.

    • -1
    • +0
    ./CachedRelocationIntegrationTest.groovy
  1. … 5 more files in changeset.
Rename LocalTaskCacheFixture to LocalBuildCacheFixture

+review REVIEW-6392

    • -6
    • +6
    ./CachedRelocationIntegrationTest.groovy
  1. … 14 more files in changeset.
Rename withCache -> withTaskCache

To distinguish the task cache from the many

other caches we have.

+review REVIEW-6338

    • -4
    • +4
    ./CachedRelocationIntegrationTest.groovy
  1. … 9 more files in changeset.
Make testing the task output cache easier

Instead of relying on subclassing I added a

trait which can be mixed into tests which want

to exercise the cache.

+review REVIEW-6338

    • -6
    • +7
    ./CachedRelocationIntegrationTest.groovy
  1. … 10 more files in changeset.
Extract abstract test class for local task output cache tests

+review REVIEW-6301

    • -14
    • +2
    ./CachedRelocationIntegrationTest.groovy
  1. … 3 more files in changeset.
Use source hash to identify remapped build script classloaders

The problem here was that we were using the hash code of the remapped script classloaders. We remap script classes because we want the absolute paths of the sources to be baked into them, in order to provide better error messages. But this means that the contents of the class files, and hence the hash of the classloader loading those class files will depend on the absolute location of the project. Instead of this behavior we should use the hash of the original sources to override the classloader hash.

+review REVIEW-6272

    • -20
    • +34
    ./CachedRelocationIntegrationTest.groovy
  1. … 12 more files in changeset.
Use non-remapped hash to identify external build script classloaders

The problem here was that we were using the hash code of the remapped script classloaders. We remap script classes because we want the absolute paths of the sources to be baked into them, in order to provide better error messages. But this means that the contents of the class files, and hence the hash of the classloader loading those class files will depend on the absolute location of the project. Instead of this behavior we should use the non-remapped classes to calculate the classloader hash. In practice we are simply ignoring the remapped classpath, and use the hash from the parent classloader (which knows about the original, non-remapped classes).

+review REVIEW-6272

    • -2
    • +0
    ./CachedRelocationIntegrationTest.groovy
  1. … 12 more files in changeset.
Make test task actually relocatable

+review REVIEW-6272

    • -16
    • +22
    ./CachedRelocationIntegrationTest.groovy
Test for relocated buildSrc busting custom task cacheablity

+review REVIEW-6272

    • -0
    • +101
    ./CachedRelocationIntegrationTest.groovy
  1. … 1 more file in changeset.