Skip to content

补齐本地上传真实全链与生命周期回归证明 - #215

Merged
zj1123581321 merged 9 commits into
mainfrom
card/vta-upload-E-real-chain-261009
Oct 9, 2026
Merged

zj1123581321 merged 9 commits into
mainfrom
card/vta-upload-E-real-chain-261009

Conversation

@zj1123581321

@zj1123581321 zj1123581321 commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator

目标与范围

为已合入的本地音视频上传功能补齐真实用户入口和生命周期的回归证明。本 PR 不修改产品运行代码、依赖、部署配置或 workflow;同时校准网页已合、全链待正式验收、生产恢复仍待证的里程碑状态。

验收合同

  • Chromium 实际选择音频文件并提交原始 Blob/body、Bearer、幂等 key 和六字段 metadata,经过真实 FastAPI、SQLite、owned 文件、dispatcher、共享转录 SDK,再由正文、本人历史、公开阅读和停止分享入口消费。
  • ASR、LLM、通知只在最后外部网络接收端使用 loopback fixture,保留真实 SDK 序列化、ffprobe 执行与通知 HTTP JSON;不预置最终 receipt、正文或历史记录。
  • 浏览器 wire metadata 与真实持久化 metadata/processing_options 精确相等,原始字节和散列相等;正常响应观察器必须确实收到事件,未预期的 console/pageerror/requestfailed/HTTP 错误必须失败。仅允许精确的两种历史页换代请求取消,不保证取消次数。
  • 同意图一次受理、两个 owner 隔离、root 固定保留期、never、撤销不复活、有效成果清理保护、三个 owner 重处理入口,以及五组 controlled-pause 顺序均对应真实消费者断言。
  • 保留原 16 项合成页面回归,新增独立真实服务链;测试 workers=1、retries=0,不用重跑、跳过或清空错误记录掩盖失败。

验证入口

uv sync --frozen --python 3.11 && npm ci && npm --prefix e2e ci && TMPDIR=/tmp make test && npm run test:web && npm run test:browser

正式 ready 后须运行完整 CI 的代码主审、测试及 Chromium 检查;草稿跳过的主审不视为通过。本 PR 不继承 #209 的本地前置豁免。

明确边界与待办

测试子进程目前固定 TMPDIR=/tmp,未继承父进程的专有临时目录,作为测试隔离 P2 记录于 #216;服务 run-dir、数据和媒体路径仍独立。这不是生产目录策略,也不代表生产已验收。

本地 loopback 不证明真实模型效果、生产容量与磁盘工作集、反向代理、最低线上镜像或完整恢复域。本 PR 不部署、不填写生产限额、不打开上传开关。

zj1123581321 and others added 8 commits October 9, 2026 22:40
Agent-Executor: codex
Agent-Model: gpt-6-luna
Agent-Effort: xhigh
Dispatch-Id: dlg-20261009-143613-e0d93e
Task-Id: VideoTranscriptAPI-20261009-25
Agent-Executor: codex
Agent-Model: gpt-6-luna
Agent-Effort: xhigh
Dispatch-Id: dlg-20261009-143613-e0d93e
Task-Id: VideoTranscriptAPI-20261009-25
Agent-Executor: codex
Agent-Model: gpt-6-luna
Agent-Effort: xhigh
Dispatch-Id: dlg-20261009-143613-e0d93e
Task-Id: VideoTranscriptAPI-20261009-25
Agent-Executor: pi-lead
Agent-Session: pi-lead-1791429303659-4145181
Co-authored-by: Cursor <cursoragent@cursor.com>
Agent-Executor: cursor
Agent-Model: cursor-grok-4.6-high
Agent-Effort: unknown
Dispatch-Id: dlg-20261009-163031-3b9b75
Task-Id: VideoTranscriptAPI-20261010-01
Agent-Executor: glm-pi
Agent-Model: glm-5.3-flash
Agent-Effort: high
Dispatch-Id: dlg-20261009-172120-d23a33
Task-Id: VideoTranscriptAPI-20261010-02
历史页每次换代会用 AbortController 取消在途的私有请求,是否真的产生
net::ERR_ABORTED 取决于当时请求是否仍在飞行中,实测同一条链可出现 0/1/2
次。原先对取消数量硬期待 >= 2,会在正常调度下假红(Expected >= 2
Received 1)。

改为在同一个 page.on('response') 回调里、早于 status < 400 提前返回处
统计正常响应数,并断言它 > 0,用独立于坏事件的正常输入证明观察器确实
在工作。精确的 expectedPageAborts 清单、非预期网络项必须为空、console
与 pageerror 守卫都保持不变。

Agent-Executor: minimax-pi
Agent-Model: MiniMax-M3.1-Flash-Preview
Agent-Effort: high
Dispatch-Id: dlg-20261009-183724-d0dd55
Task-Id: VideoTranscriptAPI-20261010-04
Agent-Executor: pi-lead
Agent-Session: pi-lead-1791429303659-4145181
@zj1123581321 zj1123581321 changed the title 测试:证明本地上传读取与到期竞态 补齐本地上传真实全链与生命周期回归证明 Oct 9, 2026
@zj1123581321
zj1123581321 marked this pull request as ready for review October 9, 2026 19:45
@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown

Required Gate v2 — 状态面板

当前状态:pass · 可合并

当前裁决:code_pass / primary_pass

PR 累计主审轮(影子):1/5 · collecting

历史可能不完整:2 个制品处理失败:URLError;1 个历史重建预算耗尽

Gate 历史(v1;来源为持久化 gate_terminal 制品)

Run Attempt Head 状态 PR 累计主审轮(影子) 收件人动作
37946069306 1 94a2422 skipped — 无需动作(主审未跑,绿≠过审)
37948806448 1 e6293bc skipped — 无需动作(主审未跑,绿≠过审)
37949965821 1 56ad49b skipped — 无需动作(主审未跑,绿≠过审)
37969002409 1 144411e skipped — 无需动作(主审未跑,绿≠过审)
37978418584 1 b50c861 skipped — 无需动作(主审未跑,绿≠过审)
37982363941 1 b56d6ff fail — 要修代码
37982433577 1 b56d6ff pass 1/5 · collecting 可合并

历史行按 run_id + run_attempt 去重并只增不删;删除本评论后可由 gate_terminal 制品重建。

@zj1123581321
zj1123581321 merged commit 429b8b1 into main Oct 9, 2026
24 of 26 checks passed
@zj1123581321
zj1123581321 deleted the card/vta-upload-E-real-chain-261009 branch October 9, 2026 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant