Skip to content

test(e2e): let the completed-worker fake Codex answer the --help probe - #24033

Merged
Jinwoo-H merged 1 commit into
mainfrom
e2e-ignore-codex-help-probe
Sep 30, 2026
Merged

Jinwoo-H merged 1 commit into
mainfrom
e2e-ignore-codex-help-probe

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​5 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​5
Prod 0 0 0 0

ELI5

Two end-to-end tests use a fake Codex program. Since #23900, Orca runs codex --help once before launching Codex, to check whether it supports --no-daemon. The fake treated that check as a real Codex launch, so the tests saw two launches where they expect one. The fake now answers --help and exits without counting it.

What Changed

  • Before: completed-worker-retirement-resume and settled-worker-tab-survives-restart (daemon session exited) fail. The fake Codex ledger shows {"args":["--help"],"event":"spawn"} next to the real launch.
  • After: the fake prints a short usage line for --help and exits 0 before writing to its ledger, mirroring how it already rejects app-server. Its help text has no --no-daemon, so Orca launches it exactly as before.

Test fixture only (tests/e2e/helpers/completed-worker-retirement-fixture.ts); no product code.

Why

#23900 changed no e2e files, and the "changed e2e specs" CI job runs only specs a PR touches, so main never ran these two. Any PR that touches their shared fixture hits the failure. Filtering --help spawns in each spec would repeat the rule in two places; answering it in the shared fake fixes both.

Linked Issue

Follow-up to #23900.

Visual Proof

N/A — test fixture change only.

Testing

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

macOS, headless (ORCA_BACKGROUND_LAUNCH=1 pnpm run test:e2e tests/e2e/completed-worker-retirement-resume.spec.ts tests/e2e/settled-worker-tab-survives-restart.spec.ts --workers=1):

  • With this change: 4 passed (both retirement-resume cases, and settled-worker-tab with the daemon session live and exited).
  • Same command on origin/main's fixture: 2 failed, 1 passed.

AI Disclosure

Review

Agent skill upstream boundary

  • Not applicable, or this change follows docs/reference/agent-skill-sharing-upstream-boundary.md and copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

The Windows codex.cmd wrapper forwards arguments to the same script, so the fix applies there too.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

#23900 probes codex --help before each launch; the fake counted it as a worker spawn, breaking two specs.
@Jinwoo-H
Jinwoo-H merged commit c3183a4 into main Sep 30, 2026
1 check failed
@greptile-apps

greptile-apps Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

[Low risk] End-to-end test fixture handles a help flag.

The PR appears safe to merge.

Summary

The shared fake Codex executable now answers --help and exits before recording a worker spawn, preserving the two specs’ launch-count assertions.

Reviews (1) · Last reviewed commit: "test(e2e): let the completed-worker fake..."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant