feat: Add Big Segments support to the server contract-test service#554
Merged
Conversation
53139f4 to
5836643
Compare
30a59b0 to
2ac1d30
Compare
5836643 to
d9c101f
Compare
2ac1d30 to
dd3d569
Compare
d9c101f to
8ff748b
Compare
dd3d569 to
9bdf697
Compare
8ff748b to
11902fa
Compare
9bdf697 to
c36597c
Compare
c36597c to
410f7e6
Compare
kinyoklion
approved these changes
Jun 17, 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.
Add Big Segments support to the server contract-test service
Lets the shared contract-test harness run its Big Segments suite against the C++ server SDK.
What's in
ContractTestBigSegmentStore: anIBigSegmentStorethat delegatesgetMembership/getMetadatato the harness over HTTP (synchronousrequest/response, mirroring
ContractTestHook's callback wiring).bigSegmentsconfig block in the contract-tests data model ->ConfigBuilder::BigSegments(...)in the entity manager.getBigSegmentStoreStatuscommand ->Client::BigSegmentStoreStatus().big-segmentsadded to the advertised capabilities.No SDK changes here --
bigSegmentsStatusalready serializes into the evaluationreason, so it flows through the existing evaluate path.
Design notes
implementations themselves are tested against real Redis/DynamoDB at the
source-library level separately.
Testing
13 skipped, 0 failed).
server-testsbuilds and advertisesbig-segments.Note
Low Risk
Changes are confined to contract-test infrastructure and data-model JSON types; production SDK behavior is unchanged.
Overview
Adds Big Segments coverage to the C++ server contract-test harness so the shared suite can drive the server SDK end-to-end.
A new
ContractTestBigSegmentStoreimplementsIBigSegmentStoreby synchronously POSTing to harness callback paths (/getMembership,/getMetadata), similar in spirit toContractTestHookbut with request/response semantics required by the store API.The contract data model gains
ConfigBigSegmentsParamsonConfigParams,EntityManagerwires it throughBigSegmentsBuilder(cache, poll interval, stale-after), andClientEntityhandles the newgetBigSegmentStoreStatuscommand viaClient::BigSegmentStoreStatus(). The service advertises thebig-segmentscapability.Reviewed by Cursor Bugbot for commit 913d03b. Bugbot is set up for automated code reviews on this repo. Configure here.