[diffusion] CI: switch CI data references to sgl-project/ci-data (#24299)

This commit is contained in:
Mick
2026-05-03 23:05:12 +08:00
committed by GitHub
parent c0f5950636
commit 5925572c95
12 changed files with 130 additions and 162 deletions
@@ -1,6 +1,6 @@
"""Generate a Markdown dashboard for diffusion cross-framework comparisons.
Reads current comparison results + historical data from sglang-ci-data repo
Reads current comparison results + historical data from sgl-project/ci-data repo
and produces a Markdown report with tables and trend charts saved as PNG files.
Usage:
@@ -19,16 +19,16 @@ import sys
from datetime import datetime, timezone
# ---------------------------------------------------------------------------
# History fetching (from sglang-ci-data repo via GitHub API)
# History fetching (from sgl-project/ci-data repo via GitHub API)
# ---------------------------------------------------------------------------
CI_DATA_REPO_OWNER = "sglang-bot"
CI_DATA_REPO_NAME = "sglang-ci-data"
CI_DATA_REPO_OWNER = "sgl-project"
CI_DATA_REPO_NAME = "ci-data"
CI_DATA_BRANCH = "main"
HISTORY_PREFIX = "diffusion-comparisons"
MAX_HISTORY_RUNS = 14
# Base URL for chart images pushed to sglang-ci-data
# Base URL for chart images pushed to sgl-project/ci-data
CHARTS_RAW_BASE_URL = (
f"https://raw.githubusercontent.com/{CI_DATA_REPO_OWNER}/{CI_DATA_REPO_NAME}"
f"/{CI_DATA_BRANCH}/{HISTORY_PREFIX}/charts"
@@ -58,7 +58,7 @@ def _github_get(url: str, token: str) -> dict | list | None:
def fetch_history_from_github(token: str) -> list[dict]:
"""Fetch recent comparison result JSONs from sglang-ci-data repo."""
"""Fetch recent comparison result JSONs from sgl-project/ci-data repo."""
print("Fetching historical comparison data from GitHub...")
url = (
f"https://api.github.com/repos/{CI_DATA_REPO_OWNER}/{CI_DATA_REPO_NAME}"
@@ -775,7 +775,7 @@ def main():
parser.add_argument(
"--fetch-history",
action="store_true",
help="Fetch history from sglang-ci-data GitHub repo",
help="Fetch history from ci-data GitHub repo",
)
parser.add_argument(
"--step-summary",
@@ -1,4 +1,4 @@
"""Publish diffusion comparison results to sglang-bot/sglang-ci-data repo.
"""Publish diffusion comparison results to sgl-project/ci-data repo.
Pushes comparison-results.json, dashboard.md, and chart PNG files to the
ci-data repository for historical tracking. Chart PNGs are stored under
@@ -49,8 +49,8 @@ else:
)
# Repository configuration
REPO_OWNER = "sglang-bot"
REPO_NAME = "sglang-ci-data"
REPO_OWNER = "sgl-project"
REPO_NAME = "ci-data"
BRANCH = "main"
STORAGE_PREFIX = "diffusion-comparisons"
@@ -196,7 +196,7 @@ def publish_comparison(
def main():
parser = argparse.ArgumentParser(
description="Publish diffusion comparison results to sglang-ci-data"
description="Publish diffusion comparison results to ci-data"
)
parser.add_argument(
"--results",
+2 -2
View File
@@ -352,8 +352,8 @@ def publish_traces_from_files(files_to_upload, run_id, run_number):
sys.exit(1)
# Repository configuration
repo_owner = "sglang-bot"
repo_name = "sglang-ci-data"
repo_owner = "sgl-project"
repo_name = "ci-data"
branch = "main"
# Verify token permissions before proceeding