Skip to content

Vendor gogo-based protos and serializer from Temporal v1.22.2#117

Merged
pglass merged 2 commits intomainfrom
pglass/vendor-122-protos
Jul 10, 2025
Merged

Vendor gogo-based protos and serializer from Temporal v1.22.2#117
pglass merged 2 commits intomainfrom
pglass/vendor-122-protos

Conversation

@pglass
Copy link
Copy Markdown
Contributor

@pglass pglass commented Jul 10, 2025

What was changed

Copy over protos and certain code from version v1.22.2 of Temporal server into the protos/1_22 directory. This includes generated protobuf code from temporalio/api-go and temporalio/temporal, and the serializer.

Add the make vendor-protos target, which runs the develop/vendor-protos.sh script, which clones and copies the files and is repeatable/idempotent.

Why?

We will use these gogo-based protos to repair invalid UTF-8. Merge these first to declutter the subsequent PRs.

Checklist

  1. Closes

  2. How was this tested:

  1. Any docs updates needed?

@pglass pglass requested a review from a team as a code owner July 10, 2025 15:27
Comment thread develop/vendor-protos.sh
cat <<EOF > "$out_file"
# Overview

This is a partial copy of [${repo} at ${commit}](${tree_link})
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Would be good to also explain why we're copying this.

"Temporal 1.22 used gogo-protobuf for serialization, which allowed it to store invalid UTF8 provided from the SDK and workers locally. Temporal 1.23 switched to google-protobuf, which requires all string data be valid UTF8. The proxy uses these proto definitions to seamlessly repair broken UTF8 strings in flight without dropping any of the valid data. "

Copy link
Copy Markdown
Collaborator

@temporal-nick temporal-nick left a comment

Choose a reason for hiding this comment

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

One minor comment on the README

@pglass pglass merged commit 72a0dc3 into main Jul 10, 2025
6 checks passed
@pglass pglass deleted the pglass/vendor-122-protos branch July 10, 2025 19:54
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.

2 participants