Skip to content

Fix rust-ci-full failures due to missing bwrap#21604

Merged
zanie-oai merged 3 commits into
mainfrom
zb/ci-debug-diagnose
May 8, 2026
Merged

Fix rust-ci-full failures due to missing bwrap#21604
zanie-oai merged 3 commits into
mainfrom
zb/ci-debug-diagnose

Conversation

@zanie-oai
Copy link
Copy Markdown
Contributor

@zanie-oai zanie-oai commented May 7, 2026

Since #21255, rust-ci-full has been failing due to a missing bwrap.

thread 'main' panicked at linux-sandbox/src/launcher.rs:43:13:
bubblewrap is unavailable: no system bwrap was found on PATH and no bundled codex-resources/bwrap binary was found next to the Codex executable

Since the happy path is now to use the system binary, let's ensure that's installed.

8d51826 was necessary for the bwrap executable to be discoverable when the working directory is /.

I ran rust-ci-full at https://github.com/openai/codex/actions/runs/25528074506

@zanie-oai zanie-oai changed the title Include bubblewrap in installed system packages during full ci setup Include bubblewrap in installed system packages for rust-ci-full May 7, 2026
zanie-oai and others added 2 commits May 7, 2026 16:12
The rust-ci-full remote Linux tests run the exec server inside an Ubuntu Docker container. Install bubblewrap there too so sandboxed commands can find system bwrap on PATH.\n\nCo-authored-by: Codex <noreply@openai.com>
The remote exec-server in rust-ci-full can start with / as its current directory. Treating that root cwd like a workspace path caused system bwrap candidates such as /usr/bin/bwrap to be filtered out as local binaries.

Keep excluding bwrap candidates inside non-root cwd values, but allow normal PATH lookup when cwd is root.

Co-authored-by: Codex <noreply@openai.com>
@zanie-oai zanie-oai marked this pull request as ready for review May 8, 2026 00:29
@zanie-oai zanie-oai changed the title Include bubblewrap in installed system packages for rust-ci-full Fix rust-ci-full failures due to missing bwrap May 8, 2026
@zanie-oai zanie-oai requested a review from bolinfest May 8, 2026 16:42
Copy link
Copy Markdown
Collaborator

@bolinfest bolinfest left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great find: ty!

I had noticed that rust-ci-full was...more red...than usual but didn't have a chance to investigate. This explains a lot!

);
}

#[test]
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be cfg(unix) due to the Path::new("/")?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This whole file is restricted to Linux already, so it'd be superfluous. Path::new("/") is fine on Windows regardless, the intent of the test just might not be relevant.

@zanie-oai zanie-oai merged commit 05ffa0b into main May 8, 2026
45 of 51 checks passed
@zanie-oai zanie-oai deleted the zb/ci-debug-diagnose branch May 8, 2026 16:52
@github-actions github-actions Bot locked and limited conversation to collaborators May 8, 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