[CI/Build] Use file rendezvous for local distributed tests (#51652)
Signed-off-by: yu-xin-c <2182712990@qq.com>
This commit is contained in:
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user