Repository navigation
fix(test): workflow-node-daemon 用例等到后台通知结束再断言 - #2824
Merged
Merged
Conversation
#2806 合并树 CI 第 2 片红在「when the notice never arrives…」:拒绝通知先过 文件锁落盘,失败后等重试间隔再发一次,两次都失败才写告警;用例只睡 20ms 就 断言告警已写,runner 一忙就红。同文件另有 12 处同样的「睡 20ms 再断言后台 结果」。 - 新增 eventually(vi.waitFor,上限 10 秒),所有「后台会发生某事」的断言都 改为等到它发生;只断言「什么都没发生」的一处保留原来的短暂等待。 - 探针:把通知重试间隔调到 200ms,master 上本文件 3 例红,修复后 32 例全绿。 Co-Authored-By: Claude Opus 5.5 <[email protected]>
deepcoldy
requested review from
47seek,
LucasIcarus,
xiaoxueSunn and
xiongz-c
as code owners
November 5, 2026 02:41
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Owner
Author
|
首审的两条 P3:
🤖 Generated with Claude Code |
This was referenced Nov 5, 2026
|
🚀 Released in v3.57.1 |
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.
改了什么
test/workflow-node-daemon.test.ts里有 14 处先固定睡 20ms、再断言后台结果的写法。其中 13 处是断言「后台会发生某事」,现改为用eventually(vi.waitFor,最多等 10 秒)等到它发生。只断言「什么都没发生」的一处保留原来的短暂等待。为什么
#2806 合并树的 CI 第 2 片(run 41954186219)红在「when the notice never arrives the node still blocks at the acceptance deadline, keeping the directory reason」:
拒绝通知的流程是:先过文件锁把拒绝落盘,发送失败后等一个重试间隔再发一次,两次都失败才写告警。用例只睡 20ms 就断言告警已写,CI runner 一忙就会红。本文件来自 #2770,与 #2806 的改动无关,在 master 上同样存在。
影响面
只改测试,产品代码不变。
验证
BOTMUX_MULTI_TOPIC_ENABLED=true bun x vitest run --project unit test/workflow-node-daemon.test.ts test/test-hygiene.test.ts:58 例通过,连跑 2 次。🤖 Generated with Claude Code