Open bap2pecs opened 4 months ago
It takes time to produce blocks, send finality votes, and wait for blocks to be finalized. Maybe we can reduce the block production time?
These are end-to-end tests where we run the real binaries and test each use case, so it might make sense to take more time. Nevertheless I do agree the time consumed could be reduced. There are several approaches:
1/2 are immediately actionable and I recommend we do 2 like in Babylon repo (if we have bandwidth). 3 might need some invetigations though
one way to optimize is to is change the number of PR from 1000 to 100 in e2e test
code:
randList, msgPub, err := GenCommitPubRandListMsg(r, fpSk, 1, 1000)
one way to optimize is to is change the number of PR from 1000 to 100 in e2e test
code:
randList, msgPub, err := GenCommitPubRandListMsg(r, fpSk, 1, 1000)
I'm not sure if this is the hotspot for the running time. Generating 1000 Merkle proofs shouldn't take many seconds but the test takes more than 100s.
https://github.com/babylonchain/finality-provider/pull/503 adds parallelism and caching to the CI which cuts the time from 15 minutes to 6 minutes
it take too long to run those tests locally. each tests shouldn't exceed 10 sec imo