-
Notifications
You must be signed in to change notification settings - Fork 149
refactor(pytest,fill): removed solc dependency (#1759) #1779
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ The most effective method of learning how to write tests is to study a couple of | |
|
||
### Yul Test | ||
|
||
You can find the source code for the Yul test in [tests/homestead/yul/test_yul_example.py](../../tests/homestead/yul/test_yul_example/index.md). | ||
You can find the source code for the Yul test in `tests/homestead/yul/test_yul_example.py`. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This file no longer exists. We should remove any reference to it in the documentation and ensure that we don't lead test implementers to use Yul in the Python test code. |
||
It is the spec test equivalent of this [static test](https://github.com/ethereum/tests/blob/develop/src/GeneralStateTestsFiller/stExample/yulExampleFiller.yml). | ||
|
||
Lets examine each section. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,6 @@ dependencies = [ | |
"semver>=3.0.1,<4", | ||
"pydantic>=2.10.0,<3", | ||
"rich>=13.7.0,<14", | ||
"solc-select>=1.0.4,<2", | ||
"filelock>=3.15.1,<4", | ||
"ethereum-types>=0.2.1,<0.3", | ||
"pyyaml>=6.0.2,<7", | ||
|
@@ -50,6 +49,7 @@ dependencies = [ | |
"pytest-regex>=0.2.0,<0.3", | ||
"eth-abi>=5.2.0", | ||
"joblib>=1.4.2", | ||
"ckzg>=2.1.1,<3", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did this unintentionally sneak in here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes sorry, it's from the pending blob pr |
||
] | ||
|
||
[project.urls] | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ | |
FILL_TEST_ARGS = ( | ||
"--evm-bin", | ||
"--traces", | ||
"--solc-bin", | ||
"--filler-path", | ||
"--output", | ||
"--forks", | ||
|
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.
Could you clarify the extent of how much we've removed the
solc
dependency?As I understand, this PR removes the dep of
solc
to fill Python tests, right? But it is still required for the static tests? Which is generally only performed by EEST maintainers or CI). Therefore, we can removesolc-select
as a regular test implementer need not be concerned withsolc
at all. Is this correct?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.
Looking at the pytest ini files, this is the case. I think the CHANGELOG needs more detailed explanation to help power users understand the changes in this PR.
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.
I think it needs to be much clearer (probably worth a note at the top of the release section in the CHANGELOG) that test implementers should no longer use Yul source in their Python test code and that the
Yul
andYulCompiler
objects are no longer available to do this. Not a breaking change in fixture formats, but a breaking change in test implementing standards :)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.
Yes exactly, good point I will clarify this in the changelog.