Skip to content

test: add delayed exec-server transport#31427

Merged
anp-oai merged 3 commits into
mainfrom
codex/test-app-server-rpc-delay
Jul 9, 2026
Merged

test: add delayed exec-server transport#31427
anp-oai merged 3 commits into
mainfrom
codex/test-app-server-rpc-delay

Conversation

@anp-oai

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

Copy link
Copy Markdown
Collaborator

Why

Macrobenchmarks benefit from having a way to exercise remote-executor latency without depending on Docker.

This is a very minimal first cut, if we find that simulating network conditions is useful we can always expand this scope or switch to a more robust network shaping approach.

What

  • add a package-local exec-server binary for Cargo and Bazel test fixtures
  • add a host-local WebSocket exec-server fixture and fixed-delay interposer
  • let TestAppServer route its auto environment through that delayed WebSocket transport
  • cover the delayed thread/start path through the public app-server API

Stack

  1. #31425 test: add TestAppServer builder
  2. #31427 test: add delayed exec-server transport
  3. #31295 bench: add cold skill load macrobenchmark
  4. #31428 bench: add e2e benchmark entrypoints
  5. #31429 ci: smoke Bazel e2e benchmarks

@anp-oai anp-oai force-pushed the codex/test-app-server-builder branch from 3503ccf to 717dcfb Compare July 7, 2026 17:26
@anp-oai anp-oai force-pushed the codex/test-app-server-rpc-delay branch from a9701fb to 97c4357 Compare July 7, 2026 17:31
@anp-oai anp-oai force-pushed the codex/test-app-server-builder branch from 717dcfb to 229d5b7 Compare July 7, 2026 18:14
@anp-oai anp-oai force-pushed the codex/test-app-server-rpc-delay branch from 97c4357 to ede6cf5 Compare July 7, 2026 18:17
anp-oai added a commit that referenced this pull request Jul 7, 2026
## Why

Remote-executor integration tests need one host-agnostic exec-server
fixture target instead of a Windows-only wrapper.

## What

- rename the testing binary target to exec-server
- make the fixture source and target host-agnostic
- update Windows remote-executor test wiring to use the shared target

## Validation

- bazel build //codex-rs/exec-server/testing:exec-server
- bazel cquery --config=ci-windows-cross
'set(//codex-rs/exec-server/testing:exec-server
//codex-rs/core/tests/remote_env_windows:smoke-test)'

## Stack

1. [#31422 test: generalize exec-server
fixture](#31422)
2. [#31425 test: add TestAppServer
builder](#31425)
3. [#31427 test: add delayed exec-server
transport](#31427)
4. [#31295 bench: add cold skill load
macrobenchmark](#31295)
5. [#31428 bench: add e2e benchmark
entrypoints](#31428)
6. [#31429 ci: smoke Bazel e2e
benchmarks](#31429)
@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-rpc-delay branch from ede6cf5 to 36ec068 Compare July 7, 2026 18:37
@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-rpc-delay branch from 36ec068 to ec6b04b Compare July 7, 2026 19:05
@anp-oai anp-oai force-pushed the codex/test-app-server-builder branch from 12510ad to ae9a4a1 Compare July 7, 2026 22:10
Base automatically changed from codex/test-app-server-builder to main July 7, 2026 22:20
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)
@anp-oai anp-oai force-pushed the codex/test-app-server-rpc-delay branch from ec6b04b to 0db9962 Compare July 7, 2026 22:55
anp-oai added a commit that referenced this pull request Jul 8, 2026
Comment thread codex-rs/core/tests/common/test_codex.rs Outdated
Comment thread codex-rs/app-server/tests/common/test_app_server.rs Outdated
Comment thread codex-rs/app-server/tests/common/test_app_server.rs Outdated
Comment thread codex-rs/app-server/tests/common/test_app_server.rs Outdated
Comment thread codex-rs/core/tests/common/test_codex.rs Outdated
@anp-oai

anp-oai commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@anp-oai anp-oai marked this pull request as ready for review July 8, 2026 06:19
@anp-oai anp-oai requested a review from a team as a code owner July 8, 2026 06:19
anp-oai added a commit that referenced this pull request Jul 8, 2026
@anp-oai anp-oai force-pushed the codex/test-app-server-rpc-delay branch from f19d63b to c1c3ef0 Compare July 8, 2026 06:23

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f19d63b2b5

ℹ️ 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".

Comment thread codex-rs/app-server/tests/common/Cargo.toml
anp-oai added a commit that referenced this pull request Jul 8, 2026
@anp-oai anp-oai force-pushed the codex/test-app-server-rpc-delay branch from c1c3ef0 to 24376ad Compare July 8, 2026 06:31

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f19d63b2b5

ℹ️ 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".

Comment thread codex-rs/app-server/tests/common/test_app_server.rs
Comment thread codex-rs/app-server/src/bin/exec_server.rs Outdated
anp-oai added a commit that referenced this pull request Jul 8, 2026
@anp-oai anp-oai force-pushed the codex/test-app-server-rpc-delay branch from 24376ad to 9d3680d Compare July 8, 2026 06:47

@jif-oai jif-oai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pre-approving to unblock

Comment thread codex-rs/app-server/tests/common/test_app_server.rs
Comment thread codex-rs/app-server/tests/common/rpc_delay_tests.rs
anp-oai added a commit that referenced this pull request Jul 8, 2026
@anp-oai anp-oai force-pushed the codex/test-app-server-rpc-delay branch from 9d3680d to 627bca3 Compare July 8, 2026 20:49
anp-oai added a commit that referenced this pull request Jul 8, 2026
@anp-oai anp-oai force-pushed the codex/test-app-server-rpc-delay branch from 627bca3 to 4e273d8 Compare July 8, 2026 21:15
@anp-oai anp-oai enabled auto-merge (squash) July 8, 2026 21:15
@anp-oai

anp-oai commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4e273d8e7b

ℹ️ 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".

Comment thread codex-rs/app-server/tests/common/Cargo.toml
Comment thread codex-rs/app-server/src/bin/exec_server.rs Outdated
@anp-oai anp-oai force-pushed the codex/test-app-server-rpc-delay branch from ae39168 to b752ca1 Compare July 9, 2026 00:07
@anp-oai anp-oai merged commit 3fa9066 into main Jul 9, 2026
35 checks passed
@anp-oai anp-oai deleted the codex/test-app-server-rpc-delay branch July 9, 2026 00:17
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants