gRPC: ReadGenesis, FollowTip and FetchBlock tests - #6655
Open
carbolymer wants to merge 5 commits into
Open
Conversation
carbolymer
force-pushed
the
mgalazyn/test/rpc-readgenesis-followtip-fetchblock
branch
from
August 19, 2026 16:06
9f16572 to
9069924
Compare
carbolymer
force-pushed
the
mgalazyn/test/rpc-readgenesis-followtip-fetchblock
branch
from
August 19, 2026 16:08
9069924 to
fe56c40
Compare
Jimbo4350
approved these changes
Aug 19, 2026
Contributor
|
We have to keep an eye on these RPC tests and how much time it adds to the node's CI. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds integration tests for three UTxO RPC methods served by the node's gRPC endpoint, exercised end-to-end against a local testnet:
SyncService.FetchBlock: fetches blocks by slot and by hash, and compares them against blocks observed independently viafoldBlocks, including transactions carrying minted assets and Plutus scripts.SyncService.FollowTip: verifies tip updates are streamed as new blocks are produced.QueryService.ReadGenesis: verifies the returned genesis parameters match the testnet's configuration.Also included:
SearchUtxosandTransactionRPC tests now use the sharedexactAddressPredicateandtxoRefUtxoRpcToTxInhelpers fromcardano-rpcinstead of local copies of the equivalent code.foldBlockscall sites are adapted tocardano-api11.5, which takes an explicitSomeHasFS IOargument (built viamkNodeConfigFs).cardano-testnet/.changes/.The commits are split per test module, each carrying its own cabal entry and test-runner registration.
Checklist
See Running tests for more details
CHANGELOG.mdfor affected packagecardano-node-chairman,cardano-submit-apiandcardano-testnetinstead need achangelog fragment in
<package>/.changes/, because theirCHANGELOG.mdis generatedfrom fragments at release time. Copy
_TEMPLATE.ymlfrom that directory, or runnix run github:input-output-hk/cardano-dev#herald -- new.cabalfiles are updatedhlint. See.github/workflows/check-hlint.ymlto get thehlintversionstylish-haskell. See.github/workflows/stylish-haskell.ymlto get thestylish-haskellversionghc-9.6andghc-9.12Note on CI
If your PR is from a fork, the necessary CI jobs won't trigger automatically for security reasons.
You will need to get someone with write privileges. Please contact IOG node developers to do this
for you.