Skip to content
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

Change EOF data section kind to 0x04 and activate EOF in Prague #632

Merged
merged 3 commits into from
Aug 3, 2023

Conversation

gumb0
Copy link
Member

@gumb0 gumb0 commented May 4, 2023

Preparation to introduce container sections with kind 0x03.

@gumb0 gumb0 added the EOF label May 4, 2023
@gumb0 gumb0 closed this May 5, 2023
@gumb0 gumb0 reopened this May 5, 2023
Copy link
Member

@axic axic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks okay to me.

@gumb0 gumb0 force-pushed the change-data-section-kind branch from d019f28 to 9c26c3a Compare May 8, 2023 13:22
lib/evmone/eof.hpp Outdated Show resolved Hide resolved
@gumb0 gumb0 force-pushed the change-data-section-kind branch from 9c26c3a to f3ed9c1 Compare May 16, 2023 10:57
Copy link
Member

@chfast chfast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good except state tests are failing.

@gumb0 gumb0 force-pushed the change-data-section-kind branch 2 times, most recently from 8c54d59 to 15eeced Compare June 1, 2023 11:24
@gumb0 gumb0 force-pushed the change-data-section-kind branch 2 times, most recently from 11e6b69 to d428079 Compare July 11, 2023 19:04
@codecov
Copy link

codecov bot commented Jul 19, 2023

Codecov Report

Merging #632 (7f89c95) into master (bc4eefb) will decrease coverage by 0.01%.
The diff coverage is 98.92%.

❗ Current head 7f89c95 differs from pull request most recent head c112154. Consider uploading reports for the commit c112154 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #632      +/-   ##
==========================================
- Coverage   97.43%   97.42%   -0.01%     
==========================================
  Files          83       83              
  Lines        8042     8052      +10     
==========================================
+ Hits         7836     7845       +9     
- Misses        206      207       +1     
Flag Coverage Δ
blockchaintests 62.66% <18.18%> (-0.30%) ⬇️
statetests 74.22% <92.85%> (+0.11%) ⬆️
statetests-silkpre 23.55% <2.31%> (-0.03%) ⬇️
unittests 94.90% <98.92%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
lib/evmone/baseline_instruction_table.cpp 100.00% <ø> (ø)
lib/evmone/instructions_storage.cpp 100.00% <ø> (ø)
lib/evmone/eof.cpp 83.33% <83.33%> (-0.09%) ⬇️
lib/evmone/advanced_execution.cpp 100.00% <100.00%> (ø)
lib/evmone/baseline.cpp 100.00% <100.00%> (ø)
lib/evmone/instructions_calls.cpp 100.00% <100.00%> (ø)
test/state/host.cpp 92.14% <100.00%> (ø)
test/statetest/statetest_loader.cpp 90.12% <100.00%> (+0.42%) ⬆️
test/unittests/analysis_test.cpp 100.00% <100.00%> (ø)
test/unittests/eof_test.cpp 94.28% <100.00%> (ø)
... and 12 more

@gumb0 gumb0 force-pushed the change-data-section-kind branch from d428079 to 57aa098 Compare July 19, 2023 11:00
@gumb0 gumb0 changed the title Change EOF data section kind to 0x04 Change EOF data section kind to 0x04 and activate EOF in Prague Jul 19, 2023
@gumb0 gumb0 requested review from chfast and axic July 19, 2023 12:05
@gumb0 gumb0 force-pushed the change-data-section-kind branch 2 times, most recently from c112154 to 7f89c95 Compare July 31, 2023 14:29
@gumb0
Copy link
Member Author

gumb0 commented Jul 31, 2023

Current status: tests from ethereum/tests#1238 are passing, but they shouldn't be, because stack overflow check is incorrect in CALLF currently and there are wrong expectations in 5450 tests.

Plan:

@gumb0 gumb0 force-pushed the change-data-section-kind branch from 7f89c95 to 6b35712 Compare August 1, 2023 10:57
@@ -79,7 +79,7 @@ TEST_P(evm, callf_with_inputs_stack_size_1024)
return;

rev = EVMC_CANCUN;
const auto code = bytecode{"ef0001 010008 020002 0BFF 0004 030000 00 000003FF 03030004"_hex} +
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to belong to the prev commit.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

circle.yml Outdated
@@ -474,7 +474,7 @@ jobs:
bin/evmone-statetest ~/tests/GeneralStateTests ~/tests/LegacyTests/Constantinople/GeneralStateTests
- download_execution_tests:
repo: ipsilon/tests
rev: runtime-stackoverflow-fix
rev: update-tests
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because of the risk of rebase or branch deletion, I try to use tags, e.g. eof-opcodes-20230619. But it's up to you in the end.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made a tag

@gumb0 gumb0 force-pushed the change-data-section-kind branch from 6b35712 to 3e1a847 Compare August 3, 2023 10:01
@gumb0 gumb0 merged commit 5b9c216 into master Aug 3, 2023
@gumb0 gumb0 deleted the change-data-section-kind branch August 3, 2023 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants