chore: 复盘落地 — CI 闸门、测试基线、devboot 回归测试、工作台冒烟、评审标准 #43

Merged
zhanghongming merged 1 commits from codex/repo-hygiene-20261012 into dev 2026-10-12 20:43:54 +08:00
Collaborator

Summary

复盘 2026-10-12(round8–12 五轮热修)落地的仓库护栏,零运行时代码路径变更:

.gitea/workflows/web-ci.yml          # push/PR 自动跑 lint + Go/前端闸门
tests/known-failures.json            # 已知失败基线(前端 14 / Go 70,真实运行生成)
scripts/check-test-baseline.mjs      # 基线相减,只对新增失败名报红(test:*:gate)
tests/frontend/devboot.test.mjs      # 起 Vite dev server,钉死 round10 类 dev-only 回归
scripts/local/smoke-workbench.mjs    # 7 个高频回归点冒烟(round8–12 全覆盖)
docs/CODING_STANDARDS.md             # 首条标准:资格标记服务端下发,UI 只渲染不重建
public/vendor/movi-player-0.4.1/README.md  # 宿主怪癖清单 + 升级检查表
docs/HANDOFF.md                      # 闸门指针替换散文基线;§4 movi 路径断言规则
.husky/ + .lintstagedrc + package.json    # pre-commit:tsc + gofmt + 限定范围 prettier
internal/ ×10 文件                    # gofmt 纯格式化(dev tip 的 lint 实为红,修复)
.scratch/workflow-perf-audit-report.md    # 性能审计入库,钉上 round12 后线上 500 观察

Evidence

  • Before: dev tip npm run lint 真实退出码 1(10 个 Go 文件未过 gofmt);基线比对靠人工逐名核对(10/12 当天手比 5 轮)
    After: lint 退出码 0;test:frontend:gate 基线 14/14 对齐 exit 0(含新 devboot 绿,1.3s);test:go:gate 基线 70/70 对齐 exit 0(停本地栈后跑,栈耦合已记入 HANDOFF)
  • smoke-workbench.mjs 连跑 3 次 8/8:round8 进度条 / round9 随机领取 / round10 倍速 4× / round11 加载即点播 / round12 服务端 canClaim 全部活体复验
  • pre-commit 钩子在本次真实提交上跑通;无假阳性

Merge Danger

Door: two-way(单提交 revert 即完整回退)

Blast Radius: 工程护栏。Go 改动全部是 gofmt 空白格式化,零行为变化;线上部署走 release/fanyu 不受影响。合并后同事各需 npm install 一次以激活 pre-commit 钩子;CI 需仓库配好 Gitea Runner 才会实际执行(未配则静默挂起,不阻塞合并)。

## Summary 复盘 2026-10-12(round8–12 五轮热修)落地的仓库护栏,零运行时代码路径变更: ```text .gitea/workflows/web-ci.yml # push/PR 自动跑 lint + Go/前端闸门 tests/known-failures.json # 已知失败基线(前端 14 / Go 70,真实运行生成) scripts/check-test-baseline.mjs # 基线相减,只对新增失败名报红(test:*:gate) tests/frontend/devboot.test.mjs # 起 Vite dev server,钉死 round10 类 dev-only 回归 scripts/local/smoke-workbench.mjs # 7 个高频回归点冒烟(round8–12 全覆盖) docs/CODING_STANDARDS.md # 首条标准:资格标记服务端下发,UI 只渲染不重建 public/vendor/movi-player-0.4.1/README.md # 宿主怪癖清单 + 升级检查表 docs/HANDOFF.md # 闸门指针替换散文基线;§4 movi 路径断言规则 .husky/ + .lintstagedrc + package.json # pre-commit:tsc + gofmt + 限定范围 prettier internal/ ×10 文件 # gofmt 纯格式化(dev tip 的 lint 实为红,修复) .scratch/workflow-perf-audit-report.md # 性能审计入库,钉上 round12 后线上 500 观察 ``` ## Evidence - **Before:** dev tip `npm run lint` 真实退出码 1(10 个 Go 文件未过 gofmt);基线比对靠人工逐名核对(10/12 当天手比 5 轮) **After:** lint 退出码 0;`test:frontend:gate` 基线 14/14 对齐 exit 0(含新 devboot 绿,1.3s);`test:go:gate` 基线 70/70 对齐 exit 0(停本地栈后跑,栈耦合已记入 HANDOFF) - `smoke-workbench.mjs` 连跑 3 次 8/8:round8 进度条 / round9 随机领取 / round10 倍速 4× / round11 加载即点播 / round12 服务端 canClaim 全部活体复验 - pre-commit 钩子在本次真实提交上跑通;无假阳性 ## Merge Danger **Door:** two-way(单提交 revert 即完整回退) **Blast Radius:** 工程护栏。Go 改动全部是 gofmt 空白格式化,零行为变化;线上部署走 `release/fanyu` 不受影响。合并后同事各需 `npm install` 一次以激活 pre-commit 钩子;CI 需仓库配好 Gitea Runner 才会实际执行(未配则静默挂起,不阻塞合并)。
zhanghongming added 1 commit 2026-10-12 20:43:46 +08:00
🧪 Retro 2026-10-12: CI gate, known-failure baselines, devboot regression test, workbench smoke, review standards
Some checks failed
web-ci / checks (push) Has been cancelled
web-ci / checks (pull_request) Has been cancelled
58e0e50570
Six follow-ups from the round8-12 hotfix retrospective:

- web-ci.yml: lint + Go/frontend tests on every push and PR (nothing ran
  app checks before; the round10 dev-mode regression shipped green)
- tests/known-failures.json + check-test-baseline.mjs: gate by exact
  failing-test id instead of hand-counted failure totals (14 frontend,
  70 Go upstream debts recorded from the dev tip)
- devboot.test.mjs: boots the real Vite dev server and pins the movi
  loader contract that broke round10 (query-less DEV url, /vendor stays
  off the module pipeline)
- scripts/local/smoke-workbench.mjs: pre-release smoke covering the
  seven recurring acceptance points (login/pool/claim/play-while-loading/
  captions/4x/playhead), 3x green against the local replica
- docs/CODING_STANDARDS.md + AGENTS pointer: eligibility flags are
  server-shipped, the UI renders them (rounds 9+12 lesson)
- vendor README host-element quirks section, HANDOFF gate pointers and
  movi-path verification rule, perf-audit report pinned with the
  post-round12 production 500 observation
- husky pre-commit: lint-staged (repo prettier scope) + tsc + gofmt
- gofmt: restore lint:go green on the dev tip (drift shipped silently
  in the perf merge and round12 because nothing gated it)
zhanghongming merged commit 03db2a286b into dev 2026-10-12 20:43:54 +08:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: longtao.wu/droboticflow#43
No description provided.