Skip to content

fix(forge): stabilize ssh-connector reconnect-failure test on Windows#305

Merged
plusplusoneplusplus merged 1 commit into
mainfrom
fix/ssh-connector-test-flake
Jun 9, 2026
Merged

fix(forge): stabilize ssh-connector reconnect-failure test on Windows#305
plusplusoneplusplus merged 1 commit into
mainfrom
fix/ssh-connector-test-flake

Conversation

@plusplusoneplusplus

Copy link
Copy Markdown
Owner

Summary

  • Fixes flaky forge-test (windows-latest) CI failure in ssh-connector.test.ts > auto-reconnect failure logs error and reschedules instead of crashing
  • Root cause: the test used a fixed 100ms sleep to wait for the reconnect cycle, but on Windows CI the 10ms backoff + 15ms health timeout wasn't always complete within that window — the assertion caught the state as 'connecting' instead of 'failed'
  • Fix: replace the fixed sleep with vi.waitFor() polling (matching the pattern already used by the recovery test below it), giving the reconnect cycle up to 500ms to settle

Test plan

  • ssh-connector.test.ts — all 17 tests pass locally
  • Full forge test suite — 194 files, 4687 tests pass
  • CI forge-test (windows-latest) passes

Made with Cursor

Replace fixed 100ms sleep with vi.waitFor() polling, so the test waits
for the reconnect cycle to complete rather than racing against CI timing.

Co-authored-by: Cursor <cursoragent@cursor.com>
@plusplusoneplusplus plusplusoneplusplus enabled auto-merge (squash) June 9, 2026 14:31
@plusplusoneplusplus plusplusoneplusplus merged commit 77f0297 into main Jun 9, 2026
36 checks passed
@plusplusoneplusplus plusplusoneplusplus deleted the fix/ssh-connector-test-flake branch June 9, 2026 14:44
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.

1 participant