Skip to content

test(mcp): 分离进程启动与请求超时预算 - #2

Merged
ceastld merged 1 commit into
mainfrom
codex/ci-startup
Sep 6, 2026
Merged

ceastld merged 1 commit into
mainfrom
codex/ci-startup

Conversation

@ceastld

@ceastld ceastld commented Sep 6, 2026

Copy link
Copy Markdown
Collaborator

PR #1 合并后的 Windows CI 首个 -Check 测试在 PowerShell 子进程完成前触发 10 秒外层超时,后续 15 项正常。首进程启动与测试收取结果共用的预算过紧,且请求超时用例原先把 PowerShell 启动耗时也计入请求期限。

  • 将测试侧等待子进程/协议输出的上限统一为 30 秒,仍有界等待。
  • 超时用例先通过一次 fixture 请求确认转接已就绪,再测量 1 秒 HTTP 超时;保留 6 秒完成上限、未知写入状态及不重试断言,核对只收到就绪与目标请求各一次。
  • 仅修改测试,插件传输与安装包不变。

验证:Windows 本地 python -m unittest discover -s tests -v 全部 16 项通过;git diff --check 通过。合入后继续确认主线 push CI。

对应失败:PR #1 合并后 CI。

@ceastld
ceastld merged commit 89ad50b into main Sep 6, 2026
1 check passed
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