Repository navigation
fix(ci): 修复 main Desktop CI 剩余失败 - #2450
Merged
Merged
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
devin-ai-integration
Bot
requested review from
1lck,
Mucheen and
xiaoyumuxi
as code owners
November 26, 2026 14:46
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
There was a problem hiding this comment.
🔍 Devin Review: 1 flag
Not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1lck
approved these changes
Nov 27, 2026
2 tasks done
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
#2448 合入后,main 的 Desktop CI 仍有两类失败:
test-runtime-bundle-immutability.mjs的自测 fixture 没跟上验证脚本新增的 devcontainer 安装包工作流;TestSafeModeRunsNoGitUntilTrusted在测试直接取消信任后可能断言上一帧受信状态的 Commit 窗口,在 Linux 与 Windows main CI 均失败。改动 / Changes
scripts/desktop/verify/test-runtime-bundle-immutability.mjs:自测 fixture 的安装包工作流清单补上desktop/internal/workbench/remote_devcontainer_form_test.go/TestRemoteDevcontainerConfigurationLeavesInstalledPackageUnchanged。desktop/internal/workbench/workspace_trust_test.go:测试直接调用applyProjectTrust后显式触发窗口重绘,再断言 Commit 窗口当前帧;失败输出区分安全模式说明是否显示与变更文件是否仍显示。shared/platform-feature-matrix/features/workspace-trust.json:说明该改动只提高既有安全模式验证的确定性,不改变能力状态。不在本 PR 范围内 / Out of scope
类型专属:fix
复现与根因
cc46ec0bf但未包含本修复的 main 上运行node --test scripts/desktop/verify/test-runtime-bundle-immutability.mjs,fixture 因缺少 devcontainer 工作流条目失败;在 main 或本修复前运行./scripts/desktop/desktop-go.sh test ./internal/workbench -run '^TestSafeModeRunsNoGitUntilTrusted$' -count=30,本地修复前 30 次中 4 次失败,输出the Commit window still lists the changes of an untrusted project。期望:两类测试稳定通过。git log -S或git blame查):cc46ec0bf/ feat(remote): 自动识别容器环境并提供 Dev Container 基础配置表单 #2438 给验证脚本新增 devcontainer 安装包工作流要求时未同步 self-test fixture;TestSafeModeRunsNoGitUntilTrusted直接调用applyProjectTrust,没有经过会触发重绘的窗口输入,异步任务是否碰巧触发重绘决定了断言读到当前帧还是上一帧。检查项
scripts/desktop/verify/test-runtime-bundle-immutability.mjs的requires each listed workflow to keep its installed-package test;desktop/internal/workbench/workspace_trust_test.go修复前输出after withdrawn trust safe mode shown false, change shown true.agents/notes/implemented/bug-fix/记录:只修复测试同步和 fixture 清单,不改变行为约束。范围检查 / Scope checks
功能矩阵 / Feature matrix
shared/platform-feature-matrix/features/workspace-trust.json:两端的实现状态和验证状态、证据路径、owner、验证动作都如实填写;没有运行验证的保持pendingnode scripts/platform-feature-matrix/generate-platform-feature-matrix.mjs --check;改了平台实现路径的,还运行了./scripts/platform-feature-matrix/verify-platform-feature-matrix-change.sh origin/main HEAD.artifacts/下生成的矩阵视图插件归属 / Plugin ownership
develop-lithe第三节“插件归属与宿主零依赖”的自查命令,结果为空(rg无命中,退出码 1)shared/i18n/;插件的构建步骤、资源路径和补丁没有写进docs/ci-builds.md、Agent Note 或 SkillUI 验证 / UI evidence
N/A:没有布局、控件、样式、文案、菜单、弹窗或可见交互状态变化;本 PR 只修正测试读取当前帧的方式。
统一日志系统 / Structured logging
N/A:没有新增或改动产品日志。
界面文案 / i18n
N/A:没有用户可见文案变化。
逻辑归属 / Logic placement
N/A:只同步测试 fixture 和测试重绘等待,没有新增产品业务逻辑。
性能与内存 / Performance and memory
N/A:不影响产品运行时性能、内存、启动或资源生命周期。
设置 / Settings
N/A:没有新增或修改设置项、设置页、对话框选项或有标题的功能区。
插件契约 / Plugin contract
N/A:没有修改插件契约、能力版本、插件函数协议、宿主方法或宿主通知。
发行包与资源 / Bundle and resources
./scripts/desktop/verify/verify-runtime-bundle-immutability.shdocs/ci-builds.md“独立工作树的本地编译”一节写清路径、归属、生命周期和能否跨工作树复制:没有新增资源路径。无用代码与重构 / Dead code and refactoring
refactor标签的 Issue,没有在本 PR 顺手处理:无新增发现。验证 / Verification
node --test scripts/desktop/verify/test-runtime-bundle-immutability.mjs./scripts/desktop/verify/verify-runtime-bundle-immutability.sh./scripts/desktop/desktop-go.sh test ./internal/workbench -run '^TestSafeModeRunsNoGitUntilTrusted$' -count=30./scripts/desktop/desktop-go.sh test ./internal/workbench -run '^TestSafeModeRunsNoGitUntilTrusted$' -race -count=1./.agents/skills/write-stable-tests/scripts/test-stability-macos.sh --package ./internal/workbench -- --filter '^TestSafeModeRunsNoGitUntilTrusted$'.artifacts/test-stability/index.html./.agents/skills/write-stable-tests/scripts/verify-test-stability.sh --base origin/mainnode scripts/platform-feature-matrix/generate-platform-feature-matrix.mjs --check./scripts/platform-feature-matrix/verify-platform-feature-matrix-change.sh origin/main HEADgit diff --check origin/main...HEAD未能执行的检查和原因: macOS 与 Windows 原生测试未在当前 Linux 机器执行,依赖 PR CI;安全模式失败已在 main 的 Linux 与 Windows CI 日志中复现。
提交前确认 / Final checks
main;目标分支为main.build/、target/、dist/、.artifacts/等产物,没有凭据、个人路径和未脱敏的日志或截图Link to Devin session: https://app.devin.ai/sessions/4bae78985a41400ea2add7215d20a4ac
Open in Devin Desktop: https://app.devin.ai/desktop/session/4bae78985a41400ea2add7215d20a4ac?variant=devin
Requested by: @1lck