-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Forge test tracing does not seem to respect the Etherscan or signature caches when running tests with high verbosity #6792
Forge test tracing does not seem to respect the Etherscan or signature caches when running tests with high verbosity #6792
Comments
this is probably the same issue as #6791 where slow etherscan requests slow everything down. could you run with |
Potentially identified a cause here: foundry-rs/block-explorers@main...zerosnacks:block-explorers:fix/cache-is-always-invalidated where the
calls to: I haven't looked at the signature cache. I'll need to do more testing and write tests for |
Closes: foundry-rs/foundry#6792 Due to a small logical error and a missing smoke test the Etherscan cache was constantly being invalidated. On a large codebase with 197 tests, without this optimization: foundry-rs/foundry#7606 Comparison: 1. Ran 17 test suites in 53.41s (64.87s CPU time): 197 tests passed, 0 failed, 0 skipped (197 total tests) (no cache) 2. Ran 17 test suites in 6.29s (49.10s CPU time): 197 tests passed, 0 failed, 0 skipped (197 total tests) (with cache)
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (293fad7 2024-01-14T00:19:24.272194000Z)
What command(s) is the bug in?
forge test
Operating System
macOS (Apple Silicon)
Describe the bug
See #6791 for more context.
Foundry appears to keep a cache of Etherscan ABIs and OpenChain signatures (at
~/.foundry/cache/etherscan/...
and~/./foundry/cache/signatures
, respectively), but running tests with high verbosity on a slow internet connection results in extremely slow test runs, presumably due to pulling Etherscan/OpenChain metadata to format the traces.It's possible that I'm misunderstanding what these caches are meant to be used for, or the root of the slow test runs issues on slow internet.
The text was updated successfully, but these errors were encountered: