-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[release/1.4 backport] Fix missing Body.Close() calls on push to docker remote #5717
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
[release/1.4 backport] Fix missing Body.Close() calls on push to docker remote #5717
Conversation
Build succeeded.
|
Ah, hmmm.. perhaps not needed in 1.4.x, or in a slightly different fashion;
|
> note: This is a slightly modified version of the commit in main, because > pusher.Commit() uses a regular http.Response, not a wrapped one. Discovered this while using HTTP tracing via OpenTelemetry inside of buildkitd, where the trace spans were not being reported for the registry PUT http requests. The spans are only reported on the Close for the Body, after adding these Close calls, the spans are reported as expected. Signed-off-by: coryb <cbennett@netflix.com> (cherry picked from commit 894b6ae) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
f219b40
to
591744a
Compare
Build succeeded.
|
could use some extra eyes on this one to verify this is all correct for the 1.4 implementation (as some things changed; see above), and this code is not trivial |
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
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
backport of #5712
Discovered this while using HTTP tracing via OpenTelemetry inside of
buildkitd, where the trace spans were not being reported for the
registry PUT http requests. The spans are only reported on the Close
for the Body, after adding these Close calls, the spans are reported as
expected.
Signed-off-by: coryb cbennett@netflix.com
(cherry picked from commit 894b6ae)
Signed-off-by: Sebastiaan van Stijn github@gone.nl