From cf881a627dd52e7aecef63416c1acd2a89c4dfbd Mon Sep 17 00:00:00 2001 From: Anthony Tafoya Date: Thu, 19 Nov 2026 02:52:34 +0000 Subject: [PATCH] Enable network access in the shell snapshot filesystem test (#62415) ## Why Remote runners can block bubblewrap from creating a nested network namespace, preventing the shell from starting and reaching the filesystem checks. ## What changed Enable network access in `denied_read_in_second_workspace_root` so the test can exercise denied reads across both workspace roots without requiring a nested network namespace. GitOrigin-RevId: 26eada1e5efde4a31190628f4696c6beb400454d --- codex-rs/core/src/shell_snapshot_sandbox_tests.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/codex-rs/core/src/shell_snapshot_sandbox_tests.rs b/codex-rs/core/src/shell_snapshot_sandbox_tests.rs index 4e58f68420..81f4739a97 100644 --- a/codex-rs/core/src/shell_snapshot_sandbox_tests.rs +++ b/codex-rs/core/src/shell_snapshot_sandbox_tests.rs @@ -63,8 +63,10 @@ async fn snapshot_failure_omits_credentials_and_stops_descendants( }, FileSystemAccessMode::Deny, )); + // This fixture only exercises filesystem restrictions. Remote runners can + // deny bubblewrap's nested network namespace before the shell starts. ( - PermissionProfile::from_runtime_permissions(&policy, NetworkSandboxPolicy::Restricted), + PermissionProfile::from_runtime_permissions(&policy, NetworkSandboxPolicy::Enabled), SandboxSelection::Platform { preference: SandboxablePreference::Auto, windows_sandbox: SandboxType::None,