Skip to content

tests: avoid ambient temp sandbox roots#22576

Merged
starr-openai merged 2 commits into
mainfrom
starr/avoid-ambient-tmp-sandbox-tests-20260513
May 14, 2026
Merged

tests: avoid ambient temp sandbox roots#22576
starr-openai merged 2 commits into
mainfrom
starr/avoid-ambient-tmp-sandbox-tests-20260513

Conversation

@starr-openai

Copy link
Copy Markdown
Contributor

Why

Some sandboxed integration tests enabled both ambient temp roots (TMPDIR and literal /tmp) even though they were not testing temp-root behavior. On Linux bwrap, making /tmp writable causes protected metadata mount targets such as /tmp/.git, /tmp/.agents, and /tmp/.codex to be synthesized. If a run is interrupted, those top-level markers can be left behind and contaminate later tests.

What changed

For the incidental integration tests that do not need ambient temp-root access, set exclude_tmpdir_env_var and exclude_slash_tmp to true. Dedicated protected-metadata coverage remains in the lower-level sandbox tests that use isolated temp roots.

Verification

Focused remote devbox repros passed with a watcher polling /tmp/.git, /tmp/.agents, and /tmp/.codex; no leaked markers were observed.

@starr-openai starr-openai requested a review from a team as a code owner May 14, 2026 00:03
@starr-openai starr-openai merged commit 8736e32 into main May 14, 2026
31 checks passed
@starr-openai starr-openai deleted the starr/avoid-ambient-tmp-sandbox-tests-20260513 branch May 14, 2026 17:04
@github-actions github-actions Bot locked and limited conversation to collaborators May 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants