HttpBuildCacheServiceIntegrationTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Refactor HTTP deprecation logic to use HttpRedirectVerifier

    • -0
    • +16
    ./HttpBuildCacheServiceIntegrationTest.groovy
  1. … 60 more files in changeset.
Revert "Revert "Merge remote-tracking branch 'origin/sg/merges/pr-9419'""

This reverts commit 0625bc7420e55e87730673231af6ad45dd04f47a.

    • -1
    • +1
    ./HttpBuildCacheServiceIntegrationTest.groovy
  1. … 90 more files in changeset.
fixup! fix build cache tests

    • -4
    • +0
    ./HttpBuildCacheServiceIntegrationTest.groovy
  1. … 1 more file in changeset.
Move validation of secure URLs closer to repository use

    • -0
    • +15
    ./HttpBuildCacheServiceIntegrationTest.groovy
  1. … 19 more files in changeset.
Revert "Revert "Merge remote-tracking branch 'origin/sg/merges/pr-9419'""

This reverts commit 0625bc7420e55e87730673231af6ad45dd04f47a.

    • -1
    • +1
    ./HttpBuildCacheServiceIntegrationTest.groovy
  1. … 90 more files in changeset.
Revert "Merge remote-tracking branch 'origin/sg/merges/pr-9419'"

This reverts commit 2f79026f5e127a8175e25844522237615b19ed52 because of a performance regression,

reversing changes made to 7f1e66079ce629ecde3e09e549e9796ab85761dc.

    • -1
    • +1
    ./HttpBuildCacheServiceIntegrationTest.groovy
  1. … 90 more files in changeset.
Address review feedback

    • -1
    • +1
    ./HttpBuildCacheServiceIntegrationTest.groovy
  1. … 3 more files in changeset.
Use only snapshots for before execution outputs

    • -1
    • +1
    ./HttpBuildCacheServiceIntegrationTest.groovy
  1. … 11 more files in changeset.
Merge branch 'master' into deprecate_http_download

* master: (225 commits)

Document the purpose of PublicApi.kt

Mention Eclipse test sources as a potential breaking change in the upgrade notes.

Fixed managed property generation for `Property<T>` types where `T` is a parameterized type.

Update library/language versions used by build-init templates.

Remove the instant execution cache file when there is a failure writing to the cache file.

Disallow references to `ConfigurationContainer` from tasks serialized to the instant execution cache.

Recognize contributor

Publish 5.5-20190620010535+0000

Fix small typo in the feature variants chapter of the user guide

Rebaseline instant-execution performance tests

Refine MethodCodec

Polish task actions test

Polish BeanSchema

Temporarily ignore instant execution performance tests

Refine ClassLoaderCacheInternal

Tidy up DefaultInstantExecution & DefaultClassLoaderCache

Add some coverage for captured task actions

Dehydrate Closure and fix BeanSchema for task actions

Add MethodCodec for serializing StandardTaskAction

Let BeanSchema include AbstractTask.actions

...

Signed-off-by: Jonathan Leitschuh <Jonathan.Leitschuh@gradle.com>

    • -2
    • +1
    ./HttpBuildCacheServiceIntegrationTest.groovy
  1. … 14 more files in changeset.
Add integration tests for checking Gradle version in cache metadata

- in origin metadata

- in HTTP cache headers

    • -2
    • +1
    ./HttpBuildCacheServiceIntegrationTest.groovy
  1. … 5 more files in changeset.
Merge branch 'master' into deprecate_http_download

Signed-off-by: Jonathan Leitschuh <Jonathan.Leitschuh@gmail.com>

    • -12
    • +12
    ./HttpBuildCacheServiceIntegrationTest.groovy
  1. … 1 more file in changeset.
Cleanup some unnessasary changes after depricate http changes

Signed-off-by: Jonathan Leitschuh <Jonathan.Leitschuh@gmail.com>

    • -1
    • +1
    ./HttpBuildCacheServiceIntegrationTest.groovy
  1. … 10 more files in changeset.
Change more tests.

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

    • -5
    • +5
    ./HttpBuildCacheServiceIntegrationTest.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.

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

    • -12
    • +12
    ./HttpBuildCacheServiceIntegrationTest.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.

    • -12
    • +12
    ./HttpBuildCacheServiceIntegrationTest.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
    ./HttpBuildCacheServiceIntegrationTest.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.

    • -12
    • +12
    ./HttpBuildCacheServiceIntegrationTest.groovy
  1. … 98 more files in changeset.
Relax test assertion for build build cache test

The message is slightly different when running on Java 10 on Windows.

    • -1
    • +2
    ./HttpBuildCacheServiceIntegrationTest.groovy
Relax test assertion for build build cache test

The message is slightly different when running on Java 10 on Windows.

    • -1
    • +2
    ./HttpBuildCacheServiceIntegrationTest.groovy
Set timeout for AbstractIntegrationSpec (#5806)

We have been bitten by CI build exection timeout for a long time.

This PR introduces timeout for AbstractIntegrationSpec in order to

monitor execution timeout. Upon timeout, a spock interceptor can

print all threads' stack traces in all JVMs so that we can diagnose

the potential issues in other JVMs (daemons, test workers, etc.).

    • -2
    • +2
    ./HttpBuildCacheServiceIntegrationTest.groovy
  1. … 29 more files in changeset.
Fix CompositeBuildEventsIntegrationTest usage of output test fixtures

    • -2
    • +2
    ./HttpBuildCacheServiceIntegrationTest.groovy
  1. … 6 more files in changeset.
Change int tests to use relevant fixture methods to express their expectations about the build log output.

    • -2
    • +1
    ./HttpBuildCacheServiceIntegrationTest.groovy
  1. … 30 more files in changeset.
Allow enabling build cache in all integration tests

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

    • -23
    • +23
    ./HttpBuildCacheServiceIntegrationTest.groovy
  1. … 27 more files in changeset.
Add flag to allow untrusted ssl connections to build cache (#2790)

    • -0
    • +36
    ./HttpBuildCacheServiceIntegrationTest.groovy
  1. … 9 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.

    • -2
    • +3
    ./HttpBuildCacheServiceIntegrationTest.groovy
  1. … 26 more files in changeset.
Store artifacts from the remote cache in the local cache

When the default local directory build cache is used, we use an optimized

way to store the downloaded artifact in the cache. Using a custom local

cache, or with the local cache disabled, a temporary file will be used

to store the downloaded artifact.

Packing is also separated from uploading to the remote cache. Again,

when the default directory cache is used to store the cached artifact in

the local cache before uploading it to the remote cache. With a custom

local cache, or when a local cache is not enabled, task outputs will be

stored in a temporary file before uploading.

Build operations are emitted separately for packing, unpacking,

uploading and downloading the cache artifact.

    • -1
    • +1
    ./HttpBuildCacheServiceIntegrationTest.groovy
  1. … 56 more files in changeset.
Rename test HTTP build cache server to HttpBuildCacheServer

+review REVIEW-6548

    • -15
    • +15
    ./HttpBuildCacheServiceIntegrationTest.groovy
  1. … 7 more files in changeset.
Use preemptive auth with credentials in URL (#2272)

    • -5
    • +5
    ./HttpBuildCacheServiceIntegrationTest.groovy
  1. … 3 more files in changeset.