Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: random decryption errors after ending 1:1 on SFT (WPB-11213) #3022

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

ohassine
Copy link
Member

@ohassine ohassine commented Sep 23, 2024


PR Submission Checklist for internal contributors

  • The PR Title

    • conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow²
    • contains a reference JIRA issue number like SQPIT-764
    • answers the question: If merged, this PR will: ... ³
  • The PR Description

    • is free of optional paragraphs and you have filled the relevant parts to the best of your ability

What's new in this PR?

Issues

Some random decryption errors after ending 1:1 on SFT.

Causes (Optional)

A race condition when we try to delete or decrypt a message related to the call and the sub conversation.

Solutions

Ignore MlsException to not show the decryption
(iOS and web already ignoring it)

Needs releases with:

  • GitHub link to other pull request

Testing

Test Coverage (Optional)

  • I have added automated test to this contribution

How to Test

Briefly describe how this change was tested and if applicable the exact steps taken to verify that it works as expected.

Notes (Optional)

Specify here any other facts that you think are important for this issue.

Attachments (Optional)

Attachments like images, videos, etc. (drag and drop in the text box)


PR Post Submission Checklist for internal contributors (Optional)

  • Wire's Github Workflow has automatically linked the PR to a JIRA issue

PR Post Merge Checklist for internal contributors

  • If any soft of configuration variable was introduced by this PR, it has been added to the relevant documents and the CI jobs have been updated.

References
  1. https://sparkbox.com/foundry/semantic_commit_messages
  2. https://github.com/wireapp/.github#usage
  3. E.g. feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764.

Copy link

@@ -32,6 +32,7 @@ actual fun mapMLSException(exception: Exception): MLSFailure =
is CryptoError.StaleCommit -> MLSFailure.StaleCommit
is CryptoError.ConversationAlreadyExists -> MLSFailure.ConversationAlreadyExists
is CryptoError.MessageEpochTooOld -> MLSFailure.MessageEpochTooOld
is CryptoError.MlsException -> MLSFailure.InternalErrors
Copy link
Member

Choose a reason for hiding this comment

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

question: should we do this to all internal errors, or only when it is related to sub conversation messages

Copy link
Member Author

Choose a reason for hiding this comment

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

I think so, we can make it for this specific case only, but it's error prone as we will base on string

@MohamadJaara MohamadJaara requested review from MohamadJaara and removed request for mathias-niboulies September 23, 2024 11:30
Copy link
Contributor

github-actions bot commented Sep 23, 2024

Test Results

3 065 tests   2 958 ✔️  3m 21s ⏱️
   524 suites     107 💤
   524 files           0

Results for commit f44f0fb.

♻️ This comment has been updated with latest results.

@datadog-wireapp
Copy link

Datadog Report

All test runs 6efe4bc 🔗

2 Total Test Services: 0 Failed, 2 Passed

Test Services
Service Name Failed Known Flaky New Flaky Passed Skipped Total Time Test Service View
kalium-ios 0 0 0 2805 123 1.47s Link
kalium-jvm 0 0 0 2958 107 6.79s Link

@ohassine ohassine merged commit 56a2cc5 into release/android-cycle-4.6 Sep 24, 2024
28 checks passed
@ohassine ohassine deleted the ignore-mls-exception branch September 24, 2024 10:38
github-actions bot pushed a commit that referenced this pull request Sep 24, 2024
github-merge-queue bot pushed a commit that referenced this pull request Sep 25, 2024
Co-authored-by: Oussama Hassine <[email protected]>
Co-authored-by: Mohamad Jaara <[email protected]>
github-actions bot added a commit that referenced this pull request Sep 25, 2024
Co-authored-by: Oussama Hassine <[email protected]>
Co-authored-by: Mohamad Jaara <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Sep 26, 2024
…#3039)

* fix: Ignore MLSException (#3022) (#3025)

Co-authored-by: Oussama Hassine <[email protected]>
Co-authored-by: Mohamad Jaara <[email protected]>

* chore: empty commit

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Oussama Hassine <[email protected]>
Co-authored-by: Mohamad Jaara <[email protected]>
@echoes-hq echoes-hq bot added the echoes: unplanned Any work item that isn’t part of the product or technical roadmap. label Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
echoes: unplanned Any work item that isn’t part of the product or technical roadmap. 👕 size: XS type: bug / fix 🐞
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants