dispatch-junit-iwintrue.md 3.0 KB

派发工单:后端 JUnit 全量(iwintrue 通道)

  • 建单时间:2026-11-03 08:55 (GMT+8)
  • 触发:用户指示「mvn -o -DskipITs test 可以分派给 iwintrue 智能体」
  • 状态:待派发(通道不可达)|本轮已由本机离线等价执行兜底,见 mvn-test-2026-11-03-0855.log

1. 目标通道(取自 .tdd/config.json + 技能 config/machine.json)

项 值
session key junit → opencode-iwintrue
base_url http://opencode.iwintrue.com
api_version v2
default_directory d:/cfc
会话命名模板 TDD junit {tid}: {key}
用途标注 测试环境 opencode,研发角色派发跑 JUnit 后端单测(YELLOW)
并发 max_concurrent_dispatch = 1

2. 阻塞证据(2026-11-03 08:52 实测)

检查项 结果 判定
nslookup opencode.iwintrue.com Non-existent domain(DNS 192.168.16.251) ❌ 域名不解析
curl http://opencode.iwintrue.com 000(Could not resolve host) ❌ 不可达
curl https://opencode.iwintrue.com 000 ❌ 不可达
本机 hosts 仅 192.168.16.251 cfc.iwintrue.com,无 opencode 记录 ⚠️ 缺映射
.workbuddy/dispatch.py 不存在(技能包 scripts/ 仅有 discover/inventory/orchestrate) ❌ 官方派发器缺失

3. 待执行命令(派发后在 d:/cfc/cfc-backend 执行)

mvn -o -B -DskipITs -Dmaven.test.failure.ignore=true test
  • -o:离线,不联网下载依赖(要求目标机 .m2 已缓存 Spring Boot 2.7.18 全套)
  • -DskipITs:跳过集成测试(failsafe),只跑 surefire 单测
  • -Dmaven.test.failure.ignore=true:失败不中断,保证 1466 例全量出数

4. 回执要求(缺一不可)

  1. EXIT 码与构建耗时
  2. surefire 汇总:Tests run / Failures / Errors / Skipped
  3. 失败用例清单:类名#方法名 + 首条断言/异常摘要
  4. 产物路径:cfc-backend/target/surefire-reports/*.xml 与完整日志
  5. 若失败,按五要素(现象 / bug 点 文件:行号 / 修复动作 / 目的 / 闭环标准)回报,不得只报「失败 N 个」

5. 通道恢复判据

  • 任一成立即可派发:① opencode.iwintrue.com 可解析且 / 返回 200;② 在 hosts 中补入正确内网 IP 后可达
  • 派发前需先补 .workbuddy/dispatch.py(按技能 references/project-config.md 的会话连接 + 命名模板实现),否则 tdd_orchestrate.py --dispatch 只会跳过并打印「未找到 dispatch.py」

6. 本轮兜底说明

本机已确认具备离线执行能力(IntelliJ IDEA 2025.2.5 自带 Maven 3.9.9 + Java 1.8.0_25 + 已填充的 .m2/repository),已用同一命令 -o -DskipITs -Dmaven.test.failure.ignore=true 在本机跑全量,作为「除通道阻塞外」的等价证据。本机结果与 iwintrue 环境结果不得混为同一份结论,环境差异(JDK 补丁级、DB 连通性、测试端口占用)须在报告中区分。