builtin-actors icon indicating copy to clipboard operation
builtin-actors copied to clipboard

Foundary style VM test tracing, native actor tooling brainstorm

Open ZenGround0 opened this issue 2 years ago • 3 comments

Solidity tooling is quite good and should inspire us to do better for native FVM actor development starting with the builtin actors. I'm using the foundry toolset and particulary forge which is essentially cargo for solidity and its test tracing looks as below:

Screen Shot 2022-11-15 at 9 41 12 AM

This should be feasible to add to builtin actors vm testing as we already have most of the data inside the invocation context used internall. Maybe a variant for unit test is worth pursuing too.

A tool like foundary would be a great thing to target for general native actor development. We have a great first use case of improving builtin actor development experience to develop against. Then tools could be released for the broader development community.

ZenGround0 avatar Nov 15 '22 14:11 ZenGround0

See also https://github.com/filecoin-project/ref-fvm/issues/1080. I agree we should be able to get this all with a fake VM, but it would be ace to use a common tracing structure etc with actual VM tests too

anorth avatar Nov 15 '22 19:11 anorth

@anorth am I right to assume this is the effort that's described as the AI in https://github.com/filecoin-project/FIPs/discussions/535 & should land upon nv18? if so - id like to assign the issue and have it on our board

jennijuju avatar Nov 24 '22 02:11 jennijuju

This issue isn't (because no gas metering), but it's related.

I think this issue is intended as brainstorm/discussion rather than being concretely actionable (yet).

anorth avatar Nov 24 '22 18:11 anorth