Repository navigation
test: remove redundant and low-value test cases - #4746
Conversation
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review 请只审查本 PR 相对 base 的 diff。若同类问题出现在多处,请在一轮中一次列全。每条发现标注 P0 / P1 / P2;不要报告纯风格或个人偏好问题。 |
commit: |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fcb1485831
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| // Regression tests for the third deep-review round: | ||
| // A) Non-ASCII (multi-byte UTF-8) string keys must work on every surface. | ||
| // B) readOnly open must never mutate the database files (no WAL truncation). | ||
| // Regression tests for non-ASCII keys and read-only WAL recovery. |
There was a problem hiding this comment.
There was a problem hiding this comment.
已采纳。93ce71480f283a15e37e0fb48f3cbbc8fa68d04a 恢复 review-round3.test.ts 的全部非 ASCII 主键覆盖,包括 del、scan/prefix、各类索引、query、batch 和恢复路径。当前 PR 不再修改该文件。
|
@codex review 请增量审查自上一轮评审以来的变更。只审查本 PR 相对 base 的 diff;同类问题一次列全,并标注 P0 / P1 / P2。 |
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
Requirement or Bug
测试套件中存在重复场景、只验证旧实现模拟代码的用例,以及可以合并的细粒度断言。这些内容增加维护成本,但没有增加相应的回归保护。
本 PR 只清理
kimi-code测试,净减少 38 个测试声明,不修改生产代码。配套的桌面端测试清理由 MoonshotAI/kimi-code-app#1210 处理。Bug Reproduction Steps
N/A
Root Cause
N/A
Code Changes
本次按“删除明确重复或低价值用例、合并等价场景、保留边界覆盖”的原则整理 5 个测试文件:
fullCompactionstrategy及现有fullCompaction用例覆盖的重复边界场景isImageLine独立回归文件terminal-image.test.ts重复的超长行和协议场景terminal-image.test.tseditormarkdownterminal-image变更统计为 69 行新增、527 行删除;46 个原测试声明合并为 8 个声明,净减少 38 个。
minidb review-round3的非 ASCII 主键测试完整保留,以覆盖删除、扫描、前缀、索引、查询、批量操作和恢复路径。Behavior Changes and Affected Users
None。本 PR 只修改测试文件,没有修改运行时代码、配置默认值、公开 API、契约文件或用户可见输出,因此不需要 changeset 或文档更新。
受影响模块的验证结果:
pi-tui:1,146 项通过,2 项跳过。fullCompaction/strategy:125 项通过。minidb review-round3:原有 12 项覆盖完整保留,当前 HEAD 的 CI 已通过。git diff --check:通过。先前本地完整 lint 的
tsgolint进程曾被 SIGKILL 中止;当前 HEAD 的 CIlint已通过。Checklist
gen-changesetsskill; this tests-only PR needs no changeset.