sessions: add replay consistency harness for session memory summary#177
Open
xiaoyvhuv wants to merge 1 commit into
Open
sessions: add replay consistency harness for session memory summary#177xiaoyvhuv wants to merge 1 commit into
xiaoyvhuv wants to merge 1 commit into
Conversation
This change adds a test-side replay consistency harness for Session, Memory, and Summary behavior across InMemory, SQLite, SQL URL, and Redis backends. It includes deterministic replay cases, canonical snapshots, semantic oracle checks, mutation detection, restart validation, structured JSON reports, and env-gated integration tests. Fixes trpc-group#89 RELEASE NOTES: NONE
|
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
Author
|
I have read the CLA Document and I hereby sign the CLA |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #177 +/- ##
==========================================
Coverage ? 87.58815%
==========================================
Files ? 467
Lines ? 44103
Branches ? 0
==========================================
Hits ? 38629
Misses ? 5474
Partials ? 0 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Author
|
recheck |
Author
|
I have read the CLA Document and I hereby sign the CLA |
Rook1ex
added a commit
to trpc-group/cla-database
that referenced
this pull request
Jul 13, 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.
概述
本 PR 实现了 Issue #89 所需的 Session / Memory / Summary 多后端 replay 一致性测试框架。
该实现默认走轻量、确定性测试路径,覆盖:
本 PR 不引入生产依赖,不修改存储 schema,也不修改公开运行时 API,主要通过测试侧 harness 完成验证。
Fixes #89
主要改动
Replay 一致性测试框架
新增
tests/sessions/replay_consistency/,包含:allowed_diff规则默认覆盖范围
默认 lightweight 测试覆盖:
同时加入 replay case manifest 和 acceptance matrix,让覆盖范围可审查、可追踪。
Summary 专项缺陷检测
本 PR 明确覆盖 Issue 要求的 summary 缺陷类型:
这些缺陷通过 mutation tests 和 semantic diff 自动验证。
可选集成测试
Redis 和 SQL URL 集成测试默认不运行,只有显式配置环境变量时才启用。
Redis: