Skip to content

Skip activity API types when generating the 1.22 UTF-8 repair - #305

Merged
pseudomuto merged 1 commit into
mainfrom
fix-genvisitor-activity
Oct 7, 2026
Merged

pseudomuto merged 1 commit into
mainfrom
fix-genvisitor-activity

Conversation

@pseudomuto

Copy link
Copy Markdown
Contributor

The standalone activity types (temporal.api.activity.v1) came in with a later API version and have no counterpart in the 1.22 protos. The generator didn't filter them, so make genvisitor emitted cases that import proto/1_22/api/activity/v1, a package that doesn't exist, and the build broke. That is likely why repair_utf8_gen.go had not been regenerated since it was added.

Filtering the package brings the output back in line with the checked-in file, which is unchanged.

The new test runs the generator the way make genvisitor does and compares the result with the checked-in file, so the next dependency upgrade that changes or breaks the output fails in CI instead of surprising whoever regenerates next.

The standalone activity types (temporal.api.activity.v1) came in with a
later API version and have no counterpart in the 1.22 protos. The
generator did not filter them, so `make genvisitor` emitted cases that
import proto/1_22/api/activity/v1, a package that does not exist, and
the build broke. That is likely why repair_utf8_gen.go had not been
regenerated since it was added.

Filtering the package brings the output back in line with the
checked-in file, which is unchanged.

The new test runs the generator the way `make genvisitor` does and
compares the result with the checked-in file, so the next dependency
upgrade that changes or breaks the output fails in CI instead of
surprising whoever regenerates next.
@pseudomuto
pseudomuto requested a review from a team as a code owner October 6, 2026 15:30
@pseudomuto
pseudomuto added this pull request to stack #307 October 6, 2026 18:14
@pseudomuto
pseudomuto merged commit 323e28c into main Oct 7, 2026
8 checks passed
@pseudomuto
pseudomuto deleted the fix-genvisitor-activity branch October 7, 2026 11:00
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