automation-run-2026-11-18-R292.md 6.5 KB

浠艾福(XAF)每小时测试闭环报告 · R292(执行纪实)

  • 轮次:R292(前序 R291 于 2026-11-18 08:3x 收尾;本轮 10:44 启动,接续 08:43 中断轮次已产出的实测资产)
  • 角色:软件测试专家团主理人 陆谨(测试负责人)
  • 执行档:review(内网 /admin + /frontend + 测试目录用例编写已授权;公网 / execute 未授权)
  • 工作分支 = cfclub;起始 3b418b8f7 → FF 169ec0cb5;窗口 d06548042..169ec0cb5 = 6 commit(含 1 个 src/main);收尾 0 0
  • 结论:⛔ 不通过(有条件)—— 🟢 OAuth 契约转绿 + 新增账本幂等键契约 5 例全绿 + B-254-1 收复 1/2;🔴 B-142-2 计数 0/2;🟡 新增波动 G-292-2

本文件为执行纪实(时间线 / 命令 / 证据路径 / 结果);结论以 orchestration/report-test-2026-11-18-R292.md 为准。


1. 分支纪律核验

核验项 结果
git rev-parse --abbrev-ref HEAD(启动) cfclub ✅
git rev-list --left-right --count HEAD...origin/cfclub(启动) 0 1 ✅
起始 sha 3b418b8f7de0531df1911b0798e457e7ba702e2e ✅
git fetch origin cfclub → merge --ff-only 3b418b8f7..169ec0cb5 ✅
复核(开工前) cfclub 且 0 0 → 开工 ✅
工作区 tracked 干净;untracked 历史产物(.r*/、jest json、派发脚本)未动 ✅
cfclub worktree 占用 仅主树 D:/cfc(其余 100+ worktree 均 task/* 或 detached)✅

2. 时间线

时间 动作 证据文件
10:44 分支核验 + memory 召回(R290 段,git 补 R291) —
10:45 fetch + ff-only → 169ec0cb5 —
10:46 生产网关 / 节点 / 本机探活 —
10:47 匿名探针 tests/_r292_anon_probe.cjs → 3/8=200 .r292_anon_probe.log
10:48 窗口 diff:发现 3b418b8f7 含 src/main(迁移 492/484) git show 3b418b8f7
10:49 后端 test-compile + 定向 11 类(后台) .r292_compile2.log / .r292_targeted2.log
10:50 251 pytest 重新派发(4096 SHELL) .r292_251_lg_run2.log
10:56 线上 API 红链 9 文件复跑(后台) .r292_api_redchain3.log
11:01 计算 cfc-web 覆盖率(读 coverage-final.json) —
11:02 SC 覆盖率三口径复跑 .r292_sc.json
11:03 health-contract 复跑(改 playwright.config.health.js)→ 13/13 .r292_health3.log
11:05 新增 EnergyLedgerIdempotencyKeyContractTest 并两轮修正 → 5/5 绿 .r292_guard3.log
11:06 账本守卫复验(Guard 13/13 + Grant 9/9) .r292_guard.log
11:07 task-c14 隔离复跑(:127 绿) .r292_c14_iso.log
11:08 API 复跑收尾:59 = 39/20/0 .r292_api_redchain3.log
11:1x 报告 / 通知 / 台账 / 提交推送 本目录

3. 命令与关键结果

# 分支
git -C d:/cfc rev-parse --abbrev-ref HEAD          # cfclub
git -C d:/cfc rev-list --left-right --count HEAD...origin/cfclub   # 0 1 → 0 0

# 后端
cd cfc-backend && mvn -o -B test-compile                            # EXIT 0 (3m12s)
mvn -o -B surefire:test -Dtest=ResourceBeanNameCollisionGuardTest,EnergySystemFlowTest,\
GuideModuleIntegrationTest,OrchestrationEngineTest,OrchestrationIntegrationTest,\
MembershipPaySwitchTest,PaymentServiceORDRoutingTest,WebConfigGrowthExcludeRemovedTest,\
UserServiceWechatLoginTest,OAuthCallbackContractTest,OAuthClientCallbackContractTest \
  -DfailIfNoTests=false                                             # 58 = 34/23/1
mvn -o -B surefire:test -Dtest=EnergyLedgerIdempotencyKeyContractTest   # 5/5 绿
mvn -o -B surefire:test -Dtest=EnergyLedgerIdempotencyKeyContractTest,\
EnergyLedgerGuardContractTest,EnergyGrantContractTest                # 27/27 绿

# 前端
cd cfc-web && npx jest --ci --json                                   # 160 = 150/10/0
cd cfc-frontend && npx jest --ci --json                              # 679 = 663/4/12

# 浏览器(本机)
npx playwright test -c playwright.config.health.js                   # 13/13 (14.3s)
npx playwright test -c playwright.config.live.js --project=shop-api  # 4/4
npx playwright test -c playwright.config.live.js --project=admin-desktop    # 5/5
npx playwright test -c playwright.config.live.js --project=frontend-mobile  # 6/6
npx playwright test -c playwright.config.live.js --project=legal-pages      # 0/6
npx playwright test -c playwright.config.live.js --project=auth-guard       # 7/3
npx playwright test -c playwright.config.live.js --project=dx-bridge        # 2 skip

# 线上 API(复跑,59 例)
cd tests && npx playwright test -c playwright.config.api.js e2e/api/{activity-ranking...,badge...,\
coach-food...,incentive...,task-c14...,task-checkin...,task-create...,task-frequency...,wish-flow...}.spec.js
# 59 = 39 过 / 20 红 / 0 did not run(10.9m)

# 隔离复跑
npx playwright test -c playwright.config.api.js e2e/api/task-c14-reject-recycle.spec.js
# 8 = 3 过 / 5 红;:127 绿

# 度量
node tests/scripts/sc-coverage.js --json    # L1 91.8 / L2 89.7 / L3 8.8(逐位一致)

4. 三节点派发

节点 通道 HEAD / DIRTY 结果
189 http://192.168.16.189:4090 /api/shell 11504da94 / DIRTY=173 admin-desktop 5/5 EXIT=0(1.3m)
204 http://192.168.16.204:4091 11504da94 / DIRTY=111 frontend-mobile 6/6 EXIT=0(1.5m)
251 http://192.168.16.251:4096 权威副本 pytest 43 = 37 过 / 6 红(103.35s)

5. 装置故障与处置(非产品)

现象 根因 处置 结果
health 首跑 35 过 / 9 红 / 2 跳 EXIT=1 ① playwright.config.live.js 无 health-contract project,未带 --project → 跑全 4 项目 46 例;② .live-artifacts 触发本地 safe-delete 批量守卫(node-safe-delete-shim.cjs:251 checkBulkDeleteGuard) 改用 playwright.config.health.js;.live-artifacts 重命名备份 13/13 绿(14.3s)
08:43 轮次后端定向日志在 EnergySystemFlowTest 中途截断 上一轮会话中断 本轮重跑 test-compile + 定向 12 类 63 例全取回
新增契约测试首跑 5 例 1 红 断言串把 Java 字符串拼接 " + " 当成字面空格 断言拆成「表名段 + 列集段」两段 5/5 绿

6. 收尾

  • 提交内容:主报告 / 执行纪实 / 研发通知 / blockers.md R292 段 / 新增测试类。
  • 未提交:主工作区历史未跟踪产物(*.log、.r*、jest json)—— 属他人 WIP,不代为提交。
  • HEAD...origin/cfclub = 0 0,PUSH OK。