test: add replay consistency framework for session and memory#222
test: add replay consistency framework for session and memory#222FSJGDJ wants to merge 2 commits into
Conversation
AI Code Review我已经完成了审查,以下是审查结论。 发现的问题🚨 Critical
|
| ) | ||
|
|
||
|
|
||
| async def test_replay_cases_are_consistent_across_backends(): |
There was a problem hiding this comment.
duplicate_or_recovery 用例跨后端不稳定且命名与断言不匹配
duplicate_or_recovery 用例对时间戳严格单调且唯一存在隐性强依赖但未断言,存在 flaky 风险;且该用例实际不验证“重复事件被正确去重/保留”语义,用例名与断言内容不匹配,属于测试有效性问题。建议显式校验同作者同文本事件顺序,或改用更可区分的文本。
There was a problem hiding this comment.
已在提交 b362a13 中修复。现在每个测试用例都会在执行时生成新的回放时间戳,避免模块加载时间戳过期导致测试不稳定。同时增加了明确断言,用于验证两个重复事件均被保留、顺序正确,并且具有不同的事件 ID。
|
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #222 +/- ##
==========================================
Coverage ? 87.91873%
==========================================
Files ? 479
Lines ? 44987
Branches ? 0
==========================================
Hits ? 39552
Misses ? 5435
Partials ? 0 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
I have read the CLA Document and I hereby sign the CLA |
Summary
limit=0semanticsTesting
git diff --checkpassedCloses #89