docs: 将仓库代码注释统一为中文
CI / docs-check (push) Canceled after 0s
CI / backend-test (push) Canceled after 0s
CI / service-test (push) Canceled after 0s
CI / frontend-test (push) Canceled after 0s
CI / rust-core (push) Canceled after 0s
CI / docs-check (pull_request) Canceled after 0s
CI / backend-test (pull_request) Canceled after 0s
CI / service-test (pull_request) Canceled after 0s
CI / frontend-test (pull_request) Canceled after 0s
CI / rust-core (pull_request) Canceled after 0s

This commit is contained in:
2026-09-10 00:40:56 +08:00
parent 51c592841d
commit d703ab64e3
249 changed files with 707 additions and 900 deletions
@@ -1,4 +1,4 @@
"""Isolated PostgreSQL, MinIO, and multi-worker Sync acceptance stack."""
"""隔离的 PostgreSQLMinIO 与多工作进程 Sync 验收栈。"""
from __future__ import annotations
@@ -82,7 +82,7 @@ def stop_tree(process: subprocess.Popen | None) -> None:
class SyncProductionStack:
"""Own a disposable production dependency stack for one acceptance case."""
"""拥有一个验收案例的一次性生产依赖堆栈。"""
def __init__(self, config: dict, data_root: Path, case_tag: str):
self.config = config
@@ -420,8 +420,7 @@ class SyncProductionStack:
except (OSError, TimeoutError, URLError):
return None
# A small pool is enough to reach both workers without exhausting the
# Windows ephemeral-port/backlog budget before the fault matrix starts.
# 一个小池足以覆盖两个工作线程,而不会在故障矩阵启动之前耗尽 Windows 临时端口/积压预算。
with ThreadPoolExecutor(max_workers=8) as pool:
return {value for value in pool.map(probe, range(attempts)) if value}