fix: 清理全局 except:pass(22处)改为 logger.warning 记录异常
Tests / lint (pull_request) Failing after 147h14m3s
Tests / test (pull_request) Failing after 147h14m3s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 147h14m28s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 147h14m34s
Deploy / Deploy Staging (push) Failing after 147h14m58s
CI/CD Pipeline / Frontend Lint (push) Failing after 147h15m21s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 147h15m27s
Deploy / Production Browser E2E (push) Failing after 1805h50m9s
Deploy / Build Production Runtime Images (push) Failing after 1805h50m42s
Deploy / Deploy Production (push) Failing after 1806h21m35s

This commit is contained in:
CI Test
2026-07-03 09:38:57 +08:00
parent c89dee34e6
commit d6b11ea1cd
12 changed files with 62 additions and 43 deletions
+5 -2
View File
@@ -6,6 +6,9 @@ import argparse
import os
import time
from pathlib import Path
import logging
logger = logging.getLogger(__name__)
def parse_args() -> argparse.Namespace:
@@ -39,8 +42,8 @@ def remove_empty_dirs(root: Path) -> None:
for path in sorted((p for p in root.rglob("*") if p.is_dir()), key=lambda p: len(p.parts), reverse=True):
try:
path.rmdir()
except OSError:
pass
except OSError as e:
logger.warning(f"Operation failed in scripts/cleanup_generated_files.py: {e}", exc_info=True)
def main() -> int:
+4 -1
View File
@@ -12,6 +12,9 @@ import sys
import time
import urllib.error
import urllib.request
import logging
logger = logging.getLogger(__name__)
CORE_ENDPOINTS = [
{
@@ -65,7 +68,7 @@ def make_request(base_url, endpoint, token=None):
try:
body = e.read().decode()[:200]
except:
pass
logger.warning(f"Operation failed in scripts/smoke_test.py: {e}", exc_info=True)
return {"status": e.code, "elapsed_ms": elapsed, "body": body, "error": None}
except Exception as e:
return {"status": 0, "elapsed_ms": 0, "body": "", "error": str(e)}