Repository navigation
fix(rueidiscompatmock): make Cache() mockable via the expectation queue #1023
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
rueian
merged 11 commits into
redis:main
from
SomSamantray:fix/rueidiscompatmock-cache-mock
Aug 24, 2026
+547
−21
Merged
Changes from 4 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
ad22346
fix(rueidiscompatmock): make Cache() commands mockable through the ex…
SomSamantray 0045d5f
docs(rueidiscompatmock): document client-side caching mocking
SomSamantray 0e6a3b7
docs(review): record residual review findings
SomSamantray fbf92e2
refactor(rueidiscompatmock): reuse wantAnyErr helper in cache tests
SomSamantray f26ebd0
chore: remove review-tooling artifact from PR (#1023)
SomSamantray 59eaff3
feat(rueidiscompatmock): add ViaCache() to differentiate cached expec…
814612f
fix(rueidiscompatmock): unordered mode must prefer cache-specific exp…
3852a76
fix(rueidiscompatmock): require ViaCache() symmetrically for cache-ro…
SomSamantray 5efc25d
docs(rueidiscompatmock): fix stale ViaCache() doc comment
SomSamantray a6410a9
fix(rueidiscompatmock): distinguish cache-origin in unmatched-expecta…
SomSamantray def365b
Update rueidiscompatmock/viacache.go
rueian File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| ## Residual Review Findings | ||
|
|
||
| - **P2** — `rueidiscompatmock/adapter.go:567` — Repeated in-TTL cached reads diverge from real client-side caching: the DoCache stub is always-miss — filed: https://github.com/redis/rueidis/issues/1022 | ||
|
|
||
| --- | ||
|
|
||
| Source run context: | ||
| - Review run: ce-code-review run-id `20260816-094523-053cdd06` (artifact dir `/tmp/compound-engineering-501/ce-code-review/20260816-094523-053cdd06`) | ||
| - Branch: `fix/rueidiscompatmock-cache-mock` @ `0045d5f` | ||
| - Plan: `docs/plans/2026-08-16-002-rueidiscompatmock-cache-mock-plan.md` | ||
| - Finding type: `settled_conflict` — stamped against KTD2 (Ignore the TTL argument in matching; session-settled). Report-only: the alternative arm (in-memory TTL cache in the stub) is the rejected alternative and is not applied; the compatible arm (document the always-miss divergence) is the ticket's suggested fix. | ||
| - Owner: human (advisory-grade; not in the downstream-resolver actionable queue) | ||
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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.