Repository navigation
test(e2e): let the completed-worker fake Codex answer the --help probe - #24033
Merged
Merged
Conversation
#23900 probes codex --help before each launch; the fake counted it as a worker spawn, breaking two specs.
|
This was referenced Oct 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ELI5
Two end-to-end tests use a fake Codex program. Since #23900, Orca runs
codex --helponce 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--helpand exits without counting it.What Changed
completed-worker-retirement-resumeandsettled-worker-tab-survives-restart(daemon session exited) fail. The fake Codex ledger shows{"args":["--help"],"event":"spawn"}next to the real launch.--helpand exits 0 before writing to its ledger, mirroring how it already rejectsapp-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
mainnever ran these two. Any PR that touches their shared fixture hits the failure. Filtering--helpspawns 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
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):origin/main's fixture: 2 failed, 1 passed.AI Disclosure
Review
Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
The Windows
codex.cmdwrapper forwards arguments to the same script, so the fix applies there too.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)