Add retry for flaky tests in CI (#4755)
This commit is contained in:
@@ -24,6 +24,7 @@ from sglang.test.test_utils import (
|
||||
DEFAULT_EAGLE_TARGET_MODEL_FOR_TEST,
|
||||
DEFAULT_TIMEOUT_FOR_SERVER_LAUNCH,
|
||||
DEFAULT_URL_FOR_TEST,
|
||||
CustomTestCase,
|
||||
popen_launch_server,
|
||||
run_logprob_check,
|
||||
)
|
||||
@@ -33,7 +34,7 @@ prefill_tolerance = 5e-2
|
||||
decode_tolerance: float = 5e-2
|
||||
|
||||
|
||||
class TestEAGLEEngine(unittest.TestCase):
|
||||
class TestEAGLEEngine(CustomTestCase):
|
||||
BASE_CONFIG = {
|
||||
"model_path": DEFAULT_EAGLE_TARGET_MODEL_FOR_TEST,
|
||||
"speculative_draft_model_path": DEFAULT_EAGLE_DRAFT_MODEL_FOR_TEST,
|
||||
@@ -179,7 +180,7 @@ class TestEAGLE3Engine(TestEAGLEEngine):
|
||||
NUM_CONFIGS = 1
|
||||
|
||||
|
||||
class TestEAGLEServer(unittest.TestCase):
|
||||
class TestEAGLEServer(CustomTestCase):
|
||||
PROMPTS = [
|
||||
"[INST] <<SYS>>\\nYou are a helpful assistant.\\n<</SYS>>\\nToday is a sunny day and I like[/INST]"
|
||||
'[INST] <<SYS>>\\nYou are a helpful assistant.\\n<</SYS>>\\nWhat are the mental triggers in Jeff Walker\'s Product Launch Formula and "Launch" book?[/INST]',
|
||||
|
||||
Reference in New Issue
Block a user