Enhance retract test (page cases, long output cases) (#12781)
This commit is contained in:
@@ -1685,7 +1685,7 @@ class CustomTestCase(unittest.TestCase):
|
||||
)
|
||||
|
||||
def setUp(self):
|
||||
print(f"[Test Method] {self._testMethodName}", flush=True)
|
||||
print(f"[CI Test Method] {self.__class__.__name__}.{self._testMethodName}")
|
||||
|
||||
|
||||
def dump_bench_raw_result(
|
||||
|
||||
@@ -26,6 +26,8 @@ from IPython.display import HTML, display
|
||||
from pydantic import BaseModel
|
||||
from tqdm import tqdm
|
||||
|
||||
from sglang.srt.environ import envs
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -357,9 +359,7 @@ def download_and_cache_file(url: str, filename: Optional[str] = None):
|
||||
|
||||
|
||||
def is_in_ci() -> bool:
|
||||
import os
|
||||
|
||||
return os.environ.get("SGLANG_IS_IN_CI", "").lower() in ("true", "1")
|
||||
return envs.SGLANG_IS_IN_CI.get()
|
||||
|
||||
|
||||
def print_highlight(html_content: str):
|
||||
|
||||
Reference in New Issue
Block a user