Repository navigation
test(hook): 流取消用例的截止改用冷启动预算,不再与 CLI import 抢 6 秒 - #2622
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
deepcoldy
requested review from
47seek,
LucasIcarus,
xiaoxueSunn and
xiongz-c
as code owners
October 30, 2026 15:19
Owner
Author
|
@deepcoldy 合入 master 后的 Midscene E2E 失败:Feishu live Midscene 失败。 这次运行覆盖 54b28df…887309883(7 个提交),同批合入的还有 #2543 #2582 #2620 #2607 #2618 #2625,失败不一定由本 PR 引起。
|
This was referenced Oct 30, 2026
|
🚀 Released in v3.56.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.
Fixes #2621
改了什么
test/native-subagent-runtime-hook.test.ts›「cancels oversized and timed-out never-ending response streams」去掉两处exitTimeoutMs: 6_000,改用runHook的默认冷启动预算(20s),it超时相应改为 50s(两次 runHook 各 20s + 余量),失败时报错带上 hook 的 stderr。只改测试。为什么这样改仍然咬得住行为:测试服务器的两种响应流都永远不结束。hook 若没在自己的 2s 截止内中止流,会一直挂到 20s 被测试杀掉,
timedOut为真照样红;放宽的只是「CLI 冷启动 + 2s」这段正常耗时,不是 hook 的取消行为。不改生产代码:hook 的 2s 响应截止在 import 完、发请求时才开始计,本来就和冷启动无关。
验证
expected true to be false),新写法 6/6 通过。controller.abort()去掉(不再中止响应流)→ 本用例在 21.5s 红。test/native-subagent-runtime-hook.test.ts+test/test-hygiene.test.ts45/45 通过。影响面
纯测试,不碰 src。挡在 #2618 上(G4:偶发不重跑放行),本 PR 合入后 #2618 同步 master 再跑。
🤖 Generated with Claude Code