docs(test): split 21 screenshots from 21 results

Record top-level screenshots as 20 main/pre plus 1 post, and the full-package race as FAIL 109.279s instead of a cached ok line.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
weichen
2026-09-14 00:23:11 +00:00
co-authored by Cursor
parent 5d79da60fc
commit bf4f9bdba0
4 changed files with 46 additions and 3 deletions
+1
View File
@@ -38,6 +38,7 @@
| Cursor-Auto | document-revision-pg-id-remap | fix/document-revision-pg-id-remap | - | document-revision | done |
| Cursor-Auto | document-revision-runtime | fix/document-revision-runtime-ui03 | - | docgov | done |
| Cursor-Auto | document-revision-runtime-ui-final-report | feature/document-revision-runtime-ui-final-report | - | document-revision-runtime-ui | done |
| Cursor-Auto | document-revision-evidence-count | fix/document-revision-evidence-count | - | document-revision-evidence-count | done |
> 新任务开始前登记。`branch` 必须为 `feature/<slug>` 或 `fix/<slug>`,**禁止** `dev` / `test` / `main`。同一 `mutex` 同时仅一个 `in_progress`。
@@ -144,6 +144,6 @@ docker run --rm --network host --ipc host \
- 项目 `UI验收-超声微创系统-mu0gwiez`(6159);intake `doc_proj6159_intake`;终态 V3/r2 / `A1-win-mu0gwiez`。
- 报告:[../../test-reports/2026-09-14-document-revision-runtime-ui-test-report.md](../../test-reports/2026-09-14-document-revision-runtime-ui-test-report.md)
- Ubuntu 无头:`mcr.microsoft.com/playwright:v1.63.0-noble`(`--network host --ipc host`,`BASE_URL :3100`);本次无需给 host 装浏览器。宿主 `npx playwright install` 仅备选。
- 截图 20 张(UI-00…15-post,不含 UI-16 专图计入该 20)。
- 顶层截图 **21** 个文件:主阶段 20 张(含 UI-15-pre)+ post-restart 1 张;与 results JSON 21 条不是同一计数。
- 工程门禁另栏:`go test -short` / `go vet` / web 333+30 / build PASS;`-race` 全包并行 **NOT PASS**(`TestCreateTaskRun_PreActivationAcceptedNot409` TempDir cleanup)。
- 全仓仍 `production_ready=no`(`CHAT-INTENT` 等)。
@@ -0,0 +1,42 @@
---
title: "运行时 UI 证据计数与 race 秒数纠错"
status: done
created: 2026-09-14
updated: 2026-09-14
owner: Cursor-Auto
branch: fix/document-revision-evidence-count
worktree: "-"
mutex: document-revision-evidence-count
---
# 运行时 UI 证据计数与 race 秒数纠错
## 目标
把顶层截图写成 21(20 main/pre + 1 post),并把全包 race 写成 `FAIL 109.279s`,不与 21 条 results 混淆。
## 范围
- 最终报告、UI checklist、CURRENT
- 本短任务登记后即关闭
## 非目标
- 不改业务代码、assets、容器,不 push
- 不改 UI PASS 判定,不提交 secrets
## 步骤
1. [x] 从 `dev@5d79da6` 开 `fix/document-revision-evidence-count` 并登记
2. [x] 截图 21 = 20 main/pre + 1 post;race `FAIL 109.279s`
3. [x] `git diff --check`;只提交文档
## 验收标准
- [x] 报告/清单不再把 20 张截图与 21 条 JSON 混写
- [x] 全包 race 不再写成 `ok ... 110.723s`
- [x] assets 未 stage
## 相关链接
- Test report: [../../test-reports/2026-09-14-document-revision-runtime-ui-test-report.md](../../test-reports/2026-09-14-document-revision-runtime-ui-test-report.md)
@@ -87,7 +87,7 @@ Wave 0–6 账本内核合入后,真实工作台仍表现为「账本未就绪
| main 结果 | `.../ui-acceptance-results.json`(21 PASS) |
| post 结果 | `.../ui-acceptance-results-post-restart.json`(UI-15 PASS) |
| 阶段状态 | `.../phase-state.json`(无口令) |
| 截图 | `.../screenshots/`(**20** 张:UI-00、01、02、03、04、05、05a、05b、06、07、08、09、10、11、12、13a、13b、14、15-pre、15-post) |
| 截图 | 顶层 `.../screenshots/` **21** 个文件 = 主阶段 **20** 张(含 UI-15-pre,以及 UI-00…14 / UI-16)+ post-restart **1** 张(`UI-15-post-restart.png`)。**不要**与 results JSON 的 21 条记录混为一谈 |
| 分离产物 | `playwright-output-main/`、`playwright-output-post-restart/`、`playwright-report-main/`、`playwright-report-post-restart/`(trace/video/html) |
| 历史失败 | 同根下 `schema30-*`、`schema31-*`、`ui0*`、`pre-auth-*`、`post-auth-*` 等 |
@@ -285,7 +285,7 @@ Wave 0–6 账本内核合入后,真实工作台仍表现为「账本未就绪
| `cd web && npm run build` | PASS |
| 隔离 PG:schema 1→31 高序列首次生成 / 重启 hydration | PASS;临时库已 DROP |
| `go test -race` `./internal/docrevision` `./internal/bizdev` | PASS(日志含 cached) |
| `go test -race` 全仓并行一次 | **整体 NOT PASS**:`ok chat-agent-system/internal/server 110.723s`,但 `TestCreateTaskRun_PreActivationAcceptedNot409` 在全包并行时 TempDir cleanup 一次失败 |
| `go test -race` 全仓并行一次 | **FAIL 109.279s**(`chat-agent-system/internal/server`);失败用例 `TestCreateTaskRun_PreActivationAcceptedNot409`,`TempDir RemoveAll: directory not empty`。不得写成 `ok ... 110.723s` 或全 race PASS |
| 该单测 `-race -count=5` | PASS;worker 日志可出现在 PASS 之后(测试基建/异步收口残留,**绝不能写全 race PASS**) |
Playwright(官方容器,真实 PI):