test(bdd): run Rust BDD against iggy-server-ng with VSR#3732
Merged
Conversation
BDD suites only exercised the legacy iggy-server, leaving server-ng (its future replacement) without any BDD coverage. Only the Rust SDK speaks the VSR wire protocol, so the lane is Rust-only for now. Add a --vsr flag to run-bdd-tests.sh backed by a compose overlay that swaps in iggy-server-ng built with --features vsr. server-ng takes no legacy boot flags, reads root credentials from the environment, parses cluster.nodes[*].ip as a strict IpAddr, binds cluster listeners to the roster IP, and requires a tcp_replica consensus port; the overlay pins static node IPs, points healthchecks at the roster address, and supplies the replica ports. leader_redirection now runs a real 2-node VSR cluster instead of the legacy --follower mock. The vsr feature forwards iggy_common/vsr on server-ng and iggy/vsr on the bdd crate; rust-bdd cargo features are parametrized via BDD_RUST_FEATURES so legacy and coverage lanes stay unchanged. CI gains a bdd-rust-vsr task building the vsr binaries.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3732 +/- ##
=============================================
- Coverage 74.35% 28.35% -46.01%
Complexity 950 950
=============================================
Files 1303 1301 -2
Lines 148712 129051 -19661
Branches 124223 104637 -19586
=============================================
- Hits 110579 36592 -73987
- Misses 34658 91367 +56709
+ Partials 3475 1092 -2383
🚀 New features to boost your workflow:
|
numinnex
approved these changes
Jul 23, 2026
mmodzelewski
approved these changes
Jul 23, 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.
BDD suites only exercised the legacy iggy-server, leaving
server-ng (its future replacement) without any BDD coverage.
Only the Rust SDK speaks the VSR wire protocol, so the lane
is Rust-only for now.
Add a --vsr flag to run-bdd-tests.sh backed by a compose
overlay that swaps in iggy-server-ng built with --features
vsr. server-ng takes no legacy boot flags, reads root
credentials from the environment, parses cluster.nodes[*].ip
as a strict IpAddr, binds cluster listeners to the roster IP,
and requires a tcp_replica consensus port; the overlay pins
static node IPs, points healthchecks at the roster address,
and supplies the replica ports. leader_redirection now runs
a real 2-node VSR cluster instead of the legacy --follower
mock.
The vsr feature forwards iggy_common/vsr on server-ng and
iggy/vsr on the bdd crate; rust-bdd cargo features are
parametrized via BDD_RUST_FEATURES so legacy and coverage
lanes stay unchanged. CI gains a bdd-rust-vsr task building
the vsr binaries.