[codex] Make unified exec tests remote aware (#16977)

## Summary
- Convert unified exec integration tests that can run against the remote
executor to use the remote-aware test harness.
- Create workspace directories through the executor filesystem for
remote runs.
- Install `python3` and `zsh` in the remote test container so restored
Python/zsh-based test commands work in fresh Ubuntu containers.

## Validation
- `just fmt`
- `cargo test -p codex-core --test all unified_exec_defaults_to_pipe`
- `cargo test -p codex-core --test all unified_exec_can_enable_tty`
- `cargo test -p codex-core --test all unified_exec`
- Remote on `codex-remote`: `source scripts/test-remote-env.sh && cd
codex-rs && cargo test -p codex-core --test all unified_exec`
- `just fix -p codex-core`
This commit is contained in:
pakrym-oai
2026-04-07 10:56:08 -07:00
committed by GitHub
Unverified
parent b525b5a3a7
commit 365154d5da
2 changed files with 217 additions and 619 deletions
File diff suppressed because it is too large Load Diff
+4
View File
@@ -49,6 +49,10 @@ setup_remote_env() {
docker rm -f "${container_name}" >/dev/null 2>&1 || true
docker run -d --name "${container_name}" ubuntu:24.04 sleep infinity >/dev/null
if ! docker exec "${container_name}" sh -lc "apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y python3 zsh"; then
docker rm -f "${container_name}" >/dev/null 2>&1 || true
return 1
fi
export CODEX_TEST_REMOTE_ENV="${container_name}"
}