|
@@ -0,0 +1,66 @@
|
|
|
|
|
+# 测试执行汇报 · web-189(admin 单任务)· 2026-12-01 08:15 档(R0800 标准轮·有界 JUnit 子集)
|
|
|
|
|
+
|
|
|
|
|
+- 节点:`web-189-4090`(admin,cfclub 主工作树 `C:\code\cfc`,单任务不并发,禁自启服务)
|
|
|
|
|
+- 基线:开局 `git pull --rebase origin cfclub` → `3e4a8c57d..4a4e94773`(rebase 无冲突,仅 docs 报告文件);收口前再 pull(见 §六)
|
|
|
|
|
+- 目标段口径:用 `git show --stat` 定位 05ca8a2d / bed17d07 / bdc74868 触及的既有测试文件,只跑有界子集;禁全量、禁自启服务;长期 blocker 标「承袭·未实测」,不跑全量、不改判
|
|
|
|
|
+
|
|
|
|
|
+## 一、有界子集定位(git show --stat)
|
|
|
|
|
+
|
|
|
|
|
+三笔提交 stat 均**未直接触及测试文件**(仅 src + schema.sql/docs);对应既有契约测试类(提交信息「红单测 7/7 转绿/红测全绿」所指)锁定 4 类:
|
|
|
|
|
+
|
|
|
|
|
+| 提交 | 特性 | 既有测试类(cfc-backend/src/test/java/com/etotem/cfc/unit/) |
|
|
|
|
|
+|---|---|---|
|
|
|
|
|
+| `05ca8a2d` | energy.admin.adjust(S-cfc-492) | `EnergyAdminAdjustContractTest`(7 例) |
|
|
|
|
|
+| `bed17d07` | feedback.consult.submit(S-cfc-491) | `FeedbackConsultSubmitContractRedTest`(9 例) |
|
|
|
|
|
+| `bdc74868` | notification.setting.config(S-cfc-487) | `NotificationSettingConfigContractTest`(12 例)+ `NotificationSettingConfigBoundaryContractTest`(5 例,同批互补边界类) |
|
|
|
|
|
+
|
|
|
|
|
+## 二、环境探针(实测,与目标段预期一致)
|
|
|
|
|
+
|
|
|
|
|
+| 探针 | 结果 |
|
|
|
|
|
+|---|---|
|
|
|
|
|
+| 本机 `http://127.0.0.1:9082` | **000**(拒连,无后端进程;未自启) |
|
|
|
|
|
+| 公网 `https://cfc.iwintrue.com/api/system/health` | **200** |
|
|
|
|
|
+| 6h 窗口 src 提交(origin/cfclub,2026-12-01 02:05 起) | `46e5aff10` S-cfc-504 视频全屏(article-detail.vue)、`2dd655fef` merge lifestyle-save 修复 —— **均不针对** G-304-1 / B-260-1 / N-R373-1/2 / G9 / B-325-1 |
|
|
|
|
|
+
|
|
|
|
|
+→ 无恢复信号:长期 blocker 标「承袭·未实测」,不跑全量、不重判(遵执行纪律)。
|
|
|
|
|
+
|
|
|
|
|
+## 三、实测数字(Surefire 有界子集,EXIT=1,Total 01:52 min)
|
|
|
|
|
+
|
|
|
|
|
+命令(cwd `cfc-backend`,后台运行):
|
|
|
|
|
+```
|
|
|
|
|
+mvn -B test "-Dtest=EnergyAdminAdjustContractTest,FeedbackConsultSubmitContractRedTest,NotificationSettingConfigContractTest,NotificationSettingConfigBoundaryContractTest" "-Dsurefire.failIfNoSpecifiedTests=false"
|
|
|
|
|
+```
|
|
|
|
|
+
|
|
|
|
|
+| 测试类 | 通过/失败/跳过 |
|
|
|
|
|
+|---|---|
|
|
|
|
|
+| `EnergyAdminAdjustContractTest` | 7 / 0 / 0 ✅(与 05ca8a2d「7/7 转绿」声称一致) |
|
|
|
|
|
+| `FeedbackConsultSubmitContractRedTest` | 8 / 1 / 0 ❌ |
|
|
|
|
|
+| `NotificationSettingConfigContractTest` | 11 / 1 / 0 ❌ |
|
|
|
|
|
+| `NotificationSettingConfigBoundaryContractTest` | 5 / 0 / 0 ✅ |
|
|
|
|
|
+| **合计** | **33 run / 2 failed / 0 error / 0 skipped,BUILD FAILURE** |
|
|
|
|
|
+
|
|
|
|
|
+## 四、红例清单(断言原文 + 归因)
|
|
|
|
|
+
|
|
|
|
|
+| # | 位置 | 失败断言原文 | 归因 |
|
|
|
|
|
+|---|---|---|---|
|
|
|
|
|
+| 1 | `FeedbackConsultSubmitContractRedTest.java:171`(`schema_reportFeedback_hasAttachmentColumn`) | `[feedback.consult.submit] report_feedback 表缺少附件载体列(如 attachment_url/attachments):契约要求反馈可带附件并受 10MB 限制(SC-P-83 / TC-P-83-E) ==> expected: <true> but was: <false>` | **代码型(真实缺陷)**:DDL 回归。证据链:`bed17d07` 版 schema.sql 含 `attachment_url VARCHAR(512)` 列 ✅ → 其后续 `897f51b0d fix(f03)`(2026-11-30,schema.sql 净 -79 行重写)后两行 DDL 消失 → HEAD(4a4e94773)仍缺。服务层 10MB 校验/脱敏/403 仍在(同类其余 8 例绿),丢的是持久层载体 |
|
|
|
|
|
+| 2 | `NotificationSettingConfigContractTest.java:254`(`schemaSql_hasNotificationSettingsTable`) | `RED[notification.setting.config] schema.sql 缺 notification_settings 表(通知设置持久化未落地) ==> expected: <true> but was: <false>` | **代码型(真实缺陷)**:同一根因。`bdc74868` 曾加「迁移511 `createNotificationSettingsTable()`」(DatabaseInitializer +29 行)+ schema.sql +13 行 ✅ → `897f51b0d` 同时删除 DatabaseInitializer 中该迁移代码与 schema.sql 表 DDL(`git log -S notification_settings` 命中 897f51b0d 计数 N→0)→ HEAD 仍缺。NotificationSetting 实体/DTO/Controller/Service 尚存(11 例绿),启动时将不再建表 → 无手工建表环境会运行时报错 |
|
|
|
|
|
+
|
|
|
|
|
+- 归因排除环境型:失败断言均读仓内 `schema.sql` 文本(纯文件读取,无 DB/网络依赖),与 9082 通道无关。
|
|
|
|
|
+- 新缺陷登记建议(由负责人登记,本档不改 src/测试/blockers.md):`897f51b0d` 重写 DatabaseInitializer + schema.sql 时误删已合入的 ①`report_feedback.attachment_url` 列(bed17d07)②迁移511 `notification_settings` 表 + `createNotificationSettingsTable()`(bdc74868)。修复需补回 DDL 与迁移并同步 schema.sql(幂等 ensureColumn/CREATE IF NOT EXISTS),两红例即转绿。
|
|
|
|
|
+
|
|
|
|
|
+## 五、承袭项(本轮未实测,来源轮次)
|
|
|
|
|
+
|
|
|
|
|
+| 项 | 处置 | 来源 |
|
|
|
|
|
+|---|---|---|
|
|
|
|
|
+| G-304-1 / B-260-1 / N-R373-1/2 / G9 / B-325-1(长期 blocker 族) | 承袭·未实测(通道 9082=000 + 6h 窗口无定向修复,无恢复信号,不重判) | R726(08:00 档「7blocker承袭」) |
|
|
|
|
|
+| 两 RED(`web.adminPanel.runE2E` / `web.frontendMobile.runSmoke` 浏览器 E2E) | 承袭·未实测(第 7 日;窗口无针对修复,本档未跑浏览器全量) | R726/R725(「两RED第6日」起) |
|
|
|
|
|
+
|
|
|
|
|
+## 六、收口
|
|
|
|
|
+
|
|
|
|
|
+- `git pull --rebase origin cfclub` 收口后提交本报告(仅 add 本文件,工作树其余未跟踪脚本不动);commit sha 见下。
|
|
|
|
|
+- **commit sha:`__COMMIT_SHA__`**(提交后回填)
|
|
|
|
|
+
|
|
|
|
|
+## 七、一句话总结
|
|
|
|
|
+
|
|
|
|
|
+有界 4 类 33 例实测 31 绿 2 红,两红同根因——`897f51b0d fix(f03)` 重写时误删已合入的 report_feedback 附件列与 notification_settings 表 DDL(含迁移511),判真实缺陷待负责人登记;长期 blocker 与两 RED 因窗口无定向修复全部承袭未实测。
|