Skip to content

test: Match block requests and transaction exceptions in blockchaintest#1560

Merged
chfast merged 1 commit into
masterfrom
test/blockchain-requests-error-matching
Jun 2, 2026
Merged

test: Match block requests and transaction exceptions in blockchaintest#1560
chfast merged 1 commit into
masterfrom
test/blockchain-requests-error-matching

Conversation

@chfast

@chfast chfast commented Jun 1, 2026

Copy link
Copy Markdown
Member

The invalid-block branch silently accepted any transition failure without checking it against the fixture's expectException. Verify those reasons:

  • Requests collection failures map to distinct exceptions (INVALID_DEPOSIT_EVENT_LAYOUT, SYSTEM_CONTRACT_EMPTY, SYSTEM_CONTRACT_CALL_FAILED); system_call_block_end now returns the specific error code, which t8n also reports.
  • A rejected transaction is required to match a TransactionException.* fixture (it stops block processing immediately).

@codecov

codecov Bot commented Jun 1, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.74074% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 97.07%. Comparing base (bf6200b) to head (dcb4f08).

Files with missing lines Patch % Lines
test/utils/t8n.cpp 20.00% 3 Missing and 1 partial ⚠️
test/blockchaintest/blockchaintest_runner.cpp 96.87% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1560      +/-   ##
==========================================
- Coverage   97.07%   97.07%   -0.01%     
==========================================
  Files         162      162              
  Lines       14480    14500      +20     
  Branches     3380     3387       +7     
==========================================
+ Hits        14057    14076      +19     
- Misses        305      306       +1     
  Partials      118      118              
Flag Coverage Δ
eest-develop 91.85% <95.00%> (+<0.01%) ⬆️
eest-develop-gmp 26.41% <0.00%> (-0.04%) ⬇️
eest-legacy 17.71% <42.59%> (+0.02%) ⬆️
eest-libsecp256k1 28.04% <0.00%> (-0.04%) ⬇️
eest-stable 91.79% <95.00%> (+0.01%) ⬆️
evmone-unittests 92.42% <46.29%> (-0.11%) ⬇️

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

Components Coverage Δ
core 95.95% <100.00%> (+<0.01%) ⬆️
tooling 87.85% <88.09%> (+0.04%) ⬆️
tests 99.79% <100.00%> (ø)
Files with missing lines Coverage Δ
test/state/errors.hpp 85.33% <100.00%> (+1.27%) ⬆️
test/state/system_contracts.cpp 100.00% <100.00%> (ø)
test/unittests/state_system_call_test.cpp 100.00% <100.00%> (ø)
test/utils/test_state.cpp 100.00% <100.00%> (ø)
test/utils/test_state.hpp 100.00% <ø> (ø)
test/blockchaintest/blockchaintest_runner.cpp 86.61% <96.87%> (+0.62%) ⬆️
test/utils/t8n.cpp 91.42% <20.00%> (-0.66%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@chfast chfast force-pushed the test/blockchain-requests-error-matching branch 3 times, most recently from a871eab to 0c56f7c Compare June 1, 2026 15:09
Partly inspect expected block invalidity coming from "expectException".
Match request collection errors and at least check if a rejected
transaction is expected.
@chfast chfast force-pushed the test/blockchain-requests-error-matching branch from 0c56f7c to dcb4f08 Compare June 2, 2026 05:30
@chfast chfast merged commit 5ec9c6f into master Jun 2, 2026
21 of 23 checks passed
@chfast chfast deleted the test/blockchain-requests-error-matching branch June 2, 2026 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant