fix(tests): add BAL related mappings to ethrex exception mapper#2193
Conversation
ethrex now returns "Block gas used overflow..." for EIP-7778 pre-refund gas accounting failures (Amsterdam+), distinct from the existing "Gas allowance exceeded..." transaction-level error.
Add mappings for Block Access List (EIP-7928) related exceptions: - INVALID_BLOCK_ACCESS_LIST - INVALID_BAL_HASH - INVALID_BAL_EXTRA_ACCOUNT - INVALID_BAL_MISSING_ACCOUNT - INCORRECT_BLOCK_FORMAT ethrex validates BAL by computing the hash and comparing against the header, so all BAL corruption types produce the same hash mismatch error. Additionally, index-out-of-bounds and RLP decode errors are mapped for INVALID_BLOCK_ACCESS_LIST and INCORRECT_BLOCK_FORMAT.
1c590f2 to
3a73bfb
Compare
|
@edg-l please provide the branch to test this against. I spent some time trying to figure this out myself but Anyway, this is difficult to review without more context. |
|
I'm running this fix on this branch https://github.com/ethereum/execution-specs/tree/devnets/bal/2 using hive on ethrex, i didn't push the branch on ethrex when making the issue, i pushed it now to I'm using the devnets/bal/2 branch because forks/amsterdam seemed to have an issue with the slot_number field, which this fixes seemingly 2e9b948 (in devnets/bal/2) I'm using Note: i had to change the hive dockerfile to use my fork I have to test more, currently on my end 12 tests fail, but this pr reduced the fail count considerably. |
Yeah, this is the correct branch to use for
This is what I needed, the ethrex branch that I can test against in hive, thanks! I will check against this. |
|
Just tested again (commit a18adec04f6a4d9a198b6760e43a27ff47b3e035 on ethrex) and the command I sent produces no failing tests |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## forks/amsterdam #2193 +/- ##
================================================
Coverage 86.07% 86.07%
================================================
Files 599 599
Lines 39472 39472
Branches 3780 3780
================================================
Hits 33977 33977
Misses 4862 4862
Partials 633 633
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Thanks for the merge! One question though, could this fix be cherry-picked to the devnets/bal/2 or devnets/bal/3 branch? Else it makes it difficult for me to setup hive testing on ethrex and i would need to use a fork of the execution-specs which i would like to avoid. Since forks/amsterdam doesnt have 2e9b948 |
Not cherry-picked, the branch is instead rebased. We need to set these on more regular automated actions but I will rebase the branch against |
🗒️ Description
Add BAL related mappings to the ethrex exception mapper
This is needed because some hive tests fail due to this with ethrex when testing BAL/Amsterdam
🔗 Related Issues or PRs
N/A.
✅ Checklist
toxchecks to avoid unnecessary CI fails, see also Code Standards and Enabling Pre-commit Checks:uvx tox -e statictype(scope):.mkdocs servelocally and verified the auto-generated docs for new tests in the Test Case Reference are correctly formatted.@ported_frommarker.Cute Animal Picture