Skip to content

fix: preserve typed query errors without duplicate wrapping - #242

Merged
codeasier merged 2 commits into
mainfrom
fix/240-query-error-wrapping
Oct 11, 2026
Merged

codeasier merged 2 commits into
mainfrom
fix/240-query-error-wrapping

Conversation

@codeasier

Copy link
Copy Markdown
Owner

范围

对应 #240 的错误包装子项,不关闭整个 issue。

QueryExecutor.execute/count 直接透传已经归类的 QueryExecutionError,包括 timeout 子类;未知异常仍包装一次。避免普通 source read 的预算错误多出一层前缀,保留 ATTACH/scratch/output 路径的领域消息、类型和 cause。

不使用字符串删除前缀,不修改公共预算配置、leak 或 unproved 身份。

验证

基线 main ffa71df0ddf0fb5f17a904f4092898a27287d21e;审核 tree f670e950d5deaaea6f1982cf811be01d96b1555b。

  • focused 108 passed;query/service/API/CLI regression 768 passed,2 intentional unsupported slice-leak skips。
  • fixture provenance 7 passed;独立审查另运行 115 tests passed,无阻塞发现。
  • 覆盖 source/ATTACH/scratch/output 的行与字节预算、重复包装、timeout 类型、失败后的连接复用、无部分输出、service/API/report 及 CLI text/JSON 的非零退出与一致消息。
  • Ruff、Black、git diff --check 通过;basedpyright 0 errors(既存 warnings);Python 3.10 语法检查通过。

本地为针对性与扩展回归,不宣称全套测试已执行;远端完整 CI 将跟踪到终态。保留草稿,不自动合并。

Copy link
Copy Markdown
Owner Author

检视结论:approve

对照 #240 错误包装子项:透传已归类 QueryExecutionError(含 timeout);未知异常仍包一层;非字符串削前缀——符合约定。executor.py 分支已核对。

复测:108 passed;gates OK。本评论不 approve/merge。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant