Skip to content
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

Migrate "golang.org/x/net/context" -> "context" #3333

Merged
merged 1 commit into from
Oct 25, 2017
Merged

Conversation

juliusv
Copy link
Member

@juliusv juliusv commented Oct 23, 2017

In some places, where ctxhttp or gRPC are concerned, we still need to use the
old contexts.

In some places, where ctxhttp or gRPC are concerned, we still need to use the
old contexts.
@juliusv juliusv requested a review from fabxc October 23, 2017 05:09
@fabxc
Copy link
Contributor

fabxc commented Oct 23, 2017

👍

@juliusv
Copy link
Member Author

juliusv commented Oct 23, 2017

Hrm, since we're using native contexts now, CodeClimate can find more context-related issues and is failing here:

https://codeclimate.com/github/prometheus/prometheus/pull/3333

All issues around context cancellation, but I don't think they're all real (e.g. the notifier one doesn't seem to be). I haven't had a look at CodeClimate yet, do you happen to know what to do in this case? CodeClimate shows @beorn7 as the user for the integration in GitHub here...

@beorn7
Copy link
Member

beorn7 commented Oct 23, 2017

I introducted CodeClimate as an experiment a while ago, and the only easy way I saw back then was to use my own user as the one granting permissions and such. Thus, my face shows up there.

We have Codacy now, too, and I'm sure others played with several other tools as well. We should decide at some point which tools we want to have, and then create some consistency across repos. I'm not in a position to drive that right now, though.

If you find CodeClimate un-helpful, feel free to remove it. No emotional or other attachment to it from my side. However, should the problem it exposed here be real, it would be pretty awesome.

@juliusv
Copy link
Member Author

juliusv commented Oct 25, 2017

If you find CodeClimate un-helpful, feel free to remove it. No emotional or other attachment to it from my side. However, should the problem it exposed here be real, it would be pretty awesome.

The reported problems are just go vet results, and we know that those also provide false positives at times. That seems to be the case here. So I'll remove CodeClimate.

@juliusv juliusv merged commit 099df0c into master Oct 25, 2017
@juliusv juliusv deleted the new-contexts branch October 25, 2017 04:21
juliusv added a commit that referenced this pull request Oct 26, 2017
@juliusv juliusv mentioned this pull request Oct 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants