Skip to content

自检/e2e 脚本在无 DeepSeek key 环境误报失败(engine-e2e-smoke 白等 180s) #22

Closed

Description

@Nicholas023

来源:本次自审(2026-10-20 全仓扫描,报告 dsh-code-review-042913.725.md)发现;评测站体验快测(2026-10-19)亦记录过:只用第三方 provider/无 DEEPSEEK_API_KEY 的机器上自检/e2e 误报失败。

现象:

  • scripts/engine-e2e-smoke.mjs:114-118【bug·high】key 解析失败(凭据文件缺失或正则未命中)时,仍构造 OCR_LLM_TOKEN: key(即字符串 'undefined')并 spawn 引擎,白等 180s 后必然认证失败——CI 时间浪费 + 失败信息误导。
  • scripts/sensitive-e2e-smoke.mjs:105-106【bug·high】engine-output-leak 断言嵌套在 candidates.length > 0 内,reviewOnce 静默失败时跳过断言,漏检。

影响:使用非 DeepSeek 通道(如联通 GLM / 本地模型)的机器跑 npm run selfcheck/e2e 会误报失败;掩盖真实断言结果。

待修方向:① engine-e2e-smoke 在 key 缺失时 short-circuit 跳过引擎调用并明确提示;② sensitive-e2e-smoke 断言不依赖前置成功、reviewOnce 失败也执行断言并归因。

Activity

  1. self-assigned this
    on Oct 19, 2026
  2. Nicholas023 commented on Oct 20, 2026

    @Nicholas023
    OwnerAuthor

    修复已合并:PR #29(整合方案,main@9e74866,4 个 fix commit)。已核合并内容与实现一致(lead 实测 diff + worktree 源码)。

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions