Skip to content

[tests] Keep Apps out of generic core test harness#28508

Merged
jif-oai merged 2 commits into
mainfrom
jif/nonblocking-apps-mcp-startup
Jun 16, 2026
Merged

[tests] Keep Apps out of generic core test harness#28508
jif-oai merged 2 commits into
mainfrom
jif/nonblocking-apps-mcp-startup

Conversation

@jif-oai

@jif-oai jif-oai commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Summary

  • disable the stable Apps feature in the generic test_codex() integration-test harness
  • keep Apps-specific tests explicit: their builders re-enable Apps and point it at a local mock server

Why

Generic tests that use dummy ChatGPT auth were also enabling the host-owned codex_apps MCP server. That made unrelated tests contact chatgpt.com and wait for MCP startup, causing the Bazel timeouts observed on #28368.

The generic harness should be hermetic and should not start an external service that the test did not request. This is test-only; production Apps behavior is unchanged. The broader optional-MCP startup behavior is being handled separately in #28407.

Testing

  • just test -p codex-core -E 'test(pre_sampling_compact_runs_when_comp_hash_changes) | test(model_switch_to_smaller_model_updates_token_context_window) | test(codex_apps_file_params_upload_local_paths_before_mcp_tool_call)'
  • just fix -p codex-core
  • just fmt

@jif-oai jif-oai changed the title [codex] Avoid blocking turns on Apps startup [tests] Keep Apps out of generic core test harness Jun 16, 2026
@jif-oai
jif-oai marked this pull request as ready for review June 16, 2026 10:55
@jif-oai
jif-oai requested a review from a team as a code owner June 16, 2026 10:55
@jif-oai

jif-oai commented Jun 16, 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. 👍

Reviewed commit: 5fc8ab4e8f

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

@jif-oai
jif-oai merged commit ef8eb8b into main Jun 16, 2026
31 checks passed
@jif-oai
jif-oai deleted the jif/nonblocking-apps-mcp-startup branch June 16, 2026 11:07
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 16, 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.

1 participant