ci(evals): run the eval dispatch with TMPDIR outside /tmp so Bash cases can write
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
从工作流文件 eval-browser-dispatch.yml 开始,其中的 claude plugin eval 步骤使用 runner 默认的 TMPDIR 运行。在该步骤上将 TMPDIR 设置为 /tmp 之外的短目录(24 个字符或更少),然后检查它生成的沙箱设置。当一次派发(dispatch)中,授予了 Bash 权限且会写入其工作区的用例,其追踪记录中不再出现 'Read-only file system' 行时,即完成。
由索引模型根据 Issue 内容生成。
描述
Refs: #12070
Outcome
eval-browser-dispatch.yml runs claude plugin eval with the runner's default TMPDIR, so every run root lands under /tmp. On Claude Code 2.1.316 the run's own sandbox settings then make that root read-only to Bash: sandbox.filesystem.allowWrite lists the run's home and tmp directories, and denyWrite lists //tmp, which covers both and wins. Any Bash-granting case that writes in its workspace (a git fetch, git merge, the verify record, the gh-forge stand-in's state) fails with Read-only file system in CI.
Evidence from the #12070 host run (2026-11-01, Claude Code 2.1.316, --runs 1 --ablation none, the two pull-request-ready-* cases):
- Default
TMPDIR:cannot lock ref 'ORIG_HEAD': Unable to create '<run>/home/cwd/.git/ORIG_HEAD.lock': Read-only file system, andzsh:2: read-only file system: <run>/tmp/claude-1000/cwd-*. Neither case reachedgh pr ready. TMPDIRoutside/tmp: no read-only write in either trace, both cases reachedgh pr readyand scored 1.0, validity gate VALID.
/evals:plugin-eval already tells local runs on Linux and WSL2 to set TMPDIR to a short directory outside the system temp directory.
Done when
- The eval dispatch workflow runs
claude plugin evalwithTMPDIRset to a short directory outside/tmp(at most 24 characters, per/evals:plugin-eval's sandbox-start reference, so the sandbox's bridge sockets still fit). - A dispatch of a Bash-granting case that writes in its workspace shows no
Read-only file systemline in its trace.
Out of scope
- Changing the eval cases or the gh-forge stand-in: with a writable root they need no change.
- 主要语言
- Shell
- 星标
- 22
- 派生
- 2
- 平均合并
- 1 小时 38 分钟
- 30 天内合并 PR
- 911
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
melodic-software/claude-code-plugins 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 67/100
melodic-software/claude-code-plugins#9179 · 1 条评论 ·
维护者通常 1 天内回复
-
priority: low status: confirmed
难度 2/5 1-3 小时 新手友好度 72/100
melodic-software/claude-code-plugins#8799 ·
维护者通常 1 天内回复
-
needs-human priority: low work-class: read-only
难度 2/5 1-3 小时 新手友好度 62/100
melodic-software/claude-code-plugins#5696 · 1 条评论 ·
维护者通常 1 天内回复
-
admission-deferred priority: medium status: ready work-class: scoped
难度 4/5 3-5 天 新手友好度 40/100
melodic-software/claude-code-plugins#12299 · 4 条评论 ·
维护者通常 1 天内回复
-
rendered-views: migrate the grandfathered HTML-emitting surfaces to the convention (fleet ladder sweep + evals reconciliation) - part 1 of 3可能已有人在做 @melodic-automation-lanes 今天认领。 未关闭agent-ready priority: medium status: ready work-class: scoped
难度 5/5 一周以上 新手友好度 18/100
melodic-software/claude-code-plugins#12296 · 3 条评论 ·
维护者通常 1 天内回复
查看 melodic-software/claude-code-plugins 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
paperclipai/paperclip#18671 ·
维护者通常 1 天内回复
-
area:core
难度 2/5 1-3 小时 新手友好度 85/100
julian-hemmer/ypass#4 ·
-
needs-triage
难度 2/5 1 小时以内 新手友好度 62/100
manaflow-ai/cmux#32519 ·
维护者通常 1 天内回复
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 88/100
mukkund1996/serenity#88 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
openwrt/packages#31124 · 1 条评论 ·
维护者通常 1 天内回复