-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
x/group sims fail with unique constraint violation #14833
Comments
@julienrbrt is this similar to your fix over the weekend |
Nope, this is unrelated. However, I cannot reproduce it, and our Sims v0.46 GH Actions is ok too: https://github.com/cosmos/cosmos-sdk/actions/workflows/sims-046.yml |
Even with the same seed? |
no error thrown with the same seed. |
I have been able to reproduce today with latest main: --- FAIL: TestAppStateDeterminism (56.18s)
panic: group policies: unique constraint violation [recovered]
panic: group policies: unique constraint violation
goroutine 469 [running]:
testing.tRunner.func1.2({0x23e47c0, 0xc022b38f20})
/usr/local/go/src/testing/testing.go:1526 +0x24e
testing.tRunner.func1()
/usr/local/go/src/testing/testing.go:1529 +0x39f
panic({0x23e47c0, 0xc022b38f20})
/usr/local/go/src/runtime/panic.go:884 +0x213
github.com/cosmos/cosmos-sdk/x/group/keeper.Keeper.InitGenesis({{0x3012060, 0xc00191a5e0}, {0x7f8fe0641c98, 0xc00fa20420}, {0xc00fa207e0, {0x1}}, {0x3032420, 0xc000b33580}, {0xc00fa20840}, {0x3032420, ...}, ...}, ...)
/home/julien/projects/cosmos/cosmos-sdk/x/group/keeper/genesis.go:28 +0x6b4
github.com/cosmos/cosmos-sdk/x/group/module.AppModule.InitGenesis(...)
/home/julien/projects/cosmos/cosmos-sdk/x/group/module/module.go:135
github.com/cosmos/cosmos-sdk/types/module.(*Manager).InitGenesis(_, {{0x302d698, 0xc000056178}, {0x303f800, 0xc002226d80}, {{0x0, 0x0}, {0x263d30b, 0xe}, 0x0, ...}, ...}, ...)
/home/julien/projects/cosmos/cosmos-sdk/types/module/module.go:404 +0x3da
github.com/cosmos/cosmos-sdk/runtime.(*App).InitChainer(_, {{0x302d698, 0xc000056178}, {0x303f800, 0xc002226d80}, {{0x0, 0x0}, {0x263d30b, 0xe}, 0x0, ...}, ...}, ...)
/home/julien/projects/cosmos/cosmos-sdk/runtime/app.go:134 +0x12e
github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).InitChain(0xc01074e1e0, {{0x0, 0x101d3c1e5d, 0x4427b80}, {0x263d30b, 0xe}, 0xc023956ea0, {0x0, 0x0, 0x0}, ...})
/home/julien/projects/cosmos/cosmos-sdk/baseapp/abci.go:76 +0x655
github.com/cosmos/cosmos-sdk/x/simulation.initChain(0x0?, {0x3f58785e02d4c7d8, 0x71, _, {_, _, _}, {_, _}, {_, ...}}, ...)
/home/julien/projects/cosmos/cosmos-sdk/x/simulation/simulate.go:42 +0x265
github.com/cosmos/cosmos-sdk/x/simulation.SimulateFromSeed({0x3054e60?, 0xc000c181a0?}, {0x300e460?, _}, _, _, _, {0xc011a98000, 0x2e, 0x38}, ...)
/home/julien/projects/cosmos/cosmos-sdk/x/simulation/simulate.go:76 +0x4b5
cosmossdk.io/simapp.TestAppStateDeterminism(0xc000c181a0)
/home/julien/projects/cosmos/cosmos-sdk/simapp/sim_test.go:355 +0xac8
testing.tRunner(0xc000c181a0, 0x2ce4e38)
/usr/local/go/src/testing/testing.go:1576 +0x10b
created by testing.(*T).Run
/usr/local/go/src/testing/testing.go:1629 +0x3ea
exit status 2
FAIL cosmossdk.io/simapp 56.287s
make: *** [Makefile:276: test-sim-nondeterminism] Error 1 |
This is probably due to some faulty groups operation generation |
Latest catch, this time on CI: https://github.com/cosmos/cosmos-sdk/actions/runs/4302562458/jobs/7501219486 |
This is still an issue, can't replicate locally with the same seed: https://github.com/cosmos/cosmos-sdk/actions/runs/4501933075/jobs/7923042471?pr=15517 |
Closing this for #15741, as that issue has more information |
Summary of Bug
x/group sims are failing with unique constraint violation panic when running
AppImportExport
simulation tests.related: #11984
Version
v0.46.8
Steps to Reproduce
go test ./simapp -run TestAppImportExport -Enabled=true -NumBlocks=50 -Genesis= -Verbose=true -Commit=true -Seed=2 -Period=5 -ExportParamsPath /tmp/sim-logs-492341770/sim_params-2.json -ExportStatePath /tmp/sim-logs-492341770/sim_state-2.json -v -timeout 24h
Output:
The text was updated successfully, but these errors were encountered: