-
Notifications
You must be signed in to change notification settings - Fork 318
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
Update EOF validation test for top-level containers #1381
Conversation
@@ -92,6 +92,8 @@ validInvalid: | |||
00 # 3 STOP | |||
# Data segment | |||
0bad # 2 bytes instead of four | |||
expectException: | |||
"Prague" : "err: toplevel_container_truncated" |
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.
you can use pyspec exception style now
EOFException.TOPLEVEL_CONTAINER_TRUNCATED
@@ -116,7 +118,7 @@ validInvalid: | |||
# Data segment | |||
0bad60A70BAD # 6 bytes instead of four | |||
expectException: | |||
">=Prague" : "EOF_InvalidSectionBodiesSize" | |||
"Prague" : "EOF_InvalidSectionBodiesSize" |
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.
but legacy exceptions are also fine. we are planning to convert json tests into .py eventually anyway
} | ||
} | ||
}, | ||
"EOF1_truncated_section_4": { | ||
"code": "0xef000101000402000100010400020000800000feaa", | ||
"results": { | ||
"Prague": { | ||
"result": true | ||
"exception": "err: toplevel_container_truncated", |
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.
please use the error code. EOFException.TOPLEVEL_CONTAINER_TRUNCATED or retetesteth style
|
Switch to the updated `eof-toplevel` branch of ipsilon/tests. After rebasing the number of changes is smaller than it was. The ethereum/tests PR: ethereum/tests#1381.
Switch to the updated `eof-toplevel` branch of ipsilon/tests. After rebasing the number of changes is smaller than it was. The ethereum/tests PR: ethereum/tests#1381. Also run the EOF tests from upstream ethereum/tests v14.0 with longer exclusion list.
Switch to the updated `eof-toplevel` branch of ipsilon/tests. After rebasing the number of changes is smaller than it was. The ethereum/tests PR: ethereum/tests#1381. Also run the EOF tests from upstream ethereum/tests v14.0 with longer exclusion list.
Switch to the updated `eof-toplevel` branch of ipsilon/tests. After rebasing the number of changes is smaller than it was. The ethereum/tests PR: ethereum/tests#1381. Also run the EOF tests from upstream ethereum/tests v14.0 with longer exclusion list.
- EOFTests/EIP3540/validInvalid.json: ethereum/execution-spec-tests#598 - EOFTests/efValidation/EOF1_truncated_section_.json: ethereum/execution-spec-tests#740 - EOFTests/efValidation/EOF1_eofcreate_valid_.json: ethereum/execution-spec-tests#738
- Update tests because of the validation rule change: top-level containers must not have truncated data. - Fix some expected error messages. - Change ">=Prague" to "Prague" because not supported in retesteth.
containers must not have truncated data.