Skip to content

Add prestate validation checks to state test loader#1134

Merged
gumb0 merged 7 commits intomasterfrom
test/check-pre-state
Mar 12, 2025
Merged

Add prestate validation checks to state test loader#1134
gumb0 merged 7 commits intomasterfrom
test/check-pre-state

Conversation

@gumb0
Copy link
Copy Markdown
Member

@gumb0 gumb0 commented Feb 17, 2025

Idea originated in #961 (review)

@gumb0 gumb0 force-pushed the test/check-pre-state branch from fb524cf to a7dbe62 Compare February 17, 2025 11:56
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.97%. Comparing base (d84b471) to head (ce99eb3).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1134      +/-   ##
==========================================
- Coverage   94.54%   93.97%   -0.58%     
==========================================
  Files         168      168              
  Lines       18254    18292      +38     
==========================================
- Hits        17259    17189      -70     
- Misses        995     1103     +108     
Flag Coverage Δ
eof_execution_spec_tests 22.45% <19.56%> (-0.02%) ⬇️
ethereum_tests 28.27% <19.56%> (-0.02%) ⬇️
ethereum_tests_silkpre 20.97% <18.42%> (-0.01%) ⬇️
execution_spec_tests ?
unittests 89.84% <100.00%> (+0.02%) ⬆️

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

Files with missing lines Coverage Δ
test/statetest/statetest_loader.cpp 98.01% <100.00%> (+0.07%) ⬆️
test/unittests/state_transition_create_test.cpp 100.00% <100.00%> (ø)
test/unittests/statetest_loader_test.cpp 100.00% <100.00%> (ø)

... and 7 files with indirect coverage changes

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@gumb0 gumb0 self-assigned this Feb 17, 2025
@gumb0 gumb0 force-pushed the test/check-pre-state branch 7 times, most recently from d84257e to acdc602 Compare February 19, 2025 10:52
@gumb0 gumb0 marked this pull request as ready for review February 19, 2025 11:25
@gumb0 gumb0 force-pushed the test/check-pre-state branch from acdc602 to adc15ef Compare February 19, 2025 11:51
@gumb0 gumb0 requested a review from chfast February 20, 2025 11:57
Copy link
Copy Markdown
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.

LGTM.

I think we should submit a PR to EEST with the test removal. This may start a longer discussion there, but this is fine.

Then we can wait until the discussion is resolved and merge this, or merge it before.


#include "../utils/stdx/utility.hpp"
#include "../utils/utils.hpp"
#include "evmone/delegation.hpp"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
#include "evmone/delegation.hpp"
#include <evmone/delegation.hpp>

#include "../utils/utils.hpp"
#include "evmone/delegation.hpp"
#include "statetest.hpp"
#include "test/state/precompiles.hpp"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
#include "test/state/precompiles.hpp"
#include <test/state/precompiles.hpp>

@gumb0 gumb0 force-pushed the test/check-pre-state branch from adc15ef to 4a87fba Compare February 25, 2025 11:49
@chfast chfast added the tests Testing infrastructure label Mar 11, 2025
@chfast chfast force-pushed the test/check-pre-state branch from 4a87fba to ce99eb3 Compare March 11, 2025 20:57
@gumb0 gumb0 force-pushed the test/check-pre-state branch 2 times, most recently from 87d4289 to b812b48 Compare March 12, 2025 15:11
@gumb0 gumb0 requested a review from chfast March 12, 2025 15:47
@gumb0 gumb0 merged commit dfaade8 into master Mar 12, 2025
23 checks passed
@gumb0 gumb0 deleted the test/check-pre-state branch March 12, 2025 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Testing infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants