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

Hanging store/v2 test #22923

Closed
julienrbrt opened this issue Dec 17, 2024 · 1 comment
Closed

Hanging store/v2 test #22923

julienrbrt opened this issue Dec 17, 2024 · 1 comment

Comments

@julienrbrt
Copy link
Member

ref: https://github.com/cosmos/cosmos-sdk/actions/runs/12365195668/job/34513137761?pr=22917

This test timeout:

	cosmossdk.io/store/v2		coverage: 0.0% of statements
# github.com/bvinc/go-sqlite-lite/sqlite3
sqlite3.c: In function ‘sqlite3SelectNew’:
sqlite3.c:124800:10: warning: function may return address of local variable [-Wreturn-local-addr]
124800 |   return pNew;
       |          ^~~~
sqlite3.c:124760:10: note: declared here
124760 |   Select standin;
       |          ^~~~~~~
ok  	cosmossdk.io/store/v2/commitment	0.108s	coverage: 0.0% of statements [no tests to run]
ok  	cosmossdk.io/store/v2/commitment/iavl	0.401s	coverage: 80.3% of statements
	cosmossdk.io/store/v2/commitment/mem		coverage: 0.0% of statements
	cosmossdk.io/store/v2/internal		coverage: 0.0% of statements
	cosmossdk.io/store/v2/errors		coverage: 0.0% of statements
	cosmossdk.io/store/v2/metrics		coverage: 0.0% of statements
ok  	cosmossdk.io/store/v2/commitment/iavlv2	2.819s	coverage: 55.6% of statements
ok  	cosmossdk.io/store/v2/db	0.055s	coverage: 62.4% of statements
ok  	cosmossdk.io/store/v2/internal/conv	0.070s	coverage: 100.0% of statements
ok  	cosmossdk.io/store/v2/internal/encoding	0.005s	coverage: 64.1% of statements
	cosmossdk.io/store/v2/mock		coverage: 0.0% of statements
	cosmossdk.io/store/v2/snapshots/types		coverage: 0.0% of statements
1
coverage: 71.7% of statements
panic: test timed out after 30m0s
	running tests:
		TestStartMigrateState (30m0s)

goroutine 90 [running]:
testing.(*M).startAlarm.func1()
	/opt/hostedtoolcache/go/1.23.4/x64/src/testing/testing.go:2373 +0x385
created by time.goFunc
	/opt/hostedtoolcache/go/1.23.4/x64/src/time/sleep.go:215 +0x2d

goroutine 1 [chan receive, 29 minutes]:
testing.(*T).Run(0xc0003f4340, {0xba0324?, 0x0?}, 0xbde130)
	/opt/hostedtoolcache/go/1.23.4/x64/src/testing/testing.go:1[75](https://github.com/cosmos/cosmos-sdk/actions/runs/12365195668/job/34513137761?pr=22917#step:10:76)1 +0x3ab
testing.runTests.func1(0xc0003f4340)
	/opt/hostedtoolcache/go/1.23.4/x64/src/testing/testing.go:2168 +0x37
testing.tRunner(0xc0003f4340, 0xc0001d3c70)
	/opt/hostedtoolcache/go/1.23.4/x64/src/testing/testing.go:1690 +0xf4
testing.runTests(0xc00039a[78](https://github.com/cosmos/cosmos-sdk/actions/runs/12365195668/job/34513137761?pr=22917#step:10:79)0, {0x104aca0, 0x2, 0x2}, {0x48f0b0?, 0x48ed1a?, 0x10adaa0?})
	/opt/hostedtoolcache/go/1.23.4/x64/src/testing/testing.go:2166 +0x43d
testing.(*M).Run(0xc0003a81e0)
	/opt/hostedtoolcache/go/1.23.4/x64/src/testing/testing.go:2034 +0x64a
main.main()
	_testmain.go:57 +0x9b

goroutine 37 [sleep]:
time.Sleep(0x5f5e100)
	/opt/hostedtoolcache/go/1.23.4/x64/src/runtime/time.go:300 +0xf2
cosmossdk.io/store/v2/migration.(*Manager).Sync(0xc000024910)
	/home/runner/work/cosmos-sdk/cosmos-sdk/store/v2/migration/manager.go:178 +0x1f8
cosmossdk.io/store/v2/migration.(*Manager).Start(0xc000024910, 0x9, 0x0?, 0x0?)
	/home/runner/work/cosmos-sdk/cosmos-sdk/store/v2/migration/manager.go:[79](https://github.com/cosmos/cosmos-sdk/actions/runs/12365195668/job/34513137761?pr=22917#step:10:80) +0x152
cosmossdk.io/store/v2/migration.TestStartMigrateState(0xc0002b09c0)
	/home/runner/work/cosmos-sdk/cosmos-sdk/store/v2/migration/manager_test.go:142 +0x37d
testing.tRunner(0xc0002b09c0, 0xbde130)
	/opt/hostedtoolcache/go/1.23.4/x64/src/testing/testing.go:1690 +0xf4
created by testing.(*T).Run in goroutine 1
	/opt/hostedtoolcache/go/1.23.4/x64/src/testing/testing.go:1743 +0x390

goroutine 19 [sleep]:
time.Sleep(0x5f5e100)
	/opt/hostedtoolcache/go/1.23.4/x64/src/runtime/time.go:300 +0xf2
github.com/cosmos/iavl.(*nodeDB).startPruning(0xc0003e82d0)
	/home/runner/go/pkg/mod/github.com/cosmos/[email protected]/nodedb.go:598 +0xc8
created by github.com/cosmos/iavl.newNodeDB in goroutine 18
	/home/runner/go/pkg/mod/github.com/cosmos/[email protected]/nodedb.go:125 +0x598

goroutine 20 [sleep]:
time.Sleep(0x5f5e100)
	/opt/hostedtoolcache/go/1.23.4/x64/src/runtime/time.go:300 +0xf2
github.com/cosmos/iavl.(*nodeDB).startPruning(0xc0003e83c0)
	/home/runner/go/pkg/mod/github.com/cosmos/[email protected]/nodedb.go:598 +0xc8
created by github.com/cosmos/iavl.newNodeDB in goroutine 18
	/home/runner/go/pkg/mod/github.com/cosmos/[email protected]/nodedb.go:125 +0x598

goroutine 21 [sleep]:
time.Sleep(0x5f5e100)
	/opt/hostedtoolcache/go/1.23.4/x64/src/runtime/time.go:300 +0xf2
github.com/cosmos/iavl.(*nodeDB).startPruning(0xc0003e84b0)
	/home/runner/go/pkg/mod/github.com/cosmos/[email protected]/nodedb.go:598 +0xc8
created by github.com/cosmos/iavl.newNodeDB in goroutine 18
	/home/runner/go/pkg/mod/github.com/cosmos/[email protected]/nodedb.go:125 +0x598

goroutine 22 [sleep]:
time.Sleep(0x5f5e100)
	/opt/hostedtoolcache/go/1.23.4/x64/src/runtime/time.go:300 +0xf2
github.com/cosmos/iavl.(*nodeDB).startPruning(0xc0003e85a0)
	/home/runner/go/pkg/mod/github.com/cosmos/[email protected]/nodedb.go:598 +0xc8
created by github.com/cosmos/iavl.newNodeDB in goroutine 18
	/home/runner/go/pkg/mod/github.com/cosmos/[email protected]/nodedb.go:125 +0x598

goroutine 38 [sleep]:
time.Sleep(0x5f5e100)
	/opt/hostedtoolcache/go/1.23.4/x64/src/runtime/time.go:300 +0xf2
github.com/cosmos/iavl.(*nodeDB).startPruning(0xc0003e81e0)
	/home/runner/go/pkg/mod/github.com/cosmos/[email protected]/nodedb.go:598 +0xc8
created by github.com/cosmos/iavl.newNodeDB in goroutine 37
	/home/runner/go/pkg/mod/github.com/cosmos/[email protected]/nodedb.go:125 +0x598

goroutine 39 [sleep]:
time.Sleep(0x5f5e100)
	/opt/hostedtoolcache/go/1.23.4/x64/src/runtime/time.go:300 +0xf2
github.com/cosmos/iavl.(*nodeDB).startPruning(0xc0003e8690)
	/home/runner/go/pkg/mod/github.com/cosmos/[email protected]/nodedb.go:598 +0xc8
created by github.com/cosmos/iavl.newNodeDB in goroutine 37
	/home/runner/go/pkg/mod/github.com/cosmos/[email protected]/nodedb.go:125 +0x598

goroutine 40 [sleep]:
time.Sleep(0x5f5e100)
	/opt/hostedtoolcache/go/1.23.4/x64/src/runtime/time.go:300 +0xf2
github.com/cosmos/iavl.(*nodeDB).startPruning(0xc0003e87[80](https://github.com/cosmos/cosmos-sdk/actions/runs/12365195668/job/34513137761?pr=22917#step:10:81))
	/home/runner/go/pkg/mod/github.com/cosmos/[email protected]/nodedb.go:598 +0xc8
created by github.com/cosmos/iavl.newNodeDB in goroutine 37
	/home/runner/go/pkg/mod/github.com/cosmos/[email protected]/nodedb.go:125 +0x598
@tac0turtle
Copy link
Member

seems like this is fixed in iavl 1.3.4. ran the test 50 times with no luck of it hanging.

@github-project-automation github-project-automation bot moved this from 📋 Backlog to 🥳 Done in Cosmos-SDK Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🥳 Done
Development

No branches or pull requests

3 participants