Skip to content

检查:自检没说完最后一句就算失败;YouTube 不给视频时冒烟跳过侧边栏的种子检查 - #476

Merged
PathGao merged 1 commit into
mainfrom
ci-checks
Nov 14, 2026
Merged

PathGao merged 1 commit into
mainfrom
ci-checks

Conversation

@PathGao

@PathGao PathGao commented Nov 14, 2026

Copy link
Copy Markdown
Owner

改了什么

  • scripts/selftest.mjs:一个自检要在最后一行说出 ok / passed / checked 才算过。Node 在脚本等一个永远不来的结果时以 0 退出,只看退出码会把半路停掉的自检记成通过。
  • extension/download.selftest.js:「点外面关闭」那段还在等一个早已删掉的点击处理(侧边栏输入框和两个弹窗改用原生 field-sizing 与 closedby #471 起由浏览器的 closedBy = "any" 负责),自检停在那里,后面三段文案检查一直没跑。改成只查 closedBy。
  • scripts/smoke.mjs:YouTube 不给可播的视频时(GitHub 机器上常见),跳过侧边栏的种子检查并打印 YouTube 给了什么,和 B站那边的处理一致(冒烟检查:B站不给视频页时跳过种子检查,打印它给了什么 #419)。侧边栏没画出对话时,报错里带上它当时显示的字。

验证

  • 旧的 download.selftest.js 配新的总脚本:报 failed: download.selftest.js (it stopped before its last line)。
  • 改后 node scripts/selftest.mjs:50 selftests ok。
  • smoke.mjs 里把视频号换成不存在的:打印 YouTube served no video here (ERROR …) 并跳过;正常视频号不跳过。
  • 没验证:GitHub 机器上 YouTube 实际给了什么。历史失败的日志里没有记录,「没给可播的视频」是从 the seeded data drew no .sp-msg-assistant 反推的。
  • 本地冒烟这几次挂在 B站评论没加载(今天跑得太多被限流),和这次改动无关。

@PathGao
PathGao merged commit b457511 into main Nov 14, 2026
2 checks passed
@PathGao
PathGao deleted the ci-checks branch November 14, 2026 11:22
@PathGao PathGao mentioned this pull request Nov 14, 2026
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