-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Enable noctx lint #9350
Enable noctx lint #9350
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: matejvasek The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
8831eba
to
37a5d67
Compare
@matejvasek |
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.
The PR is changing a lot of internal interfaces while the value (besides making the linter happy) is rather unclear to me. The biggest benefit of using a Context that I know is that it allows for cancelling go routines (if they support it) but I don't think that's the case in the proposed changes.
In case others feel different, I want to encourage to delay merging this PR for a couple of weeks. v3.0.0 just went out the door and merging the PR is likely causing conflicts when backporting from the main to the v3.0 branch. I think we'll be fixing some more bugs once 3.0 hits more users.
@vrothberg In this case it should allow to cancel some ongoing HTTP requests. |
If we wanted just make linter happy we could simply pass |
But of course this is not super important and don't not need to be merge soon. |
@vrothberg Imagine you call |
Once I cancelled some request but saw server continuing with work. But I am not sure that it was image import operation. |
(More) cancellable remote calls would be an improvement. In case of import, it would fail immediately since the client uploads the data but there are other cases like pull where it would be nice to have. |
From source code it looks like client don't have to necessarily upload data. It is possible to use query parameter named |
73fadcd
to
5b81227
Compare
Flake again. |
/hold Holding the merge since I am still rather objecting to merge. If we want to, please wait a while until v3.0 further stabilized to avoid additional work for backports. |
Yes let's wait for a while before merging. Would like to get @mheon Thoughts on this as well. |
I do think this one is a good inclusion - it complicates the call stack but
the API calls for volume plugins can potentially hang until their timeout,
independent of the timeout of the actual request to get the volume, or
mount it, or remove it. Tying it to the context of the request that spawned
it makes a lot of sense.
…On Mon, Feb 15, 2021 at 06:31 Daniel J Walsh ***@***.***> wrote:
Yes let's wait for a while before merging. Would like to get @mheon
<https://github.com/mheon> Thoughts on this as well.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#9350 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB3AOCHM7Q7ZFOFHPGDWVB3S7EAY5ANCNFSM4XRM45KA>
.
|
Signed-off-by: Matej Vasek <[email protected]>
Signed-off-by: Matej Vasek <[email protected]>
5b81227
to
d289141
Compare
@matejvasek: PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@matejvasek Please rebase. |
A friendly reminder that this PR had no activity for 30 days. |
@matejvasek What do you want to do with this PR? |
Since we have had no movement on this PR in a month, I am going to close. @matejvasek reopen if you still want to add it. |
@rhatdan I think that at this point rebase would be difficult anyway, rewrite might be easier if we really want these changes. |
You tell me if you think they are valuable. |
This improves context propagation which might be useful for cancellation of running processes.
For example a user call some
/libpod/
RESTful endpoint, and the handler of the endpoint itself does some other HTTP request.If the user cancels the HTTP request to the
/libpod
API (i.e. closesTCP
connection), the HTTP request invoked by the handler will be also cancelled now.