Skip to content

feat: implement retry encryption key request mechanism for livekit calls#2207

Draft
coder-with-a-bushido wants to merge 2 commits into
mainfrom
karthi/retry-keys
Draft

feat: implement retry encryption key request mechanism for livekit calls#2207
coder-with-a-bushido wants to merge 2 commits into
mainfrom
karthi/retry-keys

Conversation

@coder-with-a-bushido

@coder-with-a-bushido coder-with-a-bushido commented Dec 18, 2025

Copy link
Copy Markdown
Contributor

@codecov

codecov Bot commented Dec 18, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 51.35135% with 18 lines in your changes missing coverage. Please review.
✅ Project coverage is 57.97%. Comparing base (510ba9d) to head (3e978f9).
⚠️ Report is 110 commits behind head on main.

Files with missing lines Patch % Lines
lib/src/voip/backend/livekit_backend.dart 51.35% 18 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2207      +/-   ##
==========================================
+ Coverage   57.54%   57.97%   +0.42%     
==========================================
  Files         153      153              
  Lines       19485    19505      +20     
==========================================
+ Hits        11213    11308      +95     
+ Misses       8272     8197      -75     
Files with missing lines Coverage Δ
lib/src/voip/backend/livekit_backend.dart 30.76% <51.35%> (+30.76%) ⬆️

... and 2 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 510ba9d...3e978f9. Read the comment docs.

Comment thread lib/src/models/retry_event_model.dart Outdated
Comment thread lib/src/voip/backend/livekit_backend.dart Outdated
@coder-with-a-bushido coder-with-a-bushido force-pushed the karthi/retry-keys branch 2 times, most recently from 25886b1 to 8a528b9 Compare January 5, 2026 17:13
deviceId: deviceId,
);

// Cancel any pending retry for this participant since we received keys

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does this fix the issue mentioned in https://github.com/famedly/product-management/issues/2078? They might send us keys for index N+1 but never start using it, we should only cancel requests when we get a answer for the requested index

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad, I misread the issue! thank you

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will work on it now

_requestEncryptionKeyPending.remove(rp);
return;
}
unawaited(requestEncrytionKey(groupCall, [rp]));

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any reason this is unawaited?

@coder-with-a-bushido coder-with-a-bushido marked this pull request as draft January 9, 2026 11:05
auto-merge was automatically disabled January 9, 2026 11:05

Pull request was converted to draft

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.

3 participants