Skip to content

tests: a routine test run wraps its custom command server in the dry-run MCP (#491) - #500

Open
kridaydave wants to merge 2 commits into
DuskBotAI:devfrom
kridaydave:test/codex-dry-run-env-regression
Open

kridaydave wants to merge 2 commits into
DuskBotAI:devfrom
kridaydave:test/codex-dry-run-env-regression

Conversation

@kridaydave

Copy link
Copy Markdown
Contributor

Follow-up regression test for #491, already closed by 382363afd5 (custom MCP servers are wrapped by the dry-run MCP during routine test runs).

The existing Codex tests cover the reserved environment names and a custom server mount, but not that a routine test run's own dry-run wrapper wraps a custom command server and records which server it belongs to. This adds one test:

  • mounts a command MCP server through testRunMounts;
  • runs a turn;
  • asserts the wrapper env names the notes server and the upstream envelope, and the turn completes without a runtime error.

It also includes the small server/system-proxy.ts prerequisite from #499 so the static source-guard job is green on this branch: undici is loaded at first use inside installSystemProxy rather than at module load.

Focused tests:

node --experimental-strip-types node_modules/vitest/vitest.mjs run server/drivers/codex.test.ts scripts/testing/lazy-server-modules.test.ts -t "runs a routine test run's own dry-run wrapper|the server loads tar"

2 passed, 289 skipped.

@kridaydave
kridaydave force-pushed the test/codex-dry-run-env-regression branch from 3136f7f to c6aaefc Compare December 3, 2026 11:43
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