Repository navigation
test(dsh-tui): 修复转储读取竞态 - #3570
Merged
Merged
Conversation
Co-Authored-By: Claude Code <[email protected]>
deepcoldy
requested review from
47seek,
LucasIcarus,
xiaoxueSunn and
xiongz-c
as code owners
November 18, 2026 13:39
|
@deepcoldy 合入 master 后的 Midscene E2E 失败:Feishu live Midscene 失败。 这次运行覆盖 20a6810…95f31ef44(3 个提交),同批合入的还有 #3521 #3555,失败不一定由本 PR 引起。
|
|
🚀 Released in v3.59.20 |
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.
问题
dsh-tui-spawn-env.integration.test.ts的 fake CLI 先写 args、再写 env,但读取端只用两个目标文件的existsSync作为完成条件。shell 重定向会让 env 在内容写完前就可见,因此并发较高时可能读到空文件或半成品,表现为 resume 用例的DSH_TUI_RESUME_SESSION偶发为undefined。原始失败见 run
44296394141的bun-test (3/4):同文件其余 4 条通过,resume 用例期望bot-session、实际为undefined。该问题位于测试夹具,不涉及产品侧 env 注入逻辑。修改
done完成哨兵。spawnAndDump等待done存在后再读取 args/env,不再以数据文件本身的存在作为完成依据。验证
bun run build(含 typecheck、dashboard bundle 和资源审计)通过。test/dsh-tui-spawn-env.integration.test.ts,+5/-1。🤖 Generated with Claude Code