Skip to content

Fix flaky windows CI test#10993

Merged
etraut-openai merged 1 commit intomainfrom
etraut/windows_flake2
Feb 7, 2026
Merged

Fix flaky windows CI test#10993
etraut-openai merged 1 commit intomainfrom
etraut/windows_flake2

Conversation

@etraut-openai
Copy link
Collaborator

Hardens PTY Python REPL test and make MCP test startup deterministic

Summary

  • utils/pty/src/tests.rs

    • Added a REPL readiness handshake (wait_for_python_repl_ready) that repeatedly sends a marker and waits for it in PTY output before sending test commands.
    • Updated pty_python_repl_emits_output_and_exits to:
      • wait for readiness first,
      • preserve startup output,
      • append output collected through process exit.
    • Reduces Windows/ConPTY flakiness from early stdin writes racing REPL startup.
  • mcp-server/tests/suite/codex_tool.rs

    • Avoid remote model refresh during MCP test startup, reducing timeout-prone nondeterminism.

Hardens PTY Python REPL test and make MCP test startup deterministic

**Summary**
- `utils/pty/src/tests.rs`
  - Added a REPL readiness handshake (`wait_for_python_repl_ready`) that repeatedly sends a marker and waits for it in PTY output before sending test commands.
  - Updated `pty_python_repl_emits_output_and_exits` to:
    - wait for readiness first,
    - preserve startup output,
    - append output collected through process exit.
  - Reduces Windows/ConPTY flakiness from early stdin writes racing REPL startup.

- `mcp-server/tests/suite/codex_tool.rs`
  - Avoid remote model refresh during MCP test startup, reducing timeout-prone nondeterminism.
@etraut-openai etraut-openai merged commit 1033606 into main Feb 7, 2026
51 of 53 checks passed
@etraut-openai etraut-openai deleted the etraut/windows_flake2 branch February 7, 2026 16:55
@github-actions github-actions bot locked and limited conversation to collaborators Feb 7, 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