[hotfix]: Resolve ModuleNotFoundError in PD deployment for is_in_ci() (#12772)

This commit is contained in:
hzh0425
2025-11-07 10:48:03 +08:00
committed by GitHub
parent 7257525cce
commit d9c812d881

View File

@@ -356,10 +356,10 @@ def download_and_cache_file(url: str, filename: Optional[str] = None):
return filename
def is_in_ci():
from sglang.test.test_utils import is_in_ci
def is_in_ci() -> bool:
import os
return is_in_ci()
return os.environ.get("SGLANG_IS_IN_CI", "").lower() in ("true", "1")
def print_highlight(html_content: str):