ci(evals): run the eval dispatch with TMPDIR outside /tmp so Bash cases can write

Aperta Adatta ai principianti
#12,083 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
74/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
github-actions, shell
Ambito
ci-cd

Direzione di ricerca

Inizia dal file di workflow eval-browser-dispatch.yml, dove il passo claude plugin eval viene eseguito con il TMPDIR predefinito del runner. Imposta TMPDIR su quel passo a una directory breve al di fuori di /tmp (24 caratteri o meno), poi controlla le impostazioni della sandbox che produce. È completato quando un dispatch di un caso con permesso Bash che scrive nel proprio workspace non mostra alcuna riga 'Read-only file system' nella sua traccia.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

host-run priority: medium status: ready work-class: scoped

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, and zsh:2: read-only file system: <run>/tmp/claude-1000/cwd-*. Neither case reached gh pr ready.
  • TMPDIR outside /tmp: no read-only write in either trace, both cases reached gh pr ready and 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 eval with TMPDIR set 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 system line in its trace.

Out of scope

  • Changing the eval cases or the gh-forge stand-in: with a writable root they need no change.
Lingua principale
Shell
Stelle
22
Fork
2
Merge medio
1h 38m
PR unite (30g)
911

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di melodic-software/claude-code-plugins

Tutte le issue di melodic-software/claude-code-plugins

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.