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

test(engine): enable state root task in engine unit tests #14482

Open
wants to merge 1 commit into
base: fgimenez/tree-config-has-enough-parallelism
Choose a base branch
from

Conversation

fgimenez
Copy link
Member

@fgimenez fgimenez commented Feb 13, 2025

Closes: #14376

  • Introduces traits StateRootTaskFactory, StateRootTaskRunner and StateRootComputeHandle
  • Changes EngineApiTreeHandler to accept and use a StateRootTaskFactory, StateRootTask is created from it
  • Adds implementations to these traits for prod and test code. In tests, the impl allows to set the expected state root

@fgimenez fgimenez added C-test A change that impacts how or what we test A-engine Related to the engine implementation labels Feb 13, 2025
@fgimenez fgimenez force-pushed the fgimenez/enable-state-root-in-engine-tests branch 4 times, most recently from f430844 to cda2a21 Compare February 19, 2025 15:36
@fgimenez fgimenez marked this pull request as ready for review February 19, 2025 15:36
@fgimenez fgimenez force-pushed the fgimenez/enable-state-root-in-engine-tests branch from cda2a21 to 2930979 Compare February 19, 2025 15:53
@fgimenez fgimenez force-pushed the fgimenez/enable-state-root-in-engine-tests branch 3 times, most recently from 32b0300 to e4e01f8 Compare February 19, 2025 22:13
@fgimenez
Copy link
Member Author

fgimenez commented Feb 20, 2025

this has grown too big, i'll split it to keep the changes scoped:

  • one PR with the changes in the DataBaseProviderFactory impl for MockEthProvider
  • one PR with the changes in how has_enough_parallelism is managed, allowing to override the value read from the system to run tests with state root task enabled on constrained environments (eg. CI)
  • rest of the changes specifically related to enabling state root task in engine unit tests in this PR

@fgimenez fgimenez force-pushed the fgimenez/enable-state-root-in-engine-tests branch from e4e01f8 to 5d5db1d Compare February 20, 2025 12:03
@fgimenez fgimenez changed the base branch from main to fgimenez/tree-config-has-enough-parallelism February 20, 2025 16:32
@fgimenez fgimenez requested a review from klkvr as a code owner February 20, 2025 16:32
@fgimenez fgimenez force-pushed the fgimenez/enable-state-root-in-engine-tests branch from 5d5db1d to b6a3f1c Compare February 20, 2025 16:33
@fgimenez fgimenez force-pushed the fgimenez/tree-config-has-enough-parallelism branch from 00c52b5 to 16825a3 Compare February 20, 2025 16:34
@fgimenez fgimenez force-pushed the fgimenez/enable-state-root-in-engine-tests branch from b6a3f1c to fe43a5c Compare February 20, 2025 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-engine Related to the engine implementation C-test A change that impacts how or what we test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix engine tree tests with state root task enabled
1 participant