-
Notifications
You must be signed in to change notification settings - Fork 5k
Allow HTTP build cache client requests to be redirected #17390
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@lptr this is ready for an initial review. At least, the user docs and other documentation will need to be updated. I'll wait until the functionality and API is approved before doing that in another round. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I left a few minor comments.
...gradle/caching/http/internal/HttpBuildCacheConfigurationBuildOperationIntegrationTest.groovy
Show resolved
Hide resolved
...vy/org/gradle/caching/http/internal/HttpBuildCacheServiceErrorHandlingIntegrationTest.groovy
Outdated
Show resolved
Hide resolved
subprojects/build-cache-http/src/main/java/org/gradle/caching/http/HttpBuildCache.java
Outdated
Show resolved
Hide resolved
...s/build-cache-http/src/main/java/org/gradle/caching/http/internal/HttpBuildCacheService.java
Show resolved
Hide resolved
Co-authored-by: Lóránt Pintér <[email protected]>
@lptr Thanks, ready for another round. This is complete, in that I'm not intending to do anymore that isn't in response to review feedback. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple more comments, mostly about documentation.
...vy/org/gradle/caching/http/internal/HttpBuildCacheServiceErrorHandlingIntegrationTest.groovy
Show resolved
Hide resolved
subprojects/docs/src/docs/userguide/build-cache/build_cache.adoc
Outdated
Show resolved
Hide resolved
subprojects/docs/src/docs/userguide/build-cache/build_cache.adoc
Outdated
Show resolved
Hide resolved
subprojects/build-cache-http/src/main/java/org/gradle/caching/http/HttpBuildCache.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
@bot-gradle test and merge please.
OK, I've already triggered a build for you. |
Pre-tested commit build failed. |
@lptr thanks for the quality review. It made it much better in the end. |
failed due to repo.gradle.org outage |
@bot-gradle test and merge |
OK, I've already triggered a build for you. |
Fixes #14433
Redirection is always supported, with up to 10 redirects per request.
A new
useExpectContinue
configuration option has been added that enables use of HTTP expect-continue with store requests, for environments where store requests are routinely redirected and doubly transmitting the cache entry payload is undesirable.