Skip to content

ci: 增加 HTTP/MCP 搜索可用性验证与 Actions 报告 - #3

Merged
NetLops merged 1 commit into
mainfrom
ci/program-availability
Oct 16, 2026
Merged

NetLops merged 1 commit into
mainfrom
ci/program-availability

Conversation

@NetLops

@NetLops NetLops commented Oct 15, 2026 •

Copy link
Copy Markdown
Owner

现有 Docker CI 仅检查 HTTP 缺少参数和 MCP 握手,无法判断 /search 或 MCP web_search 是否工作,也可能把空搜索结果误当作服务可用。

此 PR 扩展现有 Docker Actions workflow:

  • PR 默认检查 HTTP 400/404/405、MCP 握手/发现/ping、通知、错误输入及无效 JSON 后恢复。
  • 使用仅限 CI 的 Compose override 让搜索上游立即不可达,验证 HTTP/MCP 搜索调用、空结果降级,以及中文和特殊字符查询的处理,避免公共搜索引擎抖动影响 PR。
  • 手动运行默认开启真实搜索,要求 HTTP 和 MCP 均返回非空结果,检查字段、URL 和引擎名称;空结果或超时会使检查失败。
  • 上传 JSON 检查报告和容器日志,并在 Actions summary 展示结果。补充运行和复现说明。

应用代码、依赖和发布/部署行为均未修改。

验证结果(提交 1be9f2a,应用代码与当前 main 一致):

  • 默认 PR Actions:成功。镜像构建、六组离线检查、报告上传、容器清理均完成;真实搜索按设计跳过。
  • 真实搜索 Actions:成功。离线检查通过后恢复正常网络,HTTP /search 和 MCP web_search 均返回有效且非空的结果。
  • 本地六组离线功能检查通过;负向验证确认真实搜索模式遇到空结果会失败;Compose 配置与 diff 检查通过。

每次运行的 JSON 报告和容器日志保存在对应 availability-<run-id> artifact 中。当前云机器下载 artifact 被网络代理拒绝,未在这里报告具体结果条数;上述结论依据已完成的 Actions step 状态和检查器的严格断言。

真实搜索通过表示本次查询在 GitHub runner 上两种接口均可用,不代表三个引擎全部可用,也不保证其他网络环境始终可用。

@NetLops
NetLops marked this pull request as ready for review October 15, 2026 01:47
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-15T01:51:22.196748Z 1be9f2a Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1be9f2ac35

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/docker.yml Resolved
@NetLops
NetLops merged commit 6433406 into main Oct 16, 2026
3 checks 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