update pre-commit config (#18860)

This commit is contained in:
SoluMilken
2026-02-16 00:18:31 +08:00
committed by GitHub
parent f7603203b0
commit 07a24f1a38
135 changed files with 239 additions and 198 deletions
+1
View File
@@ -3,6 +3,7 @@
Simple RCCL test for multi-GPU communication.
This test verifies that RCCL can initialize and communicate across multiple GPUs.
"""
import os
import sys
+3 -1
View File
@@ -618,7 +618,9 @@ class SGLangCIAnalyzer:
if change_pct < -10:
trend_indicator = f"📈 {change_pct:.1f}%"
elif change_pct > 10:
trend_indicator = f"⚠️ 📉 +{change_pct:.1f}%"
trend_indicator = (
f"⚠️ 📉 +{change_pct:.1f}%"
)
else:
trend_indicator = f"➡️ {change_pct:+.1f}%"
else:
+6 -2
View File
@@ -157,7 +157,9 @@ def get_oss_repo(dry_run):
"""
gh_token = os.getenv("GH_TOKEN")
if not gh_token:
print("⚠️ Warning: GH_TOKEN environment variable not set. Skipping PR creation.")
print(
"⚠️ Warning: GH_TOKEN environment variable not set. Skipping PR creation."
)
if not dry_run:
return
@@ -359,7 +361,9 @@ def create_pull_request(oss_root, branch_name, title, body, dry_run):
"""Create a pull request in the OSS repo using the GitHub CLI."""
gh_token = os.getenv("GH_TOKEN")
if not gh_token:
print("⚠️ Warning: GH_TOKEN environment variable not set. Skipping PR creation.")
print(
"⚠️ Warning: GH_TOKEN environment variable not set. Skipping PR creation."
)
if not dry_run:
return
@@ -23,7 +23,6 @@
"from sglang.test.test_utils import is_in_ci\n",
"from sglang.utils import print_highlight, terminate_process, wait_for_server\n",
"\n",
"\n",
"if is_in_ci():\n",
" from patch import launch_server_cmd\n",
"else:\n",
+1 -1
View File
@@ -64,7 +64,7 @@ def read_records(files):
def run_one_request_internal(record):
(req, output, replay_init_time, start_time, end_time, idx) = record
req, output, replay_init_time, start_time, end_time, idx = record
time.sleep(max(0, (start_time - (time.time() - replay_init_time)) / args.speed))
if "completion_tokens" in output.get("meta_info", {}):