-
Notifications
You must be signed in to change notification settings - Fork 181
fix(tests): fix storage slot of actual value for eip7516_blobgasfee
tests in execute remote
#2266
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(tests): fix storage slot of actual value for eip7516_blobgasfee
tests in execute remote
#2266
Conversation
Signed-off-by: Luis Mastrangelo <luis@swirldslabs.com>
This fix resolves the issue in pre-set storage just to make sure we detect the change
code_caller_post_storage[block_number] = 0 if timestamp < 15_000 else 1 That is the reason for the failing CI, you could also run it locally via uv run fill -v tests/cancun/eip7516_blobgasfee/test_blobgasfee_opcode.py::test_blobbasefee_during_fork --fork Osaka --clean |
Signed-off-by: Luis Mastrangelo <luis@swirldslabs.com>
Hi @LouisTsai-Csie, thanks for taking a look. I've managed to solve the issue essentially by parameterizing the expected value slot. Happy to explore other solutions if required. |
However, I had to skip this gas validation, otherwise the test will fail in execution-spec-tests/src/ethereum_test_execution/transaction_post.py Lines 69 to 71 in ea972f4
Am I missing something? |
For the failing evmone CI issue, I checked the report and found an |
A recent merged PR might help you with the gas validation issue. For non benchmark mode, it would not apply the gas validation |
Signed-off-by: Luis Mastrangelo <luis@swirldslabs.com>
Thanks for clarifying #2266 (comment), and in general for taking the time to review this. |
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.
Thanks for this! Just one suggestion that might simplify and fix the issues found in the previous review.
Signed-off-by: Luis Mastrangelo <luis@swirldslabs.com>
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.
The CI is failing but i think it's fine, it is due to the changed testing method.
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.
LGTM, thanks!
Coverage CI issue is because we swapped opcodes, so it's ok to merge.
ποΈ Description
This PR fixes the storage slot of the actual value in the test.
In
execute remote
mode, it usedNUMBER
as the storage slot, but the expected value is stored in slot1
. This causes problems when running tests withexecute remote
whereNUMBER
cannot be ensured to be1
.π Related Issues or PRs
Fixes #2255.
β Checklist
tox
checks to avoid unnecessary CI fails, see also Code Standards and Enabling Pre-commit Checks:uvx --with=tox-uv tox -e lint,typecheck,spellcheck,markdownlint
type(scope):
.mkdocs serve
locally and verified the auto-generated docs for new tests in the Test Case Reference are correctly formatted.@ported_from
marker.