-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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: unique constraint violation for group policy sim genesis #15943
fix: unique constraint violation for group policy sim genesis #15943
Conversation
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! I think, as noted in the issue, we should as well remove the seed override.
Remove the seed override? Do you mean something like checking if the seed(s) is set in the flag use that instead of the random seed?
Or do you mean not making it random anymore at all? |
Yea, the first one. It was pretty confusing the seed passed was getting overwritten. |
Makes sense, should I just check if the value is not set to the default value (move 42 into a const) and then only run 1 round on that seed (rather than 3 times on the same seed/other random seeds)? flag.Int64Var(&FlagSeedValue, "Seed", 42, "simulation random seed") |
Sounds good! |
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.
What's the rationale for these changes?
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.
The rationale is that there was confusion about what runsim
outputs as seed and the seed that test is actually using (#14833)
(cherry picked from commit e59c4a8) # Conflicts: # simapp/sim_test.go
cosmos#15943) (cosmos#15951) Co-authored-by: Gjermund Garaba <gjermund@garaba.net> Co-authored-by: Julien Robert <julien@rbrt.fr>
Description
Closes: #15741
Checks if the group policy address has been used already, skip or retry if it has been used already.
I didn't add a changelog nor any additional tests, but if you want those things too, I would be happy to do so.
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...
!
to the type prefix if API or client breaking changeCHANGELOG.md
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...
!
in the type prefix if API or client breaking change