fuel-core icon indicating copy to clipboard operation
fuel-core copied to clipboard

Test suite is too slow

Open freesig opened this issue 2 years ago • 2 comments

Our full test sweet is taking too long to run. Especially the p2p tests. This slows down our development cycle and leads to avoiding running the entire suite.

freesig avatar Feb 03 '23 23:02 freesig

Using cargo nextest our suite only takes 19s on my ryzen 5950x

Voxelot avatar Feb 06 '23 20:02 Voxelot

Is that with the p2p feature also this isn't really a solution. Our test suite is slow because of the timing of the p2p tests which can be lowered for testing instead of just relying on running in on multiple threads. For example the CI currently takes 14 mins to run just the cargo test.

freesig avatar Feb 06 '23 22:02 freesig

We run tests very fast after https://github.com/FuelLabs/fuel-core/pull/1231. But we still spend a lot of time building tests per crate https://github.com/FuelLabs/fuel-core/pull/987. But it is a problem during the first build without a cache, so doesn't hurt too much for follow-up commits.

I close this issue for now.

xgreenx avatar Aug 24 '23 16:08 xgreenx