Repository navigation
test(sql): cover truncate lifecycle waits and cancellation - #29827
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
484e3d5 to
cbc8010
Compare
|
mo-bot review · Commit: Assessment: approve 完整审查三个文件的测试增量及相关生产调用链,未发现需修改的问题。测试覆盖具体 TRUNCATE 入口的等待、取消、保留所有者 FastFail、等待记录清理,以及真实 SQL 执行后的数据结果;与现有 admission 设计一致。 Model: Session: Validation:
Limitations:
|
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: cbc8010e5c1a1e2ea8115f2d0dc1f240cb45cbc0
Assessment: approve
完整审查三个文件的测试增量及相关生产调用链,未发现需修改的问题。测试覆盖具体 TRUNCATE 入口的等待、取消、保留所有者 FastFail、等待记录清理,以及真实 SQL 执行后的数据结果;与现有 admission 设计一致。
Model: gpt-6-astra / xhigh
Session: 01a12d8f-7dea-77c2-a565-38d45b5564e4 · slot 0 · generation 0
Validation:
-
审查全部 +157 行:Go 测试 109 行、SQL 23 行、预期结果 25 行;无生产代码或文档修改,源码工作区保持干净。
-
确认索引表触发 broad admission;核对通道同步、context 传播、worker 退出、资源释放及三个错误结果断言。BVT 使用现有 @wait 协调,检查目标表、无关数据库和清理操作。
-
复用当前 HEAD 的成功构建、Ubuntu/x86 UT、Linux/arm64 SCA、覆盖率及 PROXY/PESSIMISTIC 多 CN BVT 记录。
-
冻结作者报告提供完整 compile 包测试、新 UT race 100 次、相关集成测试及新 BVT 两次各 17/17 的通过记录。本次未重复运行 native 测试。
-
冻结证据无待闭环的人工评论;详细审查记录已保存至 review-evidence.json。
Limitations:
-
未提供关联 issue #29814 全文;需求核对依据冻结 PR 描述、仓库设计文档及现有实现。
-
冻结证据未包含原始逐测试日志;运行结果分别归因于 CI 状态和作者报告,并非本地复跑。
-
新 UT 在 gate 释放后返回测试哨兵错误,验证 admission 边界;成功完成 TRUNCATE 的证明来自 BVT 和现有集成测试。
Merge Queue Status
This pull request spent 19 minutes 1 second in the queue, with no time running CI. ReasonPull request #29827 has been dequeued Pull request from fork cannot be queued. This pull request comes from a fork, and Mergify needs the author's permission to update its branch.
HintYou should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it. Waiting for any of
All conditions
Tick the box to put this pull request back in the merge queue (same as
|
What type of PR is this?
Which issue(s) this PR fixes:
Related to #29814; the production fix is already included in #29837.
What this PR does / why we need it:
Add regression coverage for TRUNCATE lifecycle admission. The implementation on main already lets fresh owners wait, retains FastFail for existing-owner upgrades, and uses scalar admission where eligible.
Validation after rebasing onto main (
035a5b61ba):pkg/sql/compiletests passed.TestTruncateLifecycleRCWaitPolicypassed 100 repetitions under race.TestIssue29400CopyAlterRetainedGatePromotionFastFailspassed normally, under race, and with atomic coverage instrumentation ofpkg/sql/compileandpkg/tests/issues.