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

fix: correct path required proto testdata #14991

Merged
merged 7 commits into from
Feb 11, 2023
Merged

Conversation

julienrbrt
Copy link
Member

Description

Closes: #14988


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • included the correct type prefix in the PR title
  • added ! to the type prefix if API or client breaking change
  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • followed the guidelines for building modules
  • included the necessary unit and integration tests
  • added a changelog entry to CHANGELOG.md
  • included comments for documenting Go code
  • updated the relevant documentation or specification
  • reviewed "Files changed" and left comments if necessary
  • confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed ! in the type prefix if API or client breaking change
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic
  • reviewed API design and naming
  • reviewed documentation is accurate
  • reviewed tests and test coverage
  • manually tested (if applicable)

@julienrbrt julienrbrt requested a review from a team as a code owner February 10, 2023 11:24
@julienrbrt julienrbrt changed the title fix: correct path required proto fix: correct path required proto testdata Feb 10, 2023
Copy link
Contributor

@amaury1093 amaury1093 left a comment

Choose a reason for hiding this comment

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

LGTM, proposed 2 alternatives, but this PR LGTM as-is too. Thanks @julienrbrt

@@ -1,5 +1,5 @@
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package testdata_pulsar
package testpb
Copy link
Contributor

Choose a reason for hiding this comment

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

An alternative we can do, is that instead of generating pulsar types in testutil/testdata_pulsar/testpb, we generate them in testutil/testdata/testpb. This way testdata_pulsar is not a directory with only one directory inside.

We would have:

  • testdata/*.go : gogo
  • testdata/testpb/*.go: pulsar

Not sure if that's better or more confusing, but putting the idea out there.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, I was thinking of this, but thought it could be confusing. As you think the same too, this means it's not that confusing then 👍🏾 Doing that!

baseapp/testutil/testpb/messages.proto Outdated Show resolved Hide resolved
@julienrbrt julienrbrt enabled auto-merge (squash) February 10, 2023 23:20
@julienrbrt
Copy link
Member Author

@Mergifyio backport release/v0.47.x

@mergify
Copy link
Contributor

mergify bot commented May 10, 2023

backport release/v0.47.x

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request May 10, 2023
(cherry picked from commit a90569c)

# Conflicts:
#	.golangci.yml
#	CHANGELOG.md
#	simapp/app.go
#	simapp/app_v2.go
#	testutil/assert_helpers.go
#	testutil/testdata/testpb/pulsar_query.go
#	testutil/testdata/testpb/query_grpc.pb.go
#	testutil/testdata/testpb/tx_grpc.pb.go
#	x/auth/ante/testutil_test.go
tac0turtle pushed a commit that referenced this pull request May 10, 2023
Co-authored-by: Julien Robert <julien@rbrt.fr>
larry0x pushed a commit to larry0x/cosmos-sdk that referenced this pull request May 22, 2023
roy-dydx pushed a commit to dydxprotocol/cosmos-sdk that referenced this pull request Jul 11, 2023
kakysha pushed a commit to InjectiveLabs/cosmos-sdk that referenced this pull request Aug 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bump proto-builder and rename testutil protos
2 participants