-
Notifications
You must be signed in to change notification settings - Fork 8
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
[Testing] refractor: param update E2E tests as integration tests #826
Merged
Conversation
This file contains 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
bryanchriswhite
added
testing
Test (or test utils) additions, fixes, improvements or other
code health
Cleans up some code
labels
Sep 13, 2024
bryanchriswhite
force-pushed
the
issues/799/tests/params
branch
from
September 13, 2024 23:54
1adef81
to
2833b6c
Compare
bryanchriswhite
changed the title
Issues/799/tests/params
[Testing] refractor: param update E2e tests as integration tests
Sep 14, 2024
6 tasks
Olshansk
reviewed
Sep 24, 2024
for _, moduleName := range moduleNames { | ||
msgType := fmt.Sprintf(poktrollMsgTypeFormat, moduleName, msgName) | ||
authorization := &authz.GenericAuthorization{Msg: msgType} | ||
s.RunAuthzGrantMsg(t, granterAddr, granteeAddr, authorization) |
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.
@bryanchriswhite Wdyt?
Olshansk
approved these changes
Sep 24, 2024
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.
@bryanchriswhite Approving this, but please add the necessary TODOs before merging.
Co-authored-by: Daniel Olshansky <[email protected]>
bryanchriswhite
force-pushed
the
issues/799/tests/params
branch
from
September 25, 2024 07:48
f2fd8c8
to
f4945c4
Compare
bryanchriswhite
changed the title
[Testing] refractor: param update E2e tests as integration tests
[Testing] refractor: param update E2E tests as integration tests
Sep 25, 2024
This was referenced Sep 25, 2024
bryanchriswhite
added a commit
that referenced
this pull request
Sep 25, 2024
…#827) ## Summary - Refactor integration app base app construction to eliminate duplicate DB construction. - Set default params for all poktroll modules, some were omitted. - Expose integration app's pre-generated account iterator for use by integration tests. - Add faucet account to integration app to consolidate funding mechanics for integration tests. - Add authz & bank modules to integration app in preparation for param update test porting/refactoring as integration tests (#826). - Add IntegrationAppSuite & base implementation. ## Dependents - #789 - #826 ## Issue - #799 ## Type of change Select one or more from the following: - [x] 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 - [ ] **Unit Tests**: `make go_develop_and_test` - [ ] **LocalNet E2E Tests**: `make test_e2e` - [ ] **DevNet E2E Tests**: Add the `devnet-test-e2e` label to the PR. ## Sanity Checklist - [x] I have tested my changes using the available tooling - [x] 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 - [x] I have left TODOs throughout the codebase, if applicable --------- Co-authored-by: red-0ne <[email protected]> Co-authored-by: Daniel Olshansky <[email protected]>
… issues/799/tests/params * issues/799/merge/integration-app_x_sup-stake-evts: fix: typo chore: review feedback improvements [Docs][Misc] Add iavl tree diff (#776) [Supplier] feat: add supplier un/stake events (#820) [Testing] refactor: E2E param test helpers (#821) # Conflicts: # tests/integration/tokenomics/relay_mining_integration_test.go
* pokt/main: [Testing] refactor: integration app / feat: add `IntegrationAppSuite` (#827)
bryanchriswhite
changed the base branch from
issues/799/merge/integration-app_x_sup-stake-evts
to
main
September 25, 2024 11:57
15 tasks
bryanchriswhite
added a commit
that referenced
this pull request
Oct 4, 2024
## Summary Adds the `min_stake_gateway` param to the gateway. ## Depends on - #808 - #827 - #826 ## Issue - #612 ## Type of change Select one or more from the following: - [x] New feature, functionality or library - [x] Consensus breaking; add the `consensus-breaking` label if so. See #791 for details - [ ] Bug fix - [ ] Code health or cleanup - [ ] Documentation - [ ] Other (specify) ## Testing - [x] **Documentation**: `make docusaurus_start`; only needed if you make doc changes - [ ] **Unit Tests**: `make go_develop_and_test` - [ ] **LocalNet E2E Tests**: `make test_e2e` - [ ] **DevNet E2E Tests**: Add the `devnet-test-e2e` label to the PR. ## Sanity Checklist - [x] I have tested my changes using the available tooling - [x] 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: Redouane Lakrache <[email protected]> Co-authored-by: red-0ne <[email protected]>
okdas
pushed a commit
that referenced
this pull request
Nov 14, 2024
#815) ## Summary - Fix non-idempotency in supplier staking tests; `supplier2` was not staked at the start but was left staked at the end. - Speed up supplier staking tests by updating the shared params to minimize the unbonding period to 1 session of 2 localnet/devnet blocks. ### NOTE: This is superseded by #826 where supplier un/staking E2E tests will be removed. ## Dependents - #821 - #820 - #826 ## Issue - #799 ## 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 - [ ] **Unit Tests**: `make go_develop_and_test` - [ ] **LocalNet E2E Tests**: `make test_e2e` - [ ] **DevNet E2E Tests**: Add the `devnet-test-e2e` label to the PR. ## Sanity Checklist - [x] I have tested my changes using the available tooling - [x] I have commented my code - [ ] 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: Daniel Olshansky <[email protected]>
okdas
pushed a commit
that referenced
this pull request
Nov 14, 2024
## Summary - Rename `paramMap` type to `paramAnyMap` to improve readability and avoid local variable name collisions - Add missing parameter update assertion steps - Refactor event waiting E2E helpers ## Depends on - #815 ## Dependents - #820 - #826 ## Issue Mitigates silently failing parameter update steps. - #799 ## 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 - [ ] **Unit Tests**: `make go_develop_and_test` - [ ] **LocalNet E2E Tests**: `make test_e2e` - [ ] **DevNet E2E Tests**: Add the `devnet-test-e2e` label to the PR. ## Sanity Checklist - [ ] I have tested my changes using the available tooling - [x] 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: Daniel Olshansky <[email protected]>
okdas
pushed a commit
that referenced
this pull request
Nov 14, 2024
## Summary Adds the following events: - `EventSupplierStaked` - `EventSupplierUnbondingBegin` - `EventSupplierUnbondingEnd` ## Depends on - #815 ## Dependents - #826 ## Issue Results in more robust supplier.feature steps. - #799 ## Type of change Select one or more from the following: - [x] 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 - [ ] **Unit Tests**: `make go_develop_and_test` - [ ] **LocalNet E2E Tests**: `make test_e2e` - [ ] **DevNet E2E Tests**: Add the `devnet-test-e2e` label to the PR. ## Sanity Checklist - [x] I have tested my changes using the available tooling - [x] 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: Daniel Olshansky <[email protected]> Co-authored-by: red-0ne <[email protected]>
okdas
pushed a commit
that referenced
this pull request
Nov 14, 2024
…#827) ## Summary - Refactor integration app base app construction to eliminate duplicate DB construction. - Set default params for all poktroll modules, some were omitted. - Expose integration app's pre-generated account iterator for use by integration tests. - Add faucet account to integration app to consolidate funding mechanics for integration tests. - Add authz & bank modules to integration app in preparation for param update test porting/refactoring as integration tests (#826). - Add IntegrationAppSuite & base implementation. ## Dependents - #789 - #826 ## Issue - #799 ## Type of change Select one or more from the following: - [x] 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 - [ ] **Unit Tests**: `make go_develop_and_test` - [ ] **LocalNet E2E Tests**: `make test_e2e` - [ ] **DevNet E2E Tests**: Add the `devnet-test-e2e` label to the PR. ## Sanity Checklist - [x] I have tested my changes using the available tooling - [x] 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 - [x] I have left TODOs throughout the codebase, if applicable --------- Co-authored-by: red-0ne <[email protected]> Co-authored-by: Daniel Olshansky <[email protected]>
okdas
pushed a commit
that referenced
this pull request
Nov 14, 2024
## Summary Ports the `MsgUpdateParams` and `MsgUpdateParam` E2E tests to integration tests, improving execution speed and maintainability. ## Depends on - #827 - #820 - #821 - #815 ## Dependents - #809 ## Issue - #799 ## 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 - [x] **Documentation**: `make docusaurus_start`; only needed if you make doc changes - [ ] **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 - [x] I have commented my code - [x] I have performed a self-review of my own code; both comments & source code - [x] I create and reference any new tickets, if applicable - [x] I have left TODOs throughout the codebase, if applicable --------- Co-authored-by: Daniel Olshansky <[email protected]> Co-authored-by: red-0ne <[email protected]>
okdas
pushed a commit
that referenced
this pull request
Nov 14, 2024
## Summary Adds the `min_stake_gateway` param to the gateway. ## Depends on - #808 - #827 - #826 ## Issue - #612 ## Type of change Select one or more from the following: - [x] New feature, functionality or library - [x] Consensus breaking; add the `consensus-breaking` label if so. See #791 for details - [ ] Bug fix - [ ] Code health or cleanup - [ ] Documentation - [ ] Other (specify) ## Testing - [x] **Documentation**: `make docusaurus_start`; only needed if you make doc changes - [ ] **Unit Tests**: `make go_develop_and_test` - [ ] **LocalNet E2E Tests**: `make test_e2e` - [ ] **DevNet E2E Tests**: Add the `devnet-test-e2e` label to the PR. ## Sanity Checklist - [x] I have tested my changes using the available tooling - [x] 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: Redouane Lakrache <[email protected]> Co-authored-by: red-0ne <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
code health
Cleans up some code
devnet
devnet-test-e2e
push-image
CI related - pushes images to ghcr.io
testing
Test (or test utils) additions, fixes, improvements or other
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.
Summary
Ports the
MsgUpdateParams
andMsgUpdateParam
E2E tests to integration tests, improving execution speed and maintainability.Depends on
IntegrationAppSuite
#827Dependents
min_stake
gateway module param #809Issue
Type of change
Select one or more from the following:
consensus-breaking
label if so. See [Infra] Automatically add theconsensus-breaking
label #791 for detailsTesting
make docusaurus_start
; only needed if you make doc changesmake go_develop_and_test
make test_e2e
devnet-test-e2e
label to the PR.Sanity Checklist