Commit 7af0d2ef authored by Ryan McCormick's avatar Ryan McCormick Committed by GitHub
Browse files

test: Add sanity test for vllm.distributed patched modules

parent a1484532
...@@ -16,6 +16,9 @@ ...@@ -16,6 +16,9 @@
# A script to download a Python wheel, patch it, copy additional files, # A script to download a Python wheel, patch it, copy additional files,
# repackage it, and optionally install the new wheel. # repackage it, and optionally install the new wheel.
# FIXME: Address type checking with divergent interfaces for Ucp/Nccl data planes
# type: ignore
import typing import typing
if typing.TYPE_CHECKING: if typing.TYPE_CHECKING:
......
...@@ -18,4 +18,8 @@ def test_version(): ...@@ -18,4 +18,8 @@ def test_version():
@pytest.mark.skipif(vllm is None, reason="Skipping vllm tests, vllm not installed") @pytest.mark.skipif(vllm is None, reason="Skipping vllm tests, vllm not installed")
def test_patch_imports(): def test_patch_imports():
# Verify patched files have no glaring syntax or import issues # Verify patched files have no glaring syntax or import issues
pass import vllm.distributed.data_plane as d
import vllm.distributed.kv_cache as k
# Placeholder to avoid unused import errors or removal by linters
assert d, k
...@@ -91,4 +91,9 @@ exclude = ["model.py"] ...@@ -91,4 +91,9 @@ exclude = ["model.py"]
# a container with the expected environment and PYTHONPATH setup. # a container with the expected environment and PYTHONPATH setup.
ignore_missing_imports = true ignore_missing_imports = true
check_untyped_defs = true check_untyped_defs = true
\ No newline at end of file
[[tool.mypy.overrides]]
# Skip mypy analysis on internal dependencies of vllm
module = ["vllm.*"]
follow_imports = "skip"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment