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: add simulation tests for new param change #14728

Merged
merged 46 commits into from
Jan 27, 2023
Merged

Conversation

julienrbrt
Copy link
Member

@julienrbrt julienrbrt commented Jan 23, 2023

Description

Noticed while up streaming #14720 that the params simulation were outdated due to the params migration that happened in v0.47.

Removing the old params change simulation and re-adding them directly as normal simulation.


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 added the backport/v0.47.x PR scheduled for inclusion in the v0.47's next stable release label Jan 23, 2023
x/staking/types/msg.go Fixed Show fixed Hide fixed
@julienrbrt
Copy link
Member Author

I need to refactor the simulator first. Otherwise, I need to add the missing .Type() method to all MsgUpdateParams.
Doing that here: #14751

Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

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

gosec found more than 10 potential problems in the proposed changes. Check the Files changed tab for more details.

Copy link
Member

@tac0turtle tac0turtle left a comment

Choose a reason for hiding this comment

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

Thanks for taking this on, its a nice cleanup

@julienrbrt
Copy link
Member Author

Fixing the lasts tests..

@julienrbrt julienrbrt enabled auto-merge (squash) January 27, 2023 19:41
@julienrbrt julienrbrt merged commit d3c3194 into main Jan 27, 2023
@julienrbrt julienrbrt deleted the julien/simulation branch January 27, 2023 20:44
mergify bot pushed a commit that referenced this pull request Jan 27, 2023
(cherry picked from commit d3c3194)

# Conflicts:
#	CHANGELOG.md
#	types/module/simulation.go
#	x/auth/simulation/params.go
#	x/bank/simulation/params.go
#	x/distribution/simulation/params.go
#	x/gov/simulation/operations.go
#	x/gov/simulation/operations_test.go
#	x/gov/simulation/params.go
#	x/mint/simulation/params.go
#	x/slashing/simulation/params.go
#	x/staking/simulation/params.go
julienrbrt added a commit that referenced this pull request Jan 27, 2023
@julienrbrt julienrbrt mentioned this pull request Jan 28, 2023
19 tasks
tsenart pushed a commit to meka-dev/cosmos-sdk that referenced this pull request Apr 12, 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.

3 participants