Repository navigation
阶段3: 容断与 iCloud 占位符(重执行,含挂点根因修复) - #297
Merged
Merged
Conversation
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.
[growth-exempt: WorkspaceStore.swift 净增(占位符加载提示、失败条内状态、横幅降格判定),阶段4 冗余锁拆除将大幅净减]
背景
重执行方案阶段3。改动迁移自原 #288(原 PR 因测试在 CI 超时被关闭,未合入)。本次定位并修复了超时根因,补齐方案要求的瞬断无横幅测试。
上次超时的根因(重要)
原 #288 的三个 store 用例在 CI 各 45 秒超时,旧会话误判为 MainActor 死锁。实际根因:三个用例是 async 测试方法,而
waitForCourseFileOperation是同步函数,靠手动泵主 RunLoop 等待 MainActor 任务;async 测试方法由并发运行时驱动,该同步泵无法推进任务,必然撞 45 秒测试模式死线。证据:全部通过的 WriteGate/LibraryMigration/Phase0Baseline 套件均为 sync 测试方法;本文件内两个 sync 纯静态用例 0.001s 通过;async 扫描用例不经过该等待机制亦通过。修复=去掉三个用例的 async(方法体本无 await,reconcile 走的就是 sync 封装),零行为差异。实际改动
.名字.ext.icloud占位符还原为逻辑路径登记,其余隐藏文件/目录仍跳过未做内容
共享核心面占用
Sources/WeiBei/Stores/WorkspaceStore.swift:仅本 PR 修改,合并即释放验证
swift build✅、swift run WeiBeiSelfCheck✅回退自查表