Skip to content

fix: stabilize flaky return-feed test in CI#4

Merged
msitarzewski merged 1 commit intomainfrom
fix/flaky-return-feed-test
Mar 14, 2026
Merged

fix: stabilize flaky return-feed test in CI#4
msitarzewski merged 1 commit intomainfrom
fix/flaky-return-feed-test

Conversation

@msitarzewski
Copy link
Owner

Summary

  • Poll actual RTCPeerConnection.connectionState via window.connectionManager.rtcManager.peerConnections instead of blind 15s sleep
  • Add 10s renegotiation settle time after both connections reach connected state
  • Increase return feed wait timeouts from 30s → 45s
  • Add 3rd retry in CI (|| ... || ...)

Fixes Node 20 CI failure where return-feed renegotiation fired during connecting state, causing the track to never arrive.

Test plan

  • 2/2 local runs pass
  • All 6 Playwright suites pass locally
  • 18/18 server tests pass
  • CI green on Node 18/20/22

🤖 Generated with Claude Code

Poll actual RTCPeerConnection.connectionState instead of blind sleep,
add 10s renegotiation settle time, increase feed wait to 45s, add 3rd
retry in CI.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@msitarzewski msitarzewski merged commit 5d7edcf into main Mar 14, 2026
3 checks passed
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