https://github.com/entireio/cli/actions/runs/24896599166/job/72902982667 codex e2e test…
- User
https://github.com/entireio/cli/actions/runs/24896599166/job/72902982667 codex e2e test are failing, why?
Assistant
Codex job had many fails. Look for root cause in codex agent code where
codex_homeset.Assistant
Codex CLI bumped to version that refuse install helper binaries when
CODEX_HOMEsit under/tmp.Exact stderr each failed test:
codeRefusing to create helper binaries under temporary dir "/tmp" (codex_home: AbsolutePathBuf("/tmp/codex-home-..."))Source:
e2e/agents/codex.go:65-71callos.MkdirTemp("", "codex-home-*"). Empty first arg =$TMPDIRwhich on GH Actions Linux runner =/tmp. New codex guard reject it.Cascading effect: codex start emit WARNING, fail install PATH helpers → later tool calls (
apply_patch,shell,functions) break → assertions fail (missing files, missing rewind points, missingEntire-Checkpointtrailer). Many tests also hitpatch rejected: empty patch/NameError: name 'functions' is not defineddownstream from same broken env.Macro (claude/cursor/gemini etc jobs) unaffected — only codex codepath use
CODEX_HOME.Fix: move CODEX_HOME outside /tmp. E.g.
os.MkdirTemp(filepath.Join(os.Getenv("HOME"), ".cache"), "codex-home-*")or pass dir. Also check if upstream expose env to waive check.- User
ok
Assistant
Verify build + lint.
Assistant
Lint clean. Build clean.
Fix:
e2e/agents/codex.go—codexHome()now putCODEX_HOMEunder$HOME/.cache/entire-e2e/codex-home-*instead$TMPDIR(/tmpon CI). Avoid codex refusalRefusing to create helper binaries under temporary dir "/tmp". Cleanup unchanged —RemoveAllon per-run dir.Commit?
- User
commit and push branch, do not create PR
Assistant
Pushed
fix-codex-test-e2e→ origin. Commita2c6e893f. No PR.