chore(llc): improve ice candidate tracing - #1287
Conversation
|
Warning Review limit reached
Next review available in: 6 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe PR serializes WebRTC remote-description and ICE-candidate handling, adds buffered and applied outcomes with tracing and regression tests, removes ChangesWebRTC ICE candidate flow
Dogfooding desktop plugin cleanup
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant RtcManager
participant TracedStreamPeerConnection
participant StreamPeerConnection
participant WebRTCPeer
participant TraceTag
RtcManager->>TracedStreamPeerConnection: addIceCandidate(candidate)
TracedStreamPeerConnection->>StreamPeerConnection: addIceCandidate(candidate)
StreamPeerConnection->>WebRTCPeer: check remote description
WebRTCPeer-->>StreamPeerConnection: description present or absent
StreamPeerConnection-->>TracedStreamPeerConnection: added or buffered result
TracedStreamPeerConnection->>TraceTag: emit outcome-specific trace tag
TracedStreamPeerConnection-->>RtcManager: normalized candidate result
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@packages/stream_video/lib/src/webrtc/peer_connection.dart`:
- Around line 326-339: Serialize addIceCandidate and setRemoteDescription
through a shared async mutex or operation queue so remote-description checks,
buffering, and flushing cannot interleave. In the pending-candidate flush within
setRemoteDescription, remove each candidate from _pendingCandidates immediately
after its pc.addCandidate succeeds, preserving failed and unattempted candidates
for retry. Add tests for concurrent candidate arrival and partial flush failure.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: fa875d6d-0c9f-4761-aa0d-e497b156d5f4
📒 Files selected for processing (8)
dogfooding/linux/flutter/generated_plugin_registrant.ccdogfooding/linux/flutter/generated_plugins.cmakedogfooding/pubspec.yamldogfooding/windows/flutter/generated_plugins.cmakepackages/stream_video/lib/src/call/stats/trace_tag.dartpackages/stream_video/lib/src/webrtc/peer_connection.dartpackages/stream_video/lib/src/webrtc/rtc_manager.dartpackages/stream_video/lib/src/webrtc/traced_peer_connection.dart
💤 Files with no reviewable changes (3)
- dogfooding/linux/flutter/generated_plugins.cmake
- dogfooding/windows/flutter/generated_plugins.cmake
- dogfooding/linux/flutter/generated_plugin_registrant.cc
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1287 +/- ##
==========================================
+ Coverage 11.20% 11.21% +0.01%
==========================================
Files 686 686
Lines 50350 50357 +7
==========================================
+ Hits 5640 5650 +10
+ Misses 44710 44707 -3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary by CodeRabbit