fix: simulations for custom modules' genesis params #43

Merged
0xmuralik merged 5 commits from murali/simulation_genesis into main 2022-11-01 05:10:17 +00:00
0xmuralik commented 2022-10-27 08:41:05 +00:00 (Migrated from github.com)

Description

Randomize genesis params for bond, auction and nameservice modules to use in simulation tests


For contributor use:

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer

For admin use:

  • Added appropriate labels to PR (ex. WIP, R4R, docs, etc)
  • Reviewers assigned
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)
## Description Randomize genesis params for bond, auction and nameservice modules to use in simulation tests ______ For contributor use: - [ ] Targeted PR against correct branch (see [CONTRIBUTING.md](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#pr-targeting)) - [ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work. - [ ] Code follows the [module structure standards](https://github.com/cosmos/cosmos-sdk/blob/master/docs/building-modules/structure.md). - [ ] Wrote unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#testing) - [ ] Updated relevant documentation (`docs/`) or specification (`x/<module>/spec/`) - [ ] Added relevant `godoc` [comments](https://blog.golang.org/godoc-documenting-go-code). - [ ] Added a relevant changelog entry to the `Unreleased` section in `CHANGELOG.md` - [ ] Re-reviewed `Files changed` in the Github PR explorer ______ For admin use: - [ ] Added appropriate labels to PR (ex. `WIP`, `R4R`, `docs`, etc) - [ ] Reviewers assigned - [ ] Squashed all commits, uses message "Merge pull request #XYZ: [title]" ([coding standards](https://github.com/tendermint/coding/blob/master/README.md#merging-a-pr))
i-norden reviewed 2022-10-27 08:41:05 +00:00
roysc reviewed 2022-10-27 08:41:05 +00:00
github-code-scanning[bot] (Migrated from github.com) reviewed 2022-10-27 08:45:10 +00:00
github-code-scanning[bot] (Migrated from github.com) commented 2022-10-27 08:45:10 +00:00

Blocklisted import math/rand

Blocklisted import math/rand

Show more details

## Blocklisted import math/rand Blocklisted import math/rand [Show more details](https://github.com/cerc-io/laconicd/security/code-scanning/408)
github-code-scanning[bot] (Migrated from github.com) commented 2022-10-27 08:45:10 +00:00

Blocklisted import math/rand

Blocklisted import math/rand

Show more details

## Blocklisted import math/rand Blocklisted import math/rand [Show more details](https://github.com/cerc-io/laconicd/security/code-scanning/407)
github-code-scanning[bot] (Migrated from github.com) commented 2022-10-27 08:45:10 +00:00

Blocklisted import math/rand

Blocklisted import math/rand

Show more details

## Blocklisted import math/rand Blocklisted import math/rand [Show more details](https://github.com/cerc-io/laconicd/security/code-scanning/406)
codecov-commenter commented 2022-10-27 08:53:53 +00:00 (Migrated from github.com)

Codecov Report

Merging #43 (e119d27) into main (a397ab5) will decrease coverage by 0.06%.
The diff coverage is 5.55%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #43      +/-   ##
==========================================
- Coverage   58.28%   58.21%   -0.07%     
==========================================
  Files         142      142              
  Lines       15561    15579      +18     
==========================================
+ Hits         9069     9070       +1     
- Misses       6154     6171      +17     
  Partials      338      338              
Impacted Files Coverage Δ
x/auction/module.go 0.00% <0.00%> (ø)
x/bond/module.go 54.54% <11.11%> (-6.86%) ⬇️
# [Codecov](https://codecov.io/gh/cerc-io/laconicd/pull/43?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) Report > Merging [#43](https://codecov.io/gh/cerc-io/laconicd/pull/43?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) (e119d27) into [main](https://codecov.io/gh/cerc-io/laconicd/commit/a397ab5c6a96daab974ddddda1fcd40ad179d1e6?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) (a397ab5) will **decrease** coverage by `0.06%`. > The diff coverage is `5.55%`. <details><summary>Additional details and impacted files</summary> [![Impacted file tree graph](https://codecov.io/gh/cerc-io/laconicd/pull/43/graphs/tree.svg?width=650&height=150&src=pr&token=5tWmn7LxfO&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None)](https://codecov.io/gh/cerc-io/laconicd/pull/43?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) ```diff @@ Coverage Diff @@ ## main #43 +/- ## ========================================== - Coverage 58.28% 58.21% -0.07% ========================================== Files 142 142 Lines 15561 15579 +18 ========================================== + Hits 9069 9070 +1 - Misses 6154 6171 +17 Partials 338 338 ``` | [Impacted Files](https://codecov.io/gh/cerc-io/laconicd/pull/43?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) | Coverage Δ | | |---|---|---| | [x/auction/module.go](https://codecov.io/gh/cerc-io/laconicd/pull/43/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-eC9hdWN0aW9uL21vZHVsZS5nbw==) | `0.00% <0.00%> (ø)` | | | [x/bond/module.go](https://codecov.io/gh/cerc-io/laconicd/pull/43/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-eC9ib25kL21vZHVsZS5nbw==) | `54.54% <11.11%> (-6.86%)` | :arrow_down: | </details>
0xmuralik (Migrated from github.com) reviewed 2022-10-27 09:21:44 +00:00
@ -131,3 +105,1 @@
name: debug-files
path: debug_files.tar.gz
if-no-files-found: ignore
# integration_tests:
0xmuralik (Migrated from github.com) commented 2022-10-27 09:21:44 +00:00

ignoring test due to unsolved issue in nixOS
https://github.com/nix-community/gomod2nix/issues/20
To reproduce error
make run-integration-tests

ignoring test due to unsolved issue in nixOS https://github.com/nix-community/gomod2nix/issues/20 To reproduce error `make run-integration-tests`
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/laconicd#43
No description provided.