Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
7af0d2ef
"launch/git@developer.sourcefind.cn:OpenDAS/dynamo.git" did not exist on "ba0a51c43004b85f97829946e74a3dd1f2cbf479"
Commit
7af0d2ef
authored
Jan 15, 2025
by
Ryan McCormick
Committed by
GitHub
Jan 15, 2025
Browse files
test: Add sanity test for vllm.distributed patched modules
parent
a1484532
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
+14
-2
container/deps/vllm/data_plane/kv_cache.py
container/deps/vllm/data_plane/kv_cache.py
+3
-0
container/deps/vllm/tests/test_patch_install.py
container/deps/vllm/tests/test_patch_install.py
+5
-1
pyproject.toml
pyproject.toml
+6
-1
No files found.
container/deps/vllm/data_plane/kv_cache.py
View file @
7af0d2ef
...
@@ -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
:
...
...
container/deps/vllm/tests/test_patch_install.py
View file @
7af0d2ef
...
@@ -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
pyproject.toml
View file @
7af0d2ef
...
@@ -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"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment