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

Use generated proto types from cadence-idl repo #4630

Merged

Conversation

vytautas-karpavicius
Copy link
Contributor

@vytautas-karpavicius vytautas-karpavicius commented Nov 11, 2021

What changed?

  • go get github.com/uber/cadence-idl
  • Update Makefile to exclude generated types in idls from formatting
  • Update Makefile to not generate public API proto types
  • Removed existing generated public API proto types
  • Replaced github.com/uber/cadence/.gen/proto/api/v1 with github.com/uber/cadence-idl/go/proto/api/v1 everywhere
  • Regenerate internal proto types (import path updates, binary descriptor changes)

Why?
Public API proto types are generated on cadence-idl repo (uber/cadence-idl#94) so that they could be shared between client/server. Otherwise it results in duplicated type registrations when using both.

How did you test it?

Potential risks

Release notes

Documentation Changes

@vytautas-karpavicius vytautas-karpavicius marked this pull request as ready for review November 11, 2021 11:08
@vytautas-karpavicius vytautas-karpavicius requested a review from a team November 11, 2021 11:08
@coveralls
Copy link

coveralls commented Nov 11, 2021

Pull Request Test Coverage Report for Build 4992bcea-e6dc-4a22-8e90-806b4ce41a55

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 29 unchanged lines in 5 files lost coverage.
  • Overall coverage increased (+0.009%) to 56.901%

Files with Coverage Reduction New Missed Lines %
common/membership/ringpop_config.go 2 81.58%
common/task/parallelTaskProcessor.go 2 92.75%
common/persistence/nosql/nosqlplugin/cassandra/workflow.go 3 55.49%
common/persistence/nosql/nosqlplugin/cassandra/workflowUtils.go 8 78.08%
common/persistence/nosql/nosqlplugin/cassandra/workflowParsingUtils.go 14 87.9%
Totals Coverage Status
Change from base Build 9013b6a2-f541-4284-9254-cc5d134c52f3: 0.009%
Covered Lines: 82338
Relevant Lines: 144705

💛 - Coveralls

@@ -225,7 +226,7 @@ $(THRIFT_GEN): $(THRIFT_FILES) $(BIN)/thriftrw $(BIN)/thriftrw-plugin-yarpc | $(
PROTO_ROOT := proto
# output location is defined by `option go_package` in the proto files, all must stay in sync with this
PROTO_OUT := .gen/proto
Copy link
Contributor

Choose a reason for hiding this comment

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

is this still relevant?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, since we still generate all internal types here. Those that are used for history/matching services.
Only public API types were moved to cadence-idl repo, internal types stays here.

@vytautas-karpavicius vytautas-karpavicius merged commit 5ccad58 into uber:master Nov 16, 2021
@vytautas-karpavicius vytautas-karpavicius deleted the common-proto-api branch November 16, 2021 11:59
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.

3 participants