-
Notifications
You must be signed in to change notification settings - Fork 410
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
Added randomized simulation parameters generation #389
Added randomized simulation parameters generation #389
Conversation
Codecov Report
@@ Coverage Diff @@
## master #389 +/- ##
==========================================
- Coverage 55.42% 55.35% -0.07%
==========================================
Files 39 39
Lines 4018 4021 +3
==========================================
- Hits 2227 2226 -1
- Misses 1612 1615 +3
- Partials 179 180 +1
|
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.
Looks fine to me, but I don't understand the simulation system.
I'd love @alpe to take a quick look before merging.
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.
Thank you very much for adding these simulation data generators! 🌻
I have run them locally but ended up with failures. Please see my comments to fix the return types.
Since this is not used by wasmd internally, I would ask you to submit working test cases for simulation to wasmd (so we could at least manually validate it is correct). We won't focus much more energy on this PR, but happy to merge if it gets working, and then include it in the next release. We are making a 0.15.0 with the new cosmos-sdk v0.41.0. |
Thanks @alpe! Can I ask which tests did you run to end up with failures? |
In case somebody is following this PR. We talked on discord to move this forward. https://discord.com/channels/737637324434833438/737640672680607764/804352247026417724 |
…z/simulation-random-params � Conflicts: � go.mod � go.sum
still a failure to be solved
…z/simulation-random-params
removed unused import
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.
Thanks again for the updates. 🤗 Only some minor comments on the code although I could not make it work on my machine. It fails with a panic and no helpful errors.
ERROR OUTPUT
exit status 1
panic: halting simulations
goroutine 36 [running]:
main.worker(0x1, 0xc000074a20, 0xc00028e000)
/Users/alex/go/pkg/mod/github.com/cosmos/tools/cmd/runsim@v1.0.0/main.go:216 +0x7a5
main.main.func2(0xc0002a2010, 0xc000074a20, 0xc00028e000, 0x1)
/Users/alex/go/pkg/mod/github.com/cosmos/tools/cmd/runsim@v1.0.0/main.go:160 +0x6b
created by main.main
/Users/alex/go/pkg/mod/github.com/cosmos/tools/cmd/runsim@v1.0.0/main.go:158 +0xc1a
make: *** [test-sim-import-export] Error 2
Does it work for you?
@alpe
If you're using GoLand (or IntelliJ) it's pretty easy to get a clearer error log by editing the configuration of the
This will print a much meaningful error showing an error on import referring to the Since it's weird to have a failing test to make sure that params generation works, I've added an extra |
added me into contributors list
@bragaz thank you very much for this big effort to integrate simulations. Well done 👏 |
After I integrated
wasmd
inside desmos I found out that the simulation tests fails due to the fact that theRandomizedParams
function ofmodule.go
returnsnil
.In order to solve this I added the
simulation
folder with the params generation and the randomized genesis that will be called inside the tests. This could be useful for those projects that run sims.Closes #392.