Skip to content

Redis key layout fixture as the SDK contract - #126

Merged
bpapillon merged 1 commit into
mainfrom
redis-key-layout-fixture
Sep 6, 2026
Merged

Redis key layout fixture as the SDK contract#126
bpapillon merged 1 commit into
mainfrom
redis-key-layout-fixture

Conversation

@bpapillon

@bpapillon bpapillon commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

The C# and Ruby SDKs doubled the schematic: prefix on every replicator lookup (SCH-7070); nothing on either side tested the key layout as a contract.

  • testdata/redis_key_layout.json: the keys the replicator writes, with <VERSION> for the rules engine cache version.
  • TestRedisKeyLayoutMatchesFixture: the builders in cache.go must produce exactly those keys.
  • README: documents the layout and that the prefix is not configurable.

SDK repos copy the fixture into their unit tests (Node and Python PRs alongside; Go, Java, Ruby and C# already assert their layouts after #182/#53).

The C# and Ruby SDKs doubled the schematic: prefix for over a year
without a test on either side noticing (SCH-7070). Put the key layout
in a fixture the replicator tests against and the SDK unit tests copy,
and document the layout in the README.
@bpapillon
bpapillon merged commit bad4d8f into main Sep 6, 2026
2 checks passed
@bpapillon
bpapillon deleted the redis-key-layout-fixture branch September 6, 2026 05:02
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.

2 participants