Skip to content

清理 #180 终审遗留:删 notes_processor 不可达守卫,修正测试表述,补纯空白输入用例 (#185) - #189

Merged
zj1123581321 merged 1 commit into
mainfrom
card/VideoTranscriptAPI-261006-fix
Oct 6, 2026
Merged

zj1123581321 merged 1 commit into
mainfrom
card/VideoTranscriptAPI-261006-fix

Conversation

@zj1123581321

Copy link
Copy Markdown
Collaborator

清理 #180 终审遗留(issue #185),三个文件一处语义测试补齐,无可执行行为变更:

  1. notes_processor.py:删除不可达的 if not mapping.slices: 守卫(is_valid 已要求非空 slices,:464 处即返回 FAILED)。
  2. test_empty_input_processors.py:test_notes_processor_empty_slices_returns_failed_result 改名 test_notes_processor_empty_chapters_fails_validation 并加注释——该测试实际锁定的是空 chapters → is_valid 校验失败路径,删除新守卫后它仍绿(codex 终审红验已证)。
  3. 新增 test_plain_text_process_whitespace_only_text:纯空白输入 " \t\n" 交付空串、零 LLM 调用,锁定既有语义。
  4. tests/README.md:169:收紧表述,区分「空列表直返(plain/speaker_aware)」与「空 chapters 校验失败(notes)」两条路径。

验证

  • grep -rn "not mapping.slices" src/ 零命中
  • uv run pytest tests/unit/test_empty_input_processors.py -q 7 passed
  • 红验控制:临时把 [text] if text.strip() else [] 改成 [text],新增用例变红;恢复后转绿
  • make test 全量通过(跳过 tests/manual)

Fixes #185

Refs #185

Agent-Executor: agy
Agent-Model: gemini-3.8-flash-high
Agent-Effort: unknown
Dispatch-Id: dlg-20261006-104938-bec2ec
Task-Id: VideoTranscriptAPI-20261006-06
@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown

Required Gate v2 — 状态面板

当前状态:pass · 可合并

当前裁决:code_pass / primary_pass

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

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

Run Attempt Head 状态 收件人动作
37453834702 1 ac3f1a9 pass 可合并

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

@zj1123581321
zj1123581321 merged commit f6c93a1 into main Oct 6, 2026
12 checks passed
@zj1123581321
zj1123581321 deleted the card/VideoTranscriptAPI-261006-fix branch October 6, 2026 11:14
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.

#180 终审遗留:notes_processor 空切片守卫不可达且测试不约束;纯空白输入语义未锁

1 participant