Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
2827b3f4
Unverified
Commit
2827b3f4
authored
Sep 26, 2025
by
Chauncey
Committed by
GitHub
Sep 26, 2025
Browse files
[CI] Fix test_shared_storage_connector_hashes (#25748)
Signed-off-by:
chaunceyjiang
<
chaunceyjiang@gmail.com
>
parent
2b6b1d78
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
tests/v1/kv_connector/unit/test_nixl_connector.py
tests/v1/kv_connector/unit/test_nixl_connector.py
+22
-0
No files found.
tests/v1/kv_connector/unit/test_nixl_connector.py
View file @
2827b3f4
...
...
@@ -26,6 +26,8 @@ from vllm.distributed.kv_transfer.kv_connector.v1.multi_connector import (
from
vllm.distributed.kv_transfer.kv_connector.v1.nixl_connector
import
(
KVConnectorRole
,
NixlAgentMetadata
,
NixlConnector
,
NixlConnectorMetadata
,
NixlConnectorWorker
,
NixlKVConnectorStats
)
from
vllm.distributed.kv_transfer.kv_transfer_state
import
(
ensure_kv_transfer_shutdown
,
has_kv_transfer_group
)
from
vllm.forward_context
import
ForwardContext
from
vllm.platforms.interface
import
Platform
from
vllm.sampling_params
import
SamplingParams
...
...
@@ -35,6 +37,26 @@ from vllm.v1.outputs import KVConnectorOutput, ModelRunnerOutput
from
.utils
import
create_request
,
create_scheduler
,
create_vllm_config
@
pytest
.
fixture
(
scope
=
"module"
,
autouse
=
True
)
def
clear_kv_transfer
():
"""
The test cases in this file use `VLLM_ENABLE_V1_MULTIPROCESSING=0`,
causing the global variable `_KV_CONNECTOR_AGENT`
to be assigned but never deleted.
Since the current pytest process does not terminate and instead
continues running tests from other files,
this global variable remains in memory and interferes
with test cases in other modules.
So we use this fixture to ensure that the global variable
`_KV_CONNECTOR_AGENT` is properly cleaned up after each test.
"""
yield
if
has_kv_transfer_group
():
ensure_kv_transfer_shutdown
()
class
FakeNixlWrapper
:
"""Mock implementation of NixlWrapper for testing.
...
...
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