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
5f1d0c81
Unverified
Commit
5f1d0c81
authored
May 30, 2025
by
Rabi Mishra
Committed by
GitHub
May 30, 2025
Browse files
[Bugfix][Failing Test] Fix test_vllm_port.py (#18618)
Signed-off-by:
rabi
<
ramishra@redhat.com
>
parent
c3bb9f23
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
12 deletions
+9
-12
.buildkite/test-pipeline.yaml
.buildkite/test-pipeline.yaml
+2
-1
vllm/envs.py
vllm/envs.py
+7
-11
No files found.
.buildkite/test-pipeline.yaml
View file @
5f1d0c81
...
...
@@ -199,8 +199,9 @@ steps:
-
tests/test_sequence
-
tests/test_config
-
tests/test_logger
-
tests/test_vllm_port
commands
:
-
pytest -v -s engine test_sequence.py test_config.py test_logger.py
-
pytest -v -s engine test_sequence.py test_config.py test_logger.py
test_vllm_port.py
# OOM in the CI unless we run this separately
-
pytest -v -s tokenization
...
...
vllm/envs.py
View file @
5f1d0c81
...
...
@@ -159,17 +159,13 @@ def get_vllm_port() -> Optional[int]:
return
int
(
port
)
except
ValueError
as
err
:
from
urllib.parse
import
urlparse
try
:
parsed
=
urlparse
(
port
)
if
parsed
.
scheme
:
raise
ValueError
(
f
"VLLM_PORT '
{
port
}
' appears to be a URI. "
"This may be caused by a Kubernetes service discovery issue"
"check the warning in: https://docs.vllm.ai/en/stable/usage/env_vars.html"
)
except
Exception
:
pass
parsed
=
urlparse
(
port
)
if
parsed
.
scheme
:
raise
ValueError
(
f
"VLLM_PORT '
{
port
}
' appears to be a URI. "
"This may be caused by a Kubernetes service discovery issue,"
"check the warning in: https://docs.vllm.ai/en/stable/serving/env_vars.html"
)
from
None
raise
ValueError
(
f
"VLLM_PORT '
{
port
}
' must be a valid integer"
)
from
err
...
...
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