Skip to content

Update grpc_tools_node_protoc_ts to 5.3.2#38652

Closed
mdwn wants to merge 3 commits intomasterfrom
mike.wilson/update-grpc-tools-node-protoc-ts
Closed

Update grpc_tools_node_protoc_ts to 5.3.2#38652
mdwn wants to merge 3 commits intomasterfrom
mike.wilson/update-grpc-tools-node-protoc-ts

Conversation

@mdwn
Copy link
Copy Markdown
Contributor

@mdwn mdwn commented Feb 26, 2024

grpc_tools_node_protoc_ts has been updated to 5.3.2. This version supports proto3 optionals, which 5.0.1 does not. The changes in the generated ts files are whitespace changes save for the google protobuf bits, which look to have changed fairly extensively.

Note: I'm working on verifying this now, but any pointers on what exactly to verify would be appreciated.

@mdwn mdwn added backport/branch/v13 no-changelog Indicates that a PR does not require a changelog entry labels Feb 26, 2024
@github-actions github-actions Bot requested review from greedy52 and tigrato February 26, 2024 23:03
Copy link
Copy Markdown
Contributor

@codingllama codingllama left a comment

Choose a reason for hiding this comment

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

Thanks for doing this!

Mike Wilson added 3 commits February 27, 2024 07:06
grpc_tools_node_protoc_ts has been updated to 5.3.2. This version supports
proto3 optionals, which 5.0.1 does not. The changes in the generated ts
files are whitespace changes save for the google protobuf bits, which look
to have changed fairly extensively.
@mdwn mdwn force-pushed the mike.wilson/update-grpc-tools-node-protoc-ts branch from c0360a1 to c28e279 Compare February 27, 2024 15:07
Comment thread buf-js.gen.yaml
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

As far as I know, long term we want to get rid grpc_tools_node_protoc_ts because we have switched to protobuf-ts. See #37010 and:

# Generate JS protos.
# TODO(ryan): remove once Connect has migrated to the TS protobufs.
[[ $skip_js -eq 0 ]] && echoed buf generate --template=buf-js.gen.yaml \
--path=proto/prehog/ \
--path=proto/teleport/lib/teleterm/ \
--path=api/proto/teleport/accesslist/ \
--path=api/proto/teleport/devicetrust/ \
--path=api/proto/teleport/header/ \
--path=api/proto/teleport/trait/ \
--path=api/proto/teleport/userpreferences/
# Generate TS protos.
[[ $skip_js -eq 0 ]] && echoed buf generate --template=buf-ts.gen.yaml \
--path=proto/prehog/ \
--path=proto/teleport/lib/teleterm/ \
--path=api/proto/teleport/accesslist/ \
--path=api/proto/teleport/devicetrust/ \
--path=api/proto/teleport/header/ \
--path=api/proto/teleport/trait/ \
--path=api/proto/teleport/userpreferences/

I saw your message on Slack about issues with Buildbox. If the version of grpc_tools_node_protoc_ts gives you troubles, you should be able to rip out buf-js.gen.yaml and its use from genproto.sh and leave the buildbox cleanup to us.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

v15 uses protobuf-ts, v13 and v14 continue to use grpc_tools_node_protoc_ts.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Is there any plan to use protobuf-ts for v13/v14 as well?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

No, the switch was done during the test plan in #36921 and we retested v15 soon after that. We wouldn't have time to do the same for v13 and v14 as well.

@mdwn
Copy link
Copy Markdown
Contributor Author

mdwn commented Feb 27, 2024

Closing this as it doesn't really apply to master/v15.

@mdwn mdwn closed this Feb 27, 2024
@rosstimothy rosstimothy deleted the mike.wilson/update-grpc-tools-node-protoc-ts branch May 28, 2025 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog Indicates that a PR does not require a changelog entry size/sm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants