AbstractPathSensitivityIntegrationSpec.groovy

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

    • -4
    • +4
    ./AbstractPathSensitivityIntegrationSpec.groovy
  1. … 40 more files in changeset.
Change more tests.

    • -3
    • +3
    ./AbstractPathSensitivityIntegrationSpec.groovy
  1. … 17 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.

    • -4
    • +4
    ./AbstractPathSensitivityIntegrationSpec.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.

    • -4
    • +4
    ./AbstractPathSensitivityIntegrationSpec.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.

    • -4
    • +4
    ./AbstractPathSensitivityIntegrationSpec.groovy
  1. … 98 more files in changeset.
Fixes for changes to fixture.

    • -17
    • +19
    ./AbstractPathSensitivityIntegrationSpec.groovy
  1. … 5 more files in changeset.
Fixes for changes to fixture.

    • -6
    • +6
    ./AbstractPathSensitivityIntegrationSpec.groovy
  1. … 10 more files in changeset.
Change `ExecutionResult` so that it does not ignore `buildSrc` tasks.

    • -20
    • +22
    ./AbstractPathSensitivityIntegrationSpec.groovy
  1. … 17 more files in changeset.
Change `ExecutionResult` so that it does not ignore `buildSrc` tasks.

    • -20
    • +22
    ./AbstractPathSensitivityIntegrationSpec.groovy
  1. … 17 more files in changeset.
Change `ExecutionResult` so that it does not ignore `buildSrc` tasks.

    • -20
    • +22
    ./AbstractPathSensitivityIntegrationSpec.groovy
  1. … 17 more files in changeset.
Change `ExecutionResult` so that it does not ignore `buildSrc` tasks.

    • -20
    • +22
    ./AbstractPathSensitivityIntegrationSpec.groovy
  1. … 17 more files in changeset.
Remove @OrderSensitive

+review REVIEW-6497

    • -68
    • +23
    ./AbstractPathSensitivityIntegrationSpec.groovy
  1. … 13 more files in changeset.
Fix test

+review REVIEW-6397

    • -8
    • +8
    ./AbstractPathSensitivityIntegrationSpec.groovy
  1. … 1 more file in changeset.
Fix test

+review REVIEW-6397

    • -0
    • +24
    ./AbstractPathSensitivityIntegrationSpec.groovy
Use custom snapshot normalization for classpaths

This way `PathSensitivity` doesn't have to expose a special type for `CLASSPATH`.

+review REVIEW-6241

    • -6
    • +0
    ./AbstractPathSensitivityIntegrationSpec.groovy
  1. … 23 more files in changeset.
Better name for CLASSPATH PathSensitivity

This is a temporary measure before introducing `@Classpath` to annotate classpath properties.

+review REVIEW-6090

    • -32
    • +32
    ./AbstractPathSensitivityIntegrationSpec.groovy
  1. … 5 more files in changeset.
Process individual `CopySpec` inputs separately

This is take no. 2.

Previously input files of an `AbstractCopyTask` were declared as a single file collection. This made it impossible to tell when a file was moved from one sub-spec to another (and hence to a different destination). Spec destinations were also not tracked, and thus changing them didn't make the task out-of-date.

Now we track each spec and its destination path individually. This fixes GRADLE-1346.

+review REVIEW-6090

    • -28
    • +32
    ./AbstractPathSensitivityIntegrationSpec.groovy
  1. … 11 more files in changeset.
Revert "Process individual `CopySpec` inputs separately"

This reverts commit 3c7ff07d4c6b566e505edeac51c33c647d7bac43.

    • -0
    • +2
    ./AbstractPathSensitivityIntegrationSpec.groovy
  1. … 8 more files in changeset.
Process individual `CopySpec` inputs separately

Previously input files of an `AbstractCopyTask` were declared as a single file collection. This made it impossible to tell when a file was moved from one sub-spec to another (and hence to a different destination). Spec destinations were also not tracked, and thus changing them didn't make the task out-of-date.

Now we track each spec and its destination path individually. This fixes GRADLE-1346.

+review REVIEW-6090

    • -2
    • +0
    ./AbstractPathSensitivityIntegrationSpec.groovy
  1. … 8 more files in changeset.
Slightly nicer code in test

+review REVIEW-6170

    • -2
    • +2
    ./AbstractPathSensitivityIntegrationSpec.groovy
TestFile.setText() should create directory, too

Just like leftShift() does already.

+review REVIEW-6170

    • -8
    • +4
    ./AbstractPathSensitivityIntegrationSpec.groovy
  1. … 7 more files in changeset.
Fix relative path handling for root files

When files are added directly to a file collection (as opposed to via a directory), their path should be ignored during normalization.

+review REVIEW-6170

    • -8
    • +4
    ./AbstractPathSensitivityIntegrationSpec.groovy
  1. … 3 more files in changeset.
Revert enabling relative inputs for copy tasks

These were making IvyPublishCoordinatesIntegTest fail. We need some more involved logic in copy tasks to fix this.

+review REVIEW-6170

    • -0
    • +2
    ./AbstractPathSensitivityIntegrationSpec.groovy
  1. … 1 more file in changeset.
Enable relative path sensitivity for copy tasks

This enables caching archive tasks like `Jar` and `Zip`.

+review REVIEW-6170

    • -0
    • +61
    ./AbstractPathSensitivityIntegrationSpec.groovy
  1. … 1 more file in changeset.
Clean workspace between executions

This ensures that we actually hit the cache, and the task does not simply end up being up-to-date.

+review REVIEW-6170

    • -5
    • +8
    ./AbstractPathSensitivityIntegrationSpec.groovy
  1. … 2 more files in changeset.
Fix some issues with path sensitivity handling

Add some tests to cover all combinations of the following dimensions:

- up-to-date checks vs. task output caching

- path sensitivity

- order sensitivity

When path sensitivity is NONE, we now ignore directories (because they have no content, so there would be nothing to compare anyway).

+review REVIEW-6170

    • -0
    • +190
    ./AbstractPathSensitivityIntegrationSpec.groovy
  1. … 12 more files in changeset.