experiments(test-fill): add local t8n cache with SQLite + pickle + zlib#2636
Draft
spencer-tb wants to merge 1 commit intoethereum:forks/amsterdamfrom
Draft
experiments(test-fill): add local t8n cache with SQLite + pickle + zlib#2636spencer-tb wants to merge 1 commit intoethereum:forks/amsterdamfrom
spencer-tb wants to merge 1 commit intoethereum:forks/amsterdamfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## forks/amsterdam #2636 +/- ##
================================================
Coverage 86.24% 86.24%
================================================
Files 599 599
Lines 36984 36984
Branches 3795 3795
================================================
Hits 31895 31895
Misses 4525 4525
Partials 564 564
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
3f9a0ee to
3f61e17
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🗒️ Description
Experimental: Adds an optional disk cache for t8n results that persists across fill runs.
This PR adds a content addressed SQLite cache that stores t8n outputs keyed by:
state_rootfromLazyAllocfor zero cost alloc hashing on subsequent blocks.Entries are pickle serialized and zlib-compressed (level 1). SQLite WAL mode handles concurrent xdist workers. Transition forks hash both source and target fork directories.
Benchmarks
--fork Amsterdam -n 8(35,716 tests), cache size 402MB:--until Amsterdam -n 8(132,090 tests), cache size 2.5GB:--generate-all-formats --fork Amsterdam -n 8(50,035 tests), cache size 12GB:--generate-all-formats --until Amsterdam -n 8(175,569 tests), cache size 38GB:Usage
Open Questions
🔗 Related Issues or PRs
N/A.
✅ Checklist
just statictype(scope):.Cute Animal Picture