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 🍒 🍒 #3037

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Sep 25, 2024

BugWPB-11247 MLS conversations are broken on client deletion

This PR was automatically cherry-picked based on the following PR:

Original PR description:


This PR was automatically cherry-picked based on the following PR:

Original PR description:



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.

@github-actions github-actions bot added cherry-pick PR is cherry-picking changes from another banch echoes/initiative: product-metrics-in-countly Analytics and KPIs echoes: bugs Technical or functional defects in the product echoes: features End-user visible changes intended to create customer value echoes: maintenance Maintenance activity - Refactoring , Preventive , Improvements to code , Performance improvements echoes: security Security related changes or defects echoes: technical-debt Changes intended at mitigating risks echoes: throughput Changes intended at preserving our ability to evolve the software safely and effectively echoes: throughput/ci-maintenance Changes we need to do to keep CI healthy and fast type: bug / fix 🐞 👕 size: S labels Sep 25, 2024
@typfel typfel force-pushed the fix/mls-re-login-WPB-11247-cherry-pick-cherry-pick branch from bb1e765 to 92ee41d Compare September 25, 2024 13:23
Copy link
Contributor Author

github-actions bot commented Sep 25, 2024

Test Results

3 209 tests  +1   3 102 ✅ +1   3m 58s ⏱️ +4s
  551 suites ±0     107 💤 ±0 
  551 files   ±0       0 ❌ ±0 

Results for commit 432c327. ± Comparison against base commit 025b3f7.

♻️ This comment has been updated with latest results.

Copy link
Contributor Author

github-actions bot commented Sep 25, 2024

🐰 Bencher Report

Branchfix/mls-re-login-WPB-11247-cherry-pick-cherry-pick
Testbedubuntu-latest

⚠️ WARNING: The following Measure does not have a Threshold. Without a Threshold, no Alerts will ever be generated!

Click here to create a new Threshold
For more information, see the Threshold documentation.
To only post results if a Threshold exists, set the --ci-only-thresholds CLI flag.

Click to view all benchmark results
BenchmarkLatencynanoseconds (ns)
com.wire.kalium.benchmarks.logic.CoreLogicBenchmark.createObjectInFiles📈 view plot
⚠️ NO THRESHOLD
697,098.43
com.wire.kalium.benchmarks.logic.CoreLogicBenchmark.createObjectInMemory📈 view plot
⚠️ NO THRESHOLD
776,616,582.94
com.wire.kalium.benchmarks.persistence.MessagesNoPragmaTuneBenchmark.messageInsertionBenchmark📈 view plot
⚠️ NO THRESHOLD
937,924,985.41
com.wire.kalium.benchmarks.persistence.MessagesNoPragmaTuneBenchmark.queryMessagesBenchmark📈 view plot
⚠️ NO THRESHOLD
21,584,727.42
🐰 View full continuous benchmarking report in Bencher

@datadog-wireapp
Copy link

datadog-wireapp bot commented Sep 25, 2024

Datadog Report

Branch report: fix/mls-re-login-WPB-11247-cherry-pick-cherry-pick
Commit report: 8914f65
Test service: kalium-jvm

✅ 0 Failed, 3102 Passed, 107 Skipped, 14.3s Total Time

@typfel typfel force-pushed the fix/mls-re-login-WPB-11247-cherry-pick-cherry-pick branch 2 times, most recently from a696ea2 to 8e8ce01 Compare September 27, 2024 13:08
…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 typfel force-pushed the fix/mls-re-login-WPB-11247-cherry-pick-cherry-pick branch from 8e8ce01 to 432c327 Compare September 27, 2024 13:15
Copy link

sonarcloud bot commented Sep 27, 2024

@typfel typfel added this pull request to the merge queue Sep 27, 2024
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 52.61%. Comparing base (025b3f7) to head (432c327).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3037      +/-   ##
===========================================
+ Coverage    52.52%   52.61%   +0.09%     
===========================================
  Files         1301     1301              
  Lines        50044    50044              
  Branches      4663     4663              
===========================================
+ Hits         26284    26331      +47     
+ Misses       21883    21832      -51     
- Partials      1877     1881       +4     

see 3 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 025b3f7...432c327. Read the comment docs.

Merged via the queue into develop with commit 21bbf39 Sep 27, 2024
22 checks passed
@typfel typfel deleted the fix/mls-re-login-WPB-11247-cherry-pick-cherry-pick branch September 27, 2024 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick PR is cherry-picking changes from another banch echoes: bugs Technical or functional defects in the product echoes: features End-user visible changes intended to create customer value echoes/initiative: product-metrics-in-countly Analytics and KPIs echoes: maintenance Maintenance activity - Refactoring , Preventive , Improvements to code , Performance improvements echoes: security Security related changes or defects echoes: technical-debt Changes intended at mitigating risks echoes: throughput/ci-maintenance Changes we need to do to keep CI healthy and fast echoes: throughput Changes intended at preserving our ability to evolve the software safely and effectively 👕 size: S type: bug / fix 🐞
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants