Enhance retract test (page cases, long output cases) (#12781)

This commit is contained in:
Liangsheng Yin
2025-11-11 03:03:26 +08:00
committed by GitHub
parent 665416f6dd
commit 1086473111
3 changed files with 73 additions and 37 deletions

View File

@@ -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(

View File

@@ -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):