Skip to content

[codex] Wait for MCP readiness in core integration tests#24964

Merged
anp-oai merged 2 commits into
mainfrom
codex/mcp-test-readiness-waits
May 29, 2026
Merged

[codex] Wait for MCP readiness in core integration tests#24964
anp-oai merged 2 commits into
mainfrom
codex/mcp-test-readiness-waits

Conversation

@anp-oai
Copy link
Copy Markdown
Collaborator

@anp-oai anp-oai commented May 28, 2026

Ensures MCP-backed codex-core integration tests exercise initialized servers instead of racing server startup.

I've been idly investigating a few flakes and the failure modes are much more confusing when a tool call fails because of a failed server start than when the failed server start causes the test to fail directly.

@anp-oai
Copy link
Copy Markdown
Collaborator Author

anp-oai commented May 28, 2026

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. 👍

ℹ️ 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/core/tests/common/lib.rs Outdated
Comment thread codex-rs/core/tests/common/lib.rs Outdated
Comment thread codex-rs/core/tests/common/lib.rs Outdated
Comment thread codex-rs/core/tests/common/lib.rs
@anp-oai
Copy link
Copy Markdown
Collaborator Author

anp-oai commented May 29, 2026

@codex review

Copy link
Copy Markdown
Contributor

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

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: 52ff1333f6

ℹ️ 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/core/tests/common/lib.rs

// Wait for the startup summary regardless of outcome, then interpret the
// requested server's ready, failed, or cancelled entry below.
let summary = loop {
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I converted this from a loop with a timeout to an infinite loop, since all of our test runners enforce suite-level timeouts. No need to invite flakes on slow cloud machines from weird timing this way.

@anp-oai anp-oai marked this pull request as ready for review May 29, 2026 16:27
@anp-oai anp-oai requested a review from a team as a code owner May 29, 2026 16:27
@anp-oai anp-oai force-pushed the codex/mcp-test-readiness-waits branch from 52ff133 to 8de64b6 Compare May 29, 2026 16:35
@anp-oai anp-oai merged commit 3e666dd into main May 29, 2026
31 checks passed
@anp-oai anp-oai deleted the codex/mcp-test-readiness-waits branch May 29, 2026 17:22
@github-actions github-actions Bot locked and limited conversation to collaborators May 29, 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