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
change
sglang
Commits
f47a1b1d
Unverified
Commit
f47a1b1d
authored
Jun 13, 2025
by
Lianmin Zheng
Committed by
GitHub
Jun 13, 2025
Browse files
Increase timeout in test/srt/test_disaggregation.py (#7175)
parent
93cec433
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
20 deletions
+4
-20
python/sglang/test/test_utils.py
python/sglang/test/test_utils.py
+1
-1
test/srt/test_disaggregation.py
test/srt/test_disaggregation.py
+3
-19
No files found.
python/sglang/test/test_utils.py
View file @
f47a1b1d
...
...
@@ -85,7 +85,7 @@ DEFAULT_SMALL_VLM_MODEL_NAME_FOR_TEST = "Qwen/Qwen2.5-VL-3B-Instruct"
DEFAULT_IMAGE_URL
=
"https://github.com/sgl-project/sglang/blob/main/test/lang/example_image.png?raw=true"
DEFAULT_VIDEO_URL
=
"https://raw.githubusercontent.com/EvolvingLMMs-Lab/sglang/dev/onevision_local/assets/jobs.mp4"
DEFAULT_TIMEOUT_FOR_SERVER_LAUNCH
=
10
00
DEFAULT_TIMEOUT_FOR_SERVER_LAUNCH
=
6
00
def
is_in_ci
():
...
...
test/srt/test_disaggregation.py
View file @
f47a1b1d
...
...
@@ -103,7 +103,7 @@ class TestDisaggregationAccuracy(CustomTestCase):
)
@
classmethod
def
wait_server_ready
(
cls
,
url
,
timeout
=
60
):
def
wait_server_ready
(
cls
,
url
,
timeout
=
DEFAULT_TIMEOUT_FOR_SERVER_LAUNCH
):
start_time
=
time
.
perf_counter
()
while
True
:
try
:
...
...
@@ -284,7 +284,7 @@ class TestDisaggregationMooncakeFailure(CustomTestCase):
)
@
classmethod
def
wait_server_ready
(
cls
,
url
,
timeout
=
60
):
def
wait_server_ready
(
cls
,
url
,
timeout
=
DEFAULT_TIMEOUT_FOR_SERVER_LAUNCH
):
start_time
=
time
.
perf_counter
()
while
True
:
try
:
...
...
@@ -388,7 +388,7 @@ class TestDisaggregationMooncakeSpec(CustomTestCase):
cls
.
wait_server_ready
(
cls
.
lb_url
+
"/health"
)
@
classmethod
def
wait_server_ready
(
cls
,
url
,
timeout
=
60
):
def
wait_server_ready
(
cls
,
url
,
timeout
=
DEFAULT_TIMEOUT_FOR_SERVER_LAUNCH
):
start_time
=
time
.
perf_counter
()
while
True
:
try
:
...
...
@@ -441,22 +441,6 @@ class TestDisaggregationMooncakeSpec(CustomTestCase):
other_args
=
decode_args
,
)
@
classmethod
def
wait_server_ready
(
cls
,
url
,
timeout
=
60
):
start_time
=
time
.
perf_counter
()
while
True
:
try
:
response
=
requests
.
get
(
url
)
if
response
.
status_code
==
200
:
print
(
f
"Server
{
url
}
is ready"
)
return
except
Exception
:
pass
if
time
.
perf_counter
()
-
start_time
>
timeout
:
raise
RuntimeError
(
f
"Server
{
url
}
failed to start in
{
timeout
}
s"
)
time
.
sleep
(
1
)
@
classmethod
def
tearDownClass
(
cls
):
for
process
in
[
cls
.
process_lb
,
cls
.
process_decode
,
cls
.
process_prefill
]:
...
...
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