Skip to content

test(cli): stabilize websocket idle timeout coverage - #11626

Merged
markijbema merged 1 commit into
mainfrom
mark/fix-openai-ws-idle-test-flake
Jun 24, 2026
Merged

test(cli): stabilize websocket idle timeout coverage#11626
markijbema merged 1 commit into
mainfrom
mark/fix-openai-ws-idle-test-flake

Conversation

@markijbema

Copy link
Copy Markdown
Contributor

Summary

  • Increase the OpenAI WebSocket idle-failure test timeout from 20ms to 100ms
  • Preserve the timeout behavior under test while allowing loaded CI runners to deliver the WebSocket send callback before the idle timer races it

The linked failure is a test timing race: the same test passed on macOS and Windows and passed after the Linux job was rerun. Under load, the 20ms timeout can expire before the local socket's send callback runs, leaving a second timer that surfaces after HTTP fallback has already been selected.

Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com>
@markijbema markijbema self-assigned this Jun 24, 2026
@kilo-code-bot

kilo-code-bot Bot commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (1 files)
  • packages/opencode/test/plugin/openai-ws.test.ts

Reviewed by gpt-5.4-20260305 · Input: 44.9K · Output: 4K · Cached: 216.3K

Review guidance: REVIEW.md from base branch main

@markijbema
markijbema enabled auto-merge June 24, 2026 10:23
@markijbema
markijbema disabled auto-merge June 24, 2026 12:09
@markijbema
markijbema merged commit db0c9fa into main Jun 24, 2026
20 of 23 checks passed
@markijbema
markijbema deleted the mark/fix-openai-ws-idle-test-flake branch June 24, 2026 12:09
t7tran pushed a commit to t7tran/kilocode that referenced this pull request Aug 14, 2026
…le-test-flake

test(cli): stabilize websocket idle timeout coverage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants