Repository navigation
Conversation
wpt-oai
approved these changes
Aug 14, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The high-order bit on this PR is that it makes it so
sandbox.rstests both Mac and Linux, as we introduce a generalspawn_command_under_sandbox()function with platform-specific implementations for testing.An important, and interesting, discovery in porting the test to Linux is that (for reasons cited in the code comments),
/dev/shmhas to be added towritable_rootson Linux in order formultiprocessing.Lockto work there. Granting write access to/dev/shmcomes with some degree of risk, so we do not make this the default for Codex CLI.Piggybacking on top of #2317, this moves the
python_multiprocessing_lock_workstest yet again, movingcodex-rs/core/tests/sandbox.rstocodex-rs/exec/tests/sandbox.rsbecause incodex-rs/exec/testswe can usecargo_bin()like so:which is necessary so we can use
codex_linux_sandbox_exeand thereforespawn_command_under_linux_sandboxin an integration test.This also moves
spawn_command_under_linux_sandbox()out ofexec.rsand intolandlock.rs, which makes things more consistent withseatbelt.rsincodex-core.For reference, #1808 is the PR that made the change to Seatbelt to get this test to pass on Mac.