Skip to content

[public-api] Switch go codegen to buf #13579

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

Merged
merged 1 commit into from
Oct 5, 2022
Merged

[public-api] Switch go codegen to buf #13579

merged 1 commit into from
Oct 5, 2022

Conversation

easyCZ
Copy link
Member

@easyCZ easyCZ commented Oct 4, 2022

Description

Uses buf gen to generate go/grpc

This makes the configuration easier to read and removes the need to move files around.

This also removes the vendored dependency on google/rpc as it's not needed.

We can also the same for other packages.

Related Issue(s)

Fixes #

How to test

Release Notes

NONE

Documentation

Werft options:

  • /werft with-local-preview
    If enabled this will build install/preview
  • /werft with-preview
  • /werft with-integration-tests=all
    Valid options are all, workspace, webapp, ide

@easyCZ easyCZ requested a review from a team October 4, 2022 11:28
@github-actions github-actions bot added the team: webapp Issue belongs to the WebApp team label Oct 4, 2022
@easyCZ easyCZ force-pushed the mp/public-api-buf branch from c335b01 to 10909f9 Compare October 4, 2022 11:29
@easyCZ
Copy link
Member Author

easyCZ commented Oct 4, 2022

/werft run

👍 started the job as gitpod-build-mp-public-api-buf.4
(with .werft/ from main)

@andrew-farries
Copy link
Contributor

andrew-farries commented Oct 5, 2022

This appears to be blocking the merge pool for some reason even though it still has pending reviewers 😕

/hold

@easyCZ easyCZ force-pushed the mp/public-api-buf branch from 7605389 to 49a714e Compare October 5, 2022 08:03
Copy link
Member

@akosyakov akosyakov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also removes the vendored dependency on google/rpc as it's not needed.

I don't really understand what is happening in the PR. I thought we are using google rpc because of error handling? Is it not needed anymore or it is still generated differently?

@easyCZ
Copy link
Member Author

easyCZ commented Oct 5, 2022

The default libraries (TS, go, etc..) which use the code already embed the google RPC structs in their responses and in the protocol. We don't need to vendor them here (we're also not importing them into our protos).

Copy link
Member

@akosyakov akosyakov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@easyCZ
Copy link
Member Author

easyCZ commented Oct 5, 2022

/unhold

@roboquat roboquat merged commit c0c214c into main Oct 5, 2022
@roboquat roboquat deleted the mp/public-api-buf branch October 5, 2022 11:54
@roboquat roboquat added deployed: webapp Meta team change is running in production deployed Change is completely running in production labels Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: webapp Meta team change is running in production deployed Change is completely running in production release-note-none size/XXL team: webapp Issue belongs to the WebApp team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants