-
Notifications
You must be signed in to change notification settings - Fork 52
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
preprocessor to skip recompiling tests on non-interface source file changes #252
Draft
grandizzy
wants to merge
32
commits into
foundry-rs:main
Choose a base branch
from
grandizzy:klkvr/pp-test-rebase
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 24 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
abd521f
wip
klkvr fb64ca7
wip
klkvr 0876b01
add preprocessor
klkvr 314f284
wip
klkvr 86f0562
wip
klkvr af6550f
fixes
klkvr 276bc94
helper libs
klkvr fa5d7bf
some docs
klkvr 15ce120
clean up
klkvr a379db3
fixes
klkvr 25e5ef9
Merge branch 'main' into klkvr/pp-test-rebase
grandizzy 3faaa02
Port to solar
grandizzy 0f78197
Clippy
grandizzy 594c09b
Changes after review
grandizzy 3105272
Patch solar to get HIR visitor impl
grandizzy 7d0edb8
Review changes
grandizzy 4025e5a
reuse replace source fn
grandizzy 0c940d1
Clippy
grandizzy 79d0a0f
Cleanup, move Update type in lib
grandizzy d37cafb
Change replace_source_content sig, move apply_updates
grandizzy c526df6
Port to solar HIR, refactor
grandizzy e691a96
add preprocessing parse constructors
grandizzy 4241d2b
Contract id cleanup
grandizzy c86c4aa
Cleanup, filter collected dependencies to be source contracts
grandizzy f4a109d
Cleanup, remove Hir:: usage, use ContractIds
grandizzy f0818ea
Optional preprocessed cache
grandizzy 2d1e59f
Review cleanup
grandizzy c354a7c
Simplify find and remove branches
grandizzy 719d4e8
Autodetect and recompile mocks
grandizzy 4342f82
Fix description
grandizzy d8ece14
Cleanup autodetect and update cached mocks:
grandizzy c4ec52c
Invalidate cache on preprocess option toggle
grandizzy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: noticed
interfaceReprHash
is sometimesnull
in the cache, would it make sense to skip this field when it isNone
during serialization w/#[serde(skip_serializing_if = "Option::is_none")]
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, that's null for all files under test / script dirs, will check if any side effect if we don't serialize them but shouldn't