Repository navigation
test: add Windows codex overlay MCP-registration check (#686) - #688
Conversation
Headless, key-free verification for the real-machine gap in #686: confirm that codex accepts the <CODEX_HOME>-bili overlay produced by `bili codex` and registers the bili MCP server, on a hosted Windows runner. Uses `codex mcp list` (reads config.toml only, never calls a model) so no E2E_UPSTREAM_* secrets are needed. Refs #686
📦 Built Package ArtifactBranch: Option A — Install from npm PR tag (recommended)npm install -g billion-context@pr-688Each push to this PR publishes a new version under the Option B — Download artifact
tar xzf billion-context-pr688.tgz
npm install -g packageThis comment is automatically updated on each push. |
The verify script invokes 'bili' by bare name, but a workspace-local node_modules/.bin/bili is not on the GitHub Actions runner PATH (only 'npm run' scripts get it). Without a global link the prerequisite check exited 2 (MISSING) every time and continue-on-error masked it as a pass. Link the just-built package globally; dist is self-contained so this needs no extra fetch.
[bot] 🏷 Reviewed PR #688 against its actual base ( Pre-flight claims verified (they hold up):
Found one functional bug (fixed directly on the branch): the workflow builds the local package but never installs it globally, so Fix: added a Kept as-is (intentional): Minor, non-blocking: the verify step shells out to Not merging — that's your call. With the PATH fix in, the job should now actually exercise the overlay instead of silently no-op'ing. 中文摘要: 修复了 Windows CI job 找不到 |
|
是否真的e2e? |
[bot] 🏷 分两层看,答案是「是,但只到它声称的那一层」。 这一层是真端到端(全程无 mock): 但它不是「完整对话回路」意义上的 e2e(这是刻意设计,不是缺陷):
若想把它推得更接近真 e2e(可选,超出本 PR 范围,你拍板): 一句话: 对「MCP 注册/配置接受」是真 e2e;对「模型回路 + 会话绑定」不是(后者靠 ubuntu e2e + 真机人工兜底)。 |
What
Adds a
windows-latestCI job +scripts/windows-codex-mcp-check.ps1that closes the real-machine gap in #686: it confirms thatcodexaccepts the<CODEX_HOME>-bilioverlay produced bybili codexand registers thebiliMCP server from it.Why headless / key-free
bili codex mcp liststarts the proxy, pointsCODEX_HOMEat the generated overlay (win32), and forwardsmcp listto codex.codex mcp listonly readsconfig.tomland enumerates MCP servers -- it never calls a model -- so noE2E_UPSTREAM_*secrets are required. The existing secret-backed ubuntu e2e (ci-e2e.yml) still covers the full model round-trip; this adds the Windows MCP-registration layer for free.How the script verifies
2>$nulldrops bili's own stderr log lines), so bili's own "injecting native bili MCP tools" line cannot cause a false positive.mcp listshowsbili; soft check =mcp get bilishowsBILI_MCP_PROXY.Pre-flight (run here, on Linux)
typecheckclean,buildsuccess,tests/launcher.test.ts109/109 pass (includes fix: deliver codex MCP server via CODEX_HOME overlay on Windows (#681) #683's overlay tests).planClientSpawn/quoteWinToken/buildWindowsCommandLineall present insrc/launcher.ts).codexharness provedbili codex mcp listboots the proxy with no upstream/key, forwardsmcp list, and setsHTTPS_PROXY; the win32CODEX_HOME=<overlay>env-patch was proven separately by driving the realprepareCodexHome.tomllibconfirmed the deliveredconfig.tomlis valid TOML even for a spacedC:\Program Files\...node path (the [bug] Windows: codex MCP injection -c value loses its quotes through cmd.exe when node lives under a spaced path #681 crux) with exactly one[mcp_servers.bili]block.Review note
The verify step uses
continue-on-error: truedeliberately until one clean run proves codex boots unauthenticated onwindows-latest(this agent runs on Linux and could not drive real Windows/codex). The transcript artifact shows exactly what happened so it can be flipped to a hard gate with confidence. This does not close #686 -- the interactive/compress-tool + concurrent-window acceptance items still need a human on a real box (step-by-step instructions posted in the issue thread).Refs #686
中文摘要:新增一个
windows-latest的无密钥 CI job(用codex mcp list,只读配置、不调模型)来自动化验证"真机 codex 接受 CODEX_HOME overlay 并注册 bili MCP server"这一 #686 缺口;本机已验证 typecheck/build/launcher 测试全绿、空格路径产出合法 TOML、无需上游即可启动代理并转发mcp list;verify 步骤暂设continue-on-error,待一次干净运行后转硬门禁,供你评审拍板。