Document completed stability and queue tests

This commit is contained in:
xhgit committed 2026-11-16 07:01:42 +08:00
1 parent e55cb7a7ba
commit 42630c76dd
2 files changed
+43 -8

No files matched your search

+25 -6
View File
@@ -146,14 +146,23 @@ def report():
"Spigot 缺少相同的 Bukkit 指标接口。每次运行另保存 RSS、线程、GC、AI/SMTP 队列和数据库操作耗时采样。"])
paragraphs.extend(["", "## 长时间稳定性", ""])
for tag, label in (("stability-30m", "30 分钟"), ("stability-2h", "2 小时"), ("stability-8h", "8 小时")):
manifests = sorted(RESULTS.glob(f"*/*/{tag}-*/run.json"), reverse=True)
manifests = sorted(
(path for path in RESULTS.glob(f"*/*/{tag}-*/run.json") if jread(path).get("jar_sha256") == sha),
reverse=True,
)
manifest = manifests[0] if manifests else None
if manifest:
config = jread(manifest)
final = manifest.with_name("evidence.json")
if final.is_file():
outcome = jread(final)
outcome = jread(final) if final.is_file() else {}
if outcome.get("jar_sha256") == sha:
status = f'已结束 · {outcome["online_and_integrity_check"]}'
if outcome["cases"]:
case = outcome["cases"][0]
status += (f' · 负载 {case["durationMs"] / 1000:,.1f} 秒'
f' · 在线起止 {case["online"]}/{case["onlineAfter"]}'
f' · 发出 {case["messagesSent"]:,} 条聊天'
f' · SQLite `{outcome["db_after_stop"].get("integrity", "缺失")}`')
samples = [json.loads(line) for line in manifest.with_name("samples.jsonl")
.read_text(encoding="utf-8").splitlines()]
if len(samples) >= 10:
@@ -199,12 +208,22 @@ def report():
):
if (RESULTS / directory / "summary.md").is_file():
paragraphs.append(f"- [{title}]({directory}/summary.md)")
for prefix, title in (("rich-books", "50 页书本并发"), ("smtp-queue", "SMTP 邮件队列饱和")):
for prefix, title in (("rich-books", "50 页书本并发"), ("smtp-queue", "SMTP 邮件队列饱和"),
("healthy-provider", "AI 正常响应下的聊天送达")):
for file in sorted(RESULTS.glob(f"*/*/{prefix}-*/evidence.json")):
outcome = jread(file)
if outcome.get("jar_sha256") == sha:
link = file.with_name("stress-report.html").relative_to(RESULTS).as_posix()
paragraphs.append(f'- [{outcome["core"]} {title} · {outcome["online_and_integrity_check"]}]({link})')
details = ""
if prefix == "healthy-provider" and outcome["cases"]:
case = outcome["cases"][-1]
details = f' · 观察客户端收到 {case["firstClientObservedDeliveries"]:,}/{case["messagesSent"]:,} 条'
if prefix in ("smtp-queue", "rich-books"):
db = outcome["db_after_stop"]
ai_full = db.get("ai_failures", {}).get("QUEUE_FULL", 0)
smtp_full = db.get("mail_status", {}).get("QUEUE_FULL", 0)
details = f" · 队列满拒绝 AI {ai_full:,} / SMTP {smtp_full:,} 次"
paragraphs.append(f'- [{outcome["core"]} {title} · {outcome["online_and_integrity_check"]}{details}]({link})')
paragraphs.extend(["", "## 修复与复测", "",
"- Windows 控制台日志转码影响关闭标记。改用固定 ASCII 标记后复测自动关闭、重启。",
"- Spigot 新版正式构建返回包含 `-Spigot-` 的构建串。修复识别并补回归用例,四个小版本重测。",
@@ -213,7 +232,7 @@ def report():
"- Folia 首轮 100 并发仅 98 个进入游戏,并且测试探针在加入事件中调用传送失败。提高测试服容量并在玩家实体调度器运行传送,保留前两轮完整证据。",
"- 多轮失败与修复过程见各版本 `previous/` 或独立压力运行目录。",
"", "## 发布门禁余项", "",
"- 逐核心、逐版本的专项故障完整矩阵,以及所有队列满载、长时间内存趋势仍待完整证据。",
"- 逐核心、逐版本的专项故障与队列饱和完整交叉矩阵仍有未覆盖项。三个长时间场景均有各自的采样和结果。",
"- 磁盘空间不足使用探针对真实 SQLite 连接设置页数上限模拟。操作系统级磁盘配额未测试。",
"- 短时书本压测记录协议提交量与实际 Bukkit 事件数。Minecraft 自身的校验、频控及已签署物品会挡住部分重复提交。",
"- 超协议长度的聊天与书本标题由服务端解码器拒绝。协议边界报告保留预期断开原因与 Bukkit 实际收到的首个书本事件。",