Repository navigation
knowledge(vllm-omni): 1 change(s) from intake #413
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
19 changes: 19 additions & 0 deletions
19
knowledge/repos/vllm-omni/components/model-executor/rules-host-weight-runtime.md
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| --- | ||
| title: "Host Weight Runtime 测试评审规则" | ||
| created: 2026-10-24 | ||
| updated: 2026-10-24 | ||
| type: rule | ||
| tags: [vllm-omni, components, model-executor] | ||
| sources: ["PR #9339"] | ||
| --- | ||
|
|
||
| # Host Weight Runtime 测试评审规则 | ||
|
|
||
| ## VLLM-OMNI-PR9339-WAITER-EXIT — Host Weight Runtime 等待进程收尾与 0.1 秒域锁协调期限分离:60 秒完成 / 5 秒清理双上限 | ||
|
|
||
| - 触发:改动 `tests/host_weight_runtime/test_runtime_resolution.py` 中 `test_domain_lock_timeout_and_fresh_runtime_recovery` 的子进程收尾结构:`_PROCESS_COMPLETION_TIMEOUT_SECONDS`(60 秒)、`_PROCESS_CLEANUP_TIMEOUT_SECONDS`(5 秒)、`_CONTROLLED_FINALIZATION_DELAY_SECONDS`(8 秒)三个常量,`_initialize_contended_runtime` 的 `finalizing` 握手与受控收尾延迟参数,或正常完成与强制清理两条 `join` 路径的超时取值与断言。本规则只覆盖该测试文件的结构契约;Host Weight Runtime 本体行为不在范围内(PR #9339 为 test-only 改动)。 | ||
| - 强制:子进程完成等待必须与 0.1 秒域锁协调期限解耦——锁超时及其时序断言保持 0.1 秒口径不变。正常完成路径:先 `reader.poll(5)` 等到子进程发来的 `finalizing` 握手并 `recv` 校验,再以 60 秒完成上限 `join`(与其他 filesystem-store 多进程测试一致),`exitcode == 0` 断言的失败信息须含 pid 与 exitcode。强制清理路径保持有界:`kill` 后以 5 秒上限 `join`,并显式断言 `not process.is_alive()`(无存活子进程)。受控收尾延迟 8 秒必须大于旧的 5 秒完成等待、又远低于 60 秒完成上限,使两个参数化用例都真正覆盖“收尾慢于 5 秒”的场景(此前 AMD post-merge build #14579 即因 `join(5)` 到期、exitcode=None 而在功能断言全过后假失败)。 | ||
| - 禁止:把正常完成的 join 期限改回 5 秒,或将其与 0.1 秒协调期限重新耦合,使重载 runner 上子进程收尾超过 5 秒时产生功能断言全部通过后的假失败;删除 `finalizing` 握手 poll、pid/exitcode 失败信息或清理后的无存活断言;把受控延迟调到 ≤5 秒(不再触发回归路径)或逼近/超过 60 秒完成上限;以收紧测试超时为名改动 0.1 秒锁超时语义。 | ||
| - 验收:该测试正常完成路径以 `_PROCESS_COMPLETION_TIMEOUT_SECONDS` join 并断言 `exitcode == 0`(失败信息含 pid 与 exitcode);清理路径以 `_PROCESS_CLEANUP_TIMEOUT_SECONDS` join 后断言无存活子进程;0.1 秒锁超时相关断言未变;`_CONTROLLED_FINALIZATION_DELAY_SECONDS` 严格介于 5 秒与 60 秒之间。^[PR #9339] | ||
|
|
||
| <!-- kb:rule status=active since=v0.30.0 --> | ||
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This rule exclusively targets
tests/host_weight_runtime/test_runtime_resolution.py, but it is stored and indexed under Model Executor. At the reviewed commit,adapters/vllm_omni/manifest.yaml:156–158explicitly assignstests/host_weight_runtime/to thehost_weight_runtimeowner, whose knowledge entry already exists atcomponents/host-weight-runtime/rules.md. Keeping the rule here makes owner-scoped reviews of those tests miss the new regression guidance. Move it into that owner's rule page and update the corresponding index rather than routing it through Model Executor; rootAGENTS.mdrequires PR learning to remain with the nearest code owner.AGENTS.md reference: AGENTS.md:L12-L14
Useful? React with 👍 / 👎.