-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
chore: lint tests #14268
chore: lint tests #14268
Conversation
Hi, @julienrbrt -- going through the ORM tests for the group module was odd
What I am going to do about it:
Honestly, there's probably more here. I think it might be a good idea to look at pulling orm -- and maybe groups out of 47, before 47 gets 46.6'd. Also, it's quite late, and we had a power outage today that took down many validators for 20 minutes, so I think that I should re-review with fresh eyes tomorrow. Relevant discussion: https://blog.jpalardy.com/posts/which-package-name-for-go-tests/ |
Sure! The complexity may have tricked the linter, I thought if it was showing unused/deadcode it could be safely deleted.
Yes, ORM severely lack documentation. I don't have enough knowledge with ORM to write about it either. Given that collections are coming, let's see if we'll need documentation at all, or we'll delete it 😅. |
fyi: my preference is for this to backport into v0.47.x, 46.x and 45.x, and I know I'll likely need to do it separately for each. Reasoning:
|
Yes; but we've decided to be stricter in backports for 0.47; otherwise we need to re-audit. The tests are still working in 0.46 and 0.45 (and they are completely different tests), so no need to retroactively apply this. This is good that you've done that, and now all the future versions will be lint, so that is still super useful. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm again. just a few things to revert.
pre-approving (but to second reviewer, please do not merge until the above comments are implemented)
@@ -13,7 +13,7 @@ import ( | |||
) | |||
|
|||
// An sdk.Tx which is its own sdk.Msg. | |||
type kvstoreTx struct { | |||
type KVStoreTx struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
given that all fields are private, I don't understand why making this public. can we ignore?
Co-authored-by: Julien Robert <julien@rbrt.fr>
Thanks again for your review. Its surfaced a couple of things that I honestly don't understand and I'm going to run through with the tooling again and make sure that nothing actually caused them to happen. My end goal with this one, is to allow developers working on the SDK to rely on feedback from their editor as heavily as possible. But for that to work the feedback has to be good. Fyi, the ones I don't know about are naming the fmt and proto imports. |
Putting automerge, lgtm. (otherwise, given the scope, you'll end-up in a conflict hell). |
Yeah I totally agree about the conflict how, thanks for that. I'll do a run real quick and make sure that main is now happy. |
Description
This PR lints tests, in the same manner we do everything else.
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...
!
to the type prefix if API or client breaking changeCHANGELOG.md
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...
!
in the type prefix if API or client breaking change