-
Notifications
You must be signed in to change notification settings - Fork 122
feat(tests): Identity precompile test conversions #1344
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?
Conversation
3724613
to
f7798a5
Compare
d76ba24
to
f7857da
Compare
@marioevz @winsvega There are a couple test cases failing, seeing differences in the expectations from the original tests. I have a couple questions about these cases, as follows:
|
Have you checked the vmtrace of original tests? You can run retesteth test.json --vmtrace You can select vector --singlenet Cancun -d index |
Yeah the trace for the CALL in |
If a subcall fails with OOG, the upper level call continues, thus stroing all the values, but the failed call returns 0. Sorry I have not time to review, but I can give hints. |
Ah look In original test the pre storage is empty (zero) Thus if the call fails we don't see it as the storage was not set to deadbeef |
About identity5, if you see the original test makes little sense, it can be errors. See if the test logic make sense, try to enhance it with more scenarios using pytest. If you see that original test does not do anything useful, see what was the intent, maybe it can be fixed. |
Fill tests shows much more mismatch in the expectations. Need to check the logic, something is off. |
e3228c8
to
12035a8
Compare
I realized I needed a different |
356e53b
to
3b103ad
Compare
3b103ad
to
1ef4d38
Compare
I was expecting the identity precompile tests to be valid from The coverage failures look exactly as they did for the blake2 precompile tests. Adding that description to the thread below. #1244 (comment) |
Add returndatasize test cases Add tests for CALL Add tests for large inputs/outputs Add CALLCODE tests
1ef4d38
to
fe91892
Compare
Manual Coverage Analysis/evmone/evmc/include/evmc - helpers.h ✅
Lines lost due to coverage script not filling Prague for python tests, and since latest release of ethereum/tests contains prague, this is expected. /evmone/test/state - mpt.cpp ✅
...
Lost due how test accounts (in pre-alloc) are structured in EEST vs ethereum/tests, which is irrelevant. |
🗒️ Description
Identity Precompile test conversions.
🔗 Related Issues
#972 (stPreCompiledContracts / stPreCompiledContracts2)
🗑️ ethereum/tests removals
✅ Checklist
mkdocs serve
locally and verified the auto-generated docs for new tests in the Test Case Reference are correctly formatted.