fix(spec-tests): Fix new fork tool test to use last fork dynamically#1741
Conversation
|
Are we perhaps missing a label for |
SamWilsn
left a comment
There was a problem hiding this comment.
Might be worth having a test_end_to_end_latest and keeping test_end_to_end as is. That way we can tell if the new fork tool breaks for old forks.
a870452 to
e4bb577
Compare
|
@SamWilsn I split these to have both a hard-coded Osaka and the latest fork. I didn't see a strong reason to change the parameters for these but let me know if you think we should. |
|
Just sanity checked this by cherry-picking these commits over in Amsterdam bals branch and they pass 👌🏼 |
spencer-tb
left a comment
There was a problem hiding this comment.
LGTM! @SamWilsn for merge?
* fix(tests): test_worst_selfdestruct_created * fix: test_worst_selfdestruct_existing * Update tests/zkevm/test_worst_stateful_opcodes.py
🗒️ Description
When we have two
Unscheduledforks, which will be more frequent moving forward, while Osaka isUnscheduledand Amsterdam is too, we cannot resolve the fork criteria for the e2e test for the fork tool (e.g. here).builder.pyif the fork isUnscheduledas well as if it'sforks[-1]and raise theorder_indexto come after it as we already do.I'm not tied to the last change. If we want to make hard-coding Osaka work, we can change some other things around as well but this change does get this test passing on Amsterdam as it uses
Amsterdamas the last fork.✅ Checklist
toxchecks to avoid unnecessary CI fails, see also Code Standards and Enabling Pre-commit Checks:uvx tox -e statictype(scope):.Cute Animal Picture