Skip to content

CI test baseline comment states the wrong storage default ("shadow" instead of "full") — misleading to test authors | CI 测试基线注释写错存储默认模式(shadow 应为 full),误导测试作者 #4375

Closed

Description

@ranxianglei

[no-dispatch]

来源: #4011 (#4011) 分析 #4004 时发现

现象

tests/preload-storage-baseline.mjs 给 CI 里所有测试文件钉死 BILI_STORAGE_UNIFIED ??= "legacy",但头部注释仍写着生产默认值是 "shadow"(#2815 时期的临时值)。#3818 之后生产默认值已经是 "full"。

影响

纯注释错误,无运行时影响。但会误导读注释的测试作者:以为基线只是把「shadow」压回 legacy,实际上它压制的是「full」。PR #4011 的新测试正是踩了这个坑——依赖生产默认(full)的断言本地过、CI 全红。

修复

已由 PR #4374 修掉(仅改注释 + 补一句「断言依赖特定模式的测试必须自己钉 BILI_STORAGE_UNIFIED」的教训)。本 issue 仅作留痕记录。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions