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: update group state when fetching conversation during slow sync WPB-11247 #3029

Merged
merged 2 commits into from
Sep 25, 2024

Conversation

typfel
Copy link
Member

@typfel typfel commented Sep 24, 2024

BugWPB-11247 MLS conversations are broken on client deletion


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

Group state isn't updated during the slow sync, which means MLS conversation will keep the ESTABLISHED state even though they no longer exists inside CoreCrypto if we registered a new client.

Causes

mls_group_state is not included the "on conflict" clause.

Solutions

Include it


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.

@echoes-hq echoes-hq bot added the echoes: unplanned Any work item that isn’t part of the product or technical roadmap. label Sep 24, 2024
Copy link
Contributor

github-actions bot commented Sep 24, 2024

Test Results

2 931 tests   2 808 ✔️  25s ⏱️
   497 suites     123 💤
   497 files           0

Results for commit dbdf3c1.

♻️ This comment has been updated with latest results.

@datadog-wireapp
Copy link

datadog-wireapp bot commented Sep 24, 2024

Datadog Report

All test runs c5906c5 🔗

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 2808 123 1.32s Link
kalium-jvm 0 0 0 2961 107 6.45s Link

@vitorhugods
Copy link
Member

It would be nice to add a test for this. Insert a conversation, insert it again with a different mls_group_state and assert that it is updated

@typfel
Copy link
Member Author

typfel commented Sep 25, 2024

@MohamadJaara is release/candidate the right destination?

@MohamadJaara
Copy link
Member

@MohamadJaara is release/candidate the right destination?

ohh did not notice this one, the correct one should be "release/android-cycle-4.6"

@typfel typfel changed the base branch from release/candidate to release/android-cycle-4.6 September 25, 2024 08:49
@echoes-hq echoes-hq bot added echoes: technical-roadmap/throughput More specific category, to highlight task aiming at improving the development velocity and effici... echoes: technical-roadmap/security More specific category, to highlight task that tackle security requirements. echoes: product-roadmap Work aligned with the customer-announced roadmap, targeting a specific release date. echoes: technical-roadmap Work contributing to the Technical Roadmap, to improve our velocity or reduce the technical debt. echoes: technical-roadmap/technical-debt More specific category, to highlight Technical Debt being tackled. echoes: throughput/ci-maintenance echoes/initiative: product-metrics-in-countly Analytics and KPIs labels Sep 25, 2024
@typfel typfel force-pushed the fix/mls-re-login-WPB-11247 branch from 5f97cc2 to dbdf3c1 Compare September 25, 2024 08:51
Copy link

@typfel
Copy link
Member Author

typfel commented Sep 25, 2024

It would be nice to add a test for this. Insert a conversation, insert it again with a different mls_group_state and assert that it is updated

Done

@typfel typfel merged commit c0869d4 into release/android-cycle-4.6 Sep 25, 2024
19 checks passed
@typfel typfel deleted the fix/mls-re-login-WPB-11247 branch September 25, 2024 09:31
github-actions bot pushed a commit that referenced this pull request Sep 25, 2024
…PB-11247 (#3029)

* fix: update  group state when fetching conversation during slow sync

* test: verify that group state is updated on re-insertion
typfel added a commit that referenced this pull request Sep 25, 2024
…PB-11247 (#3029)

* fix: update  group state when fetching conversation during slow sync

* test: verify that group state is updated on re-insertion
github-merge-queue bot pushed a commit that referenced this pull request Sep 25, 2024
…PB-11247 (#3029) (#3033)

* fix: update  group state when fetching conversation during slow sync

* test: verify that group state is updated on re-insertion

Co-authored-by: Jacob Persson <[email protected]>
github-actions bot added a commit that referenced this pull request Sep 25, 2024
…PB-11247 (#3029) (#3033)

* fix: update  group state when fetching conversation during slow sync

* test: verify that group state is updated on re-insertion

Co-authored-by: Jacob Persson <[email protected]>
typfel added a commit that referenced this pull request Sep 25, 2024
…PB-11247 (#3029) (#3033)

* fix: update  group state when fetching conversation during slow sync

* test: verify that group state is updated on re-insertion

Co-authored-by: Jacob Persson <[email protected]>
typfel added a commit that referenced this pull request Sep 25, 2024
…PB-11247 (#3029) (#3033)

* fix: update  group state when fetching conversation during slow sync

* test: verify that group state is updated on re-insertion

Co-authored-by: Jacob Persson <[email protected]>
typfel added a commit that referenced this pull request Sep 27, 2024
…PB-11247 (#3029) (#3033)

* fix: update  group state when fetching conversation during slow sync

* test: verify that group state is updated on re-insertion

Co-authored-by: Jacob Persson <[email protected]>
typfel added a commit that referenced this pull request Sep 27, 2024
…PB-11247 (#3029) (#3033)

* fix: update  group state when fetching conversation during slow sync

* test: verify that group state is updated on re-insertion

Co-authored-by: Jacob Persson <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Sep 27, 2024
…PB-11247 (#3029) (#3033) (#3037)

* fix: update  group state when fetching conversation during slow sync

* test: verify that group state is updated on re-insertion

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jacob Persson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
echoes/initiative: product-metrics-in-countly Analytics and KPIs echoes: product-roadmap Work aligned with the customer-announced roadmap, targeting a specific release date. echoes: technical-roadmap/security More specific category, to highlight task that tackle security requirements. echoes: technical-roadmap/technical-debt More specific category, to highlight Technical Debt being tackled. echoes: technical-roadmap/throughput More specific category, to highlight task aiming at improving the development velocity and effici... echoes: technical-roadmap Work contributing to the Technical Roadmap, to improve our velocity or reduce the technical debt. echoes: unplanned Any work item that isn’t part of the product or technical roadmap. 👕 size: S type: bug / fix 🐞
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants