Repository navigation
test(localshell): 为 WSL 登录 Shell 首次提示符保留独立冷启动预算(#2108) - #2354
Draft
lithe-support[bot] wants to merge 1 commit into
Draft
lithe-support[bot] wants to merge 1 commit into
lithe-support[bot] wants to merge 1 commit into
Conversation
Contributor
Author
21 tasks done
Contributor
Author
|
Lithe Review|#2108 测试修复范围与验证边界
|
This branch has not been deployed
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.
Refs #2108(不提前关闭;仍需 macOS 高负载复验)。
现象与原因边界
#2108 提供的完整桌面测试证据表明,在 59 个包并行的高负载下,
TestWSLScriptStartsTheLoginShellInTheStartFolder/bash等待第一个提示符 10 秒超时,此时 没有任何 Shell 输出;单包重跑 3 次均通过。冷启动包含系统/etc/profile和用户启动文件,跟已运行 Shell 的交互提示符不是同一等待预算。具体是哪一步耗时尚无进程跟踪证据,本 PR 不声称证明了未采集的性能根因。变更
integrated.awaitWithin(what, timeout, done),沿用原来的 wake 驱动和明确 deadline,time.NewTimer用完停止;普通await继续执行 10 秒预算。验证与限制
已按既有 WSL 与 integrated fixture 的执行路径完成代码核对,原失败日志和单包重跑证据来自 Issue。当前执行容器缺少项目 Go 1.27 与绑定的 Rust Core,无法真实跑完整桌面测试;GitHub CI 上需要验证
TestWSLScriptStartsTheLoginShellInTheStartFolder、整个localshell包以及 Linux/macOS 全量负载。仅一轮 CI 通过也不能证明偶发问题已消除。保持 Draft 等待复测,不自动合并。本 PR 是测试调度预算修复,不改变真实产品用户可见的 Shell 启动超时。