You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AssertionError: A KNOWN_MISSING entry is stale — the path now resolves, so the defect is fixed.
Delete its line from KNOWN_MISSING in this file to bank the progress.
packages/cli/templates (objectui#3665)
packages/create-plugin/templates (objectui#3665)
发现于 #3665 的实施(PR 待开)。观察类记录,不在该单完成范围内(#3665 的文件面明确 ⛔ 该测试文件其余断言一行不动)。
事实
scripts/__tests__/package-files-exist.test.ts的 ratchet 断言the objectui#3647 baseline only shrinks,其失败消息首行写死为:而
stale的判据是!stillMissing.has(relPath),missing又是从declared(= 各包files展开)里筛出来的。所以一条基线条目变陈旧有两条路径:files里,但fs.existsSync为真。这是消息描述的那条,也是 PR test(scripts): 补门禁——package.jsonfiles声明的条目必须在磁盘真实存在 (#3663) #3667 逆向验证 C 实测的那条(建出packages/cli/templates/)。files里删掉,于是它根本不再进入declared,自然也不在stillMissing里。#3665 走的正是第 2 条(两个
templates目录从未存在、也不该存在,正确修法是删声明)。实测输出:此时
packages/cli/templates并没有 resolve —— 它依然不存在,只是不再被声明。消息的诊断句与现场不符。影响(为什么记为观察类)
ls那个路径会发现它不存在,从而怀疑门禁自身坏了。#3665落地后KNOWN_MISSING已清空,这条消息在下一条基线条目被挂账之前不会再触发 —— 所以今天没有人会撞上。可能的处置(供分诊裁决,未实施)
把首行改成同时覆盖两条路径,例如:
#3665的 PR 里已经把这两条路径写进KNOWN_MISSING上方的文档注释(该注释本就是描述被删条目的,必须随之更新),但断言消息本身未动 —— 那超出该单的文件面。Generated by Claude Code