admin
|
8d04eb6845
|
chore(r4): 恢复 methodology_routes.py 执行位 755(backend2 合并引入的 mode 变更)
|
2026-09-11 14:23:29 +08:00 |
|
 adminandClaude Fable 5
|
3889a2a29b
|
fix(r4-38): mineru 启动期失败自动重试+中文可读错误+PYTHONUNBUFFERED
缺陷 #38(验收 §4):任务在最早阶段(pipeline 日志出现前)抛出无消息异常,
mineru API 侧 task.error 空串 → CLI 拼出空 message;API 异常日志打向 stdout
被块缓冲,CLI 失败后立即杀 API 进程,真因永久丢失。
修复(agent/methodology 与 agent/legacy-rag 两处同改):
- build_mineru_runtime 的 env 注入 PYTHONUNBUFFERED=1(子进程异常日志即写即落)
- returncode≠0 且 job.log 无 doc_analyze_streaming 行 = 启动期失败 → 自动重试
1 次(stdout 追加同一 job.log,日志留 [retry] 标记,重试块含重复启动命令行)
- 重试仍失败且仍无 pipeline 行 → status failed + 中文可读错误
「提取启动阶段失败(重试后),可能受主机 GPU/显示重配置干扰,请重试」,
附 job.log 原始错误尾部
- 已有 pipeline 行的中途失败不得触发重试,走原错误路径(含 CUDA OOM 中文错误)
测试:agent/{methodology,legacy-rag}/api/test_mineru_retry.py(两树 8 用例):
env 含 PYTHONUNBUFFERED;首败无 pipeline 行 → 重试;重试仍败 → 中文可读错误;
有 pipeline 行失败 → 不重试;json 直投跳过 mineru 段不重试;G6-2 边界。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
2026-09-11 14:12:46 +08:00 |
|
 Debug-2 BackendandClaude Fable 5
|
772c7cd688
|
fix(backend): r3 七项缺陷修复——图片预算/neo4j normalized/超时分流/mineru 加固/检索降级/DOCX 同源/docgen 异步任务化
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
2026-09-10 16:46:48 +08:00 |
|
 jerryandClaude Fable 5
|
4071b29520
|
Python 统一 U0-U4:venv py3.12.13 + 四树 cp312 重编译 + 端口互换 8091/8092/8093 + 旧服务停而不删
- U0:新建 plantai-rag-new-venv(3.12.13,130 包),torch 2.13.0+cpu/cython 3.2.8/faiss 1.14.3/openai 3.3.1,requirements.lock 固化
- U1:四树全 venv 重编译(sdk 15/qa 45/methodology 28/legacy 283 .so 全 cp312),audit 双审计过
- U2:备用端口影子对照:金标 search evidence 30/30 与生产一致、SDK pytest 125 过、五上游绿
- U3:统一树切终态 8091/8092/8093 + BFF 8090(venv),停旧服务(容器/进程不删,30 天窗)
- U4:minerupy311→minerupy312 断链修复、GF_PYTHON_ENV 回退统一、start-dev/run/bff_restart 去 conda、server.env/README 更新
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
2026-09-01 12:23:37 +08:00 |
|
 jerryandClaude Fable 5
|
3048c18437
|
P4/M5 收尾:extraction 回退链 7900→7911 + methodology_routes env 化
- extraction.py 回落 _DEFAULT_ALT=7911(agent/legacy-rag 编译树,替代退役 7900)
- legacy 侧 methodology_routes 同款 env 化补丁(UPLOAD_JOBS_DIR 可配)
- 单模块重编译 + 树审计双绿(463 .so, marker 重写)
- 决定性验证:停 8001 → extraction 经 7911 正常返回 → 恢复 8001
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
2026-08-31 16:02:22 +08:00 |
|
 jerryandClaude Fable 5
|
2f82c4a8dc
|
P4/M5: agent/legacy-rag 源码迁移(449 模块 191K 行)+ 影子 7911/7912 冒烟
- 按生产 7900 容器黄金清单迁移(compile.manifest 449 条目,0 缺失)
- 入口双态:api.app(生产同源 3 路由)/ api.main(裁剪 11 路由族 91 路径)
- 修复:advanced/__init__ 空文件(包标记误覆盖,已从主项目恢复)
- 修复:api/rag_routes.py 跨环境 site-packages 注入改 LEGACY_GF_SITE_PACKAGES 门控
- 修复:scripts/utils 缺失(动态加载 reasoning_engine)
- 影子验证:kg/stats 数据连通(6.2s,与 7900 同源 normalized 后端)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
2026-08-31 14:20:41 +08:00 |
|