Skip to content

test(client): add integration test for RPC hook accumulation#576

Closed
Himess wants to merge 5 commits intobase:mainfrom
Himess:test/rpc-hook-accumulation-458
Closed

test(client): add integration test for RPC hook accumulation#576
Himess wants to merge 5 commits intobase:mainfrom
Himess:test/rpc-hook-accumulation-458

Conversation

@Himess
Copy link
Copy Markdown
Contributor

@Himess Himess commented Jan 27, 2026

Closes #458
Reopened #563

Add integration test to verify that multiple RPC-providing extensions
are all accessible when installed together. This test ensures that
the BaseBuilder properly accumulates RPC hooks instead of replacing them.

The test verifies:
- TxPool RPC (base_transactionStatus) is reachable
- Metering RPC (base_meterBlockByNumber) is reachable

Both should work simultaneously when both extensions are installed.

Closes base#458
Use vec![] macro instead of Vec::new() + push pattern to satisfy
clippy::vec_init_then_push lint.
The jsonrpsee crate doesn't have a 'types' feature. Instead, use the
separate jsonrpsee-types crate which provides the ErrorCode type.
@cb-heimdall
Copy link
Copy Markdown
Collaborator

cb-heimdall commented Jan 27, 2026

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

Copy link
Copy Markdown
Contributor

@refcell refcell left a comment

Choose a reason for hiding this comment

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

location change

Move the test from bin/node/tests/ to crates/client/node/tests/ as
the integration test belongs in the library crate, not the binary.
Add required dev-dependencies to base-client-node and remove the
now-unused dev-dependencies from the binary crate.
…ation-458

# Conflicts:
#	crates/client/node/Cargo.toml
@Himess
Copy link
Copy Markdown
Contributor Author

Himess commented Feb 6, 2026

@refcell Replaced , Could you run CI ?

@Himess Himess marked this pull request as draft February 10, 2026 20:14
@refcell
Copy link
Copy Markdown
Contributor

refcell commented Feb 11, 2026

I'm gonna close this out for now -- we can re-open later/if needed.

@refcell refcell closed this Feb 11, 2026
refcell pushed a commit that referenced this pull request Feb 18, 2026
fixed 2 small typos in code comments
refcell pushed a commit that referenced this pull request Feb 18, 2026
fixed 2 small typos in code comments
mw2000 pushed a commit that referenced this pull request Mar 7, 2026
* tests pass, fixes in

* proposer is running locally

* fix test, still broken though

* more detailed error

* jank proxy

* wrapper solution instead

* cleanup

* fix silly errors;

* tweak forge test

* docs for dgfProposeL2Output;

* works locally

* cleanup

* forge fmt

* chore: update ELFs

* feat: add a range limit when computing ranges by gas

* fix: fmt

* feat: rename gas_limit to evm_gas_limit

* fix: revert RANGE_PROOF_INTERVAL default value

* fix: rename RANGE_PROOF_GAS_LIMIT to RANGE_PROOF_EVM_GAS_LIMIT

* feat: replace tuples by Range type

* chore: update comment

* chore: add `single_small_block` test

* fix: comment

* fix: add a warning if no ranges were inserted in the database

* feat: merge disjoint ranges if possible before splitting

* fix: perf feedbacks

---------

Co-authored-by: leruaa <aurelien.catinon@gmail.com>
mw2000 pushed a commit that referenced this pull request Mar 9, 2026
* tests pass, fixes in

* proposer is running locally

* fix test, still broken though

* more detailed error

* jank proxy

* wrapper solution instead

* cleanup

* fix silly errors;

* tweak forge test

* docs for dgfProposeL2Output;

* works locally

* cleanup

* forge fmt

* chore: update ELFs

* feat: add a range limit when computing ranges by gas

* fix: fmt

* feat: rename gas_limit to evm_gas_limit

* fix: revert RANGE_PROOF_INTERVAL default value

* fix: rename RANGE_PROOF_GAS_LIMIT to RANGE_PROOF_EVM_GAS_LIMIT

* feat: replace tuples by Range type

* chore: update comment

* chore: add `single_small_block` test

* fix: comment

* fix: add a warning if no ranges were inserted in the database

* feat: merge disjoint ranges if possible before splitting

* fix: perf feedbacks

---------

Co-authored-by: leruaa <aurelien.catinon@gmail.com>
mw2000 pushed a commit that referenced this pull request Mar 16, 2026
* tests pass, fixes in

* proposer is running locally

* fix test, still broken though

* more detailed error

* jank proxy

* wrapper solution instead

* cleanup

* fix silly errors;

* tweak forge test

* docs for dgfProposeL2Output;

* works locally

* cleanup

* forge fmt

* chore: update ELFs

* feat: add a range limit when computing ranges by gas

* fix: fmt

* feat: rename gas_limit to evm_gas_limit

* fix: revert RANGE_PROOF_INTERVAL default value

* fix: rename RANGE_PROOF_GAS_LIMIT to RANGE_PROOF_EVM_GAS_LIMIT

* feat: replace tuples by Range type

* chore: update comment

* chore: add `single_small_block` test

* fix: comment

* fix: add a warning if no ranges were inserted in the database

* feat: merge disjoint ranges if possible before splitting

* fix: perf feedbacks

---------

Co-authored-by: leruaa <aurelien.catinon@gmail.com>
haardikk21 pushed a commit that referenced this pull request Mar 17, 2026
* tests pass, fixes in

* proposer is running locally

* fix test, still broken though

* more detailed error

* jank proxy

* wrapper solution instead

* cleanup

* fix silly errors;

* tweak forge test

* docs for dgfProposeL2Output;

* works locally

* cleanup

* forge fmt

* chore: update ELFs

* feat: add a range limit when computing ranges by gas

* fix: fmt

* feat: rename gas_limit to evm_gas_limit

* fix: revert RANGE_PROOF_INTERVAL default value

* fix: rename RANGE_PROOF_GAS_LIMIT to RANGE_PROOF_EVM_GAS_LIMIT

* feat: replace tuples by Range type

* chore: update comment

* chore: add `single_small_block` test

* fix: comment

* fix: add a warning if no ranges were inserted in the database

* feat: merge disjoint ranges if possible before splitting

* fix: perf feedbacks

---------

Co-authored-by: leruaa <aurelien.catinon@gmail.com>
mw2000 pushed a commit that referenced this pull request Mar 19, 2026
* tests pass, fixes in

* proposer is running locally

* fix test, still broken though

* more detailed error

* jank proxy

* wrapper solution instead

* cleanup

* fix silly errors;

* tweak forge test

* docs for dgfProposeL2Output;

* works locally

* cleanup

* forge fmt

* chore: update ELFs

* feat: add a range limit when computing ranges by gas

* fix: fmt

* feat: rename gas_limit to evm_gas_limit

* fix: revert RANGE_PROOF_INTERVAL default value

* fix: rename RANGE_PROOF_GAS_LIMIT to RANGE_PROOF_EVM_GAS_LIMIT

* feat: replace tuples by Range type

* chore: update comment

* chore: add `single_small_block` test

* fix: comment

* fix: add a warning if no ranges were inserted in the database

* feat: merge disjoint ranges if possible before splitting

* fix: perf feedbacks

---------

Co-authored-by: leruaa <aurelien.catinon@gmail.com>
mw2000 pushed a commit that referenced this pull request Mar 23, 2026
* tests pass, fixes in

* proposer is running locally

* fix test, still broken though

* more detailed error

* jank proxy

* wrapper solution instead

* cleanup

* fix silly errors;

* tweak forge test

* docs for dgfProposeL2Output;

* works locally

* cleanup

* forge fmt

* chore: update ELFs

* feat: add a range limit when computing ranges by gas

* fix: fmt

* feat: rename gas_limit to evm_gas_limit

* fix: revert RANGE_PROOF_INTERVAL default value

* fix: rename RANGE_PROOF_GAS_LIMIT to RANGE_PROOF_EVM_GAS_LIMIT

* feat: replace tuples by Range type

* chore: update comment

* chore: add `single_small_block` test

* fix: comment

* fix: add a warning if no ranges were inserted in the database

* feat: merge disjoint ranges if possible before splitting

* fix: perf feedbacks

---------

Co-authored-by: leruaa <aurelien.catinon@gmail.com>
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.

test: add integration test for RPC hook accumulation

3 participants