-
Notifications
You must be signed in to change notification settings - Fork 12
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
[Code Health] Ensure all message/query handler return gRPC status errors #860
Closed
1 of 7 tasks
Labels
Milestone
Comments
bryanchriswhite
added
off-chain
Off-chain business logic
on-chain
On-chain business logic
code health
Cleans up some code
labels
Oct 7, 2024
@bryanchriswhite Where are we on this? |
Not started but expected to be low effort. I intended to do this in parallel with a higher effort issue (like #543). |
15 tasks
15 tasks
This was referenced Nov 22, 2024
bryanchriswhite
added a commit
that referenced
this issue
Dec 2, 2024
## Summary Ensure all service module message and query handlers return gRPC status errors. ## Issue - #860 ## Type of change Select one or more from the following: - [ ] New feature, functionality or library - [x] Consensus breaking; add the `consensus-breaking` label if so. See #791 for details - [ ] Bug fix - [x] Code health or cleanup - [ ] Documentation - [ ] Other (specify) ## Testing - [ ] **Documentation**: `make docusaurus_start`; only needed if you make doc changes - [x] **Unit Tests**: `make go_develop_and_test` - [ ] **LocalNet E2E Tests**: `make test_e2e` - [x] **DevNet E2E Tests**: Add the `devnet-test-e2e` label to the PR. ## Sanity Checklist - [x] I have tested my changes using the available tooling - [ ] I have commented my code - [x] I have performed a self-review of my own code; both comments & source code - [ ] I create and reference any new tickets, if applicable - [ ] I have left TODOs throughout the codebase, if applicable
bryanchriswhite
added a commit
that referenced
this issue
Dec 2, 2024
## Summary Ensure all session message and query handlers return gRPC status errors. ## Issue - #860 ## Type of change Select one or more from the following: - [ ] New feature, functionality or library - [x] Consensus breaking; add the `consensus-breaking` label if so. See #791 for details - [ ] Bug fix - [x] Code health or cleanup - [ ] Documentation - [ ] Other (specify) ## Testing - [ ] **Documentation**: `make docusaurus_start`; only needed if you make doc changes - [x] **Unit Tests**: `make go_develop_and_test` - [ ] **LocalNet E2E Tests**: `make test_e2e` - [x] **DevNet E2E Tests**: Add the `devnet-test-e2e` label to the PR. ## Sanity Checklist - [x] I have tested my changes using the available tooling - [ ] I have commented my code - [x] I have performed a self-review of my own code; both comments & source code - [ ] I create and reference any new tickets, if applicable - [ ] I have left TODOs throughout the codebase, if applicable
bryanchriswhite
added a commit
that referenced
this issue
Dec 2, 2024
## Summary Ensure all shared message and query handlers return gRPC status errors. ## Issue - #860 ## Type of change Select one or more from the following: - [ ] New feature, functionality or library - [x] Consensus breaking; add the `consensus-breaking` label if so. See #791 for details - [ ] Bug fix - [x] Code health or cleanup - [ ] Documentation - [ ] Other (specify) ## Testing - [ ] **Documentation**: `make docusaurus_start`; only needed if you make doc changes - [x] **Unit Tests**: `make go_develop_and_test` - [ ] **LocalNet E2E Tests**: `make test_e2e` - [x] **DevNet E2E Tests**: Add the `devnet-test-e2e` label to the PR. ## Sanity Checklist - [x] I have tested my changes using the available tooling - [ ] I have commented my code - [x] I have performed a self-review of my own code; both comments & source code - [ ] I create and reference any new tickets, if applicable - [ ] I have left TODOs throughout the codebase, if applicable
bryanchriswhite
added a commit
that referenced
this issue
Dec 2, 2024
## Summary Ensure all application message and query handlers return gRPC status errors. ## Issue - #860 ## Type of change Select one or more from the following: - [ ] New feature, functionality or library - [x] Consensus breaking; add the `consensus-breaking` label if so. See #791 for details - [ ] Bug fix - [x] Code health or cleanup - [ ] Documentation - [ ] Other (specify) ## Testing - [ ] **Documentation**: `make docusaurus_start`; only needed if you make doc changes - [x] **Unit Tests**: `make go_develop_and_test` - [ ] **LocalNet E2E Tests**: `make test_e2e` - [x] **DevNet E2E Tests**: Add the `devnet-test-e2e` label to the PR. ## Sanity Checklist - [x] I have tested my changes using the available tooling - [ ] I have commented my code - [x] I have performed a self-review of my own code; both comments & source code - [ ] I create and reference any new tickets, if applicable - [ ] I have left TODOs throughout the codebase, if applicable
15 tasks
This was
linked to
pull requests
Dec 2, 2024
15 tasks
This was
linked to
pull requests
Dec 2, 2024
This was
linked to
pull requests
Dec 2, 2024
bryanchriswhite
added a commit
that referenced
this issue
Dec 2, 2024
## Summary Ensure all supplier message and query handlers return gRPC status errors. ## Issue - #860 ## Type of change Select one or more from the following: - [ ] New feature, functionality or library - [x] Consensus breaking; add the `consensus-breaking` label if so. See #791 for details - [ ] Bug fix - [x] Code health or cleanup - [ ] Documentation - [ ] Other (specify) ## Testing - [ ] **Documentation**: `make docusaurus_start`; only needed if you make doc changes - [x] **Unit Tests**: `make go_develop_and_test` - [ ] **LocalNet E2E Tests**: `make test_e2e` - [x] **DevNet E2E Tests**: Add the `devnet-test-e2e` label to the PR. ## Sanity Checklist - [x] I have tested my changes using the available tooling - [ ] I have commented my code - [x] I have performed a self-review of my own code; both comments & source code - [ ] I create and reference any new tickets, if applicable - [ ] I have left TODOs throughout the codebase, if applicable
bryanchriswhite
added a commit
that referenced
this issue
Dec 2, 2024
## Summary Ensure all supplier message and query handlers return gRPC status errors. ## Issue - #860 ## Type of change Select one or more from the following: - [ ] New feature, functionality or library - [ ] Consensus breaking; add the `consensus-breaking` label if so. See #791 for details - [ ] Bug fix - [x] Code health or cleanup - [ ] Documentation - [ ] Other (specify) ## Testing - [ ] **Documentation**: `make docusaurus_start`; only needed if you make doc changes - [x] **Unit Tests**: `make go_develop_and_test` - [ ] **LocalNet E2E Tests**: `make test_e2e` - [x] **DevNet E2E Tests**: Add the `devnet-test-e2e` label to the PR. ## Sanity Checklist - [x] I have tested my changes using the available tooling - [ ] I have commented my code - [x] I have performed a self-review of my own code; both comments & source code - [ ] I create and reference any new tickets, if applicable - [ ] I have left TODOs throughout the codebase, if applicable --------- Co-authored-by: red-0ne <[email protected]>
Olshansk
modified the milestones:
Shannon Beta TestNet Launch,
Shannon Beta TestNet Support
Dec 3, 2024
15 tasks
15 tasks
Closing as the fixes have all been merged. NOTE: #929 is still in progress and is what automates the mitigation of these issues going forward, once integrated into CI. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Objective
Consistently encapsulate gRPC errors in gRPC
status.Error()
with appropriate status codes.Origin Document
Observations made while working on #612.
While we already often wrap errors in custom cosmos-sdk error types, we SHOULD also be wrapping any of those errors which find their way back to a gRPC client in a gRPC status error. See: google.golang.org/grpc/status.
Goals
Deliverables
protocheck status-errors
subcmd to check for non-gRPC status error returns #929)main
branch.*(see: codes.Code)
Non-goals / Non-deliverables
General deliverables
Creator: @bryanchriswhite
The text was updated successfully, but these errors were encountered: