gossamer icon indicating copy to clipboard operation
gossamer copied to clipboard

tests(flaky): Test_createRuntimeStorage is flaky

Open EmilGeorgiev opened this issue 1 year ago • 0 comments

Issue summary

when I run the test, sometime it failed:

go test -run=Test_createRuntimeStorage -count=1
2024-06-09T09:34:09+03:00 INFO     🕸️ initialising node with name Gossamer, id gssmr, base path /var/folders/5b/vj0q2ky90t3cm83_r2ptp7dc0000gp/T/Test_createRuntimeStorage1085720502/001 and chain-spec /var/folders/5b/vj0q2ky90t3cm83_r2ptp7dc0000gp/T/Test_createRuntimeStorage1085720502/002/genesis.json...	pkg=dot
2024-06-09T09:34:10+03:00 INFO     🔨 finalised block #0 (0x276bfa91f70859348285599321ea96afd3ae681f0be47d36196bac8075ea32e8), round 0, set id 0	pkg=state
2024-06-09T09:34:10+03:00 INFO     block state hash genesis hash: 0x276bfa91f70859348285599321ea96afd3ae681f0be47d36196bac8075ea32e8	pkg=state
2024/06/09 09:34:10 [JOB 1] WAL file /var/folders/5b/vj0q2ky90t3cm83_r2ptp7dc0000gp/T/Test_createRuntimeStorage1085720502/001/db/000002.log with log number 000002 stopped reading at offset: 0; replayed 0 keys in 0 batches
2024/06/09 09:34:10 [JOB 1] WAL file /var/folders/5b/vj0q2ky90t3cm83_r2ptp7dc0000gp/T/Test_createRuntimeStorage1085720502/001/db/000004.log with log number 000004 stopped reading at offset: 0; replayed 0 keys in 0 batches
2024/06/09 09:34:10 [JOB 1] WAL file /var/folders/5b/vj0q2ky90t3cm83_r2ptp7dc0000gp/T/Test_createRuntimeStorage1085720502/001/db/000005.log with log number 000005 stopped reading at offset: 0; replayed 0 keys in 0 batches
2024/06/09 09:34:10 [JOB 1] WAL file /var/folders/5b/vj0q2ky90t3cm83_r2ptp7dc0000gp/T/Test_createRuntimeStorage1085720502/001/db/000006.log with log number 000006 stopped reading at offset: 1159913; replayed 159 keys in 15 batches
2024-06-09T09:34:10+03:00 INFO     node initialised with name Gossamer, id gssmr, base path /var/folders/5b/vj0q2ky90t3cm83_r2ptp7dc0000gp/T/Test_createRuntimeStorage1085720502/001, chain-spec /var/folders/5b/vj0q2ky90t3cm83_r2ptp7dc0000gp/T/Test_createRuntimeStorage1085720502/002/genesis.json, block 0 and genesis hash 0x276bfa91f70859348285599321ea96afd3ae681f0be47d36196bac8075ea32e8	pkg=dot
2024/06/09 09:34:11 [JOB 1] WAL file /var/folders/5b/vj0q2ky90t3cm83_r2ptp7dc0000gp/T/Test_createRuntimeStorage1085720502/001/db/000008.log with log number 000008 stopped reading at offset: 43; replayed 1 keys in 1 batches
--- FAIL: Test_createRuntimeStorage (2.31s)
    testing.go:1231: TempDir RemoveAll cleanup: unlinkat /var/folders/5b/vj0q2ky90t3cm83_r2ptp7dc0000gp/T/Test_createRuntimeStorage1085720502/001/db: directory not empty
FAIL
exit status 1
FAIL	github.com/ChainSafe/gossamer/dot	3.185s

Sometimes:

=== RUN   Test_createRuntimeStorage
2024-06-09T09:42:57+03:00 INFO     🕸️ initialising node with name Gossamer, id gssmr, base path /var/folders/5b/vj0q2ky90t3cm83_r2ptp7dc0000gp/T/Test_createRuntimeStorage937319270/001 and chain-spec /var/folders/5b/vj0q2ky90t3cm83_r2ptp7dc0000gp/T/Test_createRuntimeStorage937319270/002/genesis.json...	pkg=dot
2024-06-09T09:42:58+03:00 INFO     🔨 finalised block #0 (0x276bfa91f70859348285599321ea96afd3ae681f0be47d36196bac8075ea32e8), round 0, set id 0	pkg=state
2024-06-09T09:42:58+03:00 INFO     block state hash genesis hash: 0x276bfa91f70859348285599321ea96afd3ae681f0be47d36196bac8075ea32e8	pkg=state
2024/06/09 09:42:58 [JOB 1] WAL file /var/folders/5b/vj0q2ky90t3cm83_r2ptp7dc0000gp/T/Test_createRuntimeStorage937319270/001/db/000002.log with log number 000002 stopped reading at offset: 0; replayed 0 keys in 0 batches
2024/06/09 09:42:58 [JOB 1] WAL file /var/folders/5b/vj0q2ky90t3cm83_r2ptp7dc0000gp/T/Test_createRuntimeStorage937319270/001/db/000004.log with log number 000004 stopped reading at offset: 0; replayed 0 keys in 0 batches
2024/06/09 09:42:58 [JOB 1] WAL file /var/folders/5b/vj0q2ky90t3cm83_r2ptp7dc0000gp/T/Test_createRuntimeStorage937319270/001/db/000005.log with log number 000005 stopped reading at offset: 0; replayed 0 keys in 0 batches
2024/06/09 09:42:58 [JOB 1] WAL file /var/folders/5b/vj0q2ky90t3cm83_r2ptp7dc0000gp/T/Test_createRuntimeStorage937319270/001/db/000006.log with log number 000006 stopped reading at offset: 1159913; replayed 159 keys in 15 batches
2024-06-09T09:42:59+03:00 INFO     node initialised with name Gossamer, id gssmr, base path /var/folders/5b/vj0q2ky90t3cm83_r2ptp7dc0000gp/T/Test_createRuntimeStorage937319270/001, chain-spec /var/folders/5b/vj0q2ky90t3cm83_r2ptp7dc0000gp/T/Test_createRuntimeStorage937319270/002/genesis.json, block 0 and genesis hash 0x276bfa91f70859348285599321ea96afd3ae681f0be47d36196bac8075ea32e8	pkg=dot
2024/06/09 09:42:59 [JOB 1] WAL file /var/folders/5b/vj0q2ky90t3cm83_r2ptp7dc0000gp/T/Test_createRuntimeStorage937319270/001/db/000008.log with log number 000008 stopped reading at offset: 43; replayed 1 keys in 1 batches
--- PASS: Test_createRuntimeStorage (2.29s)
=== RUN   Test_createRuntimeStorage/working_example
    --- PASS: Test_createRuntimeStorage/working_example (0.00s)
PASS

Process finished with the exit code 0

EmilGeorgiev avatar Jun 09 '24 06:06 EmilGeorgiev