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
+3 -3
View File
@@ -1,4 +1,4 @@
"""Offline Agent/runtime and task API load test; all state lives in a temporary directory."""
"""离线Agent/运行时和任务API负载测试;所有状态都位于临时目录中。"""
from __future__ import annotations
import argparse
@@ -24,7 +24,7 @@ def stats(values):
async def main(output):
# Set before importing any app modules: container has import-time initialization.
# 在导入任何应用程序模块之前设置:容器具有导入时初始化。
with tempfile.TemporaryDirectory(prefix="notes-agent-task-stress-") as directory:
root = pathlib.Path(directory)
os.environ.update(APP_DATA_DIR=str(root / 'data'), APP_DB_PATH=str(root / 'app.db'),
@@ -105,7 +105,7 @@ async def main(output):
"terminal_recovery": True, "recovery_read_ms": round(recovery_read_ms,2), "retained_records": len(runtime._records)}
save('agent_tool_runs', await measured(batch))
# Hold model calls so all 200 records remain active while testing admission.
# 保留模型调用,以便在测试准入时所有 200 条记录保持活动状态。
gate = asyncio.Event()
async def blocked(request):
await gate.wait()