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
3289c120
Unverified
Commit
3289c120
authored
Apr 03, 2025
by
Yineng Zhang
Committed by
GitHub
Apr 03, 2025
Browse files
Update the retry count (#5051)
parent
69df9761
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
.github/workflows/pr-test.yml
.github/workflows/pr-test.yml
+1
-1
python/sglang/test/test_utils.py
python/sglang/test/test_utils.py
+1
-1
No files found.
.github/workflows/pr-test.yml
View file @
3289c120
...
...
@@ -68,7 +68,7 @@ jobs:
bash scripts/ci_install_dependency.sh
-
name
:
Run test
timeout-minutes
:
3
0
timeout-minutes
:
4
0
run
:
|
cd test/srt
python3 run_suite.py --suite per-commit --auto-partition-id ${{ matrix.part }} --auto-partition-size 7
...
...
python/sglang/test/test_utils.py
View file @
3289c120
...
...
@@ -1014,7 +1014,7 @@ def run_logprob_check(self: unittest.TestCase, arg: Tuple):
class
CustomTestCase
(
unittest
.
TestCase
):
def
_callTestMethod
(
self
,
method
):
max_retry
=
int
(
os
.
environ
.
get
(
"SGLANG_TEST_MAX_RETRY"
,
"
2
"
if
is_in_ci
()
else
"0"
)
os
.
environ
.
get
(
"SGLANG_TEST_MAX_RETRY"
,
"
1
"
if
is_in_ci
()
else
"0"
)
)
retry
(
lambda
:
super
(
CustomTestCase
,
self
).
_callTestMethod
(
method
),
...
...
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