Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

fix(evals): two run-validity denial tests fail on Windows

已关闭 适合新手
#6,499 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
78/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
python, shell
领域
testing

调研方向

从 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 内容生成。

描述

good first issue needs-triage priority: medium

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_warning
  • test_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 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

melodic-software/claude-code-plugins 的其他 Issue

查看 melodic-software/claude-code-plugins 的全部 Issue

相似的 Issue

更多 Shell/Bash Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。