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

Since https://github.com/openai/codex/pull/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.


https://github.com/openai/codex/pull/21604/commits/8d5182663158ee2d15965f39eed26ffa339ecb7d
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

---------

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Zanie BlueandCodex authored and GitHub committed 2026-05-08 09:52:19 -07:00
1 parent 5733e00c79
commit 05ffa0b1d0
4 files changed
+18 -3

No files matched your search

+14
View File
@@ -149,6 +149,20 @@ fn skips_workspace_local_bwrap_in_joined_search_path() {
);
}
#[test]
fn root_cwd_does_not_hide_system_bwrap_candidates() {
let temp_dir = tempdir().expect("temp dir");
let bin_dir = temp_dir.path().join("bin");
std::fs::create_dir_all(&bin_dir).expect("create bin dir");
let expected_bwrap = write_named_fake_bwrap_in(&bin_dir);
let search_path = std::env::join_paths([bin_dir]).expect("join search path");
assert_eq!(
find_system_bwrap_in_search_paths(std::env::split_paths(&search_path), Path::new("/")),
Some(expected_bwrap)
);
}
fn write_fake_bwrap(contents: &str) -> tempfile::TempPath {
write_fake_bwrap_in(
&std::env::current_dir().unwrap_or_else(|_| PathBuf::from(".")),