Repository navigation
Conversation
kunshanyep-beep
requested review from
47seek,
LucasIcarus,
deepcoldy,
xiaoxueSunn and
xiongz-c
as code owners
November 6, 2026 06:27
Owner
|
感谢贡献,已合并(4ec047daa)。 两处等待与此前 #2824 转换的其余同型断言保持一致;复核中用「给 fake postDaemon 注入延迟」复现了旧写法的假红、确认新写法通过,并用变异验证了通知真的丢失时断言在两个测试引擎下仍然失败,判别力没有削弱。 一个非阻断的后续观察(本 PR 无需改,同文件其余同型断言也如此):轮询在首次命中精确数组后即结束,不会再观察「命中之后才晚到的重复通知」;旧的固定 10ms 窗口同样看不到窗口外才到达的通知,因此这不是本 PR 引入的。以后若想覆盖重复通知,可以在命中后补一个短暂静止断言。 再次感谢,欢迎继续贡献。 |
|
🚀 Released in v3.58.0 |
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.
改了什么
eventually条件等待。为什么
这两处通知通过异步
postDaemon发送。固定等待 10ms 会把 runner 调度和 IPC 延迟计入断言窗口,负载较高时可能在通知尚未落入 fake recorder 前读取空数组,造成假红。验证
bun x vitest run test/workflow-node-daemon.test.ts:32 passedbun test test/workflow-node-daemon.test.ts:32 passedbun run buildgit diff --check origin/master...HEADCloses #2827
Closes #2829