Skip to content

Run the RPC and Horizon integration tests at core's next protocol - #5477

Merged
sisuresh merged 1 commit into
stellar:masterfrom
sisuresh:rpc-protocol-from-config
Nov 5, 2026
Merged

sisuresh merged 1 commit into
stellar:masterfrom
sisuresh:rpc-protocol-from-config

Conversation

@sisuresh

@sisuresh sisuresh commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

The RPC and Horizon integration tests build core with next enabled, so derive their protocol from MAX_SUPPORTED_PROTOCOL_VERSION + 1 instead of hardcoding it (the hardcoded RPC '27' is failing). Horizon's stellar-rpc tests are skipped since no released RPC image supports the next protocol; Horizon caps the tested protocol at its own max.

Comment thread .github/workflows/horizon.yml Resolved
@Shaptic

Shaptic commented Oct 2, 2026

Copy link
Copy Markdown
Contributor
        	Error:      	Received unexpected error:
        	            	open docker/upgrades/unlimited.p30.xdr: file does not exist

I think we can fix this by falling back to a previous existing version, in which case these tests will only fail if the configs themselves change.

@sisuresh
sisuresh force-pushed the rpc-protocol-from-config branch 2 times, most recently from a5d45ba to 5283272 Compare November 3, 2026 23:42
@sisuresh
sisuresh marked this pull request as ready for review November 4, 2026 17:07
Copilot AI balanced review requested due to automatic review settings November 4, 2026 17:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Both integration workflows export protocol 30 instead of the Dockerfile-enabled protocol 31, causing them to test the wrong protocol version.

1 open issue
What changed in this PR

This PR aims to keep RPC and Horizon integration tests aligned with Core’s next protocol without manually updating hardcoded versions.

Changes:

  • Add jobs that extract a protocol version from ProtocolVersion.h and pass it to the integration workflows.
  • Switch Horizon’s RPC Docker image from 29.0.0 to latest.
File Description
.github/​workflows/​rpc.yml Derives the RPC test protocol from Core’s header.
.github/​workflows/​horizon.yml Derives the Horizon test protocol and updates the RPC image tag.

Review effort: Balanced

Comment thread .github/workflows/rpc.yml Resolved
anupsdf
anupsdf previously approved these changes Nov 4, 2026
Comment thread .github/workflows/horizon.yml Resolved
@sisuresh
sisuresh enabled auto-merge November 4, 2026 18:20
Derive the protocol from MAX_SUPPORTED_PROTOCOL_VERSION + 1 in src/util/ProtocolVersion.h instead of hardcoding it, since the test build enables next. Skip Horizon's stellar-rpc tests, as no released RPC image supports the next protocol.
@sisuresh
sisuresh added this pull request to the merge queue Nov 5, 2026
Merged via the queue into stellar:master with commit 362dbc5 Nov 5, 2026
63 checks passed
@sisuresh
sisuresh deleted the rpc-protocol-from-config branch November 5, 2026 19:19
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.

4 participants