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

fix: always compile sources when running tests #7572

Merged
merged 1 commit into from
Apr 5, 2024
Merged

Conversation

klkvr
Copy link
Member

@klkvr klkvr commented Apr 5, 2024

Motivation

Closes #7569

Solution

Always include all source files into compiler input when running tests to ensure that getCode can use artifacts from src without workarounds.

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.

lgtm

Comment on lines +204 to +205
// Always recompile all sources to ensure that `getCode` cheatcode can use any artifact.
test_sources.extend(source_files_iter(project.paths.sources));
Copy link
Member

Choose a reason for hiding this comment

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

ah this makes sense

@mattsse mattsse mentioned this pull request Apr 5, 2024
2 tasks
@klkvr klkvr merged commit c2162e2 into master Apr 5, 2024
19 checks passed
@klkvr klkvr deleted the klkvr/fix-get-code branch April 5, 2024 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

vm.getCode doesn't find artifacts by name
2 participants