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

Upgrade gRPC version #1797

Closed
markmandel opened this issue Sep 6, 2020 · 8 comments · Fixed by #2155
Closed

Upgrade gRPC version #1797

markmandel opened this issue Sep 6, 2020 · 8 comments · Fixed by #2155
Labels
help wanted We would love help on these issues. Please come help us! kind/cleanup Refactoring code, fixing up documentation, etc
Milestone

Comments

@markmandel
Copy link
Member

We should upgrade gRPC. k8s.io/apiserver would like it to be 1.23.0 (even though we don't use that part of the code), so probably makes sense to align it with what libraries we use are requesting.

(Unless anyone can think of a good reason to go straight to latest?)

https://github.com/googleforgames/agones/blob/master/build/README.md#make-gen-sdk-grpc will be required here to update gRPC based SDKs and make sure they work. Might be worth splitting that work up as well as separate PRs.

Context: #1794 (comment)

@markmandel markmandel added help wanted We would love help on these issues. Please come help us! kind/cleanup Refactoring code, fixing up documentation, etc labels Sep 6, 2020
@markmandel
Copy link
Member Author

One other thought on this - if we want to upgrade grpc-gateway (maybe to v2?) we should upgrade gRPC to the appropriate version first.

@markmandel
Copy link
Member Author

markmandel commented Jun 25, 2021

Reopening this, to cover gRPC SDK tooling.

We did update gRPC for the SDK server, but haven't yet done any of the work to upgrade the codegen for the client sdks and related. They may not change, but usually there is some change in the generated code from gRPC between versions. At the very least we should check.

  • update the SDK base image grpc version and rebuild the image. (this can take a while, have had to do it manually and push it to gcr because cloud build doesn't like how long it takes).
  • regen allocated API endpoints: make gen-allocation-grpc (looks like this one isn't documented)
  • regen all client sdks: make gen-sdk-grpc
  • update the version number in C++ Cmake scripts
  • Probably worth doing a global find for "1.20.1" to see if there is anything else that needs updating.
  • Fix all the things until they pass 😄

@roberthbailey roberthbailey reopened this Jun 26, 2021
@dbotha
Copy link

dbotha commented Jul 8, 2021

@markmandel This upgrade would be very welcome 😅 Currently I have to apply a minor patch to gRPC to get the c++ SDK to compile under Alpine Linux: d93e057

This wouldn't be required under more recent versions of gRPC (v1.24.0 onwards). See resolved issue grpc/grpc#19964

Kind regards,

Deon

@markmandel
Copy link
Member Author

Noting - this is the current gRPC version we are using server side, so we need to bring the client side SDK tooling inline with this version:
https://github.com/googleforgames/agones/blob/main/go.mod#L33

google.golang.org/grpc v1.27.1

@markmandel
Copy link
Member Author

Just noting that there are still a few more checkboxes in the list that need completing before we can close this out.
#1797 (comment)

We might be able to close off "Probably worth doing a global find for "1.20.1" to see if there is anything else that needs updating." - @SaitejaTamma did you end up doing a search? If so, we can tick this item off.

@SaitejaTamma
Copy link
Contributor

Yes, we can tick this off

@roberthbailey
Copy link
Member

@markmandel - with the recent gRPC updates, can we close this tracking ticket?

@markmandel
Copy link
Member Author

Yes! Let's do it!

@mangalpalli mangalpalli added this to the 1.27.0 milestone Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted We would love help on these issues. Please come help us! kind/cleanup Refactoring code, fixing up documentation, etc
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants