fix(evals): two run-validity denial tests fail on Windows
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
从 plugins/evals/skills/plugin-eval/scripts/run-validity.test.sh 以及失败的用例 test_a_with_arm_denial_outside_the_plugin_scoring_the_same_is_a_warning 和 test_a_with_arm_denial_beside_the_plugin_name_prefix_is_a_warning 开始。然后阅读 run-validity.py 中插件根目录经过 os.path.abspath/os.path.normpath 的部分,以及 inside/above/beside 被分类的位置,并检查 fixtures 如何构建 /tmp/eval-r2 和 /tmp/claude-eval-x。完成的标志是这 39 个测试在 Windows 上全部通过,方式要么是以单一规范化形式比较路径,要么是从平台临时目录派生 fixture 路径;运行该脚本以确认在 POSIX 上没有回归。
由索引模型根据 Issue 内容生成。
描述
No related PR: found while verifying #6497, which does not touch these files.
Summary
plugins/evals/skills/plugin-eval/scripts/run-validity.test.sh fails 2 of 39 tests on Windows with any TMPDIR, including the default on C:, and fails the same way on origin/main at 42f26c1dd:
test_a_with_arm_denial_outside_the_plugin_scoring_the_same_is_a_warningtest_a_with_arm_denial_beside_the_plugin_name_prefix_is_a_warning
Both expect VALID with a permission-denials WARN and get INVALID with FAIL.
Likely cause
The fixtures use POSIX paths (/tmp/eval-r2/plugins/evals, a denial at /tmp/claude-eval-x), while run-validity.py normalizes plugin roots with os.path.abspath/os.path.normpath, which on Windows yields drive-and-backslash paths. The inside/above/beside classification then no longer sees the denial as outside the plugin. Either the check should compare paths in one form, or the fixtures should build their paths from the platform's temp directory.
- 主要语言
- Shell
- 星标
- 22
- 派生
- 2
- 平均合并
- 8 小时 41 分钟
- 30 天内合并 PR
- 892
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
melodic-software/claude-code-plugins 的其他 Issue
-
good first issue needs-human priority: low work-class: mechanical
难度 2/5 1-3 小时 新手友好度 92/100
melodic-software/claude-code-plugins#8023 · 1 条评论 ·
维护者通常 1 天内回复
-
needs-human work-class: mechanical
难度 2/5 1-3 小时 新手友好度 76/100
melodic-software/claude-code-plugins#8021 ·
维护者通常 1 天内回复
-
needs-human work-class: scoped
难度 2/5 1-3 小时 新手友好度 84/100
melodic-software/claude-code-plugins#8018 ·
维护者通常 1 天内回复
-
docs(planning): point the interview surface context at the surface README instead of restating it未关闭needs-human work-class: mechanical
难度 2/5 1-3 小时 新手友好度 78/100
melodic-software/claude-code-plugins#8015 ·
维护者通常 1 天内回复
-
needs-human work-class: mechanical
难度 2/5 1-3 小时 新手友好度 86/100
melodic-software/claude-code-plugins#8004 ·
维护者通常 1 天内回复
查看 melodic-software/claude-code-plugins 的全部 Issue
相似的 Issue
-
bug good first issue
难度 2/5 1-3 小时 新手友好度 68/100
scarif-labs/horus#61 ·
维护者通常 1 天内回复
-
documentation
难度 2/5 1-3 小时 新手友好度 88/100
IntersectMBO/developer-experience#362 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
registrystack/registry-stack#2168 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 92/100
维护者通常 2 天内回复
-
Bug triage/confirmed
难度 2/5 半天 新手友好度 85/100
agentscope-ai/agentscope#3355 ·
维护者通常 2 天内回复