Skip to content

docs(test): 记录 gemini-cli pin bump 前需复验 GITHUB_SHA 空串绕过脱敏 - #2591

Merged
deepcoldy merged 2 commits into
masterfrom
docs/gemini-pin-bump-note
Oct 30, 2026
Merged

deepcoldy merged 2 commits into
masterfrom
docs/gemini-pin-bump-note

Conversation

@deepcoldy

Copy link
Copy Markdown
Owner

改动

在 docs/plans/2026-10-20-test-seam-backlog.md 末尾新增「非 seam 类、动到对应文件时顺手做」一节,记录一条后续事项:

  • scripts/run-e2e.ts 的 mockCliEnv('gemini') 用 GITHUB_SHA: '' 关闭 gemini-cli shell 工具的严格环境脱敏,依赖上游真值判定 !!processEnv.GITHUB_SHA(0.65.0)。若上游改为键存在判定,空串失效,core-clis 的 Gemini 用例会变红(无 ACK 气泡)。升级 gemini-cli 版本钉时需先复验,并顺手把 master 上模糊的「GITHUB_SHA set」注释改清楚。
  • 附根治方向:mockCliEnv 当前是模块内私有函数,export 后可加「gemini 返回恰好这 5 个键」的单测,比注释更抗腐烂。

背景

#2579(修复 Gemini 跑道环境脱敏)的功能性改动已由 #2563 等价带入 master(48967156d,返回对象 5 键逐字相同),#2579 因此关闭。评审约定唯一后续项不留在已关闭 PR 的评论里(会沉底、没人翻),而放进这份「动到对应代码时顺手补」的清单——它的触发条件正是「有人升级 gemini-cli pin」。

纯文档,4 行,不改任何代码。

🤖 Generated with Claude Code

#2579 的修复经 #2563 等价带入 master;唯一后续项(上游若把真值判定改成键
存在判定,空串失效会让 core-clis Gemini 用例变红)转入本待办清单,
触发条件写成升级 gemini-cli pin 时必读,而非留在已关闭 PR 的评论里。

Co-Authored-By: Claude Code <[email protected]>
复审指出 scripts/run-e2e.ts 是带顶层副作用的脚本,直接 import 会真跑整套
Midscene 跑道、改 MIDSCENE_RUN_DIR 并扫调定时任务;把根治方式改为先把
mockCliEnv 抽到无副作用的独立模块再单测。复验触发点补上 grep 判定形态
的具体命令。

Co-Authored-By: Claude Code <[email protected]>
@github-actions

Copy link
Copy Markdown

@deepcoldy 合入 master 后的 Midscene E2E 失败:Feishu live Midscene 失败。

这次运行覆盖 89a9cea…22d1c8d0b(20 个提交),同批合入的还有 #2546 #2556 #2589 #2545 #2538 #2595 #2596 #2597 #2581 #2539 #2598 #2515 #2536 #2575 #2366 #2606 #2544 #2593 #2603,失败不一定由本 PR 引起。

用例 跑道 状态 失败信息
Kimi basic bot flow feishu-core-clis failed waitFor timeout: Based on the screenshot, the middle column displays a welcome message "欢迎加入群组" (Welcome to the group) and system notifications about group creation and settings, rather than a list o…
Gemini basic bot flow feishu-core-clis failed waitFor timeout: Based on the screenshot, the main content area displays a topic conversation. I can see messages from "Gemini".
Codex DM chat mode replies inline and keeps one session feishu-core-dm-modes-codex failed Feishu Messenger chat list did not load after 4 attempts (URL: https://acn2e4mfbjx2.feishu.cn/next/messenger/, title: 消息 - 飞书). A login redirect means the saved storage state expired; a skeleton list…

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown

🚀 Released in v3.56.0

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