Files
Nexus/docs/reports/audit-bug-scan-closure-2026-06-04.md
T
2026-07-08 22:31:31 +08:00

2.7 KiB
Raw Blame History

Nexus 手写源码全量 BUG 扫描 — 总闭环(2026-06-04

计划: 全库 BUG 扫描排期(B0 + B7B77 + B-Assets
登记册 SSOT: docs/audit/2026-06-04-bug-scan-registry.json


签退统计

指标
must_audit 路径 284
status: done 283
excludedjunk + local .env 2scripts/sedul3hFbdocker/.env
partial_rescan 剩余 0
构建产物 covered-by-frontend-src 2773
批次报告 audit-bug-line-walk-2026-06-04-batch1.mdbatch77.md
历史 BUG 修复批次 Batch 16(已修 P0/P1/P2,见各 batch 报告)
全量扫描批次 Batch 777(规则扫描 + Closure + read_range 1..N
OPEN P0/P1 0(本轮回扫无新增 OPEN

执行摘要

  1. B0scripts/generate_bug_scan_registry.py 生成登记册;预填 Batch 1–6 done/partial;节选标 needs_full_rescan
  2. B7B77scripts/run_bug_scan_batch_audit.pyplanned_batch 执行 8 步(全文行数、§四规则扫描、Closure、登记册 done)。
  3. B-Assetsaudit-bug-assets-gate-2026-06-04.mdindex.html chunk 存在 + 无 CDN。
  4. 验证.venv/bin/ruff check server/ 全绿;.venv/bin/pytest tests/ -q154 passed

Batch 1–6 已修 BUG(保留,不重复开项)

ID 摘要
安装锁 / script 聚合 B1 install.py + install.html
schedule once 回滚 B2 schedule_runner.py
retry / sync gather / stats 封顶 B3 retry_runner, sync_engine_v2, servers stats
推送 WS / file-ops ETag / heartbeat flush B4 usePushProgress, sync_v2, schemas
Agent TTL / 写路径 ETag B5 agent.py, sync_v2
refresh 重用 / Redis 三态 / Files ETag B6 auth_service, useFilesBrowse

详见 docs/reports/audit-bug-line-walk-2026-06-04-batch1.mdbatch6.md


签退条件核对

条件 状态
登记册 must_audit 全部 doneexcluded
read_range 覆盖 1..N
needs_full_rescan == 0
无未处理 P0/P1 OPEN
pytest 全绿 154
ruff 零错误

工具与再现

python3 scripts/generate_bug_scan_registry.py
python3 scripts/run_bug_scan_batch_audit.py --from 7 --to 77
.venv/bin/ruff check server/
.venv/bin/pytest tests/ -q --tb=no

结论

手写源码全量 BUG 扫描已签退2026-06-04)。
构建产物由 frontend/src 覆盖 + B-Assets 门控;本地密钥文件 docker/.env 不纳入仓库走读(审 docker/.env.example)。