[IBC] Make the IBC Host a submodule with access to the bus#868
Merged
Conversation
Contributor
Author
|
@Olshansk added tests to cover the flushing and pruning works on new height events |
Olshansk
requested changes
Jul 11, 2023
Collaborator
Olshansk
left a comment
There was a problem hiding this comment.
@h5law I have some questions around the test. It might just be me but its not completely clear how the test guarantees what we expect.
@bryanchriswhite Do you mind taking a look at ibc/ibc_handle_event_test.go as well
Olshansk
reviewed
Jul 12, 2023
Olshansk
requested changes
Jul 12, 2023
Collaborator
Olshansk
left a comment
There was a problem hiding this comment.
A couple more nits.
PTAL at #868 (comment) as well
Olshansk
approved these changes
Jul 13, 2023
Collaborator
Olshansk
left a comment
There was a problem hiding this comment.
@h5law Please be cognizant of the branches (based branches, merge order etc...), since I just approved two of them.
I suggest:
- Merge the base to main
- Merge this one with main
- Push this one up + update base to main
- Sanity check this PR is good
- Merge this into main
Other than that, 🚢
20 tasks
Olshansk
added a commit
that referenced
this pull request
Jul 13, 2023
## Description Add back `shared/modules/mocks/mocks.go` so `make develop_test` works out of the box. ## Issue This was the issue:  Which was a result of the following change in #868:  And the following validates that this fix works:  ## Type of change Please mark the relevant option(s): - [ ] New feature, functionality or library - [x] Bug fix - [ ] Code health or cleanup - [ ] Major breaking change - [ ] Documentation - [ ] Other <!-- add details here if it a different type of change --> ## List of changes - `gco HEAD@{4} shared/modules/mocks/mocks.go` ## Testing - [x] `make develop_test`; if any code changes were made - [ ] `make test_e2e` on [k8s LocalNet](https://github.com/pokt-network/pocket/blob/main/build/localnet/README.md); if any code changes were made - [ ] `e2e-devnet-test` passes tests on [DevNet](https://pocketnetwork.notion.site/How-to-DevNet-ff1598f27efe44c09f34e2aa0051f0dd); if any code was changed - [ ] [Docker Compose LocalNet](https://github.com/pokt-network/pocket/blob/main/docs/development/README.md); if any major functionality was changed or introduced - [ ] [k8s LocalNet](https://github.com/pokt-network/pocket/blob/main/build/localnet/README.md); if any infrastructure or configuration changes were made ## Required Checklist - [ ] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have added, or updated, [`godoc` format comments](https://go.dev/blog/godoc) on touched members (see: [tip.golang.org/doc/comment](https://tip.golang.org/doc/comment)) - [ ] I have tested my changes using the available tooling - [ ] I have updated the corresponding CHANGELOG ### If Applicable Checklist - [ ] I have updated the corresponding README(s); local and/or global - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I have added, or updated, [mermaid.js](https://mermaid-js.github.io) diagrams in the corresponding README(s) - [ ] I have added, or updated, documentation and [mermaid.js](https://mermaid-js.github.io) diagrams in `shared/docs/*` if I updated `shared/*`README(s)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Summary generated by Reviewpad on 13 Jul 23 10:41 UTC
This pull request includes several changes across multiple files. Here is a summary of the changes:
ibc/handle_message_test.go, the file was renamed toibc/ibc_msg_mempool_test.gowith a similarity index of 85%.stringspackage was added.TestHandleMessage_ErrorAlreadyInMempoolwas renamed toTestEmitMessage_MessageAddedToLocalMempool. Some code within the renamed test function was also modified, including changes in the preparation of test data and the addition of a transaction to the mempool.TestHandleMessage_BasicValidation_Messagewas renamed toTestIBCMessage_BasicValidation_Message.TestHandleMessage_BasicValidation_Transactionwas renamed toTestIBCMessage_BasicValidation_Transaction.TestHandleMessage_ErrorAlreadyInMempoolwas added to check for the error of having a duplicate transaction in the mempool.TestHandleMessage_ErrorAlreadyCommittedwas added to check for the error of having an already committed transaction.TestHandleMessage_GetIndexedMessagewas modified to include changes in the preparation of the environment.TestHandleMessage_AddToMempoolwas removed.Additionally, other files such as
treestore_module.go,emitter.go,submodule.go,config.validator4.json,persistence/ibc.go,defaults.go,bus_module.go,ibc_store_module.go,bulk_store_cache.go,ibc_host_module.go,config.validator4.json,persistence/test/benchmark_state_test.go,p2p/README.md,runtime/manager_test.go,shared/node.go,persistence/test/manager_test.go,shared/modules/bulk_store_cache.go,ibc.go,shared/node.go,ics24.md,main_test.gohave also been modified.Please let me know if you need more information or details about any specific change.
Issue
Fixes #854
Type of change
Please mark the relevant option(s):
List of changes
Testing
make develop_test; if any code changes were mademake test_e2eon k8s LocalNet; if any code changes were madee2e-devnet-testpasses tests on DevNet; if any code was changedRequired Checklist
godocformat comments on touched members (see: tip.golang.org/doc/comment)If Applicable Checklist
shared/docs/*if I updatedshared/*README(s)