cosmos / cosmos-sdk

:chains: A Framework for Building High Value Public Blockchains :sparkles:
https://cosmos.network/
Apache License 2.0
6.27k stars 3.63k forks source link

Fix flaky CI tests #21804

Open julienrbrt opened 1 month ago

julienrbrt commented 1 month ago

Tracking issue for flaky tests:

Similar than https://github.com/cosmos/cosmos-sdk/issues/9010.

lfz941 commented 1 month ago

https://github.com/cosmos/cosmos-sdk/actions/runs/10923327156/job/30321733783

Found a new flaky test just now =_=||

--- FAIL: TestSnapshot_Take_Restore (0.01s)
    testing.go:1232: TempDir RemoveAll cleanup: unlinkat /tmp/TestSnapshot_Take_Restore942349753/001: directory not empty
FAIL
coverage: 73.9% of statements
FAIL    cosmossdk.io/store/v2/snapshots 1.183s
lfz941 commented 1 month ago

https://github.com/cosmos/cosmos-sdk/actions/runs/10986009322/job/30498740632?pr=21812

Found a new flaky test.

--- FAIL: TestSnapshotter (5.01s)
    snapshotter_test.go:55: 
            Error Trace:    /home/runner/work/cosmos-sdk/cosmos-sdk/x/auth/ante/unorderedtx/snapshotter_test.go:55
            Error:          Not equal: 
                            expected: 0
                            actual  : 100
            Test:           TestSnapshotter
FAIL