You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running our test suite we see a significant increase in memory consumption from anvil, to the point where tests start consuming >40gb and anvil dies due to out of memory while previously they used <2gb (tested with eye-inspection of htop and prior and latest nightly builds).
The prior version which works is nightly-02292f2d2caa547968bd039c06dc53d98b72bf39.
Note the tests in question are TypeScript tests running via ethers.js 5.
The text was updated successfully, but these errors were encountered:
Yes, I indeed think it is a regression caused by that PR.
The tests are integration tests, so they do quite a lot of things to set up an environment of contracts.
The tests that fail with out of memory are sending TXs that consume almost an entire block of 30.000.000 gas, while in parallel invoking get_logs to keep caches up to date from events. Some TXs have quite large calldata.
If I disable the get_logs calls the tests just barely succeed, but still consume a lot more memory than before ~30gb.
I'll happily send a trace of all the requests to anvil if it helps - in that case, does anvil have a way to log all RPC calls in a replayable format?
The sure way to repro this is to git clone https://github.com/mangrovedao/mangrove.js.git then yarn install && yarn build, start an anvil on port 8546 and run MGV_NODE_SPAWN=false yarn test:integration --jobs 0 -- -g "Kandel MaxOffersInChunk verification" (if you have yarn)
Component
Anvil
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (d46bcb3 2024-01-09T00:21:10.755521772Z)
What command(s) is the bug in?
No response
Operating System
Linux
Describe the bug
When running our test suite we see a significant increase in memory consumption from anvil, to the point where tests start consuming >40gb and anvil dies due to out of memory while previously they used <2gb (tested with eye-inspection of htop and prior and latest nightly builds).
The prior version which works is
nightly-02292f2d2caa547968bd039c06dc53d98b72bf39
.Note the tests in question are TypeScript tests running via ethers.js 5.
The text was updated successfully, but these errors were encountered: