Skip to content

ci: temporarily pause previous e2e gates - #5309

Merged
RealKai42 merged 1 commit into
mainfrom
ci/temporary-e2e-pause
Nov 23, 2026
Merged

RealKai42 merged 1 commit into
mainfrom
ci/temporary-e2e-pause

Conversation

@RealKai42

Copy link
Copy Markdown
Collaborator

Requirement or Bug

Related to #5304.

新的跨端 E2E 套件已经开始落地,旧 E2E / Layered QA 需要在迁移期间暂时退出自动 CI,避免两套入口重复运行。这个 PR 保留所有旧测试、工作流和本地命令,只暂停指定自动入口;KAP Server 测试与 tests/scenarios 的自动覆盖继续保留,新 tests/e2e 套件也不受影响。

Bug Reproduction Steps

N/A

Root Cause

N/A

Code Changes

核心思路是“停用入口,不删除覆盖”:旧独立工作流保留手动 dispatch,主 CI 用临时条件跳过指定步骤,普通 Vitest 分片只排除旧 TUI 与客户端重连子进程测试。恢复时只需还原文档中保留的触发器和临时条件。

自动 CI
├── 新 tests/e2e / e2e.yml
│   └── PR 自动运行:保持不变
├── 主 CI 普通 Vitest 分片
│   ├── packages/kap-server/test/**:保持运行
│   ├── tests/scenarios/**:保持运行
│   ├── apps/kimi-code/test/e2e/tui/**:暂时排除
│   └── packages/app-core/test/reconnect/**:暂时排除
├── 主 CI build / L0
│   ├── built CLI TUI/KAP 子进程旅程:暂时跳过
│   └── L0 protected tests 汇总:暂时跳过
└── 旧独立工作流
    ├── Desktop E2E:仅手动触发
    ├── E2E smoke:仅手动触发
    └── Layered QA:仅手动触发

这样处理是因为 KAP 契约与场景仍需在迁移期间防止回归,而旧 Desktop/TUI 旅程和跨平台 QA 可以按需手动运行,而不是永久失去覆盖。

阅读顺序:

  • .github/workflows/ci.yml:查看普通分片保留与排除的边界,以及两个临时跳过条件。
  • .github/workflows/{desktop-e2e,e2e-smoke,layered-qa}.yml:查看保留为注释的原自动触发器;job、步骤和产物配置均未删除。
  • tests/AGENTS.md:查看临时状态及下文恢复后行为的说明。

Behavior Changes and Affected Users

本 PR 不改变 CLI、Desktop、Web、VS Code、ACP 或 SDK 的运行时行为,也不修改公开契约。受影响的是依赖旧自动 CI 的维护者与贡献者:

行为 修改前 修改后 依赖旧行为的人 临时入口 / 恢复方式
Desktop E2E PR、main push、夜间自动运行;包含 quarantine 与 main 失败跟踪 仅手动 dispatch 依赖 Electron 旅程、隔离用例和跟踪 issue 的 Desktop 维护者 手动运行 Desktop E2E;本地 pnpm --filter kimi-code-app run e2e:headless;恢复注释的触发器
E2E smoke PR、main push、merge group 自动运行 macOS L0 smoke 仅手动 dispatch 依赖四层 smoke 与 merge-group 门禁的维护者 手动运行 E2E smoke;本地 pnpm test:smoke;恢复注释的触发器
Layered QA 路径匹配的 PR 与夜间在 Linux、macOS、Windows 运行,并记录 history performance 仅手动 dispatch 依赖跨平台契约、冷恢复和性能历史的人员 手动运行 Layered QA;本地 pnpm qa:layers、pnpm qa:history-perf;恢复注释的触发器
built CLI 子进程旅程 主 CI build 后以 TESTKIT_CLI_BUILD=dist 跑旧 TUI 与冷恢复 暂时跳过 依赖发布产物 E2E 验证的 CLI/发布维护者 本地构建后以相同环境变量运行原命令;移除步骤的 if: false
L0 protected tests 汇总 汇总 5 个分片结果,执行 base 清单和首次通过门禁 暂时跳过;普通分片仍记录并上传结果 依赖 L0 ID 与首次通过门禁的维护者 移除 && false 恢复汇总;本地仍可使用原 L0 结果检查命令
旧 TUI 与客户端重连测试 主 CI 普通分片自动运行 普通分片暂时排除 依赖旧 TUI 旅程和 app-core 重启重连覆盖的人员 本地 pnpm exec vitest run apps/kimi-code/test/e2e/tui packages/app-core/test/reconnect;移除两个 --exclude
KAP Server 与 scenarios 主 CI 普通分片自动运行 继续自动运行,不作排除 依赖 KAP 契约、会话场景、录制回放和冷恢复的人员 无需恢复;现有 CI 入口不变
新 tests/e2e #5304 的 E2E 工作流在 PR 自动运行 保持自动运行 新跨端 E2E 套件维护者 无需恢复;本 PR 未修改该工作流

验证覆盖:

  • 最终 HEAD 上解析四个修改的工作流,确认旧工作流只有 workflow_dispatch,并确认新 e2e.yml 仍保留 pull_request。
  • 最终 HEAD 上用与主 CI 相同的 --exclude 枚举 Vitest:旧 TUI/reconnect 不再出现;全部 7 个 scenario 测试文件、KAP Server 普通测试及原有 *.e2e.test.ts 仍被选中。
  • pnpm lint 通过,包括 fan-in guard、quarantine、说明文件和新 E2E 边界检查。
  • pnpm run check:duplication d9070b99e1728ab15d758de746f3ed99335535a0 通过。
  • 保留项目组合测试有两条未稳定复现的失败,隔离运行均通过;完整结果如下,未将其写成全绿。
完整测试运行记录

pnpm exec vitest run --reporter=agent tests/scenarios packages/kap-server/test

  • Test Files:76 passed,2 failed(共 78)。
  • Tests:1521 passed,2 failed,1 skipped(共 1524)。
  • tests/scenarios/cold-recovery.test.ts:组合运行时 KAP ready line 等待超过 30 秒;随后隔离运行为 2 passed。
  • packages/kap-server/test/search/searchService.test.ts:组合运行时一个并发刷新断言得到空结果;随后按用例名隔离运行为 1 passed、105 skipped。

本次未修改上述实现或测试,也没有为提高通过率而重试整组测试。

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue (N/A:内部维护者提出的 CI 调整,无对应 issue;相关套件 PR 为 test: add a cross-surface end-to-end suite and run its first scenario on the TUI #5304).
  • I have added tests that prove my feature works (N/A:不新增产品功能;已完成工作流解析和 Vitest 选测验证).
  • The behavior-change table above is complete, and every removed behavior or flipped default is named in the changeset and either has an escape hatch or was explicitly approved by a maintainer in this PR. (CI-only,无需 changeset;所有临时入口均已列出。)
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update. (无用户文档变化;仅同步 tests/AGENTS.md 的临时状态。)

@changeset-bot

changeset-bot Bot commented Nov 23, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 0ddd1c9

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T17:00:56.253467Z 0ddd1c9 PR opened
🔒 Security Review ✅ Completed 2026-11-23T17:04:33.444257Z 0ddd1c9 PR opened
ℹ️ 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.

@pkg-pr-new

pkg-pr-new Bot commented Nov 23, 2026

Copy link
Copy Markdown
pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@0ddd1c9
npx https://pkg.pr.new/@moonshot-ai/kimi-code@0ddd1c9

commit: 0ddd1c9

@RealKai42
RealKai42 merged commit 367ceb3 into main Nov 23, 2026
19 checks passed
@RealKai42
RealKai42 deleted the ci/temporary-e2e-pause branch November 23, 2026 17:02
7723qqq pushed a commit to 7723qqq/kimi-code that referenced this pull request Nov 24, 2026
The fork's release workflow is gated to MoonshotAI with publishing
disabled, and its CI has no desktop-e2e/e2e-smoke/layered-qa workflows;
record MoonshotAI#5277, MoonshotAI#5092, MoonshotAI#5088, MoonshotAI#5084, MoonshotAI#5309 and MoonshotAI#5264 accordingly.
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