Skip to content

fix(test): preserve Node in E2E sandbox - #963

Merged
blafourcade merged 1 commit into
nextfrom
codex/e2e-sandbox-node-isolation
Oct 12, 2026
Merged

blafourcade merged 1 commit into
nextfrom
codex/e2e-sandbox-node-isolation

Conversation

@alexsoyes

@alexsoyes alexsoyes commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

🎯 What & why

The E2E sandbox excludes directories containing AI tools. When node and codex share a directory, this also removes Node. On this machine, the existing Node availability test fails with expected '' not to be '', blocking the pre-push gate for unrelated changes. This fix was extracted from #747.

🛠️ How it works

The sandbox helper puts Node in a temporary, Node-only directory when its original directory must be filtered: a symlink on Unix or a copy on Windows, cleaned up after the tests. It also excludes opencode. The regression test verifies that Node runs while Codex remains unavailable. Production CLI behavior is unchanged.

🧪 How to verify

From cli/, run pnpm exec vitest run --project=e2e tests/e2e/sandbox-reaches-no-tool-binary.e2e.test.ts. The file passes 4/4 tests on this branch; its existing Node availability test fails on next when Node and Codex are installed together. GitHub checks passed.

✅ I certify

  • I DO CERTIFY I READ EACH LINE OF THE PULL REQUEST BECAUSE I AM A SOFTWARE ENGINEER, NOT A AI PUPPY.

@alexsoyes alexsoyes self-assigned this Oct 6, 2026
AIDD-Session-Id: 01a0ca9a-53ab-7ec2-bdc8-d6a3b3ae164c
@blafourcade
blafourcade force-pushed the codex/e2e-sandbox-node-isolation branch from 82a4f76 to 98da52b Compare October 7, 2026 12:58
@alexsoyes
alexsoyes requested a review from blafourcade October 9, 2026 03:40
@alexsoyes alexsoyes assigned blafourcade and unassigned alexsoyes Oct 9, 2026
@alexsoyes
alexsoyes marked this pull request as ready for review October 9, 2026 03:40
@alexsoyes
alexsoyes requested a review from a team as a code owner October 9, 2026 03:40
@blafourcade
blafourcade merged commit 21afc26 into next Oct 12, 2026
25 checks passed
@blafourcade
blafourcade deleted the codex/e2e-sandbox-node-isolation branch October 12, 2026 04:11
@aidd-bot aidd-bot Bot mentioned this pull request Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants