Skip to content

test: migrate TestAppServer callers to builder - #31451

Merged
anp-oai merged 1 commit into
mainfrom
codex/test-app-server-builder-callers
Jul 8, 2026
Merged

test: migrate TestAppServer callers to builder#31451
anp-oai merged 1 commit into
mainfrom
codex/test-app-server-builder-callers

Conversation

@anp-oai

@anp-oai anp-oai commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Why

Keep the TestAppServer builder API change reviewable by moving the repository-wide caller migration into a mechanical follow-up.

What

  • replace TestAppServer constructor callsites with equivalent builder chains
  • preserve each caller's automatic-environment, args, program, env, managed-config, plugin-startup, and JSON-logging behavior
  • make no TestAppServer implementation changes

Validation

  • cargo check -p codex-app-server --tests

Cleanup stack

  1. #31425 test: add TestAppServer builder
  2. #31451 test: migrate TestAppServer callers to builder
  3. #31452 test: remove TestAppServer constructors
@anp-oai
anp-oai force-pushed the codex/test-app-server-builder branch from 229d5b7 to a285d5e Compare July 7, 2026 18:29
@anp-oai
anp-oai force-pushed the codex/test-app-server-builder-callers branch 2 times, most recently from dce1084 to 50462a1 Compare July 7, 2026 18:35
@anp-oai
anp-oai force-pushed the codex/test-app-server-builder branch from a285d5e to 12510ad Compare July 7, 2026 19:04
@anp-oai
anp-oai force-pushed the codex/test-app-server-builder-callers branch from 50462a1 to 87b5a6a Compare July 7, 2026 19:04
@anp-oai
anp-oai force-pushed the codex/test-app-server-builder branch from 12510ad to ae9a4a1 Compare July 7, 2026 22:10
anp-oai added a commit that referenced this pull request Jul 7, 2026
## Why

Test callers need one composable way to create app-server fixtures
instead of a growing family of overlapping constructor implementations.

## What

- add a feature-complete TestAppServer::builder()
- make the default builder own a temporary CODEX_HOME and select the
automatic test environment
- expose builder knobs for no automatic environment, explicit
CODEX_HOME, program, arguments, plugin startup tasks, environment
overrides, managed config, and JSON logging
- keep the existing public constructor surface, but route every
constructor through the builder so the new path is exercised immediately
- remove the redundant private constructor ladders; caller migration and
public constructor removal live in the optional cleanup stack

## Validation

- just test -p codex-app-server (940/941 before updating the expected
builder error wording)
- just test -p codex-app-server
auto_env_rejects_explicit_environment_config
- just fix -p codex-app-server
- just fmt

## Follow-up stacks

Cleanup, optional for the benchmark work:

1. [#31451 test: migrate TestAppServer callers to
builder](#31451)
2. [#31452 test: remove TestAppServer
constructors](#31452)

Benchmark infrastructure:

1. [#31427 test: add delayed exec-server
transport](#31427)
2. [#31295 bench: add cold skill load
macrobenchmark](#31295)
3. [#31428 bench: add e2e benchmark
entrypoints](#31428)
4. [#31429 ci: smoke Bazel e2e
benchmarks](#31429)
Base automatically changed from codex/test-app-server-builder to main July 7, 2026 22:20
@anp-oai
anp-oai force-pushed the codex/test-app-server-builder-callers branch 2 times, most recently from 035504b to 5d76622 Compare July 7, 2026 23:01
@anp-oai
anp-oai marked this pull request as ready for review July 7, 2026 23:44
@anp-oai

anp-oai commented Jul 7, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: 5d766224d9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@anp-oai
anp-oai force-pushed the codex/test-app-server-builder-callers branch from 5d76622 to ed08452 Compare July 8, 2026 00:02
@anp-oai
anp-oai enabled auto-merge (squash) July 8, 2026 00:03
@anp-oai
anp-oai merged commit dbd2df2 into main Jul 8, 2026
35 checks passed
@anp-oai
anp-oai deleted the codex/test-app-server-builder-callers branch July 8, 2026 00:15
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

2 participants