style(ci): black格式化ci_health_report.py
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 1m41s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 4m23s
AI Code Review / AI Code Review (pull_request) Successful in 5m3s
Preview Cleanup / Cleanup Preview Environment (pull_request) Successful in 19s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 5m31s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Failing after 1385h28m18s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1385h28m36s
CI/CD Pipeline / ACR Image Cleanup (pull_request) Failing after 1385h28m37s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 1385h28m41s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 1385h28m42s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 1385h28m38s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1385h28m38s
CI/CD Pipeline / Build Production Worker Image (pull_request) Failing after 1385h28m39s
CI/CD Pipeline / Build Production Web Image (pull_request) Failing after 1385h28m40s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 1385h28m42s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 1385h28m43s
CI/CD Pipeline / Check if frontend-only change (pull_request) Has been skipped
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been skipped
CI/CD Pipeline / Unit Tests (pull_request) Has been skipped
CI/CD Pipeline / Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Frontend Lint (pull_request) Has been skipped
CI/CD Pipeline / Build Production API Image (pull_request) Failing after 1386h0m50s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1386h0m45s

This commit is contained in:
2026-07-20 22:00:34 +08:00
parent ccbbd12a7f
commit b2bca27666
+8 -2
View File
@@ -32,7 +32,8 @@ def run_health_check(limit: int) -> dict:
sys.executable,
os.path.join(script_dir, "ci_health_check.py"),
"--json",
"--limit", str(limit),
"--limit",
str(limit),
]
env = os.environ.copy()
# 确保GITEA_TOKEN传递
@@ -85,7 +86,12 @@ def build_feishu_card(data: dict) -> dict:
fail = s["failure"]
rate = (succ / total * 100) if total > 0 else 0
icon = "🟢" if rate >= 90 else ("🟡" if rate >= 70 else "🔴")
wf_name = wf.replace("ci-pipeline.yml", "CI Pipeline") .replace("code-review.yml", "Code Review") .replace("daily-check.yml", "Daily Check") .replace("preview-deploy.yml", "Preview Deploy")
wf_name = (
wf.replace("ci-pipeline.yml", "CI Pipeline")
.replace("code-review.yml", "Code Review")
.replace("daily-check.yml", "Daily Check")
.replace("preview-deploy.yml", "Preview Deploy")
)
wf_lines.append(f"{icon} **{wf_name}**: {rate:.0f}% ({succ}/{total},失败{fail})")
# 失败详情(最多显示5条)