|
|
@@ -0,0 +1,52 @@
|
|
|
+# 测试执行报告 · langgraph-248(lan-248:4090)· R-20261205-0730
|
|
|
+
|
|
|
+- 时间:2026-12-05(lan-248:4090,cfclub 工作树,非浏览器任务)
|
|
|
+- 基线:开工前 `git pull --rebase`;HEAD `58efc8c20`(当时 origin/cfclub tip);随后 37 追赶提交未触碰 `cfc-langgraph`(0 文件变动),故实测反映当前 origin/cfclub 源码
|
|
|
+- 执行纪律:后台运行;仅一个任务;未改 src/main、未改 tests/e2e、未改 blockers.md;凭据仅环境变量注入(`LLM_API_KEY` 仅为本轮占位 dummy,未写入报告/日志)
|
|
|
+
|
|
|
+## 1. 套件 + 命令 + 实测数字
|
|
|
+
|
|
|
+| # | 套件 | 命令 | 实测 | EXIT |
|
|
|
+|---|------|------|------|------|
|
|
|
+| 1 | cfc-langgraph pytest(51 例域;源中定义 48 test 函数;qna 模块因 `src.qna` 未入库被 `importorskip` 跳过) | `cd cfc-langgraph && timeout 420 .venv/bin/python -m pytest tests/ -v -p no:cacheprovider`(`LLM_API_KEY` 占位;Java 9082 / LangGraph 9000 / LLM 通道均不可达) | **32 过 / 12 红 / 1 跳**(44 例执行,69.9 s;qna 4 例跳过,报为 1 模块 skip) | pytest 自身 69.9s 正常汇总、退出码 1(有失败);因 chromadb/langgraph 非守护线程残留,`timeout 420` 最终以 124 回收进程,不影响实测结果 |
|
|
|
+
|
|
|
+## 2. 红例清单(原样断言 + 归因)
|
|
|
+
|
|
|
+12 红例全部为**环境型**(通道不可达),非代码缺陷,不造绿。
|
|
|
+
|
|
|
+### 2.1 通道不可达 → 接口 500(7 例)
|
|
|
+- `tests/test_analyze.py::test_analyze_endpoint`:`assert resp.status_code == 200`,实收 500;日志 `加载提示词 analysis 失败: All connection attempts failed`、`REQUEST EXCEPTION ... APIConnectionError('Connection error.')`。**归因:环境型(LLM 通道不可达 `http://127.0.0.1:1/v1` 未在听)**;顺带观察到 `app/tools/report_tools.py` `'coroutine' object has no attribute 'post'`(JavaClient 协程未 await),为代码型旁证,非本断言首要成因。
|
|
|
+- `tests/test_analyze.py::test_analyze_missing_report`:同上 500。**归因:环境型。**
|
|
|
+- `tests/test_chat.py::test_chat_endpoint`:`assert resp.status_code == 200`,实收 500;`意图分类失败: Connection error., 默认 chat`。**归因:环境型(LLM 通道不可达)。**
|
|
|
+- `tests/test_auto_tag.py::test_auto_tag_endpoint_responds`:`chat 端点返回 500`。**归因:环境型(LLM 通道不可达)。**
|
|
|
+- `tests/test_auto_tag.py::test_auto_tag_valid_format`:同 500。**归因:环境型。**
|
|
|
+- `tests/test_auto_tag.py::test_auto_tag_content_relevance`:同 500。**归因:环境型。**
|
|
|
+- `tests/test_auto_tag.py::test_auto_tag_short_content`:同 500。**归因:环境型。**
|
|
|
+
|
|
|
+### 2.2 通道不可达 → intent 降级为 chat(4 例)
|
|
|
+- `tests/test_intent.py::test_classify_analysis`:`assert intent == Intent.ANALYSIS`,实收 `Intent.CHAT`;`意图分类失败: Connection error., 默认 chat`。**归因:环境型(LLM 通道不可达,降级默认 chat 掩盖真实意图)。**
|
|
|
+- `tests/test_intent.py::test_classify_recommend`:同上,实收 `Intent.CHAT`。**归因:环境型。**
|
|
|
+- `tests/test_intent.py::test_classify_mind`:同上,实收 `Intent.CHAT`。**归因:环境型。**
|
|
|
+- `tests/test_intent.py::test_classify_health`:同上,实收 `Intent.CHAT`。**归因:环境型。**
|
|
|
+
|
|
|
+注意:`test_intent.py::test_classify_chat` 通过,但系于 LLM 故障后降级默认值恰好等于预期 `chat`,属**通道事故导致的伪绿**,非真实意图校验,未计入绿例权重。
|
|
|
+
|
|
|
+### 2.3 通道不可达 → 未实测(承袭标注)
|
|
|
+上述 12 红例所依 channel(LLM `llm_base_url`、Java `9082`、LangGraph `9000`)在本节点探针均为连接拒绝(HTTP 000),按任务规则标注:**承袭·未实测(通道不可达)**,不记为代码缺陷。
|
|
|
+
|
|
|
+## 3. 承袭项(标注来源轮次)
|
|
|
+
|
|
|
+| 承袭项 | 来源 | 本轮现状 |
|
|
|
+|--------|------|----------|
|
|
|
+| cfc-langgraph 源码在主工作树缺失(仅 `.pyc` 残余),跨工作树错位 | 12-04 各轮 `跨工作树账本错位` 沿承 | 开工 `git pull --rebase` 后已入库(104 `.py`,120 tracked),不再阻断 |
|
|
|
+| LLM / Java 9082 / LangGraph 9000 通道不可达(连接拒绝 000) | R-1856 + pub-iwintrue 节点未配置 沿承(0706/0710/0730 等轮) | 本轮全部探针 000,标注 承袭·未实测(通道不可达) |
|
|
|
+| `src/qna` 未入库 → qna/test_graph.py 4 例跳过(`importorskip`) | B-255-1(测试文件已注明) | 本轮维持跳过,非新红 |
|
|
|
+| `test_classify_chat` 伪绿(降级 chat 命中) | 本轮通道事故 | 已登记于 2.2 注意 |
|
|
|
+
|
|
|
+## 4. 版本管理
|
|
|
+- 基线 sha(测试所用源码):`58efc8c20`(开工前 origin/cfclub tip;cfc-langgraph 在随后 37 追赶提交中 0 变动,等价于当前 origin/cfclub 源码)
|
|
|
+- 交付提交 sha:`<待填>`;收尾 `git pull --rebase` + `git push origin cfclub`(实测后填充;此处占位避免自指环)
|
|
|
+- `docs/tdd/orchestration/report-*.md` 已入 `.gitignore`,本报告走 `git add -f` 精确路径提交
|
|
|
+
|
|
|
+## 5. 一句话总结
|
|
|
+cfc-langgraph pytest 有界子集实测 32 过 / 12 红 / 1 跳;12 红全部由 LLM/Java/LangGraph 通道不可达导致(环境型,标注 承袭·未实测),无代码型/真实缺陷红例。
|