Repository navigation
fix(tests): resolve shell, debug, tree and run regressions - #2437
Merged
xiaoyumuxi merged 2 commits intoNov 26, 2026
Merged
Conversation
30 of 36 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
关联 Issue / Linked issue
PR 类型 / Type
改动说明 / What changes
背景 / Why
本地和 CI 的四项测试失败分别来自真实注册表污染、Windows 等价路径直接比较、上限测试夹具的原生读取成本,以及运行会话聚合后的旧控件选择方式。本 PR 一次修复这四项测试边界,保留生产实现、真实集成和原有业务断言。
改动 / Changes
stubCygwinRegistry(t, nil)隔离;注册表优先级专门测试继续保留,不修改用户注册表/,Go 临时路径使用\\,可执行入口和FICTIONAL_VM_HOME直接比较失败filepath.Clean比较;参数顺序继续严格比较,完整 run/start、适配器暂停与停止流程保留;失败逐字段报告,不转储完整 EnvironmentTest run控件不在本 PR 范围内 / Out of scope
无生产行为、Core/Viva 固定版本、插件契约、UI 布局、发布流程或等待预算变化。#2427(折行绘制)、#2436(工作台等待)及 #2420(彩虹功能)继续独立;本分支从最新 main 创建,不夹带上述功能提交。
类型专属:fix
复现与根因
upstream/main 14a4bb241、默认 Coree8927412和 Viva448b0553:四个原测试全部复现失败,未用本地依赖覆盖。818cdd428,不把该边界冒充首次引入提交;[Bug] Windows 调试运行时测试直接比较路径字符串,等价分隔符导致误报失败 #2432 路径字符串断言由317dc8c100保留;[Bug] macOS/Linux 运行面板折叠测试在切回首个会话时找不到 Test run 控件 #2434 的旧选择断言来自a4b960dbb,feat(workbench): aggregate plugin run sessions, fold tree details, and support horizontal console scroll #2426 聚合结构改变后失效。检查项
filepath.Clean使用当前 OS 语义,不把 Unix 反斜杠当分隔符。共享执行树测试覆盖两端同一实现。.agents/notes/implemented/testing/2026-11-08-viva-go-test-timing.md补防回归边界;本次不改变生产行为约束,不另建重复 Note。范围检查 / Scope checks
功能矩阵 / Feature matrix
file-explorer、run-window-execution-tabs的验证方法,描述现在真实执行的回归;不提升平台验收状态,不提交生成视图。插件归属 / Plugin ownership
UI 验证 / UI evidence
N/A:生产布局、样式、文案和输入实现均未改动;测试经 Viva 无头真实控件点击验证现有行为。
统一日志系统 / Structured logging
N/A:无生产日志或失败终态变化;仅将测试的启动计划诊断拆成必要字段,避免完整环境转储。旧生产日志门禁未恢复,不记为通过。
界面文案 / i18n
逻辑归属 / Logic placement
N/A:只修复测试边界,不新增或迁移业务规则。
性能与内存 / Performance and memory
设置 / Settings
N/A:无设置实现或配置来源变化;原测试的持久化与重开校验保留。
插件契约 / Plugin contract
N/A:无契约、SDK、宿主方法或依赖固定版本变化。
发行包与资源 / Bundle and resources
N/A:无运行时资源或发行路径变化;本机缺少 zsh,资源只读脚本交由标准 CI,不宣称本地运行。
无用代码与重构 / Dead code and refactoring
验证 / Verification
-tags dev -count=3 -timeout=90s-race -tags dev -count=1 -timeout=120s:Windows shell 发现、目标调试、树展开与目录取消、运行窗口desktop-go.sh vet -tags dev ./internal/localshell ./internal/workbenchdesktop-go.sh test -count=1 -timeout=120s ./internal/localshell计时 HTML/JUnit:本地
.artifacts/fix-2431-2434/timing.html、timing.junit.xml;63 项通过结果的父子测试耗时不叠加为墙钟时间。3 项原有跳过分别是需要 Unix shell 的打开终端、Unix 反斜杠文件名、非递归平台的目录监听上限;本 PR 未增加跳过。未能执行的检查和原因: 本机为物理 Windows 11 amd64,非 Parallels、无架构仿真;本地 macOS/Linux 与原生产品窗口未运行。修复对象是测试,定向结果不等于完整工作台或发布流程验收。Go 静态稳定性扫描明确 N/A,已人工检查同步、等待与清理,并执行实际计时和竞态。
提交前确认 / Final checks
upstream/main 14a4bb241创建,目标 main。