File tree Expand file tree Collapse file tree 2 files changed +9
-12
lines changed Expand file tree Collapse file tree 2 files changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -199,8 +199,9 @@ steps:
199
199
- tests/test_sequence
200
200
- tests/test_config
201
201
- tests/test_logger
202
+ - tests/test_vllm_port
202
203
commands :
203
- - pytest -v -s engine test_sequence.py test_config.py test_logger.py
204
+ - pytest -v -s engine test_sequence.py test_config.py test_logger.py test_vllm_port.py
204
205
# OOM in the CI unless we run this separately
205
206
- pytest -v -s tokenization
206
207
Original file line number Diff line number Diff line change @@ -159,17 +159,13 @@ def get_vllm_port() -> Optional[int]:
159
159
return int (port )
160
160
except ValueError as err :
161
161
from urllib .parse import urlparse
162
- try :
163
- parsed = urlparse (port )
164
- if parsed .scheme :
165
- raise ValueError (
166
- f"VLLM_PORT '{ port } ' appears to be a URI. "
167
- "This may be caused by a Kubernetes service discovery issue"
168
- "check the warning in: https://docs.vllm.ai/en/stable/usage/env_vars.html"
169
- )
170
- except Exception :
171
- pass
172
-
162
+ parsed = urlparse (port )
163
+ if parsed .scheme :
164
+ raise ValueError (
165
+ f"VLLM_PORT '{ port } ' appears to be a URI. "
166
+ "This may be caused by a Kubernetes service discovery issue,"
167
+ "check the warning in: https://docs.vllm.ai/en/stable/serving/env_vars.html"
168
+ ) from None
173
169
raise ValueError (
174
170
f"VLLM_PORT '{ port } ' must be a valid integer" ) from err
175
171
You can’t perform that action at this time.
0 commit comments