Repository navigation
Run the RPC and Horizon integration tests at core's next protocol - #5477
Merged
Merged
Conversation
Shaptic
approved these changes
Oct 2, 2026
Contributor
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
force-pushed
the
rpc-protocol-from-config
branch
2 times, most recently
from
November 3, 2026 23:42
a5d45ba to
5283272
Compare
sisuresh
marked this pull request as ready for review
November 4, 2026 17:07
Contributor
There was a problem hiding this comment.
🟡 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.hand pass it to the integration workflows. - Switch Horizon’s RPC Docker image from
29.0.0tolatest.
| 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
anupsdf
previously approved these changes
Nov 4, 2026
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
force-pushed
the
rpc-protocol-from-config
branch
from
November 4, 2026 22:54
5283272 to
97951ff
Compare
anupsdf
approved these changes
Nov 5, 2026
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.

The RPC and Horizon integration tests build core with next enabled, so derive their protocol from
MAX_SUPPORTED_PROTOCOL_VERSION + 1instead 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.