ChainSafe / forest

🌲 Rust Filecoin Node Implementation
https://forest.chainsafe.io
Apache License 2.0
625 stars 150 forks source link

Regression testing for RPC methods #4657

Open lemmih opened 4 weeks ago

lemmih commented 4 weeks ago

Issue summary

Setting up regression tests for bugs in the RPC methods is demanding. It often requires recreating a complicated blockchain state or loading a snapshot file, which can weigh several gigabytes. Most of the data in the snapshot will be unused, though, and if we trim out dead values, the snapshot files may be small enough to be included in the regression tests.

Other information and links

LesnyRumcajs commented 4 weeks ago

If the required data is larger, perhaps we could move it to a submodule or a downloadable artefact. If all regression snapshots would take less than 1 GB it'd be already great.