CacheTaskArchiveErrorIntegrationTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Fail build on cache entry packing errors, too

    • -71
    • +14
    ./CacheTaskArchiveErrorIntegrationTest.groovy
  1. … 2 more files in changeset.
Fail build on cache entry packing errors, too

    • -71
    • +14
    ./CacheTaskArchiveErrorIntegrationTest.groovy
  1. … 1 more file in changeset.
Fix integration test

    • -150
    • +16
    ./CacheTaskArchiveErrorIntegrationTest.groovy
  1. … 4 more files in changeset.
Polish CacheTaskArchiveErrorIntegrationTest

    • -1
    • +1
    ./CacheTaskArchiveErrorIntegrationTest.groovy
  1. … 1 more file in changeset.
Polish CacheTaskArchiveErrorIntegrationTest

    • -1
    • +1
    ./CacheTaskArchiveErrorIntegrationTest.groovy
  1. … 1 more file in changeset.
Use absolute file in cache error

    • -2
    • +3
    ./CacheTaskArchiveErrorIntegrationTest.groovy
  1. … 1 more file in changeset.
Use absolute file in cache error

    • -2
    • +3
    ./CacheTaskArchiveErrorIntegrationTest.groovy
  1. … 1 more file in changeset.
Add Requires(TestPrecondition.SYMLINKS) to symlink test

    • -0
    • +3
    ./CacheTaskArchiveErrorIntegrationTest.groovy
Add Requires(TestPrecondition.SYMLINKS) to symlink test

    • -0
    • +3
    ./CacheTaskArchiveErrorIntegrationTest.groovy
Move test to CacheTaskArchiveErrorIntegrationTest

    • -0
    • +27
    ./CacheTaskArchiveErrorIntegrationTest.groovy
  1. … 1 more file in changeset.
Move test to CacheTaskArchiveErrorIntegrationTest

    • -0
    • +27
    ./CacheTaskArchiveErrorIntegrationTest.groovy
  1. … 1 more file 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.

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

    • -3
    • +3
    ./CacheTaskArchiveErrorIntegrationTest.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.

    • -3
    • +3
    ./CacheTaskArchiveErrorIntegrationTest.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.

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

    • -3
    • +3
    ./CacheTaskArchiveErrorIntegrationTest.groovy
  1. … 98 more files in changeset.
Update CacheTaskArchiveErrorIntegrationTest.groovy

    • -1
    • +0
    ./CacheTaskArchiveErrorIntegrationTest.groovy
Update CacheTaskArchiveErrorIntegrationTest.groovy

    • -1
    • +0
    ./CacheTaskArchiveErrorIntegrationTest.groovy
Add tests for different cache problems disabling caching

- remote load and store issues should disable the cache for further work in the build

- local cache load and store problems should not disable the cache for further work in the build

    • -12
    • +119
    ./CacheTaskArchiveErrorIntegrationTest.groovy
  1. … 2 more files in changeset.
Add tests for different cache problems disabling caching

- remote load and store issues should disable the cache for further work in the build

- local cache load and store problems should not disable the cache for further work in the build

    • -12
    • +119
    ./CacheTaskArchiveErrorIntegrationTest.groovy
  1. … 2 more files in changeset.
Add tests for different cache problems disabling caching

- remote load and store issues should disable the cache for further work in the build

- local cache load and store problems should not disable the cache for further work in the build

    • -12
    • +119
    ./CacheTaskArchiveErrorIntegrationTest.groovy
  1. … 2 more files in changeset.
Fix test

    • -1
    • +1
    ./CacheTaskArchiveErrorIntegrationTest.groovy
Actually enforce rebuilding the work

Previously we removed the history, too, which is incorrect.

    • -1
    • +35
    ./CacheTaskArchiveErrorIntegrationTest.groovy
  1. … 6 more files in changeset.
Force non-incremental execution after cache load failure

Previously when handling a failed load we did clean the outputs of the work, but ended up allowing incremental execution nevertheless. This is now fixed.

    • -2
    • +1
    ./CacheTaskArchiveErrorIntegrationTest.groovy
  1. … 23 more files in changeset.
Fix tests

    • -3
    • +3
    ./CacheTaskArchiveErrorIntegrationTest.groovy
  1. … 3 more files in changeset.
Remove TestBuildCache.assertEmpty

Use `TestBuildCache.empty` instead.

    • -2
    • +2
    ./CacheTaskArchiveErrorIntegrationTest.groovy
  1. … 5 more files in changeset.
Clean up local cache fixture

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

    • -33
    • +23
    ./CacheTaskArchiveErrorIntegrationTest.groovy
  1. … 8 more files in changeset.
Remove task's local state after loading from cache

    • -1
    • +31
    ./CacheTaskArchiveErrorIntegrationTest.groovy
  1. … 14 more files in changeset.
Simplify output file detection if there are no overlapping outputs (#2490)

If there are no overlapping outputs, we can just use all the declared

outputs as output files and do not need to filter since the task under

question has exclusive access to the directory/files.

We now ignore missing files in output properties, for these two ways

of snapshotting a directory (output file detection and regular snapshotting)

to be identical.

    • -1
    • +1
    ./CacheTaskArchiveErrorIntegrationTest.groovy
  1. … 40 more files in changeset.
Improve error feedback for build cache errors (#2473)

We shouldn't fail the build when we can't package a task's outputs. We should also not fail the build when unpacking some already downloaded outputs.

If there was a failure during unpacking, we can expect the task's output files to be in a messed up state. If this happens, we explicitly clean all of the task's outputs, update the pre-execution output file snapshots, and force the task to execute in non-incremental mode.

This commit also removes the retry logic we had previously when "recoverable" errors were encountered while downloading or uploading cached results. Instead, all errors (except for the aforementioned failed unpacking cleanup errors) are recoverable, and we simply switch off the cache for the build after the first such error.

    • -0
    • +249
    ./CacheTaskArchiveErrorIntegrationTest.groovy
  1. … 26 more files in changeset.