From 00a085fa6e9011102aabbe47b0f19e28f97d995f Mon Sep 17 00:00:00 2001 From: ryan-crabbe-berri Date: Mon, 2 Nov 2026 13:58:06 -0800 Subject: [PATCH] test(e2e): record a step when the Codex harness sets up its home and workspace The suite rules ask every public harness helper that does something to record a step, so a failed run shows whether it died while setting up Codex or while running it --- tests/e2e/codex/harness.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/e2e/codex/harness.py b/tests/e2e/codex/harness.py index 3eebae8bb5d..58e63b5e14e 100644 --- a/tests/e2e/codex/harness.py +++ b/tests/e2e/codex/harness.py @@ -47,6 +47,7 @@ class CodexHarness: def codex_home(self) -> Path: return self.home / ".codex" + @step("Create a workspace folder holding the test's files") def new_workspace(self, files: Mapping[str, str]) -> Path: workspace: Final = Path(tempfile.mkdtemp(prefix="workspace-", dir=self.home)) for name, content in files.items(): @@ -71,6 +72,7 @@ class CodexHarness: return codex_run(exit_code=completed.returncode, stdout=completed.stdout, stderr=completed.stderr) +@step("Give Codex a fresh empty home whose config sends every request to the proxy") @contextmanager def codex_harness( *, gateway: str, api_key: str, rate_bucket: RateBucket, limiter: RateLimiter