Repository navigation
Conversation
|
基线已包含这次修复: 顺带核对了一下本 PR head 的门禁: |
|
一个小请求(不影响评审结论):如果最终采用 squash,麻烦在 commit body 里保留一行 |
(ai: vllm-qwen/qwen3.8-27b) 查重:不重复。 本主题在途只有 #5972(本 PR 的 base)+ 本 PR,无并列修复 PR;同族条目(#4811 已关闭、#5451、#5014)机制不同,不冲突。 标签: Review 结论:代码质量达到外部提交标准,无需返工;合并前置条件见末尾独立审了 diff( 先纠正一处门禁误读(不影响代码结论,但影响"已验证"的判断)PR 侧评论称 " 我已在
回归审查清单(逐项过完的既有行为)
测试有效性两条新测试断言有牙且双向:升级测试同时钉死 结构化八问
合并前置条件与留给 owner 的事项
判定:可合(满足上述前置条件后)。 代码整洁度按外部提交从严标准全项通过,无需对齐重构。 |
|
接受纠正,我这条记录作废: 前置条件我认,并且已经安排好了执行方式:
关于 |
|
Retargeting this PR: the src half is now superseded by 2826c51 (field-tuned ladder + win32 ESRCH silence, authored on the feature branch), so I'm not going to fight it — 055a51f's launcher changes duplicate what already landed and the branch is dirty against the new head. What 2826c51 did not bring is coverage: it is a +33/−14 change to So I moved the surviving value onto a tests-only branch on top of 2826c51:
Local verification on 2826c51:
The budget assertion no longer hardcodes our old 750ms constant; it asserts I'll leave this PR open but inert; once #5972 lands I'll rebase the tests-only branch onto master and open it as a proper PR against master (base = master, so the core matrix really runs instead of being skipped by the |
[ework] CI fix verified green ✓ |
|
Retarget 完成,本 PR 关闭,由 #5989 取代。 原因:依赖 #5972 已并入 master(merge 6d750ef),而本 PR 的 src 改动已被 2826c51(field-tuned ladder 1s/2s/1s/2s + win32 ESRCH silence)取代 —— 该 commit 已在 master 上。原 head 055a51f 相对 master 处于冲突状态且内容重复。 #5989 只保留本 PR 真正未进 master 的增量:测试覆盖(commit 016d933,tests +61/−2 + launcher.ts 一个 export token),base = master,ci.yml 的 core 矩阵会真正运行。 已在 master 6d750ef + 016d933 上验证:wedged-takeover 测试 18/18 绿、launcher 全量 351 pass / 1 skip、tsc --noEmit / unused-exports / test-import-graph 全绿、3-way merge 无冲突。署名(Co-authored-by 请求)已在 #5989 body 中注明。 |
Stacked on #5972(base = 该 PR 的分支),只为把 11-09 本机验收量出来的两个点收拾掉,不改动 #5972 已有逻辑。
1) BUSY 候选的接管预算:最坏 ~13.8s → ~5.5s
接管候选是由定义 BUSY 的(TCP 通、health 在 ≥3 个 bring-up 周期里始终不应答),它的 event loop 已经被自己的 fold 打满,所以"优雅"那几级对它基本是空转。实测 13.8s 里有 12.4s 全花在这里:
requestShutdownPOST 等满 3s(holder 永远不会读到这个请求)waitForListenerClose5sWEDGED_TERM_GRACE_MS)改法:不删任何一级,只给 BUSY 路径换短预算 ——
requestInstanceShutdown(origin, timeoutMs?)新增可选预算,wedged 路径传WEDGED_BUSY_REQUEST_TIMEOUT_MS = 750;两个观察阶段各WEDGED_BUSY_GRACE_MS = 500;硬杀后的waitForListenerClose仍保留 5s(那一级是真可能需要的)。实测(与 #5972 验收同一 harness,端口 18790,真实 holder 只 accept 不回应):
4175ms 构成:750(POST 预算)+ 500 + 500(两段观察)+ ~200(taskkill)+ 2000(
WEDGED_POST_KILL_SETTLE_MS,本 PR 没动)。settle 保持 2s 的依据:本机 4 次实测 taskkill /F /T → 首次 bind 成功为 162 / 191 / 226 / 252 ms,2s ≈ 8× 余量;抢跑一次要赔一整轮 bring-up。2) win32 硬杀后的 ESRCH 噪音
taskkill /F /T已收割整棵树,随后防御性的process.kill(pid,'SIGKILL')必然 ESRCH,而这条被写成its listener may survive the cleanup (#4125)—— 每次接管都刷一行"可能没杀掉",等于训练运维忽略唯一重要的那行。现在 ESRCH 静默(与 POSIX 分支对齐),其它 errno 照旧上报。hardKillProxyTree仅为回归测试而导出。验证
timeoutMs === 750、单轮 escalate 假时钟耗时 ≥2s 且 ≤4.5s)与 ESRCH 静默断言(对已退出 pid 硬杀不产生direct SIGKILL行,taskkill 自身的失败仍上报)npx tsc --noEmit干净;npx tsup构建成功(dist/index.js 5.75MB)commit: 055a51f(父 e7d7179,即 #5972 分支当前 tip)。强杀活进程是否随 prerelease 发、以及 merge 顺序仍留给 owner。