[CI/Build] Use file rendezvous for local distributed tests (#51652)

Signed-off-by: yu-xin-c <2182712990@qq.com>
This commit is contained in:
Stellar鱼
2026-08-12 10:48:12 +08:00
committed by GitHub
parent 20727e2841
commit 3fa89225bc
3 changed files with 31 additions and 12 deletions
+8
View File
@@ -8,6 +8,7 @@ import zmq
from vllm.utils import network_utils
from vllm.utils.network_utils import (
get_file_store_init_method,
get_open_port,
get_open_ports_list,
get_tcp_uri,
@@ -19,6 +20,13 @@ from vllm.utils.network_utils import (
)
def test_get_file_store_init_method_is_unique():
init_methods = {get_file_store_init_method() for _ in range(2)}
assert len(init_methods) == 2
assert all(method.startswith("file://") for method in init_methods)
def _call_with_timeout(func, timeout: float = 10.0):
"""Run func in a daemon thread so a livelock regression fails the test
quickly instead of hanging the suite."""