Skip to content
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

Bug: Etherscan cache is constantly invalidated #40

Merged
merged 7 commits into from
Apr 15, 2024

Conversation

zerosnacks
Copy link
Member

@zerosnacks zerosnacks commented Apr 15, 2024

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)

@zerosnacks zerosnacks requested a review from mattsse April 15, 2024 16:39
Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we document what expiry actually tracks?

@zerosnacks zerosnacks requested a review from mattsse April 15, 2024 16:55
@zerosnacks
Copy link
Member Author

can we document what expiry actually tracks?

Good point, I've documented the fields and the expiry logic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants