Skip to content

test: Check a new VM in no_tracer and drop run_t8n_env() - #1872

Merged
chfast merged 2 commits into
mainfrom
test/unittests-cleanup
Dec 1, 2026
Merged

chfast merged 2 commits into
mainfrom
test/unittests-cleanup

Conversation

@chfast

@chfast chfast commented Dec 1, 2026

Copy link
Copy Markdown
Member

The no_tracer test now creates its own VM. Previously, it checked the VM shared by the tracing tests, which is new only when the test runs first; otherwise, the previous test has just removed its tracers.

The base fee tests call run_t8n() with an empty state and no transactions instead of run_t8n_env(), which repeated run_t8n()'s body.

The no_tracer test now creates its own VM. Previously, it checked the
VM shared by the tracing tests, which is new only when the test runs
first; otherwise, the previous test has just removed its tracers.
The base fee tests call run_t8n() with an empty state and no
transactions. Previously, run_t8n_env() repeated run_t8n()'s body for
that.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approved

No active review issues block the test-isolation and setup-deduplication changes.

No open issues 🎉

What changed in this PR

This PR improves test isolation and removes duplicate setup code in the tracing and state-transition unit tests.

Changes:

  • Make no_tracer check a newly created VM, independent of tracing test execution order.
  • Replace run_t8n_env() with existing run_t8n() calls using an empty state and no transactions.
File Description
test/​unittests/​tracing_test.cpp Create a fresh VM to verify that it starts without a tracer.
test/​unittests/​tooling_t8n_test.cpp Remove the duplicate helper and reuse run_t8n() in base fee tests.

Review effort: Balanced

@codspeed

codspeed Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 1046 untouched benchmarks
⏩ 770 skipped benchmarks1


Comparing test/unittests-cleanup (a3f0977) with main (8417554)

Open in CodSpeed

Footnotes

  1. 770 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@chfast
chfast merged commit 44cd54e into main Dec 1, 2026
27 of 31 checks passed
@chfast
chfast deleted the test/unittests-cleanup branch December 1, 2026 18:02
@codecov

codecov Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.21%. Comparing base (8417554) to head (a3f0977).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1872      +/-   ##
==========================================
- Coverage   98.21%   98.21%   -0.01%     
==========================================
  Files         187      187              
  Lines       17388    17377      -11     
  Branches     3990     3990              
==========================================
- Hits        17077    17066      -11     
  Misses        239      239              
  Partials       72       72              
Flag Coverage Δ
eest-develop-gmp 27.11% <0.00%> (+0.01%) ⬆️
eest-legacy 17.01% <0.00%> (+0.01%) ⬆️
eest-libsecp256k1 28.93% <0.00%> (+0.01%) ⬆️
eest-stable 83.80% <ø> (ø)
evmone-unittests 94.07% <100.00%> (-0.01%) ⬇️
riscv64 94.93% <100.00%> (-0.01%) ⬇️

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

Components Coverage Δ
core 96.57% <ø> (ø)
tooling 94.79% <ø> (ø)
tests 99.80% <100.00%> (-0.01%) ⬇️
Files with missing lines Coverage Δ
test/unittests/tooling_t8n_test.cpp 100.00% <100.00%> (ø)
test/unittests/tracing_test.cpp 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

2 participants